diff --git a/CHANGELOG.rst b/CHANGELOG.rst index aa0aa70c..58b72d66 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,29 @@ redhat.satellite Release Notes This changelog describes changes after version 0.8.1. +v1.3.0 +====== + +Minor Changes +------------- + +- external_usergroup - rename the ``auth_source_ldap`` parameter to ``auth_source`` (``auth_source_ldap`` is still supported via an alias) +- server URL and credentials can now also be specified using environment variables (https://github.com/theforeman/foreman-ansible-modules/issues/837) +- subnet - add support for external IPAM (https://github.com/theforeman/foreman-ansible-modules/issues/966) + +Bugfixes +-------- + +- content_view - remove CVs from lifecycle environments before deleting them (https://bugzilla.redhat.com/show_bug.cgi?id=1875314) +- external_usergroup - support non-LDAP external groups (https://github.com/theforeman/foreman-ansible-modules/issues/956) +- host - properly scope image lookups by the compute resource (https://bugzilla.redhat.com/show_bug.cgi?id=1878693) +- inventory plugin - include empty parent groups in the inventory (https://github.com/theforeman/foreman-ansible-modules/issues/919) + +New Modules +----------- + +- redhat.satellite.status_info - Get status info + v1.2.0 ====== diff --git a/Makefile b/Makefile index caba91cb..bab2edb6 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ tests/test_playbooks/vars/server.yml: @echo "For recording, please adjust $@ to match your reference server." dist-test: $(MANIFEST) - ansible -m $(NAMESPACE).$(NAME).organization -a "username=admin password=changeme server_url=https://foreman.example.test name=collectiontest" localhost | grep -q "Failed to connect to Foreman server" + FOREMAN_SERVER_URL=https://foreman.example.test ansible -m $(NAMESPACE).$(NAME).organization -a "username=admin password=changeme name=collectiontest" localhost | grep -q "Failed to connect to Foreman server.*foreman.example.test" ansible-doc $(NAMESPACE).$(NAME).organization | grep -q "Manage Organization" $(MANIFEST): $(NAMESPACE)-$(NAME)-$(VERSION).tar.gz diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index d7e2de99..e84d5b04 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -224,3 +224,29 @@ releases: - bz1855008-single_call_parameters.yaml - bz1871978-template_kinds.yaml release_date: '2020-09-03' + 1.3.0: + changes: + bugfixes: + - content_view - remove CVs from lifecycle environments before deleting them + (https://bugzilla.redhat.com/show_bug.cgi?id=1875314) + - external_usergroup - support non-LDAP external groups (https://github.com/theforeman/foreman-ansible-modules/issues/956) + - host - properly scope image lookups by the compute resource (https://bugzilla.redhat.com/show_bug.cgi?id=1878693) + - inventory plugin - include empty parent groups in the inventory (https://github.com/theforeman/foreman-ansible-modules/issues/919) + minor_changes: + - external_usergroup - rename the ``auth_source_ldap`` parameter to ``auth_source`` + (``auth_source_ldap`` is still supported via an alias) + - server URL and credentials can now also be specified using environment variables + (https://github.com/theforeman/foreman-ansible-modules/issues/837) + - subnet - add support for external IPAM (https://github.com/theforeman/foreman-ansible-modules/issues/966) + fragments: + - 837-env-fallback.yaml + - 919-include-empty-parent-groups.yml + - 956-external_usergroup-non-ldap.yaml + - 966-subnet-external_ipam.yaml + - bz1875314-content_view-remove.yaml + - bz1878693-scope_image_lookups.yaml + modules: + - description: Get status info + name: status_info + namespace: '' + release_date: '2020-09-22' diff --git a/docs/developing.md b/docs/developing.md index 1ceeec28..5b943c5b 100644 --- a/docs/developing.md +++ b/docs/developing.md @@ -59,7 +59,7 @@ This is usually combined with `flat_name=_ids`. If no flat_name is provi The module must handle the entities separately. See domain parameters in [`domain`](../plugins/modules/domain.py) for an example. The sub entities must be described by `foreman_spec=_spec`. -* `type='invisible'` The parameter is available to the API call, but it will be excluded from Ansible's `argument_spec`. +* `invisible=True` The parameter is available to the API call, but it will be excluded from Ansible's `argument_spec`. * `search_by='login'`: Used with `type='entity'` or `type='entity_list'`. Field used to search the sub entity. Defaults to value provided by `ENTITY_KEYS` or 'name' if no value found. * `search_operator='~'`: Used with `type='entity'` or `type='entity_list'`. Operator used to search the sub entity. Defaults to '='. For fuzzy search use '~'. * `resource_type='organizations'`: Used with `type='entity'` or `type='entity_list'`. Resource type used to build API resource PATH. Defaults to pluralized entity key. diff --git a/galaxy.yml b/galaxy.yml index b07db60b..37f3600f 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -35,6 +35,7 @@ authors: - "Nikhil Jain " - "Olivier " - "Ondrej Prazak " + - "Ondřej Ezr " - "Patrick Creech " - "Paul Armstrong " - "Paul Gration " @@ -44,6 +45,7 @@ authors: - "Richard Stempfl " - "Sam " - "Sean O'Keeffe " + - "Stoned Elipot " - "TTherouanne " - "William Bradford Clark " - "calvingsmith <4283930+calvingsmith@users.noreply.github.com>" @@ -52,7 +54,7 @@ authors: - "metalcated " - "russianguppie <46544650+russianguppie@users.noreply.github.com>" - "willtome " -version: "1.2.0" +version: "1.3.0" license: - "GPL-3.0-or-later" tags: diff --git a/plugins/callback/foreman.py b/plugins/callback/foreman.py index 9b46a5d3..0b9f6f9a 100644 --- a/plugins/callback/foreman.py +++ b/plugins/callback/foreman.py @@ -20,16 +20,20 @@ - requests (python library) options: url: - description: URL to the Foreman server + description: + - URL of the Foreman server. env: - name: FOREMAN_URL + - name: FOREMAN_SERVER_URL + - name: FOREMAN_SERVER required: True default: http://localhost:3000 ini: - section: callback_foreman key: url client_cert: - description: X509 certificate to authenticate to Foreman if https is used + description: + - X509 certificate to authenticate to Foreman if https is used env: - name: FOREMAN_SSL_CERT default: /etc/foreman/client_cert.pem @@ -40,7 +44,8 @@ key: client_cert aliases: [ ssl_cert ] client_key: - description: the corresponding private key + description: + - the corresponding private key env: - name: FOREMAN_SSL_KEY default: /etc/foreman/client_key.pem diff --git a/plugins/doc_fragments/foreman.py b/plugins/doc_fragments/foreman.py index 941440c7..19baf2e4 100644 --- a/plugins/doc_fragments/foreman.py +++ b/plugins/doc_fragments/foreman.py @@ -26,19 +26,27 @@ class ModuleDocFragment(object): - apypie options: server_url: - description: URL of the Foreman server + description: + - URL of the Foreman server. + - If the value is not specified in the task, the value of environment variable C(FOREMAN_SERVER_URL) will be used instead. required: true type: str username: - description: Username accessing the Foreman server + description: + - Username accessing the Foreman server. + - If the value is not specified in the task, the value of environment variable C(FOREMAN_USERNAME) will be used instead. required: true type: str password: - description: Password of the user accessing the Foreman server + description: + - Password of the user accessing the Foreman server. + - If the value is not specified in the task, the value of environment variable C(FOREMAN_PASSWORD) will be used instead. required: true type: str validate_certs: - description: Whether or not to verify the TLS certificates of the Foreman server + description: + - Whether or not to verify the TLS certificates of the Foreman server. + - If the value is not specified in the task, the value of environment variable C(FOREMAN_VALIDATE_CERTS) will be used instead. default: true type: bool ''' @@ -184,10 +192,6 @@ class ModuleDocFragment(object): - Mutually exclusive with I(kickstart_repository). required: False type: str - operatingsystem: - description: Operatingsystem title - required: False - type: str pxe_loader: description: PXE Bootloader required: false @@ -291,3 +295,25 @@ class ModuleDocFragment(object): required: false type: str ''' + + OPERATINGSYSTEMS = ''' +options: + operatingsystems: + description: + - List of operating systems the entity should be assigned to. + - Operating systems are looked up by their title which is composed as " .". + - You can omit the version part as long as you only have one operating system by that name. + required: false + type: list + elements: str +''' + + OPERATINGSYSTEM = ''' +options: + operatingsystem: + description: + - Operating systems are looked up by their title which is composed as " .". + - You can omit the version part as long as you only have one operating system by that name. + type: str + required: False +''' diff --git a/plugins/inventory/foreman.py b/plugins/inventory/foreman.py index e0f20fda..964b26bb 100644 --- a/plugins/inventory/foreman.py +++ b/plugins/inventory/foreman.py @@ -27,24 +27,33 @@ required: True choices: ['redhat.satellite.foreman'] url: - description: url to foreman + description: + - URL of the Foreman server. default: 'http://localhost:3000' env: - name: FOREMAN_SERVER + - name: FOREMAN_SERVER_URL + - name: FOREMAN_URL user: - description: foreman authentication user + description: + - Username accessing the Foreman server. required: True env: - name: FOREMAN_USER + - name: FOREMAN_USERNAME password: - description: foreman authentication password + description: + - Password of the user accessing the Foreman server. required: True env: - name: FOREMAN_PASSWORD validate_certs: - description: verify SSL certificate if using https + description: + - Whether or not to verify the TLS certificates of the Foreman server. type: boolean default: False + env: + - name: FOREMAN_VALIDATE_CERTS group_prefix: description: prefix to apply to foreman groups default: foreman_ @@ -239,9 +248,16 @@ def _populate(self): # create directly mapped groups group_name = host.get('hostgroup_title', host.get('hostgroup_name')) if group_name: - group_name = to_safe_group_name('%s%s' % (self.get_option('group_prefix'), group_name.lower().replace(" ", ""))) - group_name = self.inventory.add_group(group_name) - self.inventory.add_child(group_name, host_name) + parent_name = None + group_label_parts = [] + for part in group_name.split('/'): + group_label_parts.append(part.lower().replace(" ", "")) + gname = to_safe_group_name('%s%s' % (self.get_option('group_prefix'), '/'.join(group_label_parts))) + result_gname = self.inventory.add_group(gname) + if parent_name: + self.inventory.add_child(parent_name, result_gname) + parent_name = result_gname + self.inventory.add_child(result_gname, host_name) if self.get_option('legacy_hostvars'): hostvars = self._get_hostvars(host) diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index c972f205..a9cc1747 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -21,7 +21,7 @@ from collections import defaultdict from functools import wraps -from ansible.module_utils.basic import AnsibleModule, missing_required_lib +from ansible.module_utils.basic import AnsibleModule, missing_required_lib, env_fallback from ansible.module_utils._text import to_bytes, to_native from ansible.module_utils import six @@ -42,7 +42,7 @@ PYYAML_IMP_ERR = traceback.format_exc() parameter_foreman_spec = dict( - id=dict(type='invisible'), + id=dict(invisible=True), name=dict(required=True), value=dict(type='raw', required=True), parameter_type=dict(default='string', choices=['string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json']), @@ -302,10 +302,10 @@ def __init__(self, **kwargs): self.foreman_spec, gen_args = _foreman_spec_helper(kwargs.pop('foreman_spec', {})) argument_spec = dict( - server_url=dict(required=True), - username=dict(required=True), - password=dict(required=True, no_log=True), - validate_certs=dict(type='bool', default=True), + server_url=dict(required=True, fallback=(env_fallback, ['FOREMAN_SERVER_URL', 'FOREMAN_SERVER', 'FOREMAN_URL'])), + username=dict(required=True, fallback=(env_fallback, ['FOREMAN_USERNAME', 'FOREMAN_USER'])), + password=dict(required=True, no_log=True, fallback=(env_fallback, ['FOREMAN_PASSWORD'])), + validate_certs=dict(type='bool', default=True, fallback=(env_fallback, ['FOREMAN_VALIDATE_CERTS'])), ) argument_spec.update(gen_args) argument_spec.update(kwargs.pop('argument_spec', {})) @@ -425,7 +425,7 @@ def connect(self): verify_ssl=self._foremanapi_validate_certs, ) - self.ping() + self.status() self._patch_templates_resource_name() self._patch_location_api() @@ -434,7 +434,7 @@ def connect(self): self.check_required_plugins() @_exception2fail_json(msg="Failed to connect to Foreman server: {0}") - def ping(self): + def status(self): return self.foremanapi.resource('home').call('status') def _resource(self, resource): @@ -494,11 +494,8 @@ def find_resource(self, resource, search, params=None, failsafe=False, thin=None else: error_msg = "no" self.fail_json(msg="Found {0} results while searching for {1} with {2}".format(error_msg, resource, search)) - if result: - if thin: - result = {'id': result['id']} - else: - result = self.show_resource(resource, result['id'], params=params) + if result and not thin: + result = self.show_resource(resource, result['id'], params=params) return result def find_resource_by(self, resource, search_field, value, **kwargs): @@ -1124,6 +1121,7 @@ def _foreman_spec_helper(spec): 'failsafe', 'flat_name', 'foreman_spec', + 'invisible', 'resolve', 'resource_type', 'scope', @@ -1162,6 +1160,7 @@ def _foreman_spec_helper(spec): argument_value = {k: v for (k, v) in value.items() if k not in _FILTER_SPEC_KEYS} foreman_type = value.get('type') + ansible_invisible = value.get('invisible', False) flat_name = value.get('flat_name') if foreman_type == 'entity': @@ -1194,7 +1193,7 @@ def _foreman_spec_helper(spec): foreman_spec[key] = foreman_value - if foreman_type != 'invisible': + if not ansible_invisible: argument_spec[key] = argument_value return foreman_spec, argument_spec diff --git a/plugins/modules/architecture.py b/plugins/modules/architecture.py index ffa22bfd..53020747 100644 --- a/plugins/modules/architecture.py +++ b/plugins/modules/architecture.py @@ -36,14 +36,10 @@ updated_name: description: New architecture name. When this parameter is set, the module will not be idempotent. type: str - operatingsystems: - description: List of operating systems the architecture should be assigned to - required: false - type: list - elements: str extends_documentation_fragment: - redhat.satellite.foreman - redhat.satellite.foreman.entity_state + - redhat.satellite.foreman.operatingsystems ''' EXAMPLES = ''' @@ -55,7 +51,7 @@ - "TestOS2" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present - name: "Update an Architecture" @@ -66,7 +62,7 @@ - "TestOS4" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present - name: "Delete an Architecture" @@ -74,7 +70,7 @@ name: "i386" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: absent ''' diff --git a/plugins/modules/auth_source_ldap.py b/plugins/modules/auth_source_ldap.py index f43eb528..c263744f 100644 --- a/plugins/modules/auth_source_ldap.py +++ b/plugins/modules/auth_source_ldap.py @@ -131,7 +131,7 @@ organizations: - "Sweden" username: "admin" - password: "secret" + password: "changeme" state: present - name: LDAP Authentication with automatic registration @@ -151,7 +151,7 @@ attr_photo: jpegPhoto server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present ''' diff --git a/plugins/modules/compute_profile.py b/plugins/modules/compute_profile.py index c0379579..138ab276 100644 --- a/plugins/modules/compute_profile.py +++ b/plugins/modules/compute_profile.py @@ -65,8 +65,8 @@ redhat.satellite.compute_profile: name: example_compute_profile server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: another compute profile @@ -79,8 +79,8 @@ template: 'c88af4b7-a24a-453b-9ac2-bc647ca2ef99' instance_type: 'cb8927e7-a404-40fb-a6c1-06cbfc92e077' server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: compute profile2 @@ -123,16 +123,16 @@ allocation: 16G format_type: raw server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: Remove compute profile redhat.satellite.compute_profile: name: example_compute_profile2 server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: absent ''' diff --git a/plugins/modules/compute_resource.py b/plugins/modules/compute_resource.py index 43c13b89..daaeecf4 100644 --- a/plugins/modules/compute_resource.py +++ b/plugins/modules/compute_resource.py @@ -139,8 +139,8 @@ url: libvirt.example.com display_type: vnc server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: Update libvirt compute resource @@ -156,16 +156,16 @@ url: libvirt.example.com display_type: vnc server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: Delete libvirt compute resource redhat.satellite.compute_resource: name: example_compute_resource server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: absent - name: Create vmware compute resource @@ -183,8 +183,8 @@ password: secret datacenter: ax01 server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: Create ovirt compute resource @@ -203,8 +203,8 @@ ovirt_quota: 24868ab9-c2a1-47c3-87e7-706f17d215ac use_v4: true server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: Create proxmox compute resource @@ -221,8 +221,8 @@ password: secretpassword ssl_verify_peer: true server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: create EC2 compute resource @@ -239,8 +239,8 @@ password: AWS_SECRET_KEY region: eu-west-1 server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: create Azure compute resource @@ -259,8 +259,8 @@ password: CLIENT_SECRET region: westeurope server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present - name: create GCE compute resource @@ -278,8 +278,8 @@ key_path: "/usr/share/foreman/gce_orcharhino_key.json" zone: europe-west3-b server_url: "https://satellite.example.com" - username: admin - password: secret + username: "admin" + password: "changeme" state: present ''' @@ -339,22 +339,22 @@ def main(): updated_name=dict(), description=dict(), provider=dict(choices=['vmware', 'libvirt', 'ovirt', 'proxmox', 'EC2', 'AzureRm', 'GCE']), - display_type=dict(type='invisible'), - datacenter=dict(type='invisible'), - url=dict(type='invisible'), - caching_enabled=dict(type='invisible'), - user=dict(type='invisible'), - password=dict(type='invisible'), - region=dict(type='invisible'), - tenant=dict(type='invisible'), - app_ident=dict(type='invisible'), - use_v4=dict(type='invisible'), - ovirt_quota=dict(type='invisible'), - project=dict(type='invisible'), - email=dict(type='invisible'), - key_path=dict(type='invisible'), - zone=dict(type='invisible'), - ssl_verify_peer=dict(type='invisible'), + display_type=dict(invisible=True), + datacenter=dict(invisible=True), + url=dict(invisible=True), + caching_enabled=dict(invisible=True), + user=dict(invisible=True), + password=dict(invisible=True), + region=dict(invisible=True), + tenant=dict(invisible=True), + app_ident=dict(invisible=True), + use_v4=dict(invisible=True), + ovirt_quota=dict(invisible=True), + project=dict(invisible=True), + email=dict(invisible=True), + key_path=dict(invisible=True), + zone=dict(invisible=True), + ssl_verify_peer=dict(invisible=True), ), argument_spec=dict( provider_params=dict(type='dict', options=dict( diff --git a/plugins/modules/config_group.py b/plugins/modules/config_group.py index cd8a6baf..df339e14 100644 --- a/plugins/modules/config_group.py +++ b/plugins/modules/config_group.py @@ -55,7 +55,7 @@ - mymodule::myclass server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present ''' diff --git a/plugins/modules/content_view.py b/plugins/modules/content_view.py index 176c639f..93271b27 100644 --- a/plugins/modules/content_view.py +++ b/plugins/modules/content_view.py @@ -143,7 +143,7 @@ cvc_foreman_spec = { - 'id': {'type': 'invisible'}, + 'id': {'invisible': True}, 'content_view': {'type': 'entity', 'required': True}, 'latest': {'type': 'bool', 'default': False}, 'content_view_version': {'type': 'entity', 'aliases': ['version']}, @@ -172,6 +172,7 @@ def main(): state=dict(default='present', choices=['present_with_defaults', 'present', 'absent']), ), mutually_exclusive=[['repositories', 'components']], + entity_opts=dict(thin=False), ) # components is None when we're managing a CCV but don't want to adjust its components @@ -196,6 +197,10 @@ def main(): repositories.append(module.find_resource_by_name('repositories', repository['name'], params={'product_id': product['id']}, thin=True)) module.foreman_params['repositories'] = repositories + if entity and module.desired_absent: + for lce in entity.get('environments', []): + module.resource_action('content_views', 'remove_from_environment', {'id': entity['id'], 'environment_id': lce['id']}) + content_view_entity = module.run() # only update CVC's of newly created or updated CV's that are composite if components are specified diff --git a/plugins/modules/domain.py b/plugins/modules/domain.py index dea545bb..75506ef0 100644 --- a/plugins/modules/domain.py +++ b/plugins/modules/domain.py @@ -69,7 +69,7 @@ - "ACME" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present ''' diff --git a/plugins/modules/external_usergroup.py b/plugins/modules/external_usergroup.py index 3804bdab..343bd831 100644 --- a/plugins/modules/external_usergroup.py +++ b/plugins/modules/external_usergroup.py @@ -39,11 +39,13 @@ - Name of the linked usergroup required: true type: str - auth_source_ldap: + auth_source: description: - Name of the authentication source to be used for this group required: true type: str + aliases: + - auth_source_ldap extends_documentation_fragment: - redhat.satellite.foreman - redhat.satellite.foreman.entity_state @@ -53,7 +55,13 @@ - name: Create an external user group redhat.satellite.external_usergroup: name: test - auth_source_ldap: "My LDAP server" + auth_source: "My LDAP server" + usergroup: "Internal Usergroup" + state: present +- name: Link a group from FreeIPA + redhat.satellite.external_usergroup: + name: ipa_users + auth_source: "External" usergroup: "Internal Usergroup" state: present ''' @@ -82,7 +90,9 @@ def main(): foreman_spec=dict( name=dict(required=True), usergroup=dict(required=True), - auth_source_ldap=dict(required=True, type='entity', flat_name='auth_source_id', resource_type='auth_sources'), + auth_source=dict(required=True, aliases=['auth_source_ldap'], type='entity', flat_name='auth_source_id', resource_type='auth_sources'), + auth_source_ldap=dict(type='entity', invisible=True, flat_name='auth_source_id'), + auth_source_external=dict(type='entity', invisible=True, flat_name='auth_source_id'), ), ) @@ -97,8 +107,16 @@ def main(): entity = external_usergroup module.set_entity('entity', entity) - module.auto_lookup_entities() - module.ensure_entity('external_usergroups', module.foreman_params, entity, params) + + auth_source = module.lookup_entity('auth_source') + if auth_source.get('type') == 'AuthSourceExternal': + module.set_entity('auth_source_external', auth_source) + elif auth_source.get('type') == 'AuthSourceLdap': + module.set_entity('auth_source_ldap', auth_source) + else: + module.fail_json(msg="Unsupported authentication source type: {0}".format(auth_source.get('type'))) + + module.run(params=params) if __name__ == '__main__': diff --git a/plugins/modules/host.py b/plugins/modules/host.py index f43b629f..679a83e5 100644 --- a/plugins/modules/host.py +++ b/plugins/modules/host.py @@ -107,6 +107,7 @@ image: description: - The image to use when I(provision_method=image). + - The I(compute_resource) parameter is required to find the correct image. type: str required: false compute_attributes: @@ -120,6 +121,7 @@ - redhat.satellite.foreman.entity_state - redhat.satellite.foreman.host_options - redhat.satellite.foreman.nested_parameters + - redhat.satellite.foreman.operatingsystem ''' EXAMPLES = ''' @@ -158,8 +160,8 @@ server_url: "https://satellite.example.com" name: "new_host" compute_attributes: - cpus: 2 - memory_mb: 4096 + cpus: 2 + memory_mb: 4096 state: present - name: "Create a VM and start it after creation" @@ -169,7 +171,7 @@ server_url: "https://satellite.example.com" name: "new_host" compute_attributes: - start: "1" + start: "1" state: present - name: "Delete a host" @@ -219,14 +221,17 @@ def main(): comment=dict(), owner=dict(type='entity', resource_type='users', flat_name='owner_id'), owner_group=dict(type='entity', resource_type='usergroups', flat_name='owner_id'), - owner_type=dict(type='invisible'), + owner_type=dict(invisible=True), provision_method=dict(choices=['build', 'image', 'bootdisk']), - image=dict(type='entity'), + image=dict(type='entity', scope=['compute_resource']), compute_attributes=dict(type='dict'), ), mutually_exclusive=[ ['owner', 'owner_group'] ], + required_by=dict( + image=('compute_resource',), + ), ) # additional param validation diff --git a/plugins/modules/hostgroup.py b/plugins/modules/hostgroup.py index dd3aa7ab..b70fa364 100644 --- a/plugins/modules/hostgroup.py +++ b/plugins/modules/hostgroup.py @@ -61,6 +61,7 @@ - redhat.satellite.foreman.taxonomy - redhat.satellite.foreman.nested_parameters - redhat.satellite.foreman.host_options + - redhat.satellite.foreman.operatingsystem ''' EXAMPLES = ''' @@ -73,7 +74,7 @@ ptable: "Partition_table_name" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present - name: "Update a Hostgroup" @@ -93,7 +94,7 @@ root_pass: "password" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present - name: "My nested hostgroup" @@ -125,7 +126,7 @@ name: "new_hostgroup" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: absent ''' diff --git a/plugins/modules/http_proxy.py b/plugins/modules/http_proxy.py index a3cdff55..f2593372 100644 --- a/plugins/modules/http_proxy.py +++ b/plugins/modules/http_proxy.py @@ -68,7 +68,7 @@ - "ACME" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present ''' diff --git a/plugins/modules/image.py b/plugins/modules/image.py index e1efcf32..098fa850 100644 --- a/plugins/modules/image.py +++ b/plugins/modules/image.py @@ -52,9 +52,7 @@ required: false type: str operatingsystem: - description: Operating system that will be deployed using the image required: true - type: str architecture: description: architecture of the image required: true @@ -66,6 +64,7 @@ extends_documentation_fragment: - redhat.satellite.foreman - redhat.satellite.foreman.entity_state + - redhat.satellite.foreman.operatingsystem ''' EXAMPLES = ''' @@ -106,9 +105,9 @@ def main(): ), foreman_spec=dict( name=dict(required=True), - username=dict(type='invisible'), + username=dict(invisible=True), uuid=dict(required=True, aliases=['image_uuid']), - password=dict(type='invisible', no_log=True), + password=dict(invisible=True, no_log=True), compute_resource=dict(type='entity', required=True), architecture=dict(type='entity', required=True), operatingsystem=dict(type='entity', required=True), diff --git a/plugins/modules/installation_medium.py b/plugins/modules/installation_medium.py index ade47b37..266963e3 100644 --- a/plugins/modules/installation_medium.py +++ b/plugins/modules/installation_medium.py @@ -38,11 +38,6 @@ updated_name: description: New full installation medium name. When this parameter is set, the module will not be idempotent. type: str - operatingsystems: - description: List of operating systems the installation medium should be assigned to - required: false - type: list - elements: str os_family: description: - The OS family the template shall be assigned with. @@ -55,6 +50,7 @@ - redhat.satellite.foreman.entity_state_with_defaults - redhat.satellite.foreman.taxonomy - redhat.satellite.foreman.os_family + - redhat.satellite.foreman.operatingsystems ''' EXAMPLES = ''' @@ -70,7 +66,7 @@ path: "http://debian.org/mirror/" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present ''' diff --git a/plugins/modules/job_template.py b/plugins/modules/job_template.py index fc196d0c..daa152cd 100644 --- a/plugins/modules/job_template.py +++ b/plugins/modules/job_template.py @@ -238,8 +238,8 @@ - name: Ensure latest version of all your Job Templates redhat.satellite.job_template: server_url: "https://satellite.example.com" - username: "admin" - password: "changeme" + username: "admin" + password: "changeme" state: present template: '{{ lookup("file", item.src) }}' with_filetree: '/path/to/job/templates' @@ -250,7 +250,7 @@ - name: "Delete *ALL* Job Templates" redhat.satellite.job_template: username: "admin" - password: "admin" + password: "changeme" server_url: "https://satellite.example.com" name: "*" state: absent @@ -258,7 +258,7 @@ - name: "Assign all Job Templates to the same organization(s)" redhat.satellite.job_template: username: "admin" - password: "admin" + password: "changeme" server_url: "https://satellite.example.com" name: "*" state: present diff --git a/plugins/modules/os_default_template.py b/plugins/modules/os_default_template.py index ba0dee84..183a5c48 100644 --- a/plugins/modules/os_default_template.py +++ b/plugins/modules/os_default_template.py @@ -30,10 +30,7 @@ - "Matthias M Dellweg (@mdellweg) ATIX AG" options: operatingsystem: - description: - - Title of the Operating System (name, or name and major version, that uniquely identifies the OS) required: true - type: str template_kind: description: - name of the template kind @@ -47,6 +44,7 @@ extends_documentation_fragment: - redhat.satellite.foreman - redhat.satellite.foreman.entity_state_with_defaults + - redhat.satellite.foreman.operatingsystem ''' EXAMPLES = ''' diff --git a/plugins/modules/partition_table.py b/plugins/modules/partition_table.py index 362d31d0..38b84af8 100644 --- a/plugins/modules/partition_table.py +++ b/plugins/modules/partition_table.py @@ -147,8 +147,8 @@ - name: Ensure latest version of all Ptable Community Templates redhat.satellite.partition_table: server_url: "https://satellite.example.com" - username: "admin" - password: "changeme" + username: "admin" + password: "changeme" state: present layout: '{{ lookup("file", item.src) }}' with_filetree: '/path/to/partition/tables' @@ -159,7 +159,7 @@ - name: "Delete *ALL* partition tables" redhat.satellite.partition_table: username: "admin" - password: "admin" + password: "changeme" server_url: "https://satellite.example.com" name: "*" state: absent @@ -167,7 +167,7 @@ - name: "Assign all partition tables to the same organization(s)" redhat.satellite.partition_table: username: "admin" - password: "admin" + password: "changeme" server_url: "https://satellite.example.com" name: "*" state: present diff --git a/plugins/modules/product.py b/plugins/modules/product.py index ddbdba41..907c7973 100644 --- a/plugins/modules/product.py +++ b/plugins/modules/product.py @@ -67,7 +67,7 @@ type: str description: description: - - Possibly long descriptionto show the user in detail view + - Possibly long description to show the user in detail view required: false type: str extends_documentation_fragment: diff --git a/plugins/modules/provisioning_template.py b/plugins/modules/provisioning_template.py index 56d55637..04dd38df 100644 --- a/plugins/modules/provisioning_template.py +++ b/plugins/modules/provisioning_template.py @@ -85,15 +85,11 @@ updated_name: description: New provisioning template name. When this parameter is set, the module will not be idempotent. type: str - operatingsystems: - description: The Operatingsystems the template shall be assigned to - required: false - type: list - elements: str extends_documentation_fragment: - redhat.satellite.foreman - redhat.satellite.foreman.entity_state_with_defaults - redhat.satellite.foreman.taxonomy + - redhat.satellite.foreman.operatingsystems ''' EXAMPLES = ''' @@ -178,8 +174,8 @@ - name: Ensure latest version of all Provisioning Community Templates redhat.satellite.provisioning_template: server_url: "https://satellite.example.com" - username: "admin" - password: "changeme" + username: "admin" + password: "changeme" state: present template: '{{ lookup("file", item.src) }}' with_filetree: '/path/to/provisioning/templates' @@ -190,7 +186,7 @@ - name: "Delete *ALL* provisioning templates" redhat.satellite.provisioning_template: username: "admin" - password: "admin" + password: "changeme" server_url: "https://satellite.example.com" name: "*" state: absent @@ -198,7 +194,7 @@ - name: "Assign all provisioning templates to the same organization(s)" redhat.satellite.provisioning_template: username: "admin" - password: "admin" + password: "changeme" server_url: "https://satellite.example.com" name: "*" state: present @@ -279,7 +275,7 @@ def main(): locked=dict(type='bool'), name=dict(), operatingsystems=dict(type='entity_list'), - snippet=dict(type='invisible'), + snippet=dict(invisible=True), ), mutually_exclusive=[ ['file_name', 'template'], diff --git a/plugins/modules/puppet_environment.py b/plugins/modules/puppet_environment.py index a18df8d2..0ff1aa8c 100644 --- a/plugins/modules/puppet_environment.py +++ b/plugins/modules/puppet_environment.py @@ -51,7 +51,7 @@ - "ACME" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present ''' diff --git a/plugins/modules/role.py b/plugins/modules/role.py index 83b0f92f..9ead043c 100644 --- a/plugins/modules/role.py +++ b/plugins/modules/role.py @@ -73,7 +73,7 @@ search: "owner_type = Usergroup and owner_id = 4" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present ''' diff --git a/plugins/modules/scap_content.py b/plugins/modules/scap_content.py index 3e57c329..54e6fec4 100644 --- a/plugins/modules/scap_content.py +++ b/plugins/modules/scap_content.py @@ -58,7 +58,7 @@ - "Default Location" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present - name: Update SCAP content @@ -75,7 +75,7 @@ - "Loc Two" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present - name: Delete SCAP content @@ -83,7 +83,7 @@ title: "Red Hat firefox default content" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: absent ''' diff --git a/plugins/modules/scap_tailoring_file.py b/plugins/modules/scap_tailoring_file.py index a1dd86c1..d6470cc3 100644 --- a/plugins/modules/scap_tailoring_file.py +++ b/plugins/modules/scap_tailoring_file.py @@ -58,7 +58,7 @@ - "Default Location" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present - name: Update SCAP tailoring file @@ -75,7 +75,7 @@ - "Loc Two" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present - name: Delete SCAP tailoring file @@ -83,7 +83,7 @@ name: "Red Hat firefox default content" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: absent ''' diff --git a/plugins/modules/smart_class_parameter.py b/plugins/modules/smart_class_parameter.py index 5acd9ded..b135759c 100644 --- a/plugins/modules/smart_class_parameter.py +++ b/plugins/modules/smart_class_parameter.py @@ -130,7 +130,7 @@ default_value: /etc/prometheus/alert.yml server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present - name: "Update prometheus::server alertmanagers_config param default value" @@ -146,7 +146,7 @@ default_value: /etc/prometheus/alert.yml server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" override_values: - match: domain=example.com value: foo diff --git a/plugins/modules/status_info.py b/plugins/modules/status_info.py new file mode 100644 index 00000000..3837c09d --- /dev/null +++ b/plugins/modules/status_info.py @@ -0,0 +1,76 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# (c) 2020 Evgeni Golov +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +from __future__ import absolute_import, division, print_function +__metaclass__ = type + + +DOCUMENTATION = ''' +--- +module: status_info +version_added: 1.3.0 +short_description: Get status info +description: + - Get status information from the server +author: + - "Evgeni Golov (@evgeni)" +extends_documentation_fragment: + - redhat.satellite.foreman +''' + +EXAMPLES = ''' +- name: status + redhat.satellite.status: + server_url: "https://satellite.example.com" + username: "admin" + password: "changeme" +''' + +RETURN = ''' +status: + description: Basic status of the server. + returned: always + type: dict +ping: + description: Detailed service status. + returned: if supported by server + type: dict +''' + +from ansible_collections.redhat.satellite.plugins.module_utils.foreman_helper import ForemanAnsibleModule + + +def main(): + module = ForemanAnsibleModule() + + with module.api_connection(): + status = module.status() + + if 'ping' in module.foremanapi.resources: + if 'ping' in module.foremanapi.resource('ping').actions: + ping_action = 'ping' + else: + ping_action = 'index' + ping = module.foremanapi.resource('ping').call(ping_action) + else: + ping = None + + module.exit_json(status=status, ping=ping) + + +if __name__ == '__main__': + main() diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index 5c724108..f4e74e75 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -96,6 +96,7 @@ - "Internal DB" - "Random DB" - "EUI-64" + - "External IPAM" - "None" type: str dhcp_proxy: @@ -131,6 +132,10 @@ required: false type: list elements: str + externalipam_proxy: + description: External IPAM proxy for this subnet + required: false + type: str vlanid: description: VLAN ID required: false @@ -175,7 +180,7 @@ - "Toulouse" server_url: "https://satellite.example.com" username: "admin" - password: "secret" + password: "changeme" state: present ''' @@ -226,7 +231,7 @@ def main(): from_ip=dict(flat_name='from'), to_ip=dict(flat_name='to'), boot_mode=dict(choices=['DHCP', 'Static'], default='DHCP'), - ipam=dict(choices=['DHCP', 'Internal DB', 'Random DB', 'EUI-64', 'None'], default='DHCP'), + ipam=dict(choices=['DHCP', 'Internal DB', 'Random DB', 'EUI-64', 'External IPAM', 'None'], default='DHCP'), dhcp_proxy=dict(type='entity', flat_name='dhcp_id', resource_type='smart_proxies'), httpboot_proxy=dict(type='entity', flat_name='httpboot_id', resource_type='smart_proxies'), tftp_proxy=dict(type='entity', flat_name='tftp_id', resource_type='smart_proxies'), @@ -234,6 +239,7 @@ def main(): dns_proxy=dict(type='entity', flat_name='dns_id', resource_type='smart_proxies'), template_proxy=dict(type='entity', flat_name='template_id', resource_type='smart_proxies'), remote_execution_proxies=dict(type='entity_list', resource_type='smart_proxies'), + externalipam_proxy=dict(type='entity', flat_name='externalipam_id', resource_type='smart_proxies'), vlanid=dict(type='int'), mtu=dict(type='int'), ), diff --git a/tests/conftest.py b/tests/conftest.py index 6b5de8e2..545f118e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -52,6 +52,7 @@ 'scap_tailoring_file', 'setting', 'smart_class_parameter', + 'status_info', 'subnet', 'sync_plan', 'templates_import', diff --git a/tests/fixtures/apidoc/katello.json b/tests/fixtures/apidoc/katello.json index ee7aaf33..6f6f1f31 100644 --- a/tests/fixtures/apidoc/katello.json +++ b/tests/fixtures/apidoc/katello.json @@ -1 +1 @@ -{"docs":{"name":"Foreman","info":"\n\u003cp\u003eForeman API v2 is currently the default API version.\u003c/p\u003e\n","copyright":"","doc_url":"../apidoc/v2","api_url":"/api","resources":{"host_subscriptions":{"doc_url":"../apidoc/v2/host_subscriptions","id":"host_subscriptions","api_url":"/api","name":"Host subscriptions","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_subscriptions/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/subscriptions","http_method":"GET","short_description":"List a host's subscriptions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/auto_attach","name":"auto_attach","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/auto_attach","http_method":"PUT","short_description":"Trigger an auto-attach of subscriptions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/events","name":"events","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/events","http_method":"GET","short_description":"List subscription events for the host","deprecated":true}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:host_id/subscriptions","http_method":"DELETE","short_description":"Unregister the host as a subscription consumer","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/create","name":"create","apis":[{"api_url":"/api/hosts/subscriptions","http_method":"POST","short_description":"Register a host with subscription and information","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"name","full_name":"name","description":"\n\u003cp\u003eName of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003eUUID to use for registered host, random uuid is generated if not provided\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"facts","full_name":"facts","description":"\n\u003cp\u003eKey-value hash of subscription-manager facts, nesting uses a period\ndelimiter (.)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"hypervisor_guest_uuids","full_name":"hypervisor_guest_uuids","description":"\n\u003cp\u003eUUIDs of the virtual guests from the host\u0026#39;s hypervisor\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"installed_products","full_name":"installed_products","description":"\n\u003cp\u003eList of products installed on the host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"product_id","full_name":"installed_products[product_id]","description":"\n\u003cp\u003eProduct id as listed from a host\u0026#39;s installed products, this is\nnot the same product id as the products api returns\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_name","full_name":"installed_products[product_name]","description":"\n\u003cp\u003eProduct name as listed from a host\u0026#39;s installed products\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"arch","full_name":"installed_products[arch]","description":"\n\u003cp\u003eProduct architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"installed_products[version]","description":"\n\u003cp\u003eProduct version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"release_version","full_name":"release_version","description":"\n\u003cp\u003eRelease version of the content host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"service_level","description":"\n\u003cp\u003eA service level for auto-healing process, e.g. SELF-SUPPORT\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"lifecycle_environment_id","description":"\n\u003cp\u003eLifecycle Environment ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003eContent View ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/remove_subscriptions","name":"remove_subscriptions","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/remove_subscriptions","http_method":"PUT","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to remove\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eIf specified, remove the first instance of a subscription with matching id\nand quantity\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/add_subscriptions","name":"add_subscriptions","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/add_subscriptions","http_method":"PUT","short_description":"Add a subscription to a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eQuantity of this subscriptions to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/content_override","name":"content_override","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/content_override","http_method":"PUT","short_description":"Set content overrides for the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the content host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_label","full_name":"content_label","description":"\n\u003cp\u003eLabel of the content\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"value","description":"\n\u003cp\u003eOverride to a boolean value or \u0026#39;default\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_overrides","full_name":"content_overrides","description":"\n\u003cp\u003eArray of Content override parameters\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_label","full_name":"content_overrides[content_label]","description":"\n\u003cp\u003eLabel of the content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"content_overrides[value]","description":"\n\u003cp\u003eOverride value. Provide a boolean value if name is \u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"content_overrides[name]","description":"\n\u003cp\u003eOverride key or name. Note if name is not provided the default name will be\n\u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"remove","full_name":"content_overrides[remove]","description":"\n\u003cp\u003eSet true to remove an override and reset it to \u0026#39;default\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/product_content","name":"product_content","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/product_content","http_method":"GET","short_description":"Get content and overrides for the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_access_mode_all","full_name":"content_access_mode_all","description":"\n\u003cp\u003eGet all content available, not just that provided by subscriptions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"content_access_mode_env","full_name":"content_access_mode_env","description":"\n\u003cp\u003eLimit content to just that available in the host\u0026#39;s content view version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/available_release_versions","name":"available_release_versions","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/available_release_versions","http_method":"GET","short_description":"Show releases available for the content host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eid of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"hosts":{"doc_url":"../apidoc/v2/hosts","id":"hosts","api_url":"/api","name":"Hosts","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/hosts/index","name":"index","apis":[{"api_url":"/api/hosts","http_method":"GET","short_description":"List all hosts","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/hosts","http_method":"GET","short_description":"List all hosts for a host group","deprecated":null},{"api_url":"/api/locations/:location_id/hosts","http_method":"GET","short_description":"List hosts per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/hosts","http_method":"GET","short_description":"List hosts per organization","deprecated":null},{"api_url":"/api/environments/:environment_id/hosts","http_method":"GET","short_description":"List hosts per environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"thin","full_name":"thin","description":"\n\u003cp\u003eOnly list ID and name of hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"include","full_name":"include","description":"\n\u003cp\u003eArray of extra information types to include\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eparameters\u003c/code\u003e, \u003ccode\u003eall_parameters\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"activation_key","type":"string"},{"name":"activation_key_id","type":"string"},{"name":"addon","type":"string"},{"name":"addons_status","values":["mismatched","matched","not_specified"]},{"name":"applicable_errata","type":"string"},{"name":"applicable_errata_issued","type":"date"},{"name":"applicable_rpms","type":"string"},{"name":"architecture","type":"string"},{"name":"autoheal","type":"boolean"},{"name":"available_module_stream_name","type":"string"},{"name":"available_module_stream_stream","type":"string"},{"name":"boot_time","type":""},{"name":"build","values":["true","false"]},{"name":"class","type":"string"},{"name":"comment","type":"text"},{"name":"compute_resource","type":"string"},{"name":"compute_resource_id","type":"integer"},{"name":"config_group","type":"string"},{"name":"content_source","type":"string"},{"name":"content_view","type":"string"},{"name":"content_view_id","type":"integer"},{"name":"created_at","type":"datetime"},{"name":"domain","type":"string"},{"name":"domain_id","type":"integer"},{"name":"environment","type":"string"},{"name":"errata_status","values":["security_needed","errata_needed","updated","unknown"]},{"name":"facts","type":"string"},{"name":"global_status","values":["ok","warning","error"]},{"name":"has_ip","type":"string"},{"name":"has_mac","type":"string"},{"name":"host_collection","type":"string"},{"name":"host_collection_id","type":"integer"},{"name":"hostgroup","type":"string"},{"name":"hostgroup_fullname","type":"string"},{"name":"hostgroup_id","type":"integer"},{"name":"hostgroup_name","type":"string"},{"name":"hostgroup_title","type":"string"},{"name":"hypervisor","values":["true","false"]},{"name":"hypervisor_host","type":"string"},{"name":"image","type":"string"},{"name":"installable_errata","type":"string"},{"name":"installed_at","type":"datetime"},{"name":"installed_package","type":"string"},{"name":"installed_package_name","type":"string"},{"name":"ip","type":"string"},{"name":"last_checkin","type":"datetime"},{"name":"last_report","type":"datetime"},{"name":"lifecycle_environment","type":"string"},{"name":"lifecycle_environment_id","type":"integer"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"mac","type":"string"},{"name":"managed","values":["true","false"]},{"name":"model","type":"string"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"origin","type":"string"},{"name":"os","type":"string"},{"name":"os_description","type":"string"},{"name":"os_id","type":"integer"},{"name":"os_major","type":"string"},{"name":"os_minor","type":"string"},{"name":"os_title","type":"string"},{"name":"owner","type":"string"},{"name":"owner_id","type":"integer"},{"name":"owner_type","type":"string"},{"name":"params","type":"string"},{"name":"params_name","type":"string"},{"name":"parent_hostgroup","type":"string"},{"name":"puppet_ca","type":"string"},{"name":"puppet_proxy_id","type":"integer"},{"name":"puppetmaster","type":"string"},{"name":"purpose_status","values":["mismatched","matched","not_specified"]},{"name":"realm","type":"string"},{"name":"realm_id","type":"integer"},{"name":"registered_at","type":"datetime"},{"name":"registered_through","type":"string"},{"name":"release_version","type":"string"},{"name":"role","type":"text"},{"name":"role_status","values":["mismatched","matched","not_specified"]},{"name":"service_level","type":"string"},{"name":"sla_status","values":["mismatched","matched","not_specified"]},{"name":"smart_proxy","type":"string"},{"name":"status.applied","type":"integer"},{"name":"status.enabled","values":["true","false"]},{"name":"status.failed","type":"integer"},{"name":"status.failed_restarts","type":"integer"},{"name":"status.interesting","values":["true","false"]},{"name":"status.pending","type":"integer"},{"name":"status.restarted","type":"integer"},{"name":"status.skipped","type":"integer"},{"name":"subnet","type":"string"},{"name":"subnet.name","type":"text"},{"name":"subnet6","type":"string"},{"name":"subnet6.name","type":"text"},{"name":"subscription_id","type":"string"},{"name":"subscription_name","type":"string"},{"name":"subscription_status","values":["valid","partial","invalid","unknown","disabled","unsubscribed_hypervisor"]},{"name":"subscription_uuid","type":"string"},{"name":"trace_app","type":"string"},{"name":"trace_app_type","type":"string"},{"name":"trace_helper","type":"string"},{"name":"trace_status","values":["reboot_needed","process_restart_needed","updated"]},{"name":"upgradable_rpms","type":"string"},{"name":"usage","type":"text"},{"name":"usage_status","values":["mismatched","matched","not_specified"]},{"name":"user.firstname","type":"string"},{"name":"user.lastname","type":"string"},{"name":"user.login","type":"string"},{"name":"user.mail","type":"string"},{"name":"usergroup","type":"string"},{"name":"usergroup.name","type":"string"},{"name":"uuid","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/show","name":"show","apis":[{"api_url":"/api/hosts/:id","http_method":"GET","short_description":"Show a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/create","name":"create","apis":[{"api_url":"/api/hosts","http_method":"POST","short_description":"Create a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"host","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"host[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"host[location_id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"host[organization_id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"host[environment_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"host[ip]","description":"\n\u003cp\u003enot required if using a subnet with DHCP proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mac","full_name":"host[mac]","description":"\n\u003cp\u003erequired for managed host that is bare metal, not required if it\u0026#39;s a\nvirtual machine\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"host[architecture_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"host[domain_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_id","full_name":"host[realm_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_proxy_id","full_name":"host[puppet_proxy_id]","description":"\n\u003cp\u003ePuppet proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_ca_proxy_id","full_name":"host[puppet_ca_proxy_id]","description":"\n\u003cp\u003ePuppet CA proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"host[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_group_ids","full_name":"host[config_group_ids]","description":"\n\u003cp\u003eIDs of associated config groups\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"host[operatingsystem_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"host[medium_id]","description":"\n\u003cp\u003erequired if not imaged based provisioning and host is managed and value is\nnot inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"pxe_loader","full_name":"host[pxe_loader]","description":"\n\u003cp\u003eDHCP filename option (Grub2/PXELinux by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eNone\u003c/code\u003e, \u003ccode\u003ePXELinux BIOS\u003c/code\u003e, \u003ccode\u003ePXELinux UEFI\u003c/code\u003e, \u003ccode\u003eGrub UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 BIOS\u003c/code\u003e, \u003ccode\u003eGrub2 ELF\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI SecureBoot\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTP\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS SecureBoot\u003c/code\u003e, \u003ccode\u003eiPXE Embedded\u003c/code\u003e, \u003ccode\u003eiPXE UEFI HTTP\u003c/code\u003e, \u003ccode\u003eiPXE Chain BIOS\u003c/code\u003e, \u003ccode\u003eiPXE Chain UEFI\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"host[ptable_id]","description":"\n\u003cp\u003erequired if host is managed and custom partition has not been defined\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"host[subnet_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"host[compute_resource_id]","description":"\n\u003cp\u003enil means host is bare metal\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"root_pass","full_name":"host[root_pass]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group or\ndefault password in settings\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"model_id","full_name":"host[model_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"host[hostgroup_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"owner_id","full_name":"host[owner_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"owner_type","full_name":"host[owner_type]","description":"\n\u003cp\u003eHost\u0026#39;s owner type\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eUser\u003c/code\u003e, \u003ccode\u003eUsergroup\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"image_id","full_name":"host[image_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_parameters_attributes","full_name":"host[host_parameters_attributes]","description":"\n\u003cp\u003eHost\u0026#39;s parameters (array or indexed hash)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"host[host_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"host[host_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"host[host_parameters_attributes][parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"host[host_parameters_attributes][hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]},{"name":"build","full_name":"host[build]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"host[enabled]","description":"\n\u003cp\u003eInclude this host within Foreman reporting\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision_method","full_name":"host[provision_method]","description":"\n\u003cp\u003eThe method used to provision the host.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebuild\u003c/code\u003e, \u003ccode\u003eimage\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"host[managed]","description":"\n\u003cp\u003eTrue/False flag whether a host is managed or unmanaged. Note: this value\nalso determines whether several parameters are required or not\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"progress_report_id","full_name":"host[progress_report_id]","description":"\n\u003cp\u003eUUID to track orchestration tasks status, GET\n/api/orchestration/:UUID/tasks\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"comment","full_name":"host[comment]","description":"\n\u003cp\u003eAdditional information about this host\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"capabilities","full_name":"host[capabilities]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"host[compute_profile_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"interfaces_attributes","full_name":"host[interfaces_attributes]","description":"\n\u003cp\u003eHost\u0026#39;s network interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"mac","full_name":"host[interfaces_attributes][mac]","description":"\n\u003cp\u003eMAC address of interface. Required for managed interfaces on bare metal.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"host[interfaces_attributes][ip]","description":"\n\u003cp\u003eIPv4 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip6","full_name":"host[interfaces_attributes][ip6]","description":"\n\u003cp\u003eIPv6 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"host[interfaces_attributes][type]","description":"\n\u003cp\u003eInterface type, e.g. bmc. Default is interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003einterface\u003c/code\u003e, \u003ccode\u003ebmc\u003c/code\u003e, \u003ccode\u003ebond\u003c/code\u003e, \u003ccode\u003ebridge\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"host[interfaces_attributes][name]","description":"\n\u003cp\u003eInterface\u0026#39;s DNS name\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"host[interfaces_attributes][subnet_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv4 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"host[interfaces_attributes][subnet6_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv6 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"host[interfaces_attributes][domain_id]","description":"\n\u003cp\u003eForeman domain ID of interface. Required for primary interfaces on managed\nhosts.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"identifier","full_name":"host[interfaces_attributes][identifier]","description":"\n\u003cp\u003eDevice identifier, e.g. eth0 or eth1.1\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"host[interfaces_attributes][managed]","description":"\n\u003cp\u003eShould this interface be managed via DHCP and DNS smart proxy and should it\nbe configured during provisioning?\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"primary","full_name":"host[interfaces_attributes][primary]","description":"\n\u003cp\u003eShould this interface be used for constructing the FQDN of the host? Each\nmanaged hosts needs to have one primary interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision","full_name":"host[interfaces_attributes][provision]","description":"\n\u003cp\u003eShould this interface be used for TFTP of PXELinux (or SSH for image-based\nhosts)? Each managed hosts needs to have one provision interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"host[interfaces_attributes][username]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"host[interfaces_attributes][password]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"host[interfaces_attributes][provider]","description":"\n\u003cp\u003eInterface provider, e.g. IPMI. Only for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPMI\u003c/code\u003e, \u003ccode\u003eSSH\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"virtual","full_name":"host[interfaces_attributes][virtual]","description":"\n\u003cp\u003eAlias or VLAN device\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tag","full_name":"host[interfaces_attributes][tag]","description":"\n\u003cp\u003eVLAN tag, this attribute has precedence over the subnet VLAN ID. Only for\nvirtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"host[interfaces_attributes][mtu]","description":"\n\u003cp\u003eMTU, this attribute has precedence over the subnet MTU.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"attached_to","full_name":"host[interfaces_attributes][attached_to]","description":"\n\u003cp\u003eIdentifier of the interface to which this interface belongs, e.g. eth1.\nOnly for virtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mode","full_name":"host[interfaces_attributes][mode]","description":"\n\u003cp\u003eBond mode of the interface, e.g. balance-rr. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebalance-rr\u003c/code\u003e, \u003ccode\u003eactive-backup\u003c/code\u003e, \u003ccode\u003ebalance-xor\u003c/code\u003e, \u003ccode\u003ebroadcast\u003c/code\u003e, \u003ccode\u003e802.3ad\u003c/code\u003e, \u003ccode\u003ebalance-tlb\u003c/code\u003e, \u003ccode\u003ebalance-alb\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attached_devices","full_name":"host[interfaces_attributes][attached_devices]","description":"\n\u003cp\u003eIdentifiers of attached interfaces, e.g. `[\u0026#39;eth1\u0026#39;,\n\u0026#39;eth2\u0026#39;]`. For bond interfaces those are the slaves. Only for bond\nand bridges interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"bond_options","full_name":"host[interfaces_attributes][bond_options]","description":"\n\u003cp\u003eSpace separated options, e.g. miimon=100. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attributes","full_name":"host[interfaces_attributes][compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes for the interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]},{"name":"compute_attributes","full_name":"host[compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"content_facet_attributes","full_name":"host[content_facet_attributes]","description":"\n\u003cp\u003eParameters for host\u0026#39;s content_facet facet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"content_view_id","full_name":"host[content_facet_attributes][content_view_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"host[content_facet_attributes][lifecycle_environment_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_source_id","full_name":"host[content_facet_attributes][content_source_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"kickstart_repository_id","full_name":"host[content_facet_attributes][kickstart_repository_id]","description":"\n\u003cp\u003eRepository Id associated with the kickstart repo used for provisioning\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]},{"name":"subscription_facet_attributes","full_name":"host[subscription_facet_attributes]","description":"\n\u003cp\u003eParameters for host\u0026#39;s subscription_facet facet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"release_version","full_name":"host[subscription_facet_attributes][release_version]","description":"\n\u003cp\u003eRelease version for this Host to use (7Server, 7.1, etc)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"autoheal","full_name":"host[subscription_facet_attributes][autoheal]","description":"\n\u003cp\u003eSets whether the Host will autoheal subscriptions upon checkin\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"purpose_usage","full_name":"host[subscription_facet_attributes][purpose_usage]","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_role","full_name":"host[subscription_facet_attributes][purpose_role]","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_addons","full_name":"host[subscription_facet_attributes][purpose_addons]","description":"\n\u003cp\u003eSets the system add-ons\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"host[subscription_facet_attributes][service_level]","description":"\n\u003cp\u003eService level to be used for autoheal\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hypervisor_guest_uuids","full_name":"host[subscription_facet_attributes][hypervisor_guest_uuids]","description":"\n\u003cp\u003eList of hypervisor guest uuids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"installed_products_attributes","full_name":"host[subscription_facet_attributes][installed_products_attributes]","description":"\n\u003cp\u003eList of products installed on the host\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"product_id","full_name":"host[subscription_facet_attributes][installed_products_attributes][product_id]","description":"\n\u003cp\u003eProduct id as listed from a host\u0026#39;s installed products, this is\nnot the same product id as the products api returns\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_name","full_name":"host[subscription_facet_attributes][installed_products_attributes][product_name]","description":"\n\u003cp\u003eProduct name as listed from a host\u0026#39;s installed products\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"arch","full_name":"host[subscription_facet_attributes][installed_products_attributes][arch]","description":"\n\u003cp\u003eProduct architecture\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"host[subscription_facet_attributes][installed_products_attributes][version]","description":"\n\u003cp\u003eProduct version\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/update","name":"update","apis":[{"api_url":"/api/hosts/:id","http_method":"PUT","short_description":"Update a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"host","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"host[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"host[location_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"host[organization_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"host[environment_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"host[ip]","description":"\n\u003cp\u003enot required if using a subnet with DHCP proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mac","full_name":"host[mac]","description":"\n\u003cp\u003erequired for managed host that is bare metal, not required if it\u0026#39;s a\nvirtual machine\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"host[architecture_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"host[domain_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_id","full_name":"host[realm_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_proxy_id","full_name":"host[puppet_proxy_id]","description":"\n\u003cp\u003ePuppet proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_ca_proxy_id","full_name":"host[puppet_ca_proxy_id]","description":"\n\u003cp\u003ePuppet CA proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"host[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_group_ids","full_name":"host[config_group_ids]","description":"\n\u003cp\u003eIDs of associated config groups\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"host[operatingsystem_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"host[medium_id]","description":"\n\u003cp\u003erequired if not imaged based provisioning and host is managed and value is\nnot inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"pxe_loader","full_name":"host[pxe_loader]","description":"\n\u003cp\u003eDHCP filename option (Grub2/PXELinux by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eNone\u003c/code\u003e, \u003ccode\u003ePXELinux BIOS\u003c/code\u003e, \u003ccode\u003ePXELinux UEFI\u003c/code\u003e, \u003ccode\u003eGrub UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 BIOS\u003c/code\u003e, \u003ccode\u003eGrub2 ELF\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI SecureBoot\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTP\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS SecureBoot\u003c/code\u003e, \u003ccode\u003eiPXE Embedded\u003c/code\u003e, \u003ccode\u003eiPXE UEFI HTTP\u003c/code\u003e, \u003ccode\u003eiPXE Chain BIOS\u003c/code\u003e, \u003ccode\u003eiPXE Chain UEFI\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"host[ptable_id]","description":"\n\u003cp\u003erequired if host is managed and custom partition has not been defined\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"host[subnet_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"host[compute_resource_id]","description":"\n\u003cp\u003enil means host is bare metal\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"root_pass","full_name":"host[root_pass]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group or\ndefault password in settings\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"model_id","full_name":"host[model_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"host[hostgroup_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"owner_id","full_name":"host[owner_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"owner_type","full_name":"host[owner_type]","description":"\n\u003cp\u003eHost\u0026#39;s owner type\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eUser\u003c/code\u003e, \u003ccode\u003eUsergroup\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"image_id","full_name":"host[image_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_parameters_attributes","full_name":"host[host_parameters_attributes]","description":"\n\u003cp\u003eHost\u0026#39;s parameters (array or indexed hash)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"host[host_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"host[host_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"host[host_parameters_attributes][parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"host[host_parameters_attributes][hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]},{"name":"build","full_name":"host[build]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"host[enabled]","description":"\n\u003cp\u003eInclude this host within Foreman reporting\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision_method","full_name":"host[provision_method]","description":"\n\u003cp\u003eThe method used to provision the host.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebuild\u003c/code\u003e, \u003ccode\u003eimage\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"host[managed]","description":"\n\u003cp\u003eTrue/False flag whether a host is managed or unmanaged. Note: this value\nalso determines whether several parameters are required or not\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"progress_report_id","full_name":"host[progress_report_id]","description":"\n\u003cp\u003eUUID to track orchestration tasks status, GET\n/api/orchestration/:UUID/tasks\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"comment","full_name":"host[comment]","description":"\n\u003cp\u003eAdditional information about this host\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"capabilities","full_name":"host[capabilities]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"host[compute_profile_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"interfaces_attributes","full_name":"host[interfaces_attributes]","description":"\n\u003cp\u003eHost\u0026#39;s network interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"mac","full_name":"host[interfaces_attributes][mac]","description":"\n\u003cp\u003eMAC address of interface. Required for managed interfaces on bare metal.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"host[interfaces_attributes][ip]","description":"\n\u003cp\u003eIPv4 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip6","full_name":"host[interfaces_attributes][ip6]","description":"\n\u003cp\u003eIPv6 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"host[interfaces_attributes][type]","description":"\n\u003cp\u003eInterface type, e.g. bmc. Default is interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003einterface\u003c/code\u003e, \u003ccode\u003ebmc\u003c/code\u003e, \u003ccode\u003ebond\u003c/code\u003e, \u003ccode\u003ebridge\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"host[interfaces_attributes][name]","description":"\n\u003cp\u003eInterface\u0026#39;s DNS name\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"host[interfaces_attributes][subnet_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv4 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"host[interfaces_attributes][subnet6_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv6 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"host[interfaces_attributes][domain_id]","description":"\n\u003cp\u003eForeman domain ID of interface. Required for primary interfaces on managed\nhosts.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"identifier","full_name":"host[interfaces_attributes][identifier]","description":"\n\u003cp\u003eDevice identifier, e.g. eth0 or eth1.1\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"host[interfaces_attributes][managed]","description":"\n\u003cp\u003eShould this interface be managed via DHCP and DNS smart proxy and should it\nbe configured during provisioning?\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"primary","full_name":"host[interfaces_attributes][primary]","description":"\n\u003cp\u003eShould this interface be used for constructing the FQDN of the host? Each\nmanaged hosts needs to have one primary interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision","full_name":"host[interfaces_attributes][provision]","description":"\n\u003cp\u003eShould this interface be used for TFTP of PXELinux (or SSH for image-based\nhosts)? Each managed hosts needs to have one provision interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"host[interfaces_attributes][username]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"host[interfaces_attributes][password]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"host[interfaces_attributes][provider]","description":"\n\u003cp\u003eInterface provider, e.g. IPMI. Only for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPMI\u003c/code\u003e, \u003ccode\u003eSSH\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"virtual","full_name":"host[interfaces_attributes][virtual]","description":"\n\u003cp\u003eAlias or VLAN device\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tag","full_name":"host[interfaces_attributes][tag]","description":"\n\u003cp\u003eVLAN tag, this attribute has precedence over the subnet VLAN ID. Only for\nvirtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"host[interfaces_attributes][mtu]","description":"\n\u003cp\u003eMTU, this attribute has precedence over the subnet MTU.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"attached_to","full_name":"host[interfaces_attributes][attached_to]","description":"\n\u003cp\u003eIdentifier of the interface to which this interface belongs, e.g. eth1.\nOnly for virtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mode","full_name":"host[interfaces_attributes][mode]","description":"\n\u003cp\u003eBond mode of the interface, e.g. balance-rr. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebalance-rr\u003c/code\u003e, \u003ccode\u003eactive-backup\u003c/code\u003e, \u003ccode\u003ebalance-xor\u003c/code\u003e, \u003ccode\u003ebroadcast\u003c/code\u003e, \u003ccode\u003e802.3ad\u003c/code\u003e, \u003ccode\u003ebalance-tlb\u003c/code\u003e, \u003ccode\u003ebalance-alb\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attached_devices","full_name":"host[interfaces_attributes][attached_devices]","description":"\n\u003cp\u003eIdentifiers of attached interfaces, e.g. `[\u0026#39;eth1\u0026#39;,\n\u0026#39;eth2\u0026#39;]`. For bond interfaces those are the slaves. Only for bond\nand bridges interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"bond_options","full_name":"host[interfaces_attributes][bond_options]","description":"\n\u003cp\u003eSpace separated options, e.g. miimon=100. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attributes","full_name":"host[interfaces_attributes][compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes for the interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]},{"name":"compute_attributes","full_name":"host[compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"content_facet_attributes","full_name":"host[content_facet_attributes]","description":"\n\u003cp\u003eParameters for host\u0026#39;s content_facet facet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"content_view_id","full_name":"host[content_facet_attributes][content_view_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"host[content_facet_attributes][lifecycle_environment_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_source_id","full_name":"host[content_facet_attributes][content_source_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"kickstart_repository_id","full_name":"host[content_facet_attributes][kickstart_repository_id]","description":"\n\u003cp\u003eRepository Id associated with the kickstart repo used for provisioning\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]},{"name":"subscription_facet_attributes","full_name":"host[subscription_facet_attributes]","description":"\n\u003cp\u003eParameters for host\u0026#39;s subscription_facet facet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"release_version","full_name":"host[subscription_facet_attributes][release_version]","description":"\n\u003cp\u003eRelease version for this Host to use (7Server, 7.1, etc)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"autoheal","full_name":"host[subscription_facet_attributes][autoheal]","description":"\n\u003cp\u003eSets whether the Host will autoheal subscriptions upon checkin\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"purpose_usage","full_name":"host[subscription_facet_attributes][purpose_usage]","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_role","full_name":"host[subscription_facet_attributes][purpose_role]","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_addons","full_name":"host[subscription_facet_attributes][purpose_addons]","description":"\n\u003cp\u003eSets the system add-ons\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"host[subscription_facet_attributes][service_level]","description":"\n\u003cp\u003eService level to be used for autoheal\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hypervisor_guest_uuids","full_name":"host[subscription_facet_attributes][hypervisor_guest_uuids]","description":"\n\u003cp\u003eList of hypervisor guest uuids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"installed_products_attributes","full_name":"host[subscription_facet_attributes][installed_products_attributes]","description":"\n\u003cp\u003eList of products installed on the host\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"product_id","full_name":"host[subscription_facet_attributes][installed_products_attributes][product_id]","description":"\n\u003cp\u003eProduct id as listed from a host\u0026#39;s installed products, this is\nnot the same product id as the products api returns\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_name","full_name":"host[subscription_facet_attributes][installed_products_attributes][product_name]","description":"\n\u003cp\u003eProduct name as listed from a host\u0026#39;s installed products\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"arch","full_name":"host[subscription_facet_attributes][installed_products_attributes][arch]","description":"\n\u003cp\u003eProduct architecture\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"host[subscription_facet_attributes][installed_products_attributes][version]","description":"\n\u003cp\u003eProduct version\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:id","http_method":"DELETE","short_description":"Delete a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/enc","name":"enc","apis":[{"api_url":"/api/hosts/:id/enc","http_method":"GET","short_description":"Get ENC values of host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/get_status","name":"get_status","apis":[{"api_url":"/api/hosts/:id/status/:type","http_method":"GET","short_description":"Get status of host","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eReturns string representing a host status of a given type\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"type","description":"\n\u003cp\u003estatus type, can be one of\u003c/p\u003e\n\u003cul\u003e\u003cli\u003e\n\u003cp\u003eglobal\u003c/p\u003e\n\u003c/li\u003e\u003cli\u003e\n\u003cp\u003econfiguration\u003c/p\u003e\n\u003c/li\u003e\u003cli\u003e\n\u003cp\u003ebuild\u003c/p\u003e\n\u003c/li\u003e\u003c/ul\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eHostStatus::Global\u003c/code\u003e, \u003ccode\u003econfiguration\u003c/code\u003e, \u003ccode\u003ebuild\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/vm_compute_attributes","name":"vm_compute_attributes","apis":[{"api_url":"/api/hosts/:id/vm_compute_attributes","http_method":"GET","short_description":"Get vm attributes of host","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eReturn the host\u0026#39;s compute attributes that can be used to create a clone\nof this VM\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/disassociate","name":"disassociate","apis":[{"api_url":"/api/hosts/:id/disassociate","http_method":"PUT","short_description":"Disassociate the host from a VM","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/power","name":"power","apis":[{"api_url":"/api/hosts/:id/power","http_method":"PUT","short_description":"Run a power operation on host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"power_action","full_name":"power_action","description":"\n\u003cp\u003epower action, valid actions are (on/start), (off/stop), (soft/reboot),\n(cycle/reset), (state/status)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/power_status","name":"power_status","apis":[{"api_url":"/api/hosts/:id/power","http_method":"GET","short_description":"Fetch the status of whether the host is powered on or not. Supported hosts are VMs and physical hosts with BMCs.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/boot","name":"boot","apis":[{"api_url":"/api/hosts/:id/boot","http_method":"PUT","short_description":"Boot host from specified device","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"device","full_name":"device","description":"\n\u003cp\u003eboot device, valid devices are disk, cdrom, pxe, bios\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/facts","name":"facts","apis":[{"api_url":"/api/hosts/facts","http_method":"POST","short_description":"Upload facts for a host, creating the host if required","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ehostname of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"facts","full_name":"facts","description":"\n\u003cp\u003ehash containing the facts for the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"certname","full_name":"certname","description":"\n\u003cp\u003eoptional: certname of the host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"type","description":"\n\u003cp\u003eoptional: the STI type of host to create\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/rebuild_config","name":"rebuild_config","apis":[{"api_url":"/api/hosts/:id/rebuild_config","http_method":"PUT","short_description":"Rebuild orchestration config","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"only","full_name":"only","description":"\n\u003cp\u003eLimit rebuild steps, valid steps are DHCP, DNS, TFTP\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/template","name":"template","apis":[{"api_url":"/api/hosts/:id/template/:kind","http_method":"GET","short_description":"Preview rendered provisioning template content","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"kind","full_name":"kind","description":"\n\u003cp\u003eTemplate kinds, available values: PXELinux, PXEGrub, PXEGrub2, iPXE,\nprovision, finish, script, user_data, ZTP, POAP, cloud-init\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/host_collections","name":"host_collections","apis":[{"api_url":"/api/hosts/:host_id/host_collections","http_method":"PUT","short_description":"Alter a hosts host collections","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eThe id of the host to alter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection ids to update\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"interfaces":{"doc_url":"../apidoc/v2/interfaces","id":"interfaces","api_url":"/api","name":"Interfaces","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/interfaces/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/interfaces","http_method":"GET","short_description":"List all interfaces for host","deprecated":null},{"api_url":"/api/domains/:domain_id/interfaces","http_method":"GET","short_description":"List all interfaces for domain","deprecated":null},{"api_url":"/api/subnets/:subnet_id/interfaces","http_method":"GET","short_description":"List all interfaces for subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID or name of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID or name of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/interfaces/show","name":"show","apis":[{"api_url":"/api/hosts/:host_id/interfaces/:id","http_method":"GET","short_description":"Show an interface for host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name of interface\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/interfaces/create","name":"create","apis":[{"api_url":"/api/hosts/:host_id/interfaces","http_method":"POST","short_description":"Create an interface on a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interface","full_name":"interface","description":"\n\u003cp\u003einterface information\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"mac","full_name":"interface[mac]","description":"\n\u003cp\u003eMAC address of interface. Required for managed interfaces on bare metal.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"interface[ip]","description":"\n\u003cp\u003eIPv4 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip6","full_name":"interface[ip6]","description":"\n\u003cp\u003eIPv6 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"interface[type]","description":"\n\u003cp\u003eInterface type, e.g. bmc. Default is interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003einterface\u003c/code\u003e, \u003ccode\u003ebmc\u003c/code\u003e, \u003ccode\u003ebond\u003c/code\u003e, \u003ccode\u003ebridge\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"interface[name]","description":"\n\u003cp\u003eInterface\u0026#39;s DNS name\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"interface[subnet_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv4 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"interface[subnet6_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv6 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"interface[domain_id]","description":"\n\u003cp\u003eForeman domain ID of interface. Required for primary interfaces on managed\nhosts.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"identifier","full_name":"interface[identifier]","description":"\n\u003cp\u003eDevice identifier, e.g. eth0 or eth1.1\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"interface[managed]","description":"\n\u003cp\u003eShould this interface be managed via DHCP and DNS smart proxy and should it\nbe configured during provisioning?\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"primary","full_name":"interface[primary]","description":"\n\u003cp\u003eShould this interface be used for constructing the FQDN of the host? Each\nmanaged hosts needs to have one primary interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision","full_name":"interface[provision]","description":"\n\u003cp\u003eShould this interface be used for TFTP of PXELinux (or SSH for image-based\nhosts)? Each managed hosts needs to have one provision interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"interface[username]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"interface[password]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"interface[provider]","description":"\n\u003cp\u003eInterface provider, e.g. IPMI. Only for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPMI\u003c/code\u003e, \u003ccode\u003eSSH\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"virtual","full_name":"interface[virtual]","description":"\n\u003cp\u003eAlias or VLAN device\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tag","full_name":"interface[tag]","description":"\n\u003cp\u003eVLAN tag, this attribute has precedence over the subnet VLAN ID. Only for\nvirtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"interface[mtu]","description":"\n\u003cp\u003eMTU, this attribute has precedence over the subnet MTU.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"attached_to","full_name":"interface[attached_to]","description":"\n\u003cp\u003eIdentifier of the interface to which this interface belongs, e.g. eth1.\nOnly for virtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mode","full_name":"interface[mode]","description":"\n\u003cp\u003eBond mode of the interface, e.g. balance-rr. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebalance-rr\u003c/code\u003e, \u003ccode\u003eactive-backup\u003c/code\u003e, \u003ccode\u003ebalance-xor\u003c/code\u003e, \u003ccode\u003ebroadcast\u003c/code\u003e, \u003ccode\u003e802.3ad\u003c/code\u003e, \u003ccode\u003ebalance-tlb\u003c/code\u003e, \u003ccode\u003ebalance-alb\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attached_devices","full_name":"interface[attached_devices]","description":"\n\u003cp\u003eIdentifiers of attached interfaces, e.g. `[\u0026#39;eth1\u0026#39;,\n\u0026#39;eth2\u0026#39;]`. For bond interfaces those are the slaves. Only for bond\nand bridges interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"bond_options","full_name":"interface[bond_options]","description":"\n\u003cp\u003eSpace separated options, e.g. miimon=100. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attributes","full_name":"interface[compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes for the interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/interfaces/update","name":"update","apis":[{"api_url":"/api/hosts/:host_id/interfaces/:id","http_method":"PUT","short_description":"Update a host's interface","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of interface\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interface","full_name":"interface","description":"\n\u003cp\u003einterface information\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"mac","full_name":"interface[mac]","description":"\n\u003cp\u003eMAC address of interface. Required for managed interfaces on bare metal.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"interface[ip]","description":"\n\u003cp\u003eIPv4 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip6","full_name":"interface[ip6]","description":"\n\u003cp\u003eIPv6 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"interface[type]","description":"\n\u003cp\u003eInterface type, e.g. bmc. Default is interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003einterface\u003c/code\u003e, \u003ccode\u003ebmc\u003c/code\u003e, \u003ccode\u003ebond\u003c/code\u003e, \u003ccode\u003ebridge\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"interface[name]","description":"\n\u003cp\u003eInterface\u0026#39;s DNS name\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"interface[subnet_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv4 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"interface[subnet6_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv6 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"interface[domain_id]","description":"\n\u003cp\u003eForeman domain ID of interface. Required for primary interfaces on managed\nhosts.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"identifier","full_name":"interface[identifier]","description":"\n\u003cp\u003eDevice identifier, e.g. eth0 or eth1.1\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"interface[managed]","description":"\n\u003cp\u003eShould this interface be managed via DHCP and DNS smart proxy and should it\nbe configured during provisioning?\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"primary","full_name":"interface[primary]","description":"\n\u003cp\u003eShould this interface be used for constructing the FQDN of the host? Each\nmanaged hosts needs to have one primary interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision","full_name":"interface[provision]","description":"\n\u003cp\u003eShould this interface be used for TFTP of PXELinux (or SSH for image-based\nhosts)? Each managed hosts needs to have one provision interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"interface[username]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"interface[password]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"interface[provider]","description":"\n\u003cp\u003eInterface provider, e.g. IPMI. Only for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPMI\u003c/code\u003e, \u003ccode\u003eSSH\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"virtual","full_name":"interface[virtual]","description":"\n\u003cp\u003eAlias or VLAN device\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tag","full_name":"interface[tag]","description":"\n\u003cp\u003eVLAN tag, this attribute has precedence over the subnet VLAN ID. Only for\nvirtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"interface[mtu]","description":"\n\u003cp\u003eMTU, this attribute has precedence over the subnet MTU.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"attached_to","full_name":"interface[attached_to]","description":"\n\u003cp\u003eIdentifier of the interface to which this interface belongs, e.g. eth1.\nOnly for virtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mode","full_name":"interface[mode]","description":"\n\u003cp\u003eBond mode of the interface, e.g. balance-rr. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebalance-rr\u003c/code\u003e, \u003ccode\u003eactive-backup\u003c/code\u003e, \u003ccode\u003ebalance-xor\u003c/code\u003e, \u003ccode\u003ebroadcast\u003c/code\u003e, \u003ccode\u003e802.3ad\u003c/code\u003e, \u003ccode\u003ebalance-tlb\u003c/code\u003e, \u003ccode\u003ebalance-alb\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attached_devices","full_name":"interface[attached_devices]","description":"\n\u003cp\u003eIdentifiers of attached interfaces, e.g. `[\u0026#39;eth1\u0026#39;,\n\u0026#39;eth2\u0026#39;]`. For bond interfaces those are the slaves. Only for bond\nand bridges interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"bond_options","full_name":"interface[bond_options]","description":"\n\u003cp\u003eSpace separated options, e.g. miimon=100. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attributes","full_name":"interface[compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes for the interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/interfaces/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:host_id/interfaces/:id","http_method":"DELETE","short_description":"Delete a host's interface","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of interface\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"hostgroups":{"doc_url":"../apidoc/v2/hostgroups","id":"hostgroups","api_url":"/api","name":"Hostgroups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/hostgroups/index","name":"index","apis":[{"api_url":"/api/hostgroups","http_method":"GET","short_description":"List all host groups","deprecated":null},{"api_url":"/api/puppetclasses/:puppetclass_id/hostgroups","http_method":"GET","short_description":"List all host groups for a Puppet class","deprecated":null},{"api_url":"/api/locations/:location_id/hostgroups","http_method":"GET","short_description":"List all host groups per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/hostgroups","http_method":"GET","short_description":"List all host groups per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"puppetclass_id","full_name":"puppetclass_id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"include","full_name":"include","description":"\n\u003cp\u003eArray of extra information types to include\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of [\"parameters\"]","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"architecture","type":"string"},{"name":"class","type":"string"},{"name":"config_group","type":"string"},{"name":"content_source","type":"string"},{"name":"content_view","type":"string"},{"name":"environment","type":"string"},{"name":"host","type":"string"},{"name":"id","type":"integer"},{"name":"label","type":"string"},{"name":"lifecycle_environment","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"medium","type":"string"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"os","type":"string"},{"name":"os_description","type":"string"},{"name":"os_id","type":"integer"},{"name":"os_major","type":"string"},{"name":"os_minor","type":"string"},{"name":"os_title","type":"string"},{"name":"params","type":"text"},{"name":"template","type":"string"},{"name":"title","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/show","name":"show","apis":[{"api_url":"/api/hostgroups/:id","http_method":"GET","short_description":"Show a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/create","name":"create","apis":[{"api_url":"/api/hostgroups","http_method":"POST","short_description":"Create a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup","full_name":"hostgroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"hostgroup[name]","description":"\n\u003cp\u003eName of the host group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"hostgroup[description]","description":"\n\u003cp\u003eHost group description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parent_id","full_name":"hostgroup[parent_id]","description":"\n\u003cp\u003eParent ID of the host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"hostgroup[environment_id]","description":"\n\u003cp\u003eEnvironment ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"hostgroup[compute_profile_id]","description":"\n\u003cp\u003eCompute profile ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"hostgroup[compute_resource_id]","description":"\n\u003cp\u003eCompute resource ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"hostgroup[operatingsystem_id]","description":"\n\u003cp\u003eOperating system ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"hostgroup[architecture_id]","description":"\n\u003cp\u003eArchitecture ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"pxe_loader","full_name":"hostgroup[pxe_loader]","description":"\n\u003cp\u003eDHCP filename option (Grub2/PXELinux by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eNone\u003c/code\u003e, \u003ccode\u003ePXELinux BIOS\u003c/code\u003e, \u003ccode\u003ePXELinux UEFI\u003c/code\u003e, \u003ccode\u003eGrub UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 BIOS\u003c/code\u003e, \u003ccode\u003eGrub2 ELF\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI SecureBoot\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTP\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS SecureBoot\u003c/code\u003e, \u003ccode\u003eiPXE Embedded\u003c/code\u003e, \u003ccode\u003eiPXE UEFI HTTP\u003c/code\u003e, \u003ccode\u003eiPXE Chain BIOS\u003c/code\u003e, \u003ccode\u003eiPXE Chain UEFI\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"hostgroup[medium_id]","description":"\n\u003cp\u003eMedia ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"hostgroup[ptable_id]","description":"\n\u003cp\u003ePartition table ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"hostgroup[subnet_id]","description":"\n\u003cp\u003eSubnet ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"hostgroup[subnet6_id]","description":"\n\u003cp\u003eSubnet IPv6 ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"hostgroup[domain_id]","description":"\n\u003cp\u003eDomain ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_id","full_name":"hostgroup[realm_id]","description":"\n\u003cp\u003eRealm ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"hostgroup[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_group_ids","full_name":"hostgroup[config_group_ids]","description":"\n\u003cp\u003eIDs of associated config groups\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"group_parameters_attributes","full_name":"hostgroup[group_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"hostgroup[group_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"hostgroup[group_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"hostgroup[group_parameters_attributes][parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"hostgroup[group_parameters_attributes][hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]},{"name":"puppet_proxy_id","full_name":"hostgroup[puppet_proxy_id]","description":"\n\u003cp\u003ePuppet proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_ca_proxy_id","full_name":"hostgroup[puppet_ca_proxy_id]","description":"\n\u003cp\u003ePuppet CA proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"root_pass","full_name":"hostgroup[root_pass]","description":"\n\u003cp\u003eRoot password on provisioned hosts\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"hostgroup[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"hostgroup[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"content_source_id","full_name":"hostgroup[content_source_id]","description":"\n\u003cp\u003eContent source ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"hostgroup[content_view_id]","description":"\n\u003cp\u003eContent view ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"hostgroup[lifecycle_environment_id]","description":"\n\u003cp\u003eLifecycle environment ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"kickstart_repository_id","full_name":"hostgroup[kickstart_repository_id]","description":"\n\u003cp\u003eKickstart repository ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/update","name":"update","apis":[{"api_url":"/api/hostgroups/:id","http_method":"PUT","short_description":"Update a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup","full_name":"hostgroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"hostgroup[name]","description":"\n\u003cp\u003eName of the host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"hostgroup[description]","description":"\n\u003cp\u003eHost group description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parent_id","full_name":"hostgroup[parent_id]","description":"\n\u003cp\u003eParent ID of the host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"hostgroup[environment_id]","description":"\n\u003cp\u003eEnvironment ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"hostgroup[compute_profile_id]","description":"\n\u003cp\u003eCompute profile ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"hostgroup[compute_resource_id]","description":"\n\u003cp\u003eCompute resource ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"hostgroup[operatingsystem_id]","description":"\n\u003cp\u003eOperating system ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"hostgroup[architecture_id]","description":"\n\u003cp\u003eArchitecture ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"pxe_loader","full_name":"hostgroup[pxe_loader]","description":"\n\u003cp\u003eDHCP filename option (Grub2/PXELinux by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eNone\u003c/code\u003e, \u003ccode\u003ePXELinux BIOS\u003c/code\u003e, \u003ccode\u003ePXELinux UEFI\u003c/code\u003e, \u003ccode\u003eGrub UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 BIOS\u003c/code\u003e, \u003ccode\u003eGrub2 ELF\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI SecureBoot\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTP\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS SecureBoot\u003c/code\u003e, \u003ccode\u003eiPXE Embedded\u003c/code\u003e, \u003ccode\u003eiPXE UEFI HTTP\u003c/code\u003e, \u003ccode\u003eiPXE Chain BIOS\u003c/code\u003e, \u003ccode\u003eiPXE Chain UEFI\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"hostgroup[medium_id]","description":"\n\u003cp\u003eMedia ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"hostgroup[ptable_id]","description":"\n\u003cp\u003ePartition table ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"hostgroup[subnet_id]","description":"\n\u003cp\u003eSubnet ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"hostgroup[subnet6_id]","description":"\n\u003cp\u003eSubnet IPv6 ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"hostgroup[domain_id]","description":"\n\u003cp\u003eDomain ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_id","full_name":"hostgroup[realm_id]","description":"\n\u003cp\u003eRealm ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"hostgroup[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_group_ids","full_name":"hostgroup[config_group_ids]","description":"\n\u003cp\u003eIDs of associated config groups\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"group_parameters_attributes","full_name":"hostgroup[group_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"hostgroup[group_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"hostgroup[group_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"hostgroup[group_parameters_attributes][parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"hostgroup[group_parameters_attributes][hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]},{"name":"puppet_proxy_id","full_name":"hostgroup[puppet_proxy_id]","description":"\n\u003cp\u003ePuppet proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_ca_proxy_id","full_name":"hostgroup[puppet_ca_proxy_id]","description":"\n\u003cp\u003ePuppet CA proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"root_pass","full_name":"hostgroup[root_pass]","description":"\n\u003cp\u003eRoot password on provisioned hosts\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"hostgroup[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"hostgroup[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"content_source_id","full_name":"hostgroup[content_source_id]","description":"\n\u003cp\u003eContent source ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"hostgroup[content_view_id]","description":"\n\u003cp\u003eContent view ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"hostgroup[lifecycle_environment_id]","description":"\n\u003cp\u003eLifecycle environment ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"kickstart_repository_id","full_name":"hostgroup[kickstart_repository_id]","description":"\n\u003cp\u003eKickstart repository ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/destroy","name":"destroy","apis":[{"api_url":"/api/hostgroups/:id","http_method":"DELETE","short_description":"Delete a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/clone","name":"clone","apis":[{"api_url":"/api/hostgroups/:id/clone","http_method":"POST","short_description":"Clone a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/rebuild_config","name":"rebuild_config","apis":[{"api_url":"/api/hostgroups/:id/rebuild_config","http_method":"PUT","short_description":"Rebuild orchestration config","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"only","full_name":"only","description":"\n\u003cp\u003eLimit rebuild steps, valid steps are DHCP, DNS, TFTP\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"children_hosts","full_name":"children_hosts","description":"\n\u003cp\u003eOperate on child hostgroup hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"smart_proxies":{"doc_url":"../apidoc/v2/smart_proxies","id":"smart_proxies","api_url":"/api","name":"Smart proxies","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/smart_proxies/import_puppetclasses","name":"import_puppetclasses","apis":[{"api_url":"/api/smart_proxies/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy","deprecated":null},{"api_url":"/api/smart_proxies/:smart_proxy_id/environments/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy for an environment","deprecated":null},{"api_url":"/api/environments/:environment_id/smart_proxies/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy for an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_id","full_name":"smart_proxy_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dryrun","full_name":"dryrun","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"except","full_name":"except","description":"\n\u003cp\u003eOptional comma-delimited string containing either \u0026#39;new\u0026#39;,\n\u0026#39;updated\u0026#39;, or \u0026#39;obsolete\u0026#39; that is used to limit the imported\nPuppet classes\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/index","name":"index","apis":[{"api_url":"/api/smart_proxies","http_method":"GET","short_description":"List all smart proxies","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"feature","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"url","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/show","name":"show","apis":[{"api_url":"/api/smart_proxies/:id","http_method":"GET","short_description":"Show a smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/create","name":"create","apis":[{"api_url":"/api/smart_proxies","http_method":"POST","short_description":"Create a smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy","full_name":"smart_proxy","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"smart_proxy[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"smart_proxy[url]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"smart_proxy[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"smart_proxy[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"download_policy","full_name":"smart_proxy[download_policy]","description":"\n\u003cp\u003eDownload Policy of the capsule, must be one of immediate, on_demand,\nbackground, inherit\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/update","name":"update","apis":[{"api_url":"/api/smart_proxies/:id","http_method":"PUT","short_description":"Update a smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy","full_name":"smart_proxy","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"smart_proxy[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"smart_proxy[url]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"smart_proxy[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"smart_proxy[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"download_policy","full_name":"smart_proxy[download_policy]","description":"\n\u003cp\u003eDownload Policy of the capsule, must be one of immediate, on_demand,\nbackground, inherit\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/destroy","name":"destroy","apis":[{"api_url":"/api/smart_proxies/:id","http_method":"DELETE","short_description":"Delete a smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/refresh","name":"refresh","apis":[{"api_url":"/api/smart_proxies/:id/refresh","http_method":"PUT","short_description":"Refresh smart proxy features","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"template_inputs":{"doc_url":"../apidoc/v2/template_inputs","id":"template_inputs","api_url":"/api","name":"Template inputs","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/template_inputs/index","name":"index","apis":[{"api_url":"/api/templates/:template_id/template_inputs","http_method":"GET","short_description":"List template inputs","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"input_type","type":"string"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_inputs/show","name":"show","apis":[{"api_url":"/api/templates/:template_id/template_inputs/:id","http_method":"GET","short_description":"Show template input details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_inputs/create","name":"create","apis":[{"api_url":"/api/templates/:template_id/template_inputs","http_method":"POST","short_description":"Create a template input","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_input","full_name":"template_input","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"template_input[name]","description":"\n\u003cp\u003eInput name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"template_input[description]","description":"\n\u003cp\u003eInput description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"required","full_name":"template_input[required]","description":"\n\u003cp\u003eInput is required\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"advanced","full_name":"template_input[advanced]","description":"\n\u003cp\u003eInput is advanced\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"input_type","full_name":"template_input[input_type]","description":"\n\u003cp\u003eInput type\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003euser\u003c/code\u003e, \u003ccode\u003efact\u003c/code\u003e, \u003ccode\u003evariable\u003c/code\u003e, \u003ccode\u003epuppet_parameter\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fact_name","full_name":"template_input[fact_name]","description":"\n\u003cp\u003eFact name, used when input type is fact\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"variable_name","full_name":"template_input[variable_name]","description":"\n\u003cp\u003eVariable name, used when input type is variable\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppet_class_name","full_name":"template_input[puppet_class_name]","description":"\n\u003cp\u003ePuppet class name, used when input type is puppet_parameter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppet_parameter_name","full_name":"template_input[puppet_parameter_name]","description":"\n\u003cp\u003ePuppet parameter name, used when input type is puppet_parameter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"options","full_name":"template_input[options]","description":"\n\u003cp\u003eSelectable values for user inputs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"template_input[default]","description":"\n\u003cp\u003eDefault value for user input\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value_type","full_name":"template_input[value_type]","description":"\n\u003cp\u003eValue type, defaults to plain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eplain\u003c/code\u003e, \u003ccode\u003esearch\u003c/code\u003e, \u003ccode\u003edate\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resource_type","full_name":"template_input[resource_type]","description":"\n\u003cp\u003eFor values of type search, this is the resource the value searches in\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eArchitecture\u003c/code\u003e, \u003ccode\u003eAudit\u003c/code\u003e, \u003ccode\u003eAuthSource\u003c/code\u003e, \u003ccode\u003eBookmark\u003c/code\u003e, \u003ccode\u003eComputeProfile\u003c/code\u003e, \u003ccode\u003eComputeResource\u003c/code\u003e, \u003ccode\u003eConfigGroup\u003c/code\u003e, \u003ccode\u003eConfigReport\u003c/code\u003e, \u003ccode\u003eDomain\u003c/code\u003e, \u003ccode\u003eEnvironment\u003c/code\u003e, \u003ccode\u003eExternalUsergroup\u003c/code\u003e, \u003ccode\u003eFactValue\u003c/code\u003e, \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eForemanTasks::RecurringLogic\u003c/code\u003e, \u003ccode\u003eForemanTasks::Task\u003c/code\u003e, \u003ccode\u003eHost\u003c/code\u003e, \u003ccode\u003eHostClass\u003c/code\u003e, \u003ccode\u003eHostgroup\u003c/code\u003e, \u003ccode\u003eHttpProxy\u003c/code\u003e, \u003ccode\u003eImage\u003c/code\u003e, \u003ccode\u003eKatello::ActivationKey\u003c/code\u003e, \u003ccode\u003eKatello::ContentView\u003c/code\u003e, \u003ccode\u003eKatello::GpgKey\u003c/code\u003e, \u003ccode\u003eKatello::HostCollection\u003c/code\u003e, \u003ccode\u003eKatello::KTEnvironment\u003c/code\u003e, \u003ccode\u003eKatello::Product\u003c/code\u003e, \u003ccode\u003eKatello::Subscription\u003c/code\u003e, \u003ccode\u003eKatello::SyncPlan\u003c/code\u003e, \u003ccode\u003eKeyPair\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, \u003ccode\u003eMailNotification\u003c/code\u003e, \u003ccode\u003eMedium\u003c/code\u003e, \u003ccode\u003eModel\u003c/code\u003e, \u003ccode\u003eOperatingsystem\u003c/code\u003e, \u003ccode\u003eOrganization\u003c/code\u003e, \u003ccode\u003eParameter\u003c/code\u003e, \u003ccode\u003ePersonalAccessToken\u003c/code\u003e, \u003ccode\u003eProvisioningTemplate\u003c/code\u003e, \u003ccode\u003ePtable\u003c/code\u003e, \u003ccode\u003ePuppetclass\u003c/code\u003e, \u003ccode\u003ePuppetclassLookupKey\u003c/code\u003e, \u003ccode\u003eRealm\u003c/code\u003e, \u003ccode\u003eReport\u003c/code\u003e, \u003ccode\u003eReportTemplate\u003c/code\u003e, \u003ccode\u003eRole\u003c/code\u003e, \u003ccode\u003eSetting\u003c/code\u003e, \u003ccode\u003eSmartProxy\u003c/code\u003e, \u003ccode\u003eSshKey\u003c/code\u003e, \u003ccode\u003eSubnet\u003c/code\u003e, \u003ccode\u003eTrend\u003c/code\u003e, \u003ccode\u003eUser\u003c/code\u003e, \u003ccode\u003eUsergroup\u003c/code\u003e, \u003ccode\u003eVariableLookupKey\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_inputs/destroy","name":"destroy","apis":[{"api_url":"/api/templates/:template_id/template_inputs/:id","http_method":"DELETE","short_description":"Delete a template input","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_inputs/update","name":"update","apis":[{"api_url":"/api/templates/:template_id/template_inputs/:id","http_method":"PUT","short_description":"Update a template input","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_input","full_name":"template_input","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"template_input[name]","description":"\n\u003cp\u003eInput name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"template_input[description]","description":"\n\u003cp\u003eInput description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"required","full_name":"template_input[required]","description":"\n\u003cp\u003eInput is required\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"advanced","full_name":"template_input[advanced]","description":"\n\u003cp\u003eInput is advanced\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"input_type","full_name":"template_input[input_type]","description":"\n\u003cp\u003eInput type\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003euser\u003c/code\u003e, \u003ccode\u003efact\u003c/code\u003e, \u003ccode\u003evariable\u003c/code\u003e, \u003ccode\u003epuppet_parameter\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fact_name","full_name":"template_input[fact_name]","description":"\n\u003cp\u003eFact name, used when input type is fact\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"variable_name","full_name":"template_input[variable_name]","description":"\n\u003cp\u003eVariable name, used when input type is variable\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppet_class_name","full_name":"template_input[puppet_class_name]","description":"\n\u003cp\u003ePuppet class name, used when input type is puppet_parameter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppet_parameter_name","full_name":"template_input[puppet_parameter_name]","description":"\n\u003cp\u003ePuppet parameter name, used when input type is puppet_parameter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"options","full_name":"template_input[options]","description":"\n\u003cp\u003eSelectable values for user inputs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"template_input[default]","description":"\n\u003cp\u003eDefault value for user input\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value_type","full_name":"template_input[value_type]","description":"\n\u003cp\u003eValue type, defaults to plain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eplain\u003c/code\u003e, \u003ccode\u003esearch\u003c/code\u003e, \u003ccode\u003edate\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resource_type","full_name":"template_input[resource_type]","description":"\n\u003cp\u003eFor values of type search, this is the resource the value searches in\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eArchitecture\u003c/code\u003e, \u003ccode\u003eAudit\u003c/code\u003e, \u003ccode\u003eAuthSource\u003c/code\u003e, \u003ccode\u003eBookmark\u003c/code\u003e, \u003ccode\u003eComputeProfile\u003c/code\u003e, \u003ccode\u003eComputeResource\u003c/code\u003e, \u003ccode\u003eConfigGroup\u003c/code\u003e, \u003ccode\u003eConfigReport\u003c/code\u003e, \u003ccode\u003eDomain\u003c/code\u003e, \u003ccode\u003eEnvironment\u003c/code\u003e, \u003ccode\u003eExternalUsergroup\u003c/code\u003e, \u003ccode\u003eFactValue\u003c/code\u003e, \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eForemanTasks::RecurringLogic\u003c/code\u003e, \u003ccode\u003eForemanTasks::Task\u003c/code\u003e, \u003ccode\u003eHost\u003c/code\u003e, \u003ccode\u003eHostClass\u003c/code\u003e, \u003ccode\u003eHostgroup\u003c/code\u003e, \u003ccode\u003eHttpProxy\u003c/code\u003e, \u003ccode\u003eImage\u003c/code\u003e, \u003ccode\u003eKatello::ActivationKey\u003c/code\u003e, \u003ccode\u003eKatello::ContentView\u003c/code\u003e, \u003ccode\u003eKatello::GpgKey\u003c/code\u003e, \u003ccode\u003eKatello::HostCollection\u003c/code\u003e, \u003ccode\u003eKatello::KTEnvironment\u003c/code\u003e, \u003ccode\u003eKatello::Product\u003c/code\u003e, \u003ccode\u003eKatello::Subscription\u003c/code\u003e, \u003ccode\u003eKatello::SyncPlan\u003c/code\u003e, \u003ccode\u003eKeyPair\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, \u003ccode\u003eMailNotification\u003c/code\u003e, \u003ccode\u003eMedium\u003c/code\u003e, \u003ccode\u003eModel\u003c/code\u003e, \u003ccode\u003eOperatingsystem\u003c/code\u003e, \u003ccode\u003eOrganization\u003c/code\u003e, \u003ccode\u003eParameter\u003c/code\u003e, \u003ccode\u003ePersonalAccessToken\u003c/code\u003e, \u003ccode\u003eProvisioningTemplate\u003c/code\u003e, \u003ccode\u003ePtable\u003c/code\u003e, \u003ccode\u003ePuppetclass\u003c/code\u003e, \u003ccode\u003ePuppetclassLookupKey\u003c/code\u003e, \u003ccode\u003eRealm\u003c/code\u003e, \u003ccode\u003eReport\u003c/code\u003e, \u003ccode\u003eReportTemplate\u003c/code\u003e, \u003ccode\u003eRole\u003c/code\u003e, \u003ccode\u003eSetting\u003c/code\u003e, \u003ccode\u003eSmartProxy\u003c/code\u003e, \u003ccode\u003eSshKey\u003c/code\u003e, \u003ccode\u003eSubnet\u003c/code\u003e, \u003ccode\u003eTrend\u003c/code\u003e, \u003ccode\u003eUser\u003c/code\u003e, \u003ccode\u003eUsergroup\u003c/code\u003e, \u003ccode\u003eVariableLookupKey\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"architectures":{"doc_url":"../apidoc/v2/architectures","id":"architectures","api_url":"/api","name":"Architectures","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/architectures/index","name":"index","apis":[{"api_url":"/api/architectures","http_method":"GET","short_description":"List all architectures","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/architectures","http_method":"GET","short_description":"List all architectures for operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/architectures/show","name":"show","apis":[{"api_url":"/api/architectures/:id","http_method":"GET","short_description":"Show an architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/architectures/create","name":"create","apis":[{"api_url":"/api/architectures","http_method":"POST","short_description":"Create an architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"architecture[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"architecture[operatingsystem_ids]","description":"\n\u003cp\u003eOperating system IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/architectures/update","name":"update","apis":[{"api_url":"/api/architectures/:id","http_method":"PUT","short_description":"Update an architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"architecture[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"architecture[operatingsystem_ids]","description":"\n\u003cp\u003eOperating system IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/architectures/destroy","name":"destroy","apis":[{"api_url":"/api/architectures/:id","http_method":"DELETE","short_description":"Delete an architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"template_kinds":{"doc_url":"../apidoc/v2/template_kinds","id":"template_kinds","api_url":"/api","name":"Template kinds","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/template_kinds/index","name":"index","apis":[{"api_url":"/api/template_kinds","http_method":"GET","short_description":"List all template kinds","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"audits":{"doc_url":"../apidoc/v2/audits","id":"audits","api_url":"/api","name":"Audits","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/audits/index","name":"index","apis":[{"api_url":"/api/audits","http_method":"GET","short_description":"List all audits","deprecated":null},{"api_url":"/api/hosts/:host_id/audits","http_method":"GET","short_description":"List all audits for a given host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"action","type":"string"},{"name":"auditable_id","type":"integer"},{"name":"changes","type":"text"},{"name":"comment","type":"string"},{"name":"host","type":"string"},{"name":"hostgroup","type":"string"},{"name":"hostgroup_title","type":"string"},{"name":"id","type":"integer"},{"name":"interface_fqdn","type":"string"},{"name":"interface_ip","type":"string"},{"name":"interface_mac","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"os","type":"string"},{"name":"os_title","type":"string"},{"name":"parameter","type":"string"},{"name":"partition_table","type":"string"},{"name":"provisioning_template","type":"string"},{"name":"puppetclass","type":"string"},{"name":"remote_address","type":"string"},{"name":"request_uuid","type":"string"},{"name":"setting","type":"string"},{"name":"time","type":"datetime"},{"name":"type","values":["role","ptable","provisioning_template","user","filter","architecture","bookmark","compute_profile","config_group","domain","environment","host_class","hostgroup","http_proxy","image","key_pair","medium","model","personal_access_token","report_template","puppetclass","realm","smart_proxy","ssh_key","subnet","usergroup","katello/repository","katello/host/content_facet","katello/host/subscription_facet","katello/activation_key","katello/content_view","katello/gpg_key","katello/host_collection","katello/kt_environment","katello/product","katello/sync_plan","lookup_value","hostgroup_class","auth_source","compute_resource","host","interface","location","organization","os","override_value","parameter","partition_table","setting","smart_class_parameter","smart_variable"]},{"name":"user","type":"string"},{"name":"username","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/audits/show","name":"show","apis":[{"api_url":"/api/audits/:id","http_method":"GET","short_description":"Show an audit","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"personal_access_tokens":{"doc_url":"../apidoc/v2/personal_access_tokens","id":"personal_access_tokens","api_url":"/api","name":"Personal access tokens","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/personal_access_tokens/index","name":"index","apis":[{"api_url":"/api/users/:user_id/personal_access_tokens","http_method":"GET","short_description":"List all Personal Access Tokens for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"user_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/personal_access_tokens/show","name":"show","apis":[{"api_url":"/api/users/:user_id/personal_access_tokens/:id","http_method":"GET","short_description":"Show a Personal Access Token for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/personal_access_tokens/create","name":"create","apis":[{"api_url":"/api/users/:user_id/personal_access_tokens","http_method":"POST","short_description":"Create a Personal Access Token for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"personal_access_token","full_name":"personal_access_token","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"personal_access_token[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"expires_at","full_name":"personal_access_token[expires_at]","description":"\n\u003cp\u003eExpiry Date\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"DateTime","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/personal_access_tokens/destroy","name":"destroy","apis":[{"api_url":"/api/users/:user_id/personal_access_tokens/:id","http_method":"DELETE","short_description":"Revoke a Personal Access Token for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"auth_source_externals":{"doc_url":"../apidoc/v2/auth_source_externals","id":"auth_source_externals","api_url":"/api","name":"Auth source externals","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/auth_source_externals/index","name":"index","apis":[{"api_url":"/api/auth_source_externals","http_method":"GET","short_description":"List external authentication sources","deprecated":null},{"api_url":"/api/locations/:location_id/auth_source_externals","http_method":"GET","short_description":"List external authentication sources per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/auth_source_externals","http_method":"GET","short_description":"List external authentication sources per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_externals/show","name":"show","apis":[{"api_url":"/api/auth_source_externals/:id","http_method":"GET","short_description":"Show an external authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_externals/update","name":"update","apis":[{"api_url":"/api/auth_source_externals/:id","http_method":"PUT","short_description":"Update an external authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auth_source_external","full_name":"auth_source_external","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"auth_source_external[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"auth_source_external[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"auth_source_external[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ping":{"doc_url":"../apidoc/v2/ping","id":"ping","api_url":"/api","name":"Ping","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ping/ping","name":"ping","apis":[{"api_url":"/api/ping","http_method":"GET","short_description":"Shows status of Foreman system and it's subcomponents","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThis service is available for unauthenticated users\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ping/statuses","name":"statuses","apis":[{"api_url":"/api/statuses","http_method":"GET","short_description":"Shows status and version information of Foreman system and it's subcomponents","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThis service is only available for authenticated users\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ping/index","name":"index","apis":[{"api_url":"/katello/api/ping","http_method":"GET","short_description":"Shows status of Katello system and it's subcomponents","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThis service is only available for authenticated users\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ping/server_status","name":"server_status","apis":[{"api_url":"/katello/api/status","http_method":"GET","short_description":"Shows version information","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThis service is available for unauthenticated users\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"auth_source_internals":{"doc_url":"../apidoc/v2/auth_source_internals","id":"auth_source_internals","api_url":"/api","name":"Auth source internals","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/auth_source_internals/index","name":"index","apis":[{"api_url":"/api/auth_source_internals","http_method":"GET","short_description":"List internal authentication sources","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_internals/show","name":"show","apis":[{"api_url":"/api/auth_source_internals/:id","http_method":"GET","short_description":"Show an internal authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"plugins":{"doc_url":"../apidoc/v2/plugins","id":"plugins","api_url":"/api","name":"Plugins","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/plugins/index","name":"index","apis":[{"api_url":"/api/plugins","http_method":"GET","short_description":"List installed plugins","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"auth_source_ldaps":{"doc_url":"../apidoc/v2/auth_source_ldaps","id":"auth_source_ldaps","api_url":"/api","name":"Auth source ldaps","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/auth_source_ldaps/index","name":"index","apis":[{"api_url":"/api/auth_source_ldaps","http_method":"GET","short_description":"List all LDAP authentication sources","deprecated":null},{"api_url":"/api/locations/:location_id/auth_source_ldaps","http_method":"GET","short_description":"List LDAP authentication sources per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/auth_source_ldaps","http_method":"GET","short_description":"List LDAP authentication sources per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/show","name":"show","apis":[{"api_url":"/api/auth_source_ldaps/:id","http_method":"GET","short_description":"Show an LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/create","name":"create","apis":[{"api_url":"/api/auth_source_ldaps","http_method":"POST","short_description":"Create an LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"auth_source_ldap","full_name":"auth_source_ldap","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"auth_source_ldap[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"auth_source_ldap[host]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"port","full_name":"auth_source_ldap[port]","description":"\n\u003cp\u003edefaults to 389\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"account","full_name":"auth_source_ldap[account]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"base_dn","full_name":"auth_source_ldap[base_dn]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"account_password","full_name":"auth_source_ldap[account_password]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_login","full_name":"auth_source_ldap[attr_login]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_firstname","full_name":"auth_source_ldap[attr_firstname]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_lastname","full_name":"auth_source_ldap[attr_lastname]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_mail","full_name":"auth_source_ldap[attr_mail]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_photo","full_name":"auth_source_ldap[attr_photo]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"onthefly_register","full_name":"auth_source_ldap[onthefly_register]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"usergroup_sync","full_name":"auth_source_ldap[usergroup_sync]","description":"\n\u003cp\u003esync external user groups on login\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tls","full_name":"auth_source_ldap[tls]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"groups_base","full_name":"auth_source_ldap[groups_base]","description":"\n\u003cp\u003egroups base DN\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"use_netgroups","full_name":"auth_source_ldap[use_netgroups]","description":"\n\u003cp\u003euse NIS netgroups instead of posix groups, applicable only when server_type\nis posix or free_ipa\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"server_type","full_name":"auth_source_ldap[server_type]","description":"\n\u003cp\u003etype of the LDAP server\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003efree_ipa\u003c/code\u003e, \u003ccode\u003eactive_directory\u003c/code\u003e, \u003ccode\u003eposix\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ldap_filter","full_name":"auth_source_ldap[ldap_filter]","description":"\n\u003cp\u003eLDAP filter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"auth_source_ldap[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"auth_source_ldap[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/update","name":"update","apis":[{"api_url":"/api/auth_source_ldaps/:id","http_method":"PUT","short_description":"Update an LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auth_source_ldap","full_name":"auth_source_ldap","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"auth_source_ldap[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"auth_source_ldap[host]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"port","full_name":"auth_source_ldap[port]","description":"\n\u003cp\u003edefaults to 389\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"account","full_name":"auth_source_ldap[account]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"base_dn","full_name":"auth_source_ldap[base_dn]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"account_password","full_name":"auth_source_ldap[account_password]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_login","full_name":"auth_source_ldap[attr_login]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_firstname","full_name":"auth_source_ldap[attr_firstname]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_lastname","full_name":"auth_source_ldap[attr_lastname]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_mail","full_name":"auth_source_ldap[attr_mail]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_photo","full_name":"auth_source_ldap[attr_photo]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"onthefly_register","full_name":"auth_source_ldap[onthefly_register]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"usergroup_sync","full_name":"auth_source_ldap[usergroup_sync]","description":"\n\u003cp\u003esync external user groups on login\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tls","full_name":"auth_source_ldap[tls]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"groups_base","full_name":"auth_source_ldap[groups_base]","description":"\n\u003cp\u003egroups base DN\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"use_netgroups","full_name":"auth_source_ldap[use_netgroups]","description":"\n\u003cp\u003euse NIS netgroups instead of posix groups, applicable only when server_type\nis posix or free_ipa\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"server_type","full_name":"auth_source_ldap[server_type]","description":"\n\u003cp\u003etype of the LDAP server\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003efree_ipa\u003c/code\u003e, \u003ccode\u003eactive_directory\u003c/code\u003e, \u003ccode\u003eposix\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ldap_filter","full_name":"auth_source_ldap[ldap_filter]","description":"\n\u003cp\u003eLDAP filter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"auth_source_ldap[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"auth_source_ldap[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/test","name":"test","apis":[{"api_url":"/api/auth_source_ldaps/:id/test","http_method":"PUT","short_description":"Test LDAP connection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/destroy","name":"destroy","apis":[{"api_url":"/api/auth_source_ldaps/:id","http_method":"DELETE","short_description":"Delete an LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"trends":{"doc_url":"../apidoc/v2/trends","id":"trends","api_url":"/api","name":"Trends","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/trends/index","name":"index","apis":[{"api_url":"/api/trends","http_method":"GET","short_description":"List of trends counters","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/trends/show","name":"show","apis":[{"api_url":"/api/trends/:id","http_method":"GET","short_description":"Show a trend","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/trends/create","name":"create","apis":[{"api_url":"/api/trends","http_method":"POST","short_description":"Create a trend counter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"trendable_type","full_name":"trendable_type","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eEnvironment\u003c/code\u003e, \u003ccode\u003eOperatingsystem\u003c/code\u003e, \u003ccode\u003eModel\u003c/code\u003e, \u003ccode\u003eFactName\u003c/code\u003e, \u003ccode\u003eHostgroup\u003c/code\u003e, \u003ccode\u003eComputeResource\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fact_name","full_name":"fact_name","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/trends/destroy","name":"destroy","apis":[{"api_url":"/api/trends/:id","http_method":"DELETE","short_description":"Delete a trend counter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"auth_sources":{"doc_url":"../apidoc/v2/auth_sources","id":"auth_sources","api_url":"/api","name":"Auth sources","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/auth_sources/index","name":"index","apis":[{"api_url":"/api/auth_sources","http_method":"GET","short_description":"List all authentication sources","deprecated":null},{"api_url":"/api/locations/:location_id/auth_sources","http_method":"GET","short_description":"List all authentication sources per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/auth_sources","http_method":"GET","short_description":"List all authentication sources per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"usergroups":{"doc_url":"../apidoc/v2/usergroups","id":"usergroups","api_url":"/api","name":"Usergroups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/usergroups/index","name":"index","apis":[{"api_url":"/api/usergroups","http_method":"GET","short_description":"List all user groups","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"role","type":"string"},{"name":"role_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/usergroups/show","name":"show","apis":[{"api_url":"/api/usergroups/:id","http_method":"GET","short_description":"Show a user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/usergroups/create","name":"create","apis":[{"api_url":"/api/usergroups","http_method":"POST","short_description":"Create a user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup","full_name":"usergroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"usergroup[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"admin","full_name":"usergroup[admin]","description":"\n\u003cp\u003eis an admin user group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"usergroup[user_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"usergroup_ids","full_name":"usergroup[usergroup_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"role_ids","full_name":"usergroup[role_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/usergroups/update","name":"update","apis":[{"api_url":"/api/usergroups/:id","http_method":"PUT","short_description":"Update a user group","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eUser groups linked to external groups (LDAP) are automatically synced with\nthese groups on update. Remember this synchronization will remove any LDAP\nusers manually added to the Foreman user group. Only LDAP users in the\nexternal groups will remain. Internal users can be added or removed freely.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"usergroup","full_name":"usergroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"usergroup[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"admin","full_name":"usergroup[admin]","description":"\n\u003cp\u003eis an admin user group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"usergroup[user_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"usergroup_ids","full_name":"usergroup[usergroup_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"role_ids","full_name":"usergroup[role_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/usergroups/destroy","name":"destroy","apis":[{"api_url":"/api/usergroups/:id","http_method":"DELETE","short_description":"Delete a user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"autosign":{"doc_url":"../apidoc/v2/autosign","id":"autosign","api_url":"/api","name":"Autosign","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/autosign/index","name":"index","apis":[{"api_url":"/api/smart_proxies/:smart_proxy_id/autosign","http_method":"GET","short_description":"List all autosign entries","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/autosign/create","name":"create","apis":[{"api_url":"/api/smart_proxies/:smart_proxy_id/autosign","http_method":"POST","short_description":"Create autosign entry","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eAutosign entry name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/autosign/destroy","name":"destroy","apis":[{"api_url":"/api/smart_proxies/:smart_proxy_id/autosign/:id","http_method":"DELETE","short_description":"Delete autosign entry","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eAutosign entry name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"users":{"doc_url":"../apidoc/v2/users","id":"users","api_url":"/api","name":"Users","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/users/index","name":"index","apis":[{"api_url":"/api/users","http_method":"GET","short_description":"List all users","deprecated":null},{"api_url":"/api/auth_source_ldaps/:auth_source_ldap_id/users","http_method":"GET","short_description":"List all users for LDAP authentication source","deprecated":null},{"api_url":"/api/auth_source_externals/:auth_source_external_id/users","http_method":"GET","short_description":"List all users for external authentication source","deprecated":null},{"api_url":"/api/usergroups/:usergroup_id/users","http_method":"GET","short_description":"List all users for user group","deprecated":null},{"api_url":"/api/roles/:role_id/users","http_method":"GET","short_description":"List all users for role","deprecated":null},{"api_url":"/api/locations/:location_id/users","http_method":"GET","short_description":"List all users for location","deprecated":null},{"api_url":"/api/organizations/:organization_id/users","http_method":"GET","short_description":"List all users for organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"auth_source_ldap_id","full_name":"auth_source_ldap_id","description":"\n\u003cp\u003eID of LDAP authentication source\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID of user group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role_id","full_name":"role_id","description":"\n\u003cp\u003eID of role\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"admin","values":["true","false"]},{"name":"auth_source","type":"string"},{"name":"auth_source_type","type":"string"},{"name":"description","type":"text"},{"name":"firstname","type":"string"},{"name":"last_login_on","type":"datetime"},{"name":"lastname","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"login","type":"string"},{"name":"mail","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"role","type":"string"},{"name":"role_id","type":"integer"},{"name":"usergroup","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/show","name":"show","apis":[{"api_url":"/api/users/:id","http_method":"GET","short_description":"Show a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/show_current","name":"show_current","apis":[{"api_url":"/api/current_user","http_method":"GET","short_description":"Show the currently logged-in user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/create","name":"create","apis":[{"api_url":"/api/users","http_method":"POST","short_description":"Create a user","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eAdds role \u0026#39;Default role\u0026#39; to the user by default\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"user","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"login","full_name":"user[login]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"firstname","full_name":"user[firstname]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lastname","full_name":"user[lastname]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mail","full_name":"user[mail]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"user[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"admin","full_name":"user[admin]","description":"\n\u003cp\u003eis an admin account\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"user[password]","description":"\n\u003cp\u003eRequired unless user is in an external authentication source\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"default_location_id","full_name":"user[default_location_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"default_organization_id","full_name":"user[default_organization_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"auth_source_id","full_name":"user[auth_source_id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"timezone","full_name":"user[timezone]","description":"\n\u003cp\u003eUser\u0026#39;s timezone\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eInternational Date Line West\u003c/code\u003e, \u003ccode\u003eAmerican Samoa\u003c/code\u003e, \u003ccode\u003eMidway Island\u003c/code\u003e, \u003ccode\u003eHawaii\u003c/code\u003e, \u003ccode\u003eAlaska\u003c/code\u003e, \u003ccode\u003ePacific Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eTijuana\u003c/code\u003e, \u003ccode\u003eArizona\u003c/code\u003e, \u003ccode\u003eChihuahua\u003c/code\u003e, \u003ccode\u003eMazatlan\u003c/code\u003e, \u003ccode\u003eMountain Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eCentral America\u003c/code\u003e, \u003ccode\u003eCentral Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eGuadalajara\u003c/code\u003e, \u003ccode\u003eMexico City\u003c/code\u003e, \u003ccode\u003eMonterrey\u003c/code\u003e, \u003ccode\u003eSaskatchewan\u003c/code\u003e, \u003ccode\u003eBogota\u003c/code\u003e, \u003ccode\u003eEastern Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eIndiana (East)\u003c/code\u003e, \u003ccode\u003eLima\u003c/code\u003e, \u003ccode\u003eQuito\u003c/code\u003e, \u003ccode\u003eAtlantic Time (Canada)\u003c/code\u003e, \u003ccode\u003eCaracas\u003c/code\u003e, \u003ccode\u003eGeorgetown\u003c/code\u003e, \u003ccode\u003eLa Paz\u003c/code\u003e, \u003ccode\u003ePuerto Rico\u003c/code\u003e, \u003ccode\u003eSantiago\u003c/code\u003e, \u003ccode\u003eNewfoundland\u003c/code\u003e, \u003ccode\u003eBrasilia\u003c/code\u003e, \u003ccode\u003eBuenos Aires\u003c/code\u003e, \u003ccode\u003eGreenland\u003c/code\u003e, \u003ccode\u003eMontevideo\u003c/code\u003e, \u003ccode\u003eMid-Atlantic\u003c/code\u003e, \u003ccode\u003eAzores\u003c/code\u003e, \u003ccode\u003eCape Verde Is.\u003c/code\u003e, \u003ccode\u003eCasablanca\u003c/code\u003e, \u003ccode\u003eDublin\u003c/code\u003e, \u003ccode\u003eEdinburgh\u003c/code\u003e, \u003ccode\u003eLisbon\u003c/code\u003e, \u003ccode\u003eLondon\u003c/code\u003e, \u003ccode\u003eMonrovia\u003c/code\u003e, \u003ccode\u003eUTC\u003c/code\u003e, \u003ccode\u003eAmsterdam\u003c/code\u003e, \u003ccode\u003eBelgrade\u003c/code\u003e, \u003ccode\u003eBerlin\u003c/code\u003e, \u003ccode\u003eBern\u003c/code\u003e, \u003ccode\u003eBratislava\u003c/code\u003e, \u003ccode\u003eBrussels\u003c/code\u003e, \u003ccode\u003eBudapest\u003c/code\u003e, \u003ccode\u003eCopenhagen\u003c/code\u003e, \u003ccode\u003eLjubljana\u003c/code\u003e, \u003ccode\u003eMadrid\u003c/code\u003e, \u003ccode\u003eParis\u003c/code\u003e, \u003ccode\u003ePrague\u003c/code\u003e, \u003ccode\u003eRome\u003c/code\u003e, \u003ccode\u003eSarajevo\u003c/code\u003e, \u003ccode\u003eSkopje\u003c/code\u003e, \u003ccode\u003eStockholm\u003c/code\u003e, \u003ccode\u003eVienna\u003c/code\u003e, \u003ccode\u003eWarsaw\u003c/code\u003e, \u003ccode\u003eWest Central Africa\u003c/code\u003e, \u003ccode\u003eZagreb\u003c/code\u003e, \u003ccode\u003eZurich\u003c/code\u003e, \u003ccode\u003eAthens\u003c/code\u003e, \u003ccode\u003eBucharest\u003c/code\u003e, \u003ccode\u003eCairo\u003c/code\u003e, \u003ccode\u003eHarare\u003c/code\u003e, \u003ccode\u003eHelsinki\u003c/code\u003e, \u003ccode\u003eJerusalem\u003c/code\u003e, \u003ccode\u003eKaliningrad\u003c/code\u003e, \u003ccode\u003eKyiv\u003c/code\u003e, \u003ccode\u003ePretoria\u003c/code\u003e, \u003ccode\u003eRiga\u003c/code\u003e, \u003ccode\u003eSofia\u003c/code\u003e, \u003ccode\u003eTallinn\u003c/code\u003e, \u003ccode\u003eVilnius\u003c/code\u003e, \u003ccode\u003eBaghdad\u003c/code\u003e, \u003ccode\u003eIstanbul\u003c/code\u003e, \u003ccode\u003eKuwait\u003c/code\u003e, \u003ccode\u003eMinsk\u003c/code\u003e, \u003ccode\u003eMoscow\u003c/code\u003e, \u003ccode\u003eNairobi\u003c/code\u003e, \u003ccode\u003eRiyadh\u003c/code\u003e, \u003ccode\u003eSt. Petersburg\u003c/code\u003e, \u003ccode\u003eTehran\u003c/code\u003e, \u003ccode\u003eAbu Dhabi\u003c/code\u003e, \u003ccode\u003eBaku\u003c/code\u003e, \u003ccode\u003eMuscat\u003c/code\u003e, \u003ccode\u003eSamara\u003c/code\u003e, \u003ccode\u003eTbilisi\u003c/code\u003e, \u003ccode\u003eVolgograd\u003c/code\u003e, \u003ccode\u003eYerevan\u003c/code\u003e, \u003ccode\u003eKabul\u003c/code\u003e, \u003ccode\u003eEkaterinburg\u003c/code\u003e, \u003ccode\u003eIslamabad\u003c/code\u003e, \u003ccode\u003eKarachi\u003c/code\u003e, \u003ccode\u003eTashkent\u003c/code\u003e, \u003ccode\u003eChennai\u003c/code\u003e, \u003ccode\u003eKolkata\u003c/code\u003e, \u003ccode\u003eMumbai\u003c/code\u003e, \u003ccode\u003eNew Delhi\u003c/code\u003e, \u003ccode\u003eSri Jayawardenepura\u003c/code\u003e, \u003ccode\u003eKathmandu\u003c/code\u003e, \u003ccode\u003eAlmaty\u003c/code\u003e, \u003ccode\u003eAstana\u003c/code\u003e, \u003ccode\u003eDhaka\u003c/code\u003e, \u003ccode\u003eUrumqi\u003c/code\u003e, \u003ccode\u003eRangoon\u003c/code\u003e, \u003ccode\u003eBangkok\u003c/code\u003e, \u003ccode\u003eHanoi\u003c/code\u003e, \u003ccode\u003eJakarta\u003c/code\u003e, \u003ccode\u003eKrasnoyarsk\u003c/code\u003e, \u003ccode\u003eNovosibirsk\u003c/code\u003e, \u003ccode\u003eBeijing\u003c/code\u003e, \u003ccode\u003eChongqing\u003c/code\u003e, \u003ccode\u003eHong Kong\u003c/code\u003e, \u003ccode\u003eIrkutsk\u003c/code\u003e, \u003ccode\u003eKuala Lumpur\u003c/code\u003e, \u003ccode\u003ePerth\u003c/code\u003e, \u003ccode\u003eSingapore\u003c/code\u003e, \u003ccode\u003eTaipei\u003c/code\u003e, \u003ccode\u003eUlaanbaatar\u003c/code\u003e, \u003ccode\u003eOsaka\u003c/code\u003e, \u003ccode\u003eSapporo\u003c/code\u003e, \u003ccode\u003eSeoul\u003c/code\u003e, \u003ccode\u003eTokyo\u003c/code\u003e, \u003ccode\u003eYakutsk\u003c/code\u003e, \u003ccode\u003eAdelaide\u003c/code\u003e, \u003ccode\u003eDarwin\u003c/code\u003e, \u003ccode\u003eBrisbane\u003c/code\u003e, \u003ccode\u003eCanberra\u003c/code\u003e, \u003ccode\u003eGuam\u003c/code\u003e, \u003ccode\u003eHobart\u003c/code\u003e, \u003ccode\u003eMelbourne\u003c/code\u003e, \u003ccode\u003ePort Moresby\u003c/code\u003e, \u003ccode\u003eSydney\u003c/code\u003e, \u003ccode\u003eVladivostok\u003c/code\u003e, \u003ccode\u003eMagadan\u003c/code\u003e, \u003ccode\u003eNew Caledonia\u003c/code\u003e, \u003ccode\u003eSolomon Is.\u003c/code\u003e, \u003ccode\u003eSrednekolymsk\u003c/code\u003e, \u003ccode\u003eAuckland\u003c/code\u003e, \u003ccode\u003eFiji\u003c/code\u003e, \u003ccode\u003eKamchatka\u003c/code\u003e, \u003ccode\u003eMarshall Is.\u003c/code\u003e, \u003ccode\u003eWellington\u003c/code\u003e, \u003ccode\u003eChatham Is.\u003c/code\u003e, \u003ccode\u003eNuku\u0026#39;alofa\u003c/code\u003e, \u003ccode\u003eSamoa\u003c/code\u003e, \u003ccode\u003eTokelau Is.\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locale","full_name":"user[locale]","description":"\n\u003cp\u003eUser\u0026#39;s preferred locale\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eca\u003c/code\u003e, \u003ccode\u003ecs_CZ\u003c/code\u003e, \u003ccode\u003ede\u003c/code\u003e, \u003ccode\u003een\u003c/code\u003e, \u003ccode\u003een_GB\u003c/code\u003e, \u003ccode\u003ees\u003c/code\u003e, \u003ccode\u003efr\u003c/code\u003e, \u003ccode\u003egl\u003c/code\u003e, \u003ccode\u003eit\u003c/code\u003e, \u003ccode\u003eja\u003c/code\u003e, \u003ccode\u003eko\u003c/code\u003e, \u003ccode\u003enl_NL\u003c/code\u003e, \u003ccode\u003epl\u003c/code\u003e, \u003ccode\u003ept_BR\u003c/code\u003e, \u003ccode\u003eru\u003c/code\u003e, \u003ccode\u003esv_SE\u003c/code\u003e, \u003ccode\u003ezh_CN\u003c/code\u003e, \u003ccode\u003ezh_TW\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role_ids","full_name":"user[role_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"user[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"user[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/update","name":"update","apis":[{"api_url":"/api/users/:id","http_method":"PUT","short_description":"Update a user","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eAdds role \u0026#39;Default role\u0026#39; to the user if it is not already present.\nOnly another admin can change the admin account attribute.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"user","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"login","full_name":"user[login]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"firstname","full_name":"user[firstname]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lastname","full_name":"user[lastname]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mail","full_name":"user[mail]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"user[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"admin","full_name":"user[admin]","description":"\n\u003cp\u003eis an admin account\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"user[password]","description":"\n\u003cp\u003eRequired unless user is in an external authentication source\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"default_location_id","full_name":"user[default_location_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"default_organization_id","full_name":"user[default_organization_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"auth_source_id","full_name":"user[auth_source_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"timezone","full_name":"user[timezone]","description":"\n\u003cp\u003eUser\u0026#39;s timezone\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eInternational Date Line West\u003c/code\u003e, \u003ccode\u003eAmerican Samoa\u003c/code\u003e, \u003ccode\u003eMidway Island\u003c/code\u003e, \u003ccode\u003eHawaii\u003c/code\u003e, \u003ccode\u003eAlaska\u003c/code\u003e, \u003ccode\u003ePacific Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eTijuana\u003c/code\u003e, \u003ccode\u003eArizona\u003c/code\u003e, \u003ccode\u003eChihuahua\u003c/code\u003e, \u003ccode\u003eMazatlan\u003c/code\u003e, \u003ccode\u003eMountain Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eCentral America\u003c/code\u003e, \u003ccode\u003eCentral Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eGuadalajara\u003c/code\u003e, \u003ccode\u003eMexico City\u003c/code\u003e, \u003ccode\u003eMonterrey\u003c/code\u003e, \u003ccode\u003eSaskatchewan\u003c/code\u003e, \u003ccode\u003eBogota\u003c/code\u003e, \u003ccode\u003eEastern Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eIndiana (East)\u003c/code\u003e, \u003ccode\u003eLima\u003c/code\u003e, \u003ccode\u003eQuito\u003c/code\u003e, \u003ccode\u003eAtlantic Time (Canada)\u003c/code\u003e, \u003ccode\u003eCaracas\u003c/code\u003e, \u003ccode\u003eGeorgetown\u003c/code\u003e, \u003ccode\u003eLa Paz\u003c/code\u003e, \u003ccode\u003ePuerto Rico\u003c/code\u003e, \u003ccode\u003eSantiago\u003c/code\u003e, \u003ccode\u003eNewfoundland\u003c/code\u003e, \u003ccode\u003eBrasilia\u003c/code\u003e, \u003ccode\u003eBuenos Aires\u003c/code\u003e, \u003ccode\u003eGreenland\u003c/code\u003e, \u003ccode\u003eMontevideo\u003c/code\u003e, \u003ccode\u003eMid-Atlantic\u003c/code\u003e, \u003ccode\u003eAzores\u003c/code\u003e, \u003ccode\u003eCape Verde Is.\u003c/code\u003e, \u003ccode\u003eCasablanca\u003c/code\u003e, \u003ccode\u003eDublin\u003c/code\u003e, \u003ccode\u003eEdinburgh\u003c/code\u003e, \u003ccode\u003eLisbon\u003c/code\u003e, \u003ccode\u003eLondon\u003c/code\u003e, \u003ccode\u003eMonrovia\u003c/code\u003e, \u003ccode\u003eUTC\u003c/code\u003e, \u003ccode\u003eAmsterdam\u003c/code\u003e, \u003ccode\u003eBelgrade\u003c/code\u003e, \u003ccode\u003eBerlin\u003c/code\u003e, \u003ccode\u003eBern\u003c/code\u003e, \u003ccode\u003eBratislava\u003c/code\u003e, \u003ccode\u003eBrussels\u003c/code\u003e, \u003ccode\u003eBudapest\u003c/code\u003e, \u003ccode\u003eCopenhagen\u003c/code\u003e, \u003ccode\u003eLjubljana\u003c/code\u003e, \u003ccode\u003eMadrid\u003c/code\u003e, \u003ccode\u003eParis\u003c/code\u003e, \u003ccode\u003ePrague\u003c/code\u003e, \u003ccode\u003eRome\u003c/code\u003e, \u003ccode\u003eSarajevo\u003c/code\u003e, \u003ccode\u003eSkopje\u003c/code\u003e, \u003ccode\u003eStockholm\u003c/code\u003e, \u003ccode\u003eVienna\u003c/code\u003e, \u003ccode\u003eWarsaw\u003c/code\u003e, \u003ccode\u003eWest Central Africa\u003c/code\u003e, \u003ccode\u003eZagreb\u003c/code\u003e, \u003ccode\u003eZurich\u003c/code\u003e, \u003ccode\u003eAthens\u003c/code\u003e, \u003ccode\u003eBucharest\u003c/code\u003e, \u003ccode\u003eCairo\u003c/code\u003e, \u003ccode\u003eHarare\u003c/code\u003e, \u003ccode\u003eHelsinki\u003c/code\u003e, \u003ccode\u003eJerusalem\u003c/code\u003e, \u003ccode\u003eKaliningrad\u003c/code\u003e, \u003ccode\u003eKyiv\u003c/code\u003e, \u003ccode\u003ePretoria\u003c/code\u003e, \u003ccode\u003eRiga\u003c/code\u003e, \u003ccode\u003eSofia\u003c/code\u003e, \u003ccode\u003eTallinn\u003c/code\u003e, \u003ccode\u003eVilnius\u003c/code\u003e, \u003ccode\u003eBaghdad\u003c/code\u003e, \u003ccode\u003eIstanbul\u003c/code\u003e, \u003ccode\u003eKuwait\u003c/code\u003e, \u003ccode\u003eMinsk\u003c/code\u003e, \u003ccode\u003eMoscow\u003c/code\u003e, \u003ccode\u003eNairobi\u003c/code\u003e, \u003ccode\u003eRiyadh\u003c/code\u003e, \u003ccode\u003eSt. Petersburg\u003c/code\u003e, \u003ccode\u003eTehran\u003c/code\u003e, \u003ccode\u003eAbu Dhabi\u003c/code\u003e, \u003ccode\u003eBaku\u003c/code\u003e, \u003ccode\u003eMuscat\u003c/code\u003e, \u003ccode\u003eSamara\u003c/code\u003e, \u003ccode\u003eTbilisi\u003c/code\u003e, \u003ccode\u003eVolgograd\u003c/code\u003e, \u003ccode\u003eYerevan\u003c/code\u003e, \u003ccode\u003eKabul\u003c/code\u003e, \u003ccode\u003eEkaterinburg\u003c/code\u003e, \u003ccode\u003eIslamabad\u003c/code\u003e, \u003ccode\u003eKarachi\u003c/code\u003e, \u003ccode\u003eTashkent\u003c/code\u003e, \u003ccode\u003eChennai\u003c/code\u003e, \u003ccode\u003eKolkata\u003c/code\u003e, \u003ccode\u003eMumbai\u003c/code\u003e, \u003ccode\u003eNew Delhi\u003c/code\u003e, \u003ccode\u003eSri Jayawardenepura\u003c/code\u003e, \u003ccode\u003eKathmandu\u003c/code\u003e, \u003ccode\u003eAlmaty\u003c/code\u003e, \u003ccode\u003eAstana\u003c/code\u003e, \u003ccode\u003eDhaka\u003c/code\u003e, \u003ccode\u003eUrumqi\u003c/code\u003e, \u003ccode\u003eRangoon\u003c/code\u003e, \u003ccode\u003eBangkok\u003c/code\u003e, \u003ccode\u003eHanoi\u003c/code\u003e, \u003ccode\u003eJakarta\u003c/code\u003e, \u003ccode\u003eKrasnoyarsk\u003c/code\u003e, \u003ccode\u003eNovosibirsk\u003c/code\u003e, \u003ccode\u003eBeijing\u003c/code\u003e, \u003ccode\u003eChongqing\u003c/code\u003e, \u003ccode\u003eHong Kong\u003c/code\u003e, \u003ccode\u003eIrkutsk\u003c/code\u003e, \u003ccode\u003eKuala Lumpur\u003c/code\u003e, \u003ccode\u003ePerth\u003c/code\u003e, \u003ccode\u003eSingapore\u003c/code\u003e, \u003ccode\u003eTaipei\u003c/code\u003e, \u003ccode\u003eUlaanbaatar\u003c/code\u003e, \u003ccode\u003eOsaka\u003c/code\u003e, \u003ccode\u003eSapporo\u003c/code\u003e, \u003ccode\u003eSeoul\u003c/code\u003e, \u003ccode\u003eTokyo\u003c/code\u003e, \u003ccode\u003eYakutsk\u003c/code\u003e, \u003ccode\u003eAdelaide\u003c/code\u003e, \u003ccode\u003eDarwin\u003c/code\u003e, \u003ccode\u003eBrisbane\u003c/code\u003e, \u003ccode\u003eCanberra\u003c/code\u003e, \u003ccode\u003eGuam\u003c/code\u003e, \u003ccode\u003eHobart\u003c/code\u003e, \u003ccode\u003eMelbourne\u003c/code\u003e, \u003ccode\u003ePort Moresby\u003c/code\u003e, \u003ccode\u003eSydney\u003c/code\u003e, \u003ccode\u003eVladivostok\u003c/code\u003e, \u003ccode\u003eMagadan\u003c/code\u003e, \u003ccode\u003eNew Caledonia\u003c/code\u003e, \u003ccode\u003eSolomon Is.\u003c/code\u003e, \u003ccode\u003eSrednekolymsk\u003c/code\u003e, \u003ccode\u003eAuckland\u003c/code\u003e, \u003ccode\u003eFiji\u003c/code\u003e, \u003ccode\u003eKamchatka\u003c/code\u003e, \u003ccode\u003eMarshall Is.\u003c/code\u003e, \u003ccode\u003eWellington\u003c/code\u003e, \u003ccode\u003eChatham Is.\u003c/code\u003e, \u003ccode\u003eNuku\u0026#39;alofa\u003c/code\u003e, \u003ccode\u003eSamoa\u003c/code\u003e, \u003ccode\u003eTokelau Is.\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locale","full_name":"user[locale]","description":"\n\u003cp\u003eUser\u0026#39;s preferred locale\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eca\u003c/code\u003e, \u003ccode\u003ecs_CZ\u003c/code\u003e, \u003ccode\u003ede\u003c/code\u003e, \u003ccode\u003een\u003c/code\u003e, \u003ccode\u003een_GB\u003c/code\u003e, \u003ccode\u003ees\u003c/code\u003e, \u003ccode\u003efr\u003c/code\u003e, \u003ccode\u003egl\u003c/code\u003e, \u003ccode\u003eit\u003c/code\u003e, \u003ccode\u003eja\u003c/code\u003e, \u003ccode\u003eko\u003c/code\u003e, \u003ccode\u003enl_NL\u003c/code\u003e, \u003ccode\u003epl\u003c/code\u003e, \u003ccode\u003ept_BR\u003c/code\u003e, \u003ccode\u003eru\u003c/code\u003e, \u003ccode\u003esv_SE\u003c/code\u003e, \u003ccode\u003ezh_CN\u003c/code\u003e, \u003ccode\u003ezh_TW\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role_ids","full_name":"user[role_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"user[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"user[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"current_password","full_name":"user[current_password]","description":"\n\u003cp\u003eRequired when user want to change own password\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/destroy","name":"destroy","apis":[{"api_url":"/api/users/:id","http_method":"DELETE","short_description":"Delete a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"bookmarks":{"doc_url":"../apidoc/v2/bookmarks","id":"bookmarks","api_url":"/api","name":"Bookmarks","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/bookmarks/index","name":"index","apis":[{"api_url":"/api/bookmarks","http_method":"GET","short_description":"List all bookmarks","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"controller","type":"string"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/bookmarks/show","name":"show","apis":[{"api_url":"/api/bookmarks/:id","http_method":"GET","short_description":"Show a bookmark","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/bookmarks/create","name":"create","apis":[{"api_url":"/api/bookmarks","http_method":"POST","short_description":"Create a bookmark","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"bookmark","full_name":"bookmark","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"bookmark[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"controller","full_name":"bookmark[controller]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"query","full_name":"bookmark[query]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"public","full_name":"bookmark[public]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/bookmarks/update","name":"update","apis":[{"api_url":"/api/bookmarks/:id","http_method":"PUT","short_description":"Update a bookmark","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"bookmark","full_name":"bookmark","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"bookmark[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"controller","full_name":"bookmark[controller]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"query","full_name":"bookmark[query]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"public","full_name":"bookmark[public]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/bookmarks/destroy","name":"destroy","apis":[{"api_url":"/api/bookmarks/:id","http_method":"DELETE","short_description":"Delete a bookmark","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"provisioning_templates":{"doc_url":"../apidoc/v2/provisioning_templates","id":"provisioning_templates","api_url":"/api","name":"Provisioning templates","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/provisioning_templates/index","name":"index","apis":[{"api_url":"/api/provisioning_templates","http_method":"GET","short_description":"List provisioning templates","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/provisioning_templates","http_method":"GET","short_description":"List provisioning templates per operating system","deprecated":null},{"api_url":"/api/locations/:location_id/provisioning_templates","http_method":"GET","short_description":"List provisioning templates per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/provisioning_templates","http_method":"GET","short_description":"List provisioning templates per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"default_template","values":["true","false"]},{"name":"environment","type":"string"},{"name":"hostgroup","type":"string"},{"name":"kind","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"locked","values":["true","false"]},{"name":"name","type":"string"},{"name":"operatingsystem","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"snippet","values":["true","false"]},{"name":"template","type":"text"},{"name":"vendor","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/show","name":"show","apis":[{"api_url":"/api/provisioning_templates/:id","http_method":"GET","short_description":"Show provisioning template details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/create","name":"create","apis":[{"api_url":"/api/provisioning_templates","http_method":"POST","short_description":"Create a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template","full_name":"provisioning_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"provisioning_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"provisioning_template[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"provisioning_template[template]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"provisioning_template[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"provisioning_template[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_kind_id","full_name":"provisioning_template[template_kind_id]","description":"\n\u003cp\u003enot relevant for snippet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_combinations_attributes","full_name":"provisioning_template[template_combinations_attributes]","description":"\n\u003cp\u003eArray of template combinations (hostgroup_id, environment_id)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"provisioning_template[operatingsystem_ids]","description":"\n\u003cp\u003eArray of operating system IDs to associate with the template\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"provisioning_template[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"provisioning_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"provisioning_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/import","name":"import","apis":[{"api_url":"/api/provisioning_templates/import","http_method":"POST","short_description":"Import a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template","full_name":"provisioning_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"provisioning_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"provisioning_template[template]","description":"\n\u003cp\u003etemplate contents including metadata\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"provisioning_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"provisioning_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"options","full_name":"options","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"force","full_name":"options[force]","description":"\n\u003cp\u003euse if you want update locked templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"associate","full_name":"options[associate]","description":"\n\u003cp\u003edetermines when the template should associate objects based on metadata,\nnew means only when new template is being created, always means both for\nnew and existing template which is only being updated, never ignores\nmetadata\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003enew\u003c/code\u003e, \u003ccode\u003ealways\u003c/code\u003e, \u003ccode\u003enever\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lock","full_name":"options[lock]","description":"\n\u003cp\u003elock imported templates (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"options[default]","description":"\n\u003cp\u003emakes the template default meaning it will be automatically associated with\nnewly created organizations and locations (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/update","name":"update","apis":[{"api_url":"/api/provisioning_templates/:id","http_method":"PUT","short_description":"Update a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template","full_name":"provisioning_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"provisioning_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"provisioning_template[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"provisioning_template[template]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"provisioning_template[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"provisioning_template[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_kind_id","full_name":"provisioning_template[template_kind_id]","description":"\n\u003cp\u003enot relevant for snippet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_combinations_attributes","full_name":"provisioning_template[template_combinations_attributes]","description":"\n\u003cp\u003eArray of template combinations (hostgroup_id, environment_id)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"provisioning_template[operatingsystem_ids]","description":"\n\u003cp\u003eArray of operating system IDs to associate with the template\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"provisioning_template[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"provisioning_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"provisioning_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/revision","name":"revision","apis":[{"api_url":"/api/provisioning_templates/revision","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003etemplate version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/destroy","name":"destroy","apis":[{"api_url":"/api/provisioning_templates/:id","http_method":"DELETE","short_description":"Delete a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/build_pxe_default","name":"build_pxe_default","apis":[{"api_url":"/api/provisioning_templates/build_pxe_default","http_method":"POST","short_description":"Update the default PXE menu on all configured TFTP servers","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/clone","name":"clone","apis":[{"api_url":"/api/provisioning_templates/:id/clone","http_method":"POST","short_description":"Clone a provision template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template","full_name":"provisioning_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"provisioning_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/export","name":"export","apis":[{"api_url":"/api/provisioning_templates/:id/export","http_method":"GET","short_description":"Export a provisioning template to ERB","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"common_parameters":{"doc_url":"../apidoc/v2/common_parameters","id":"common_parameters","api_url":"/api","name":"Common parameters","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/common_parameters/index","name":"index","apis":[{"api_url":"/api/common_parameters","http_method":"GET","short_description":"List all global parameters","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"domain_name","type":"string"},{"name":"host_group_name","type":"string"},{"name":"host_name","type":"string"},{"name":"key_type","type":"string"},{"name":"location_name","type":"string"},{"name":"name","type":"string"},{"name":"organization_name","type":"string"},{"name":"os_name","type":"string"},{"name":"parameter_type","type":"string"},{"name":"subnet_name","type":"text"},{"name":"type","type":"string"},{"name":"value","type":"text"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/common_parameters/show","name":"show","apis":[{"api_url":"/api/common_parameters/:id","http_method":"GET","short_description":"Show a global parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/common_parameters/create","name":"create","apis":[{"api_url":"/api/common_parameters","http_method":"POST","short_description":"Create a global parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"common_parameter","full_name":"common_parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"common_parameter[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"common_parameter[value]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"common_parameter[parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"common_parameter[hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/common_parameters/update","name":"update","apis":[{"api_url":"/api/common_parameters/:id","http_method":"PUT","short_description":"Update a global parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"common_parameter","full_name":"common_parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"common_parameter[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"common_parameter[value]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"common_parameter[parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"common_parameter[hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/common_parameters/destroy","name":"destroy","apis":[{"api_url":"/api/common_parameters/:id","http_method":"DELETE","short_description":"Delete a global parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ptables":{"doc_url":"../apidoc/v2/ptables","id":"ptables","api_url":"/api","name":"Ptables","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ptables/index","name":"index","apis":[{"api_url":"/api/ptables","http_method":"GET","short_description":"List all partition tables","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/ptables","http_method":"GET","short_description":"List all partition tables for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/ptables","http_method":"GET","short_description":"List all partition tables per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/ptables","http_method":"GET","short_description":"List all partition tables per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"default","values":["true","false"]},{"name":"family","type":"string"},{"name":"layout","type":"text"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"locked","values":["true","false"]},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"snippet","values":["true","false"]},{"name":"template","type":"text"},{"name":"vendor","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/show","name":"show","apis":[{"api_url":"/api/ptables/:id","http_method":"GET","short_description":"Show a partition table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/create","name":"create","apis":[{"api_url":"/api/ptables","http_method":"POST","short_description":"Create a partition table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ptable[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"ptable[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"layout","full_name":"ptable[layout]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"ptable[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"ptable[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"ptable[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"os_family","full_name":"ptable[os_family]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"ptable[operatingsystem_ids]","description":"\n\u003cp\u003eArray of operating system IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"ptable[host_ids]","description":"\n\u003cp\u003eArray of host IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"ptable[hostgroup_ids]","description":"\n\u003cp\u003eArray of host group IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"ptable[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"ptable[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/import","name":"import","apis":[{"api_url":"/api/ptables/import","http_method":"POST","short_description":"Import a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ptable[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"ptable[template]","description":"\n\u003cp\u003etemplate contents including metadata\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"ptable[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"ptable[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"options","full_name":"options","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"force","full_name":"options[force]","description":"\n\u003cp\u003euse if you want update locked templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"associate","full_name":"options[associate]","description":"\n\u003cp\u003edetermines when the template should associate objects based on metadata,\nnew means only when new template is being created, always means both for\nnew and existing template which is only being updated, never ignores\nmetadata\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003enew\u003c/code\u003e, \u003ccode\u003ealways\u003c/code\u003e, \u003ccode\u003enever\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lock","full_name":"options[lock]","description":"\n\u003cp\u003elock imported templates (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"options[default]","description":"\n\u003cp\u003emakes the template default meaning it will be automatically associated with\nnewly created organizations and locations (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/revision","name":"revision","apis":[{"api_url":"/api/ptables/revision","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003etemplate version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/update","name":"update","apis":[{"api_url":"/api/ptables/:id","http_method":"PUT","short_description":"Update a partition table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ptable[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"ptable[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"layout","full_name":"ptable[layout]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"ptable[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"ptable[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"ptable[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"os_family","full_name":"ptable[os_family]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"ptable[operatingsystem_ids]","description":"\n\u003cp\u003eArray of operating system IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"ptable[host_ids]","description":"\n\u003cp\u003eArray of host IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"ptable[hostgroup_ids]","description":"\n\u003cp\u003eArray of host group IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"ptable[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"ptable[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/destroy","name":"destroy","apis":[{"api_url":"/api/ptables/:id","http_method":"DELETE","short_description":"Delete a partition table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/clone","name":"clone","apis":[{"api_url":"/api/ptables/:id/clone","http_method":"POST","short_description":"Clone a template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ptable[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/export","name":"export","apis":[{"api_url":"/api/ptables/:id/export","http_method":"GET","short_description":"Export a partition template to ERB","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"compute_attributes":{"doc_url":"../apidoc/v2/compute_attributes","id":"compute_attributes","api_url":"/api","name":"Compute attributes","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/compute_attributes/index","name":"index","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes","http_method":"GET","short_description":"List of compute attributes for provided compute profile and compute resource","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes","http_method":"GET","short_description":"List of compute attributes for provided compute profile and compute resource","deprecated":null},{"api_url":"/api/compute_resources/:compute_resource_id/compute_attributes","http_method":"GET","short_description":"List of compute attributes for compute resource","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_attributes","http_method":"GET","short_description":"List of compute attributes for compute profile","deprecated":null},{"api_url":"/api/compute_attributes/:id","http_method":"GET","short_description":"List of compute attributes","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"compute_profile_id","description":"\n\u003cp\u003eID of compute profile\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"\n\u003cp\u003eID of compute_resource\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"compute_profile","type":"string"},{"name":"compute_resource","type":"string"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_attributes/show","name":"show","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null},{"api_url":"/api/compute_resources/:compute_resource_id/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null},{"api_url":"/api/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_attributes/create","name":"create","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null},{"api_url":"/api/compute_resources/:compute_resource_id/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null},{"api_url":"/api/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"compute_profile_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attribute","full_name":"compute_attribute","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"vm_attrs","full_name":"compute_attribute[vm_attrs]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_attributes/update","name":"update","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null},{"api_url":"/api/compute_resources/:compute_resource_id/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null},{"api_url":"/api/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"compute_profile_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attribute","full_name":"compute_attribute","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"vm_attrs","full_name":"compute_attribute[vm_attrs]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"puppetclasses":{"doc_url":"../apidoc/v2/puppetclasses","id":"puppetclasses","api_url":"/api","name":"Puppetclasses","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/puppetclasses/index","name":"index","apis":[{"api_url":"/api/puppetclasses","http_method":"GET","short_description":"List all Puppet classes","deprecated":null},{"api_url":"/api/hosts/:host_id/puppetclasses","http_method":"GET","short_description":"List all Puppet classes for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/puppetclasses","http_method":"GET","short_description":"List all Puppet classes for a host group","deprecated":null},{"api_url":"/api/environments/:environment_id/puppetclasses","http_method":"GET","short_description":"List all Puppet classes for an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"config_group","type":"string"},{"name":"environment","type":"string"},{"name":"host","type":"string"},{"name":"hostgroup","type":"string"},{"name":"key","type":"string"},{"name":"location","type":"string"},{"name":"name","type":"string"},{"name":"organization","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppetclasses/show","name":"show","apis":[{"api_url":"/api/puppetclasses/:id","http_method":"GET","short_description":"Show a Puppet class","deprecated":null},{"api_url":"/api/hosts/:host_id/puppetclasses/:id","http_method":"GET","short_description":"Show a Puppet class for host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/puppetclasses/:id","http_method":"GET","short_description":"Show a Puppet class for a host group","deprecated":null},{"api_url":"/api/environments/:environment_id/puppetclasses/:id","http_method":"GET","short_description":"Show a Puppet class for an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppetclasses/create","name":"create","apis":[{"api_url":"/api/puppetclasses","http_method":"POST","short_description":"Create a Puppet class","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass","full_name":"puppetclass","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"puppetclass[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppetclasses/update","name":"update","apis":[{"api_url":"/api/puppetclasses/:id","http_method":"PUT","short_description":"Update a Puppet class","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass","full_name":"puppetclass","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"puppetclass[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppetclasses/destroy","name":"destroy","apis":[{"api_url":"/api/puppetclasses/:id","http_method":"DELETE","short_description":"Delete a Puppet class","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"compute_profiles":{"doc_url":"../apidoc/v2/compute_profiles","id":"compute_profiles","api_url":"/api","name":"Compute profiles","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/compute_profiles/index","name":"index","apis":[{"api_url":"/api/compute_profiles","http_method":"GET","short_description":"List of compute profiles","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_profiles/show","name":"show","apis":[{"api_url":"/api/compute_profiles/:id","http_method":"GET","short_description":"Show a compute profile","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_profiles/create","name":"create","apis":[{"api_url":"/api/compute_profiles","http_method":"POST","short_description":"Create a compute profile","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile","full_name":"compute_profile","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"compute_profile[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_profiles/update","name":"update","apis":[{"api_url":"/api/compute_profiles/:id","http_method":"PUT","short_description":"Update a compute profile","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_profile","full_name":"compute_profile","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"compute_profile[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_profiles/destroy","name":"destroy","apis":[{"api_url":"/api/compute_profiles/:id","http_method":"DELETE","short_description":"Delete a compute profile","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"puppet_hosts":{"doc_url":"../apidoc/v2/puppet_hosts","id":"puppet_hosts","api_url":"/api","name":"Puppet hosts","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/puppet_hosts/puppetrun","name":"puppetrun","apis":[{"api_url":"/api/hosts/:id/puppetrun","http_method":"PUT","short_description":"Force a Puppet agent run on the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"compute_resources":{"doc_url":"../apidoc/v2/compute_resources","id":"compute_resources","api_url":"/api","name":"Compute resources","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/compute_resources/index","name":"index","apis":[{"api_url":"/api/compute_resources","http_method":"GET","short_description":"List all compute resources","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"id","type":"integer"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"type","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/show","name":"show","apis":[{"api_url":"/api/compute_resources/:id","http_method":"GET","short_description":"Show a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/create","name":"create","apis":[{"api_url":"/api/compute_resources","http_method":"POST","short_description":"Create a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource","full_name":"compute_resource","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"compute_resource[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"compute_resource[provider]","description":"\n\u003cp\u003eProviders include\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"compute_resource[url]","description":"\n\u003cp\u003eURL for Libvirt, oVirt, OpenStack and Rackspace\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"compute_resource[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"compute_resource[user]","description":"\n\u003cp\u003eUsername for oVirt, EC2, VMware, OpenStack. Access Key for EC2.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"compute_resource[password]","description":"\n\u003cp\u003ePassword for oVirt, EC2, VMware, OpenStack. Secret key for EC2\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"datacenter","full_name":"compute_resource[datacenter]","description":"\n\u003cp\u003efor oVirt, VMware Datacenter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"use_v4","full_name":"compute_resource[use_v4]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"ovirt_quota","full_name":"compute_resource[ovirt_quota]","description":"\n\u003cp\u003efor oVirt only, ID or Name of quota to use\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"public_key","full_name":"compute_resource[public_key]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"region","full_name":"compute_resource[region]","description":"\n\u003cp\u003efor AzureRm eg. \u0026#39;eastus\u0026#39; and for EC2 only. Use\n\u0026#39;us-gov-west-1\u0026#39; for EC2 GovCloud region\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"tenant","full_name":"compute_resource[tenant]","description":"\n\u003cp\u003efor OpenStack and AzureRm only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"compute_resource[domain]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"project_domain_name","full_name":"compute_resource[project_domain_name]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"project_domain_id","full_name":"compute_resource[project_domain_id]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"server","full_name":"compute_resource[server]","description":"\n\u003cp\u003efor VMware\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"set_console_password","full_name":"compute_resource[set_console_password]","description":"\n\u003cp\u003efor Libvirt and VMware only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"display_type","full_name":"compute_resource[display_type]","description":"\n\u003cp\u003efor Libvirt and oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eVNC\u003c/code\u003e, \u003ccode\u003eSPICE\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"keyboard","full_name":"compute_resource[keyboard]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ear\u003c/code\u003e, \u003ccode\u003ede-ch\u003c/code\u003e, \u003ccode\u003ees\u003c/code\u003e, \u003ccode\u003efo\u003c/code\u003e, \u003ccode\u003efr-ca\u003c/code\u003e, \u003ccode\u003ehu\u003c/code\u003e, \u003ccode\u003eja\u003c/code\u003e, \u003ccode\u003emk\u003c/code\u003e, \u003ccode\u003eno\u003c/code\u003e, \u003ccode\u003ept-br\u003c/code\u003e, \u003ccode\u003esv\u003c/code\u003e, \u003ccode\u003eda\u003c/code\u003e, \u003ccode\u003een-gb\u003c/code\u003e, \u003ccode\u003eet\u003c/code\u003e, \u003ccode\u003efr\u003c/code\u003e, \u003ccode\u003efr-ch\u003c/code\u003e, \u003ccode\u003eis\u003c/code\u003e, \u003ccode\u003elt\u003c/code\u003e, \u003ccode\u003enl\u003c/code\u003e, \u003ccode\u003epl\u003c/code\u003e, \u003ccode\u003eru\u003c/code\u003e, \u003ccode\u003eth\u003c/code\u003e, \u003ccode\u003ede\u003c/code\u003e, \u003ccode\u003een-us\u003c/code\u003e, \u003ccode\u003efi\u003c/code\u003e, \u003ccode\u003efr-be\u003c/code\u003e, \u003ccode\u003ehr\u003c/code\u003e, \u003ccode\u003eit\u003c/code\u003e, \u003ccode\u003elv\u003c/code\u003e, \u003ccode\u003enl-be\u003c/code\u003e, \u003ccode\u003ept\u003c/code\u003e, \u003ccode\u003esl\u003c/code\u003e, \u003ccode\u003etr\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"caching_enabled","full_name":"compute_resource[caching_enabled]","description":"\n\u003cp\u003eenable caching, for VMware only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"project","full_name":"compute_resource[project]","description":"\n\u003cp\u003eProject id for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"email","full_name":"compute_resource[email]","description":"\n\u003cp\u003eEmail for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"key_path","full_name":"compute_resource[key_path]","description":"\n\u003cp\u003eCertificate path for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"zone","full_name":"compute_resource[zone]","description":"\n\u003cp\u003efor GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"compute_resource[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"compute_resource[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/update","name":"update","apis":[{"api_url":"/api/compute_resources/:id","http_method":"PUT","short_description":"Update a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource","full_name":"compute_resource","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"compute_resource[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"compute_resource[provider]","description":"\n\u003cp\u003eProviders include\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"compute_resource[url]","description":"\n\u003cp\u003eURL for Libvirt, oVirt, OpenStack and Rackspace\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"compute_resource[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"compute_resource[user]","description":"\n\u003cp\u003eUsername for oVirt, EC2, VMware, OpenStack. Access Key for EC2.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"compute_resource[password]","description":"\n\u003cp\u003ePassword for oVirt, EC2, VMware, OpenStack. Secret key for EC2\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"datacenter","full_name":"compute_resource[datacenter]","description":"\n\u003cp\u003efor oVirt, VMware Datacenter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"use_v4","full_name":"compute_resource[use_v4]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"ovirt_quota","full_name":"compute_resource[ovirt_quota]","description":"\n\u003cp\u003efor oVirt only, ID or Name of quota to use\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"public_key","full_name":"compute_resource[public_key]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"region","full_name":"compute_resource[region]","description":"\n\u003cp\u003efor AzureRm eg. \u0026#39;eastus\u0026#39; and for EC2 only. Use\n\u0026#39;us-gov-west-1\u0026#39; for EC2 GovCloud region\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"tenant","full_name":"compute_resource[tenant]","description":"\n\u003cp\u003efor OpenStack and AzureRm only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"compute_resource[domain]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"project_domain_name","full_name":"compute_resource[project_domain_name]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"project_domain_id","full_name":"compute_resource[project_domain_id]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"server","full_name":"compute_resource[server]","description":"\n\u003cp\u003efor VMware\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"set_console_password","full_name":"compute_resource[set_console_password]","description":"\n\u003cp\u003efor Libvirt and VMware only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"display_type","full_name":"compute_resource[display_type]","description":"\n\u003cp\u003efor Libvirt and oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eVNC\u003c/code\u003e, \u003ccode\u003eSPICE\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"keyboard","full_name":"compute_resource[keyboard]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ear\u003c/code\u003e, \u003ccode\u003ede-ch\u003c/code\u003e, \u003ccode\u003ees\u003c/code\u003e, \u003ccode\u003efo\u003c/code\u003e, \u003ccode\u003efr-ca\u003c/code\u003e, \u003ccode\u003ehu\u003c/code\u003e, \u003ccode\u003eja\u003c/code\u003e, \u003ccode\u003emk\u003c/code\u003e, \u003ccode\u003eno\u003c/code\u003e, \u003ccode\u003ept-br\u003c/code\u003e, \u003ccode\u003esv\u003c/code\u003e, \u003ccode\u003eda\u003c/code\u003e, \u003ccode\u003een-gb\u003c/code\u003e, \u003ccode\u003eet\u003c/code\u003e, \u003ccode\u003efr\u003c/code\u003e, \u003ccode\u003efr-ch\u003c/code\u003e, \u003ccode\u003eis\u003c/code\u003e, \u003ccode\u003elt\u003c/code\u003e, \u003ccode\u003enl\u003c/code\u003e, \u003ccode\u003epl\u003c/code\u003e, \u003ccode\u003eru\u003c/code\u003e, \u003ccode\u003eth\u003c/code\u003e, \u003ccode\u003ede\u003c/code\u003e, \u003ccode\u003een-us\u003c/code\u003e, \u003ccode\u003efi\u003c/code\u003e, \u003ccode\u003efr-be\u003c/code\u003e, \u003ccode\u003ehr\u003c/code\u003e, \u003ccode\u003eit\u003c/code\u003e, \u003ccode\u003elv\u003c/code\u003e, \u003ccode\u003enl-be\u003c/code\u003e, \u003ccode\u003ept\u003c/code\u003e, \u003ccode\u003esl\u003c/code\u003e, \u003ccode\u003etr\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"caching_enabled","full_name":"compute_resource[caching_enabled]","description":"\n\u003cp\u003eenable caching, for VMware only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"project","full_name":"compute_resource[project]","description":"\n\u003cp\u003eProject id for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"email","full_name":"compute_resource[email]","description":"\n\u003cp\u003eEmail for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"key_path","full_name":"compute_resource[key_path]","description":"\n\u003cp\u003eCertificate path for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"zone","full_name":"compute_resource[zone]","description":"\n\u003cp\u003efor GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"compute_resource[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"compute_resource[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/destroy","name":"destroy","apis":[{"api_url":"/api/compute_resources/:id","http_method":"DELETE","short_description":"Delete a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_images","name":"available_images","apis":[{"api_url":"/api/compute_resources/:id/available_images","http_method":"GET","short_description":"List available images for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_clusters","name":"available_clusters","apis":[{"api_url":"/api/compute_resources/:id/available_clusters","http_method":"GET","short_description":"List available clusters for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_flavors","name":"available_flavors","apis":[{"api_url":"/api/compute_resources/:id/available_flavors","http_method":"GET","short_description":"List available flavors for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_folders","name":"available_folders","apis":[{"api_url":"/api/compute_resources/:id/available_folders","http_method":"GET","short_description":"List available folders for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_zones","name":"available_zones","apis":[{"api_url":"/api/compute_resources/:id/available_zones","http_method":"GET","short_description":"List available zone for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_networks","name":"available_networks","apis":[{"api_url":"/api/compute_resources/:id/available_networks","http_method":"GET","short_description":"List available networks for a compute resource","deprecated":null},{"api_url":"/api/compute_resources/:id/available_clusters/:cluster_id/available_networks","http_method":"GET","short_description":"List available networks for a compute resource cluster","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cluster_id","full_name":"cluster_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_resource_pools","name":"available_resource_pools","apis":[{"api_url":"/api/compute_resources/:id/available_clusters/:cluster_id/available_resource_pools","http_method":"GET","short_description":"List resource pools for a compute resource cluster","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cluster_id","full_name":"cluster_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/storage_domain","name":"storage_domain","apis":[{"api_url":"/api/compute_resources/:id/storage_domains/:storage_domain_id","http_method":"GET","short_description":"List attributes for a given storage domain","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"storage_domain_id","full_name":"storage_domain_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_storage_domains","name":"available_storage_domains","apis":[{"api_url":"/api/compute_resources/:id/available_storage_domains","http_method":"GET","short_description":"List storage domains for a compute resource","deprecated":null},{"api_url":"/api/compute_resources/:id/available_storage_domains/:storage_domain","http_method":"GET","short_description":"List attributes for a given storage domain","deprecated":null},{"api_url":"/api/compute_resources/:id/available_clusters/:cluster_id/available_storage_domains","http_method":"GET","short_description":"List storage domains for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cluster_id","full_name":"cluster_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"storage_domain","full_name":"storage_domain","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/storage_pod","name":"storage_pod","apis":[{"api_url":"/api/compute_resources/:id/storage_pods/:storage_pod_id","http_method":"GET","short_description":"List attributes for a given storage pod","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"storage_pod_id","full_name":"storage_pod_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_storage_pods","name":"available_storage_pods","apis":[{"api_url":"/api/compute_resources/:id/available_storage_pods","http_method":"GET","short_description":"List storage pods for a compute resource","deprecated":null},{"api_url":"/api/compute_resources/:id/available_storage_pods/:storage_pod","http_method":"GET","short_description":"List attributes for a given storage pod","deprecated":null},{"api_url":"/api/compute_resources/:id/available_clusters/:cluster_id/available_storage_pods","http_method":"GET","short_description":"List storage pods for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cluster_id","full_name":"cluster_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"storage_pod","full_name":"storage_pod","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_security_groups","name":"available_security_groups","apis":[{"api_url":"/api/compute_resources/:id/available_security_groups","http_method":"GET","short_description":"List available security groups for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/associate","name":"associate","apis":[{"api_url":"/api/compute_resources/:id/associate","http_method":"PUT","short_description":"Associate VMs to Hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/refresh_cache","name":"refresh_cache","apis":[{"api_url":"/api/compute_resources/:id/refresh_cache","http_method":"PUT","short_description":"Refresh Compute Resource Cache","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_virtual_machines","name":"available_virtual_machines","apis":[{"api_url":"/api/compute_resources/:id/available_virtual_machines","http_method":"GET","short_description":"List available virtual machines for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/show_vm","name":"show_vm","apis":[{"api_url":"/api/compute_resources/:id/available_virtual_machines/:vm_id","http_method":"GET","short_description":"Show a virtual machine","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vm_id","full_name":"vm_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/power_vm","name":"power_vm","apis":[{"api_url":"/api/compute_resources/:id/available_virtual_machines/:vm_id/power","http_method":"PUT","short_description":"Power a Virtual Machine","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vm_id","full_name":"vm_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/destroy_vm","name":"destroy_vm","apis":[{"api_url":"/api/compute_resources/:id/available_virtual_machines/:vm_id","http_method":"DELETE","short_description":"Delete a Virtual Machine","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vm_id","full_name":"vm_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"config_groups":{"doc_url":"../apidoc/v2/config_groups","id":"config_groups","api_url":"/api","name":"Config groups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/config_groups/index","name":"index","apis":[{"api_url":"/api/config_groups","http_method":"GET","short_description":"List of config groups","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"class","type":"string"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_groups/show","name":"show","apis":[{"api_url":"/api/config_groups/:id","http_method":"GET","short_description":"Show a config group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_groups/create","name":"create","apis":[{"api_url":"/api/config_groups","http_method":"POST","short_description":"Create a config group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"config_group","full_name":"config_group","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"config_group[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"config_group[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_groups/update","name":"update","apis":[{"api_url":"/api/config_groups/:id","http_method":"PUT","short_description":"Update a config group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"config_group","full_name":"config_group","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"config_group[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"config_group[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_groups/destroy","name":"destroy","apis":[{"api_url":"/api/config_groups/:id","http_method":"DELETE","short_description":"Delete a config group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"realms":{"doc_url":"../apidoc/v2/realms","id":"realms","api_url":"/api","name":"Realms","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/realms/index","name":"index","apis":[{"api_url":"/api/realms","http_method":"GET","short_description":"List of realms","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"type","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/realms/show","name":"show","apis":[{"api_url":"/api/realms/:id","http_method":"GET","short_description":"Show a realm","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eNumerical ID or realm name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/realms/create","name":"create","apis":[{"api_url":"/api/realms","http_method":"POST","short_description":"Create a realm","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThe \u003cstrong\u003ename\u003c/strong\u003e field is used for the name of the realm.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm","full_name":"realm","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"realm[name]","description":"\n\u003cp\u003eThe realm name, e.g. EXAMPLE.COM\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"realm_proxy_id","full_name":"realm[realm_proxy_id]","description":"\n\u003cp\u003eProxy ID to use within this realm\u003c/p\u003e\n","required":true,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_type","full_name":"realm[realm_type]","description":"\n\u003cp\u003eRealm type, e.g. FreeIPA or Active Directory\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"realm[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"realm[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/realms/update","name":"update","apis":[{"api_url":"/api/realms/:id","http_method":"PUT","short_description":"Update a realm","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"realm","full_name":"realm","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"realm[name]","description":"\n\u003cp\u003eThe realm name, e.g. EXAMPLE.COM\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"realm_proxy_id","full_name":"realm[realm_proxy_id]","description":"\n\u003cp\u003eProxy ID to use within this realm\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_type","full_name":"realm[realm_type]","description":"\n\u003cp\u003eRealm type, e.g. FreeIPA or Active Directory\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"realm[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"realm[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/realms/destroy","name":"destroy","apis":[{"api_url":"/api/realms/:id","http_method":"DELETE","short_description":"Delete a realm","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"config_reports":{"doc_url":"../apidoc/v2/config_reports","id":"config_reports","api_url":"/api","name":"Config reports","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/config_reports/index","name":"index","apis":[{"api_url":"/api/config_reports","http_method":"GET","short_description":"List all reports","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"applied","type":"integer"},{"name":"environment","type":"string"},{"name":"eventful","values":["true","false"]},{"name":"failed","type":"integer"},{"name":"failed_restarts","type":"integer"},{"name":"host","type":"string"},{"name":"host_id","type":"integer"},{"name":"hostgroup","type":"string"},{"name":"hostgroup_fullname","type":"string"},{"name":"hostgroup_title","type":"string"},{"name":"last_report","type":"datetime"},{"name":"location","type":"string"},{"name":"log","type":"text"},{"name":"organization","type":"string"},{"name":"origin","type":"string"},{"name":"pending","type":"integer"},{"name":"reported","type":"datetime"},{"name":"resource","type":"text"},{"name":"restarted","type":"integer"},{"name":"skipped","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_reports/show","name":"show","apis":[{"api_url":"/api/config_reports/:id","http_method":"GET","short_description":"Show a report","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_reports/create","name":"create","apis":[{"api_url":"/api/config_reports","http_method":"POST","short_description":"Create a report","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"config_report","full_name":"config_report","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"host","full_name":"config_report[host]","description":"\n\u003cp\u003eHostname or certname\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"reported_at","full_name":"config_report[reported_at]","description":"\n\u003cp\u003eUTC time of report\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"status","full_name":"config_report[status]","description":"\n\u003cp\u003eHash of status type totals\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"metrics","full_name":"config_report[metrics]","description":"\n\u003cp\u003eHash of report metrics, can be just {}\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"logs","full_name":"config_report[logs]","description":"\n\u003cp\u003eOptional array of log hashes\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_reports/destroy","name":"destroy","apis":[{"api_url":"/api/config_reports/:id","http_method":"DELETE","short_description":"Delete a report","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_reports/last","name":"last","apis":[{"api_url":"/api/hosts/:host_id/config_reports/last","http_method":"GET","short_description":"Show the last report for a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"dashboard":{"doc_url":"../apidoc/v2/dashboard","id":"dashboard","api_url":"/api","name":"Dashboard","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/dashboard/index","name":"index","apis":[{"api_url":"/api/dashboard","http_method":"GET","short_description":"Get dashboard details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"domains":{"doc_url":"../apidoc/v2/domains","id":"domains","api_url":"/api","name":"Domains","short_description":null,"full_description":"\n\u003cp\u003eForeman considers a domain and a DNS zone as the same thing. That is, if\nyou are planning to manage a site where all the machines are of the form\n\u003cem\u003ehostname\u003c/em\u003e.\u003cstrong\u003esomewhere.com\u003c/strong\u003e then the domain is\n\u003cstrong\u003esomewhere.com\u003c/strong\u003e. This allows Foreman to associate a puppet\nvariable with a domain/site and automatically append this variable to all\nexternal node requests made by machines at that site.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/domains/index","name":"index","apis":[{"api_url":"/api/domains","http_method":"GET","short_description":"List of domains","deprecated":null},{"api_url":"/api/subnets/:subnet_id/domains","http_method":"GET","short_description":"List of domains per subnet","deprecated":null},{"api_url":"/api/locations/:location_id/domains","http_method":"GET","short_description":"List of domains per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/domains","http_method":"GET","short_description":"List of domains per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"fullname","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"params","type":"text"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/domains/show","name":"show","apis":[{"api_url":"/api/domains/:id","http_method":"GET","short_description":"Show a domain","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eNumerical ID or domain name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/domains/create","name":"create","apis":[{"api_url":"/api/domains","http_method":"POST","short_description":"Create a domain","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThe \u003cstrong\u003efullname\u003c/strong\u003e field is used for human readability in\nreports and other pages that refer to domains, and also available as an\nexternal node parameter\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"domain","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"domain[name]","description":"\n\u003cp\u003eThe full DNS domain name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fullname","full_name":"domain[fullname]","description":"\n\u003cp\u003eDescription of the domain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_id","full_name":"domain[dns_id]","description":"\n\u003cp\u003eDNS proxy ID to use within this domain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_parameters_attributes","full_name":"domain[domain_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters (name, value)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"domain[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"domain[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/domains/update","name":"update","apis":[{"api_url":"/api/domains/:id","http_method":"PUT","short_description":"Update a domain","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"domain","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"domain[name]","description":"\n\u003cp\u003eThe full DNS domain name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fullname","full_name":"domain[fullname]","description":"\n\u003cp\u003eDescription of the domain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_id","full_name":"domain[dns_id]","description":"\n\u003cp\u003eDNS proxy ID to use within this domain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_parameters_attributes","full_name":"domain[domain_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters (name, value)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"domain[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"domain[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/domains/destroy","name":"destroy","apis":[{"api_url":"/api/domains/:id","http_method":"DELETE","short_description":"Delete a domain","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"environments":{"doc_url":"../apidoc/v2/environments","id":"environments","api_url":"/api","name":"Environments","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/environments/import_puppetclasses","name":"import_puppetclasses","apis":[{"api_url":"/api/smart_proxies/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy","deprecated":null},{"api_url":"/api/smart_proxies/:smart_proxy_id/environments/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy for an environment","deprecated":null},{"api_url":"/api/environments/:environment_id/smart_proxies/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy for an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_id","full_name":"smart_proxy_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dryrun","full_name":"dryrun","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"except","full_name":"except","description":"\n\u003cp\u003eOptional comma-delimited string containing either \u0026#39;new\u0026#39;,\n\u0026#39;updated\u0026#39;, or \u0026#39;obsolete\u0026#39; that is used to limit the imported\nPuppet classes\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/index","name":"index","apis":[{"api_url":"/api/environments","http_method":"GET","short_description":"List all environments","deprecated":null},{"api_url":"/api/puppetclasses/:puppetclass_id/environments","http_method":"GET","short_description":"List environments of Puppet class","deprecated":null},{"api_url":"/api/locations/:location_id/environments","http_method":"GET","short_description":"List environments per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/environments","http_method":"GET","short_description":"List environments per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"puppetclass_id","full_name":"puppetclass_id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"content_view","type":"string"},{"name":"lifecycle_environment","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/show","name":"show","apis":[{"api_url":"/api/environments/:id","http_method":"GET","short_description":"Show an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/create","name":"create","apis":[{"api_url":"/api/environments","http_method":"POST","short_description":"Create an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment","full_name":"environment","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"environment[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"environment[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"environment[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/update","name":"update","apis":[{"api_url":"/api/environments/:id","http_method":"PUT","short_description":"Update an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment","full_name":"environment","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"environment[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"environment[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"environment[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/destroy","name":"destroy","apis":[{"api_url":"/api/environments/:id","http_method":"DELETE","short_description":"Delete an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"report_templates":{"doc_url":"../apidoc/v2/report_templates","id":"report_templates","api_url":"/api","name":"Report templates","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/report_templates/index","name":"index","apis":[{"api_url":"/api/report_templates","http_method":"GET","short_description":"List all report templates","deprecated":null},{"api_url":"/api/locations/:location_id/report_templates","http_method":"GET","short_description":"List all report templates per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/report_templates","http_method":"GET","short_description":"List all report templates per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"default","values":["true","false"]},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"locked","values":["true","false"]},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"snippet","values":["true","false"]},{"name":"template","type":"text"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/show","name":"show","apis":[{"api_url":"/api/report_templates/:id","http_method":"GET","short_description":"Show a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/create","name":"create","apis":[{"api_url":"/api/report_templates","http_method":"POST","short_description":"Create a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"report_template","full_name":"report_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"report_template[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"report_template[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"report_template[template]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"report_template[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"report_template[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"report_template[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"report_template[default]","description":"\n\u003cp\u003eWhether or not the template is added automatically to new organizations and\nlocations\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"report_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"report_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/import","name":"import","apis":[{"api_url":"/api/report_templates/import","http_method":"POST","short_description":"Import a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"report_template","full_name":"report_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"report_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"report_template[template]","description":"\n\u003cp\u003etemplate contents including metadata\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"report_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"report_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"options","full_name":"options","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"force","full_name":"options[force]","description":"\n\u003cp\u003euse if you want update locked templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"associate","full_name":"options[associate]","description":"\n\u003cp\u003edetermines when the template should associate objects based on metadata,\nnew means only when new template is being created, always means both for\nnew and existing template which is only being updated, never ignores\nmetadata\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003enew\u003c/code\u003e, \u003ccode\u003ealways\u003c/code\u003e, \u003ccode\u003enever\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lock","full_name":"options[lock]","description":"\n\u003cp\u003elock imported templates (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"options[default]","description":"\n\u003cp\u003emakes the template default meaning it will be automatically associated with\nnewly created organizations and locations (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/revision","name":"revision","apis":[{"api_url":"/api/report_templates/revision","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003etemplate version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/update","name":"update","apis":[{"api_url":"/api/report_templates/:id","http_method":"PUT","short_description":"Update a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"report_template","full_name":"report_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"report_template[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"report_template[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"report_template[template]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"report_template[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"report_template[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"report_template[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"report_template[default]","description":"\n\u003cp\u003eWhether or not the template is added automatically to new organizations and\nlocations\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"report_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"report_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/destroy","name":"destroy","apis":[{"api_url":"/api/report_templates/:id","http_method":"DELETE","short_description":"Delete a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/clone","name":"clone","apis":[{"api_url":"/api/report_templates/:id/clone","http_method":"POST","short_description":"Clone a template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"report_template","full_name":"report_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"report_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/export","name":"export","apis":[{"api_url":"/api/report_templates/:id/export","http_method":"GET","short_description":"Export a report template to ERB","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/generate","name":"generate","apis":[{"api_url":"/api/report_templates/:id/generate","http_method":"POST","short_description":"Generate report from a template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"input_values","full_name":"input_values","description":"\n\u003cp\u003eHash of input values where key is the name of input, value is the value for\nthis input\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"gzip","full_name":"gzip","description":"\n\u003cp\u003eCompress the report uzing gzip\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"report_format","full_name":"report_format","description":"\n\u003cp\u003eReport format, defaults to \u0026#39;csv\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ecsv\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ehtml\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/schedule_report","name":"schedule_report","apis":[{"api_url":"/api/report_templates/:id/schedule_report","http_method":"POST","short_description":"Schedule generating of a report","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThe reports are generated asynchronously. If mail_to is not given, action\nreturns an url to get resulting report from (see\n\u003cstrong\u003ereport_data\u003c/strong\u003e).\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"input_values","full_name":"input_values","description":"\n\u003cp\u003eHash of input values where key is the name of input, value is the value for\nthis input\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"gzip","full_name":"gzip","description":"\n\u003cp\u003eCompress the report using gzip\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"mail_to","full_name":"mail_to","description":"\n\u003cp\u003eIf set, scheduled report will be delivered via e-mail. Use \u0026#39;,\u0026#39; to\nseparate multiple email addresses.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"generate_at","full_name":"generate_at","description":"\n\u003cp\u003eUTC time to generate report at\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"report_format","full_name":"report_format","description":"\n\u003cp\u003eReport format, defaults to \u0026#39;csv\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ecsv\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ehtml\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[{"code":200,"description":"a successful response","is_array":false,"returns_object":[{"name":"job_id","full_name":"job_id","description":"\n\u003cp\u003eAn ID of job, which generates report. To be used with report_data API\nendpoint for report data retrieval.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true},{"name":"data_url","full_name":"data_url","description":"\n\u003cp\u003eAn url to get resulting report from. This is not available when report is\ndelivered via e-mail.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true}],"additional_properties":false}],"examples":["POST /api/report_templates/:id/schedule_report/\n200\n{\n \"job_id\": UNIQUE-REPORT-GENERATING-JOB-UUID\n \"data_url\": \"/api/v2/report_templates/1/report_data/UNIQUE-REPORT-GENERATING-JOB-UUID\"\n}\n"],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/report_data","name":"report_data","apis":[{"api_url":"/api/report_templates/:id/report_data/:job_id","http_method":"GET","short_description":"Downloads a generated report","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eReturns the report data as a raw response. In case the report hasn\u0026#39;t\nbeen generated yet, it will return an empty response with http status 204 -\nNoContent.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"job_id","full_name":"job_id","description":"\n\u003cp\u003eID assigned to generating job by the schedule command\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"external_usergroups":{"doc_url":"../apidoc/v2/external_usergroups","id":"external_usergroups","api_url":"/api","name":"External usergroups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/external_usergroups/index","name":"index","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups","http_method":"GET","short_description":"List all external user groups for user group","deprecated":null},{"api_url":"/api/auth_source_ldaps/:auth_source_ldap_id/external_usergroups","http_method":"GET","short_description":"List all external user groups for LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/show","name":"show","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups/:id","http_method":"GET","short_description":"Show an external user group for user group","deprecated":null},{"api_url":"/api/auth_source_ldaps/:auth_source_ldap_id/external_usergroups/:id","http_method":"GET","short_description":"Show an external user group for LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name of external user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/create","name":"create","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups","http_method":"POST","short_description":"Create an external user group linked to a user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"external_usergroup","full_name":"external_usergroup","description":"\n\u003cp\u003eExternal user group information\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"external_usergroup[name]","description":"\n\u003cp\u003eExternal user group name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auth_source_id","full_name":"external_usergroup[auth_source_id]","description":"\n\u003cp\u003eID of linked authentication source\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/update","name":"update","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups/:id","http_method":"PUT","short_description":"Update external user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name of external user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"external_usergroup","full_name":"external_usergroup","description":"\n\u003cp\u003eExternal user group information\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"external_usergroup[name]","description":"\n\u003cp\u003eExternal user group name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auth_source_id","full_name":"external_usergroup[auth_source_id]","description":"\n\u003cp\u003eID of linked authentication source\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/refresh","name":"refresh","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups/:id/refresh","http_method":"PUT","short_description":"Refresh external user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name of external user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/destroy","name":"destroy","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups/:id","http_method":"DELETE","short_description":"Delete an external user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name external user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"fact_values":{"doc_url":"../apidoc/v2/fact_values","id":"fact_values","api_url":"/api","name":"Fact values","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/fact_values/index","name":"index","apis":[{"api_url":"/api/fact_values","http_method":"GET","short_description":"List all fact values","deprecated":null},{"api_url":"/api/hosts/:host_id/facts","http_method":"GET","short_description":"List all fact values of a given host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"fact","type":"string"},{"name":"fact_short_name","type":"string"},{"name":"facts","type":"string"},{"name":"host","type":"string"},{"name":"host.hostgroup","type":"string"},{"name":"host_id","type":"integer"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"origin","type":"string"},{"name":"reported_at","type":"datetime"},{"name":"short_name","type":"string"},{"name":"type","type":"string"},{"name":"value","type":"string"}]},"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"filters":{"doc_url":"../apidoc/v2/filters","id":"filters","api_url":"/api","name":"Filters","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/filters/index","name":"index","apis":[{"api_url":"/api/filters","http_method":"GET","short_description":"List all filters","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"limited","values":["true","false"]},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"override","values":["true","false"]},{"name":"permission","type":"string"},{"name":"resource","type":"string"},{"name":"role","type":"string"},{"name":"role_id","type":"integer"},{"name":"search","type":"text"},{"name":"unlimited","values":["true","false"]}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/filters/show","name":"show","apis":[{"api_url":"/api/filters/:id","http_method":"GET","short_description":"Show a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/filters/create","name":"create","apis":[{"api_url":"/api/filters","http_method":"POST","short_description":"Create a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"filter","full_name":"filter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"role_id","full_name":"filter[role_id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"filter[search]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override","full_name":"filter[override]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"permission_ids","full_name":"filter[permission_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"filter[organization_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"filter[location_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/filters/update","name":"update","apis":[{"api_url":"/api/filters/:id","http_method":"PUT","short_description":"Update a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"filter","full_name":"filter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"role_id","full_name":"filter[role_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"filter[search]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override","full_name":"filter[override]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"permission_ids","full_name":"filter[permission_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"filter[organization_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"filter[location_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/filters/destroy","name":"destroy","apis":[{"api_url":"/api/filters/:id","http_method":"DELETE","short_description":"Delete a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"home":{"doc_url":"../apidoc/v2/home","id":"home","api_url":"/api","name":"Home","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/home/index","name":"index","apis":[{"api_url":"/api","http_method":"GET","short_description":"Show available API links","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/home/status","name":"status","apis":[{"api_url":"/api/status","http_method":"GET","short_description":"Show status","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"host_classes":{"doc_url":"../apidoc/v2/host_classes","id":"host_classes","api_url":"/api","name":"Host classes","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_classes/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/puppetclass_ids","http_method":"GET","short_description":"List all Puppet class IDs for host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_classes/create","name":"create","apis":[{"api_url":"/api/hosts/:host_id/puppetclass_ids","http_method":"POST","short_description":"Add a Puppet class to host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_id","full_name":"puppetclass_id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_classes/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:host_id/puppetclass_ids/:id","http_method":"DELETE","short_description":"Remove a Puppet class from host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"roles":{"doc_url":"../apidoc/v2/roles","id":"roles","api_url":"/api","name":"Roles","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/roles/index","name":"index","apis":[{"api_url":"/api/roles","http_method":"GET","short_description":"List all roles","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"builtin","values":["true","false"]},{"name":"description","type":"text"},{"name":"name","type":"string"},{"name":"permission","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/show","name":"show","apis":[{"api_url":"/api/roles/:id","http_method":"GET","short_description":"Show a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/create","name":"create","apis":[{"api_url":"/api/roles","http_method":"POST","short_description":"Create a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"role[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"role[description]","description":"\n\u003cp\u003eRole description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"role[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"role[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/update","name":"update","apis":[{"api_url":"/api/roles/:id","http_method":"PUT","short_description":"Update a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"role[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"role[description]","description":"\n\u003cp\u003eRole description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"role[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"role[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/destroy","name":"destroy","apis":[{"api_url":"/api/roles/:id","http_method":"DELETE","short_description":"Delete a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/clone","name":"clone","apis":[{"api_url":"/api/roles/:id/clone","http_method":"POST","short_description":"Clone a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"role[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"role[description]","description":"\n\u003cp\u003eRole description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"role[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"role[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"hostgroup_classes":{"doc_url":"../apidoc/v2/hostgroup_classes","id":"hostgroup_classes","api_url":"/api","name":"Hostgroup classes","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/hostgroup_classes/index","name":"index","apis":[{"api_url":"/api/hostgroups/:hostgroup_id/puppetclass_ids","http_method":"GET","short_description":"List all Puppet class IDs for host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroup_classes/create","name":"create","apis":[{"api_url":"/api/hostgroups/:hostgroup_id/puppetclass_ids","http_method":"POST","short_description":"Add a Puppet class to host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_id","full_name":"puppetclass_id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroup_classes/destroy","name":"destroy","apis":[{"api_url":"/api/hostgroups/:hostgroup_id/puppetclass_ids/:id","http_method":"DELETE","short_description":"Remove a Puppet class from host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"http_proxies":{"doc_url":"../apidoc/v2/http_proxies","id":"http_proxies","api_url":"/api","name":"Http proxies","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/http_proxies/index","name":"index","apis":[{"api_url":"/api/http_proxies","http_method":"GET","short_description":"List of HTTP Proxies","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"url","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/http_proxies/show","name":"show","apis":[{"api_url":"/api/http_proxies/:id","http_method":"GET","short_description":"Show an HTTP Proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eIdentifier of the HTTP Proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/http_proxies/create","name":"create","apis":[{"api_url":"/api/http_proxies","http_method":"POST","short_description":"Create an HTTP Proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"http_proxy","full_name":"http_proxy","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"http_proxy[name]","description":"\n\u003cp\u003eThe HTTP Proxy name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"http_proxy[url]","description":"\n\u003cp\u003eURL of the HTTP Proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"http_proxy[username]","description":"\n\u003cp\u003eUsername used to authenticate with the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"http_proxy[password]","description":"\n\u003cp\u003ePassword used to authenticate with the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"http_proxy[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"http_proxy[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/http_proxies/update","name":"update","apis":[{"api_url":"/api/http_proxies/:id","http_method":"PUT","short_description":"Update an HTTP Proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy","full_name":"http_proxy","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"http_proxy[name]","description":"\n\u003cp\u003eThe HTTP Proxy name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"http_proxy[url]","description":"\n\u003cp\u003eURL of the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"http_proxy[username]","description":"\n\u003cp\u003eUsername used to authenticate with the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"http_proxy[password]","description":"\n\u003cp\u003ePassword used to authenticate with the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"http_proxy[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"http_proxy[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/http_proxies/destroy","name":"destroy","apis":[{"api_url":"/api/http_proxies/:id","http_method":"DELETE","short_description":"Delete an HTTP Proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"images":{"doc_url":"../apidoc/v2/images","id":"images","api_url":"/api","name":"Images","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/images/index","name":"index","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images","http_method":"GET","short_description":"List all images for a compute resource","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/images","http_method":"GET","short_description":"List all images for operating system","deprecated":null},{"api_url":"/api/architectures/:architecture_id/images","http_method":"GET","short_description":"List all images for architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"\n\u003cp\u003eID of compute resource\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"architecture_id","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"architecture","type":"integer"},{"name":"compute_resource","type":"string"},{"name":"name","type":"string"},{"name":"operatingsystem","type":"integer"},{"name":"user_data","values":["true","false"]},{"name":"username","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/images/show","name":"show","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images/:id","http_method":"GET","short_description":"Show an image","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/images/:id","http_method":"GET","short_description":"Show an image","deprecated":null},{"api_url":"/api/architectures/:architecture_id/images/:id","http_method":"GET","short_description":"Show an image","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"\n\u003cp\u003eID of compute resource\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"architecture_id","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/images/create","name":"create","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images","http_method":"POST","short_description":"Create an image","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"image","full_name":"image","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"image[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"image[username]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"image[uuid]","description":"\n\u003cp\u003eTemplate ID in the compute resource\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"image[password]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"image[compute_resource_id]","description":"\n\u003cp\u003eID of compute resource\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"image[architecture_id]","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"image[operatingsystem_id]","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_data","full_name":"image[user_data]","description":"\n\u003cp\u003eWhether or not the image supports user data\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/images/update","name":"update","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images/:id","http_method":"PUT","short_description":"Update an image","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"image","full_name":"image","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"image[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"image[username]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"image[uuid]","description":"\n\u003cp\u003eTemplate ID in the compute resource\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"image[password]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"image[compute_resource_id]","description":"\n\u003cp\u003eID of compute resource\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"image[architecture_id]","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"image[operatingsystem_id]","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_data","full_name":"image[user_data]","description":"\n\u003cp\u003eWhether or not the image supports user data\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/images/destroy","name":"destroy","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images/:id","http_method":"DELETE","short_description":"Delete an image","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"locations":{"doc_url":"../apidoc/v2/locations","id":"locations","api_url":"/api","name":"Locations","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/locations/index","name":"index","apis":[{"api_url":"/api/locations","http_method":"GET","short_description":"List all locations","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"id","type":"integer"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"title","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/locations/show","name":"show","apis":[{"api_url":"/api/locations/:id","http_method":"GET","short_description":"Show a location","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/locations/create","name":"create","apis":[{"api_url":"/api/locations","http_method":"POST","short_description":"Create a location","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"location","full_name":"location","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"location[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"location[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"location[user_ids]","description":"\n\u003cp\u003eUser IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_ids","full_name":"location[smart_proxy_ids]","description":"\n\u003cp\u003eSmart proxy IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_ids","full_name":"location[compute_resource_ids]","description":"\n\u003cp\u003eCompute resource IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"location[medium_ids]","description":"\n\u003cp\u003eMedium IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"location[ptable_ids]","description":"\n\u003cp\u003ePartition template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"location[provisioning_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"location[domain_ids]","description":"\n\u003cp\u003eDomain IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"realm_ids","full_name":"location[realm_ids]","description":"\n\u003cp\u003eRealm IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"location[hostgroup_ids]","description":"\n\u003cp\u003eHost group IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"location[environment_ids]","description":"\n\u003cp\u003eEnvironment IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"subnet_ids","full_name":"location[subnet_ids]","description":"\n\u003cp\u003eSubnet IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"parent_id","full_name":"location[parent_id]","description":"\n\u003cp\u003eParent ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ignore_types","full_name":"location[ignore_types]","description":"\n\u003cp\u003eList of resources types that will be automatically associated\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"location[organization_ids]","description":"\n\u003cp\u003eAssociated organization IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/locations/update","name":"update","apis":[{"api_url":"/api/locations/:id","http_method":"PUT","short_description":"Update a location","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"location","full_name":"location","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"location[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"location[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"location[user_ids]","description":"\n\u003cp\u003eUser IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_ids","full_name":"location[smart_proxy_ids]","description":"\n\u003cp\u003eSmart proxy IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_ids","full_name":"location[compute_resource_ids]","description":"\n\u003cp\u003eCompute resource IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"location[medium_ids]","description":"\n\u003cp\u003eMedium IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"location[ptable_ids]","description":"\n\u003cp\u003ePartition template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"location[provisioning_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"location[domain_ids]","description":"\n\u003cp\u003eDomain IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"realm_ids","full_name":"location[realm_ids]","description":"\n\u003cp\u003eRealm IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"location[hostgroup_ids]","description":"\n\u003cp\u003eHost group IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"location[environment_ids]","description":"\n\u003cp\u003eEnvironment IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"subnet_ids","full_name":"location[subnet_ids]","description":"\n\u003cp\u003eSubnet IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"parent_id","full_name":"location[parent_id]","description":"\n\u003cp\u003eParent ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ignore_types","full_name":"location[ignore_types]","description":"\n\u003cp\u003eList of resources types that will be automatically associated\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"location[organization_ids]","description":"\n\u003cp\u003eAssociated organization IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/locations/destroy","name":"destroy","apis":[{"api_url":"/api/locations/:id","http_method":"DELETE","short_description":"Delete a location","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"settings":{"doc_url":"../apidoc/v2/settings","id":"settings","api_url":"/api","name":"Settings","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/settings/index","name":"index","apis":[{"api_url":"/api/settings","http_method":"GET","short_description":"List all settings","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/settings/show","name":"show","apis":[{"api_url":"/api/settings/:id","http_method":"GET","short_description":"Show a setting","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/settings/update","name":"update","apis":[{"api_url":"/api/settings/:id","http_method":"PUT","short_description":"Update a setting","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"setting","full_name":"setting","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"value","full_name":"setting[value]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"mail_notifications":{"doc_url":"../apidoc/v2/mail_notifications","id":"mail_notifications","api_url":"/api","name":"Mail notifications","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/mail_notifications/index","name":"index","apis":[{"api_url":"/api/mail_notifications","http_method":"GET","short_description":"List of email notifications","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"name","type":"string"},{"name":"user","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/mail_notifications/show","name":"show","apis":[{"api_url":"/api/mail_notifications/:id","http_method":"GET","short_description":"Show an email notification","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eNumerical ID or email notification name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"media":{"doc_url":"../apidoc/v2/media","id":"media","api_url":"/api","name":"Media","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/media/index","name":"index","apis":[{"api_url":"/api/media","http_method":"GET","short_description":"List all installation media","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/media","http_method":"GET","short_description":"List all media for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/media","http_method":"GET","short_description":"List all media per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/media","http_method":"GET","short_description":"List all media per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"family","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"path","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/media/show","name":"show","apis":[{"api_url":"/api/media/:id","http_method":"GET","short_description":"Show a medium","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/media/create","name":"create","apis":[{"api_url":"/api/media","http_method":"POST","short_description":"Create a medium","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"medium[name]","description":"\n\u003cp\u003eName of media\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"path","full_name":"medium[path]","description":"\n\u003cp\u003eThe path to the medium, can be a URL or a valid NFS server (exclusive of\nthe architecture).\u003c/p\u003e\n\n\u003cp\u003efor example \u003ca\nhref=\"http://mirror.centos.org/centos/$version/os/$arch\"\u003emirror.centos.org/centos/$version/os/$arch\u003c/a\u003e\nwhere $arch will be substituted for the host\u0026#39;s actual OS architecture\nand $version, $major and $minor will be substituted for the version of the\noperating system.\u003c/p\u003e\n\n\u003cp\u003eSolaris and Debian media may also use $release.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_family","full_name":"medium[os_family]","description":"\n\u003cp\u003eOperating system family, available values: AIX, Altlinux, Archlinux,\nCoreos, Debian, Freebsd, Gentoo, Junos, NXOS, Rancheros, Redhat, Solaris,\nSuse, VRP, Windows, Xenserver\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"medium[operatingsystem_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"medium[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"medium[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/media/update","name":"update","apis":[{"api_url":"/api/media/:id","http_method":"PUT","short_description":"Update a medium","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"medium[name]","description":"\n\u003cp\u003eName of media\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"path","full_name":"medium[path]","description":"\n\u003cp\u003eThe path to the medium, can be a URL or a valid NFS server (exclusive of\nthe architecture).\u003c/p\u003e\n\n\u003cp\u003efor example \u003ca\nhref=\"http://mirror.centos.org/centos/$version/os/$arch\"\u003emirror.centos.org/centos/$version/os/$arch\u003c/a\u003e\nwhere $arch will be substituted for the host\u0026#39;s actual OS architecture\nand $version, $major and $minor will be substituted for the version of the\noperating system.\u003c/p\u003e\n\n\u003cp\u003eSolaris and Debian media may also use $release.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_family","full_name":"medium[os_family]","description":"\n\u003cp\u003eOperating system family, available values: AIX, Altlinux, Archlinux,\nCoreos, Debian, Freebsd, Gentoo, Junos, NXOS, Rancheros, Redhat, Solaris,\nSuse, VRP, Windows, Xenserver\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"medium[operatingsystem_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"medium[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"medium[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/media/destroy","name":"destroy","apis":[{"api_url":"/api/media/:id","http_method":"DELETE","short_description":"Delete a medium","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"models":{"doc_url":"../apidoc/v2/models","id":"models","api_url":"/api","name":"Models","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/models/index","name":"index","apis":[{"api_url":"/api/models","http_method":"GET","short_description":"List all hardware models","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"hardware_model","type":"string"},{"name":"info","type":"text"},{"name":"name","type":"string"},{"name":"vendor_class","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/models/show","name":"show","apis":[{"api_url":"/api/models/:id","http_method":"GET","short_description":"Show a hardware model","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/models/create","name":"create","apis":[{"api_url":"/api/models","http_method":"POST","short_description":"Create a hardware model","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"model","full_name":"model","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"model[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"info","full_name":"model[info]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vendor_class","full_name":"model[vendor_class]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hardware_model","full_name":"model[hardware_model]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/models/update","name":"update","apis":[{"api_url":"/api/models/:id","http_method":"PUT","short_description":"Update a hardware model","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"model","full_name":"model","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"model[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"info","full_name":"model[info]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vendor_class","full_name":"model[vendor_class]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hardware_model","full_name":"model[hardware_model]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/models/destroy","name":"destroy","apis":[{"api_url":"/api/models/:id","http_method":"DELETE","short_description":"Delete a hardware model","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"table_preferences":{"doc_url":"../apidoc/v2/table_preferences","id":"table_preferences","api_url":"/api","name":"Table preferences","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/table_preferences/index","name":"index","apis":[{"api_url":"/api/users/:user_id/table_preferences","http_method":"GET","short_description":"List of table preferences for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/table_preferences/show","name":"show","apis":[{"api_url":"/api/users/:user_id/table_preferences/:name","http_method":"GET","short_description":"Table preference details of a given table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/table_preferences/create","name":"create","apis":[{"api_url":"/api/users/:user_id/table_preferences","http_method":"POST","short_description":"Creates a table preference for a given table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"table_preferences","full_name":"table_preferences","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"table_preferences[name]","description":"\n\u003cp\u003eName of the table\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"columns","full_name":"table_preferences[columns]","description":"\n\u003cp\u003eList of user selected columns\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/table_preferences/update","name":"update","apis":[{"api_url":"/api/users/:user_id/table_preferences/:name","http_method":"PUT","short_description":"Updates a table preference for a given table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"table_preferences","full_name":"table_preferences","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"table_preferences[name]","description":"\n\u003cp\u003eName of the table\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"columns","full_name":"table_preferences[columns]","description":"\n\u003cp\u003eList of user selected columns\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/table_preferences/destroy","name":"destroy","apis":[{"api_url":"/api/users/:user_id/table_preferences/:name","http_method":"DELETE","short_description":"Delete a table preference for a given table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the table\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"operatingsystems":{"doc_url":"../apidoc/v2/operatingsystems","id":"operatingsystems","api_url":"/api","name":"Operating systems","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/operatingsystems/index","name":"index","apis":[{"api_url":"/api/operatingsystems","http_method":"GET","short_description":"List all operating systems","deprecated":null},{"api_url":"/api/architectures/:architecture_id/operatingsystems","http_method":"GET","short_description":"List all operating systems for nested architecture","deprecated":null},{"api_url":"/api/media/:medium_id/operatingsystems","http_method":"GET","short_description":"List all operating systems for nested medium","deprecated":null},{"api_url":"/api/ptables/:ptable_id/operatingsystems","http_method":"GET","short_description":"List all operating systems for nested partition table","deprecated":null},{"api_url":"/api/provisioning_templates/:provisioning_template_id/operatingsystems","http_method":"GET","short_description":"List all operating systems for nested provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"architecture_id","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"medium_id","description":"\n\u003cp\u003eID of medium\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"ptable_id","description":"\n\u003cp\u003eID of partition table\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_parameters_attributes","full_name":"os_parameters_attributes","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"os_parameters_attributes[name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"os_parameters_attributes[value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"architecture","type":"string"},{"name":"description","type":"string"},{"name":"family","type":"string"},{"name":"major","type":"string"},{"name":"medium","type":"string"},{"name":"minor","type":"string"},{"name":"name","type":"string"},{"name":"params","type":"text"},{"name":"template","type":"string"},{"name":"title","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/show","name":"show","apis":[{"api_url":"/api/operatingsystems/:id","http_method":"GET","short_description":"Show an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/create","name":"create","apis":[{"api_url":"/api/operatingsystems","http_method":"POST","short_description":"Create an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem","full_name":"operatingsystem","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"operatingsystem[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must match regular expression \u003ccode\u003e/\\A(\\S+)\\Z/\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"major","full_name":"operatingsystem[major]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"minor","full_name":"operatingsystem[minor]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"operatingsystem[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"family","full_name":"operatingsystem[family]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"release_name","full_name":"operatingsystem[release_name]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_parameters_attributes","full_name":"operatingsystem[os_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"operatingsystem[os_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"operatingsystem[os_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"password_hash","full_name":"operatingsystem[password_hash]","description":"\n\u003cp\u003eRoot password hash function to use\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eSHA256\u003c/code\u003e, \u003ccode\u003eSHA512\u003c/code\u003e, \u003ccode\u003eBase64\u003c/code\u003e, \u003ccode\u003eBase64-Windows\u003c/code\u003e, \u003ccode\u003eMD5\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_ids","full_name":"operatingsystem[architecture_ids]","description":"\n\u003cp\u003eIDs of associated architectures\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"operatingsystem[provisioning_template_ids]","description":"\n\u003cp\u003eIDs of associated provisioning templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"operatingsystem[medium_ids]","description":"\n\u003cp\u003eIDs of associated media\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"operatingsystem[ptable_ids]","description":"\n\u003cp\u003eIDs of associated partition tables\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/update","name":"update","apis":[{"api_url":"/api/operatingsystems/:id","http_method":"PUT","short_description":"Update an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem","full_name":"operatingsystem","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"operatingsystem[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must match regular expression \u003ccode\u003e/\\A(\\S+)\\Z/\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"major","full_name":"operatingsystem[major]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"minor","full_name":"operatingsystem[minor]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"operatingsystem[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"family","full_name":"operatingsystem[family]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"release_name","full_name":"operatingsystem[release_name]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_parameters_attributes","full_name":"operatingsystem[os_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"operatingsystem[os_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"operatingsystem[os_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"password_hash","full_name":"operatingsystem[password_hash]","description":"\n\u003cp\u003eRoot password hash function to use\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eSHA256\u003c/code\u003e, \u003ccode\u003eSHA512\u003c/code\u003e, \u003ccode\u003eBase64\u003c/code\u003e, \u003ccode\u003eBase64-Windows\u003c/code\u003e, \u003ccode\u003eMD5\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_ids","full_name":"operatingsystem[architecture_ids]","description":"\n\u003cp\u003eIDs of associated architectures\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"operatingsystem[provisioning_template_ids]","description":"\n\u003cp\u003eIDs of associated provisioning templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"operatingsystem[medium_ids]","description":"\n\u003cp\u003eIDs of associated media\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"operatingsystem[ptable_ids]","description":"\n\u003cp\u003eIDs of associated partition tables\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/destroy","name":"destroy","apis":[{"api_url":"/api/operatingsystems/:id","http_method":"DELETE","short_description":"Delete an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/bootfiles","name":"bootfiles","apis":[{"api_url":"/api/operatingsystems/:id/bootfiles","http_method":"GET","short_description":"List boot files for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"organizations":{"doc_url":"../apidoc/v2/organizations","id":"organizations","api_url":"/api","name":"Organizations","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/organizations/index","name":"index","apis":[{"api_url":"/katello/api/organizations","http_method":"GET","short_description":"List all organizations","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"id","type":"integer"},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"},{"name":"title","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/show","name":"show","apis":[{"api_url":"/katello/api/organizations/:id","http_method":"GET","short_description":"Show organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eorganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/create","name":"create","apis":[{"api_url":"/katello/api/organizations","http_method":"POST","short_description":"Create organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization","full_name":"organization","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"organization[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"organization[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"organization[user_ids]","description":"\n\u003cp\u003eUser IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_ids","full_name":"organization[smart_proxy_ids]","description":"\n\u003cp\u003eSmart proxy IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_ids","full_name":"organization[compute_resource_ids]","description":"\n\u003cp\u003eCompute resource IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"organization[medium_ids]","description":"\n\u003cp\u003eMedium IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_template_ids","full_name":"organization[config_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"organization[ptable_ids]","description":"\n\u003cp\u003ePartition template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"organization[provisioning_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"organization[domain_ids]","description":"\n\u003cp\u003eDomain IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"realm_ids","full_name":"organization[realm_ids]","description":"\n\u003cp\u003eRealm IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"organization[hostgroup_ids]","description":"\n\u003cp\u003eHost group IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"organization[environment_ids]","description":"\n\u003cp\u003eEnvironment IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"subnet_ids","full_name":"organization[subnet_ids]","description":"\n\u003cp\u003eSubnet IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"organization[label]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/update","name":"update","apis":[{"api_url":"/katello/api/organizations/:id","http_method":"PUT","short_description":"Update organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eorganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"redhat_repository_url","full_name":"redhat_repository_url","description":"\n\u003cp\u003eRed Hat CDN URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization","full_name":"organization","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"organization[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"organization[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"organization[user_ids]","description":"\n\u003cp\u003eUser IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_ids","full_name":"organization[smart_proxy_ids]","description":"\n\u003cp\u003eSmart proxy IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_ids","full_name":"organization[compute_resource_ids]","description":"\n\u003cp\u003eCompute resource IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"organization[medium_ids]","description":"\n\u003cp\u003eMedium IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"organization[ptable_ids]","description":"\n\u003cp\u003ePartition template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"organization[provisioning_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"organization[domain_ids]","description":"\n\u003cp\u003eDomain IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"realm_ids","full_name":"organization[realm_ids]","description":"\n\u003cp\u003eRealm IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"organization[hostgroup_ids]","description":"\n\u003cp\u003eHost group IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"organization[environment_ids]","description":"\n\u003cp\u003eEnvironment IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"subnet_ids","full_name":"organization[subnet_ids]","description":"\n\u003cp\u003eSubnet IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"parent_id","full_name":"organization[parent_id]","description":"\n\u003cp\u003eParent ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ignore_types","full_name":"organization[ignore_types]","description":"\n\u003cp\u003eList of resources types that will be automatically associated\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"organization[location_ids]","description":"\n\u003cp\u003eAssociated location IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/destroy","name":"destroy","apis":[{"api_url":"/katello/api/organizations/:id","http_method":"DELETE","short_description":"Delete an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/repo_discover","name":"repo_discover","apis":[{"api_url":"/katello/api/organizations/:id/repo_discover","http_method":"PUT","short_description":"Discover Repositories","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"url","description":"\n\u003cp\u003eBase URL to perform repo discovery on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003eOne of yum or docker\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"upstream_username","full_name":"upstream_username","description":"\n\u003cp\u003eUsername to access URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"upstream_password","full_name":"upstream_password","description":"\n\u003cp\u003ePassword to access URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch pattern (defaults to \u0026#39;*\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/cancel_repo_discover","name":"cancel_repo_discover","apis":[{"api_url":"/katello/api/organizations/:label/cancel_repo_discover","http_method":"PUT","short_description":"Cancel repository discovery","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003eOrganization label\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"url","description":"\n\u003cp\u003ebase url to perform repo discovery on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/download_debug_certificate","name":"download_debug_certificate","apis":[{"api_url":"/katello/api/organizations/:label/download_debug_certificate","http_method":"GET","short_description":"Download a debug certificate","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003eOrganization label\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/releases","name":"releases","apis":[{"api_url":"/katello/api/organizations/:id/releases","http_method":"GET","short_description":"List available releases in the organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the Organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/autoattach_subscriptions","name":"autoattach_subscriptions","apis":[{"api_url":"/katello/api/organizations/:id/autoattach_subscriptions","http_method":"POST","short_description":"Auto-attach available subscriptions to all hosts within an organization. Asynchronous operation.","deprecated":true}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/redhat_provider","name":"redhat_provider","apis":[{"api_url":"/katello/api/organizations/:id/redhat_provider","http_method":"GET","short_description":"List all :resource_id","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"tasks":{"doc_url":"../apidoc/v2/tasks","id":"tasks","api_url":"/api","name":"Tasks","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/tasks/index","name":"index","apis":[{"api_url":"/api/orchestration/:id/tasks","http_method":"GET","short_description":"List all tasks for a given orchestration event","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"os_default_templates":{"doc_url":"../apidoc/v2/os_default_templates","id":"os_default_templates","api_url":"/api","name":"Os default templates","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/os_default_templates/index","name":"index","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates","http_method":"GET","short_description":"List default templates combinations for an operating system","deprecated":null},{"api_url":"/api/provisioning_templates/:provisioning_template_id/os_default_templates","http_method":"GET","short_description":"List operating systems where this template is set as a default","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of provisioning template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/os_default_templates/show","name":"show","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates/:id","http_method":"GET","short_description":"Show a default template combination for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/os_default_templates/create","name":"create","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates","http_method":"POST","short_description":"Create a default template combination for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_default_template","full_name":"os_default_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"template_kind_id","full_name":"os_default_template[template_kind_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"os_default_template[provisioning_template_id]","description":"\n\u003cp\u003eID of provisioning template\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/os_default_templates/update","name":"update","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates/:id","http_method":"PUT","short_description":"Update a default template combination for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_default_template","full_name":"os_default_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"template_kind_id","full_name":"os_default_template[template_kind_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"os_default_template[provisioning_template_id]","description":"\n\u003cp\u003eID of provisioning template\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/os_default_templates/destroy","name":"destroy","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates/:id","http_method":"DELETE","short_description":"Delete a default template combination for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"template_combinations":{"doc_url":"../apidoc/v2/template_combinations","id":"template_combinations","api_url":"/api","name":"Template combinations","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/template_combinations/index","name":"index","apis":[{"api_url":"/api/provisioning_templates/:provisioning_template_id/template_combinations","http_method":"GET","short_description":"List template combination","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/template_combinations","http_method":"GET","short_description":"List template combination","deprecated":null},{"api_url":"/api/environments/:environment_id/template_combinations","http_method":"GET","short_description":"List template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of config template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_combinations/create","name":"create","apis":[{"api_url":"/api/provisioning_templates/:provisioning_template_id/template_combinations","http_method":"POST","short_description":"Add a template combination","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/template_combinations","http_method":"POST","short_description":"Add a template combination","deprecated":null},{"api_url":"/api/environments/:environment_id/template_combinations","http_method":"POST","short_description":"Add a template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of config template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_combination","full_name":"template_combination","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"environment_id","full_name":"template_combination[environment_id]","description":"\n\u003cp\u003eenvironment id\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"template_combination[hostgroup_id]","description":"\n\u003cp\u003ehost group id\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_combinations/show","name":"show","apis":[{"api_url":"/api/template_combinations/:id","http_method":"GET","short_description":"Show template combination","deprecated":null},{"api_url":"/api/provisioning_templates/:provisioning_template_id/template_combinations/:id","http_method":"GET","short_description":"Show template combination","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/template_combinations/:id","http_method":"GET","short_description":"Show template combination","deprecated":null},{"api_url":"/api/environments/:environment_id/template_combinations/:id","http_method":"GET","short_description":"Show template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of config template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_combinations/update","name":"update","apis":[{"api_url":"/api/provisioning_templates/:provisioning_template_id/template_combinations/:id","http_method":"PUT","short_description":"Update template combination","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/template_combinations/:id","http_method":"PUT","short_description":"Update template combination","deprecated":null},{"api_url":"/api/environments/:environment_id/template_combinations/:id","http_method":"PUT","short_description":"Update template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of config template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_combination","full_name":"template_combination","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"environment_id","full_name":"template_combination[environment_id]","description":"\n\u003cp\u003eenvironment id\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"template_combination[hostgroup_id]","description":"\n\u003cp\u003ehost group id\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_combinations/destroy","name":"destroy","apis":[{"api_url":"/api/template_combinations/:id","http_method":"DELETE","short_description":"Delete a template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"override_values":{"doc_url":"../apidoc/v2/override_values","id":"override_values","api_url":"/api","name":"Override values","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/override_values/index","name":"index","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values","http_method":"GET","short_description":"List of override values for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/override_values/show","name":"show","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values/:id","http_method":"GET","short_description":"Show an override value for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/override_values/create","name":"create","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values","http_method":"POST","short_description":"Create an override value for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override_value","full_name":"override_value","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"match","full_name":"override_value[match]","description":"\n\u003cp\u003eOverride match\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"override_value[value]","description":"\n\u003cp\u003eOverride value, required if omit is false\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of types: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e","expected_type":"any_type","metadata":null,"show":true,"validations":[]},{"name":"omit","full_name":"override_value[omit]","description":"\n\u003cp\u003eForeman will not send this parameter in classification output\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/override_values/update","name":"update","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values/:id","http_method":"PUT","short_description":"Update an override value for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override_value","full_name":"override_value","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"match","full_name":"override_value[match]","description":"\n\u003cp\u003eOverride match\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"override_value[value]","description":"\n\u003cp\u003eOverride value, required if omit is false\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of types: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e","expected_type":"any_type","metadata":null,"show":true,"validations":[]},{"name":"omit","full_name":"override_value[omit]","description":"\n\u003cp\u003eForeman will not send this parameter in classification output\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/override_values/destroy","name":"destroy","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values/:id","http_method":"DELETE","short_description":"Delete an override value for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"parameters":{"doc_url":"../apidoc/v2/parameters","id":"parameters","api_url":"/api","name":"Parameters","short_description":null,"full_description":"\n\u003cp\u003eThese API calls are related to \u003cstrong\u003enested parameters for a host,\ndomain, subnet, host group, operating system\u003c/strong\u003e. If you are looking\nfor \u0026lt;a href=“common_parameters.html”\u0026gt;global parameters\u0026lt;/a\u0026gt;, go\nto \u0026lt;a href=“common_parameters.html”\u0026gt;this link\u0026lt;/a\u0026gt;.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/parameters/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/parameters","http_method":"GET","short_description":"List all parameters for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters","http_method":"GET","short_description":"List all parameters for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters","http_method":"GET","short_description":"List all parameters for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters","http_method":"GET","short_description":"List all parameters for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters","http_method":"GET","short_description":"List all parameters for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters","http_method":"GET","short_description":"List all parameters for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters","http_method":"GET","short_description":"List all parameters for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"domain_name","type":"string"},{"name":"host_group_name","type":"string"},{"name":"host_name","type":"string"},{"name":"key_type","type":"string"},{"name":"location_name","type":"string"},{"name":"name","type":"string"},{"name":"organization_name","type":"string"},{"name":"os_name","type":"string"},{"name":"parameter_type","type":"string"},{"name":"subnet_name","type":"text"},{"name":"type","type":"string"},{"name":"value","type":"text"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/show","name":"show","apis":[{"api_url":"/api/hosts/:host_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/create","name":"create","apis":[{"api_url":"/api/hosts/:host_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters","http_method":"POST","short_description":"Create a nested parameter for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters","http_method":"POST","short_description":"Create a nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter","full_name":"parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"parameter[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"parameter[value]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"parameter[parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/update","name":"update","apis":[{"api_url":"/api/hosts/:host_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter","full_name":"parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"parameter[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"parameter[value]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"parameter[parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:host_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/reset","name":"reset","apis":[{"api_url":"/api/hosts/:host_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"permissions":{"doc_url":"../apidoc/v2/permissions","id":"permissions","api_url":"/api","name":"Permissions","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/permissions/index","name":"index","apis":[{"api_url":"/api/permissions","http_method":"GET","short_description":"List all permissions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"resource_type","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/permissions/show","name":"show","apis":[{"api_url":"/api/permissions/:id","http_method":"GET","short_description":"Show a permission","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/permissions/resource_types","name":"resource_types","apis":[{"api_url":"/api/permissions/resource_types","http_method":"GET","short_description":"List available resource types","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"smart_class_parameters":{"doc_url":"../apidoc/v2/smart_class_parameters","id":"smart_class_parameters","api_url":"/api","name":"Smart class parameters","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/smart_class_parameters/index","name":"index","apis":[{"api_url":"/api/smart_class_parameters","http_method":"GET","short_description":"List all smart class parameters","deprecated":null},{"api_url":"/api/hosts/:host_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific host group","deprecated":null},{"api_url":"/api/puppetclasses/:puppetclass_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific Puppet class","deprecated":null},{"api_url":"/api/environments/:environment_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific environment","deprecated":null},{"api_url":"/api/environments/:environment_id/puppetclasses/:puppetclass_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific environment/Puppet class combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_id","full_name":"puppetclass_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"avoid_duplicates","values":["true","false"]},{"name":"environment","type":"string"},{"name":"key","type":"string"},{"name":"merge_default","values":["true","false"]},{"name":"merge_overrides","values":["true","false"]},{"name":"override","values":["true","false"]},{"name":"parameter","type":"string"},{"name":"puppetclass","type":"string"},{"name":"puppetclass_name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_class_parameters/show","name":"show","apis":[{"api_url":"/api/smart_class_parameters/:id","http_method":"GET","short_description":"Show a smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_class_parameters/update","name":"update","apis":[{"api_url":"/api/smart_class_parameters/:id","http_method":"PUT","short_description":"Update a smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter","full_name":"smart_class_parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"override","full_name":"smart_class_parameter[override]","description":"\n\u003cp\u003eWhether the smart class parameter value is managed by Foreman\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"smart_class_parameter[description]","description":"\n\u003cp\u003eDescription of smart class\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"default_value","full_name":"smart_class_parameter[default_value]","description":"\n\u003cp\u003eValue to use when there is no match\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of types: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e","expected_type":"any_type","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"smart_class_parameter[hidden_value]","description":"\n\u003cp\u003eWhen enabled the parameter is hidden in the UI\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"omit","full_name":"smart_class_parameter[omit]","description":"\n\u003cp\u003eForeman will not send this parameter in classification output. Puppet will\nuse the value defined in the Puppet manifest for this parameter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"path","full_name":"smart_class_parameter[path]","description":"\n\u003cp\u003eThe order in which values are resolved\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"validator_type","full_name":"smart_class_parameter[validator_type]","description":"\n\u003cp\u003eTypes of validation values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eregexp\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"validator_rule","full_name":"smart_class_parameter[validator_rule]","description":"\n\u003cp\u003eUsed to enforce certain values for the parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override_value_order","full_name":"smart_class_parameter[override_value_order]","description":"\n\u003cp\u003eThe order in which values are resolved\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"smart_class_parameter[parameter_type]","description":"\n\u003cp\u003eTypes of variable values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"required","full_name":"smart_class_parameter[required]","description":"\n\u003cp\u003eIf true, will raise an error if there is no default value and no matcher\nprovide a value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"merge_overrides","full_name":"smart_class_parameter[merge_overrides]","description":"\n\u003cp\u003eMerge all matching values (only array/hash type)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"merge_default","full_name":"smart_class_parameter[merge_default]","description":"\n\u003cp\u003eInclude default value when merging all matching values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"avoid_duplicates","full_name":"smart_class_parameter[avoid_duplicates]","description":"\n\u003cp\u003eRemove duplicate values (only array type)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ssh_keys":{"doc_url":"../apidoc/v2/ssh_keys","id":"ssh_keys","api_url":"/api","name":"Ssh keys","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ssh_keys/index","name":"index","apis":[{"api_url":"/api/users/:user_id/ssh_keys","http_method":"GET","short_description":"List all SSH keys for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"user_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ssh_keys/show","name":"show","apis":[{"api_url":"/api/users/:user_id/ssh_keys/:id","http_method":"GET","short_description":"Show an SSH key from a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ssh_keys/create","name":"create","apis":[{"api_url":"/api/users/:user_id/ssh_keys","http_method":"POST","short_description":"Add an SSH key for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ssh_key","full_name":"ssh_key","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ssh_key[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"key","full_name":"ssh_key[key]","description":"\n\u003cp\u003ePublic SSH key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ssh_keys/destroy","name":"destroy","apis":[{"api_url":"/api/users/:user_id/ssh_keys/:id","http_method":"DELETE","short_description":"Delete an SSH key for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"statistics":{"doc_url":"../apidoc/v2/statistics","id":"statistics","api_url":"/api","name":"Statistics","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/statistics/index","name":"index","apis":[{"api_url":"/api/statistics","http_method":"GET","short_description":"Get statistics","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"subnets":{"doc_url":"../apidoc/v2/subnets","id":"subnets","api_url":"/api","name":"Subnets","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/subnets/index","name":"index","apis":[{"api_url":"/api/subnets","http_method":"GET","short_description":"List of subnets","deprecated":null},{"api_url":"/api/domains/:domain_id/subnets","http_method":"GET","short_description":"List of subnets for a domain","deprecated":null},{"api_url":"/api/locations/:location_id/subnets","http_method":"GET","short_description":"List of subnets per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/subnets","http_method":"GET","short_description":"List of subnets per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"boot_mode","type":"string"},{"name":"dns_primary","type":"string"},{"name":"dns_secondary","type":"string"},{"name":"domain","type":"string"},{"name":"gateway","type":"string"},{"name":"ipam","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"mask","type":"string"},{"name":"mtu","type":"integer"},{"name":"name","type":"text"},{"name":"network","type":"string"},{"name":"nic_delay","type":"integer"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"params","type":"text"},{"name":"type","type":"string"},{"name":"vlanid","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/show","name":"show","apis":[{"api_url":"/api/subnets/:id","http_method":"GET","short_description":"Show a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/create","name":"create","apis":[{"api_url":"/api/subnets","http_method":"POST","short_description":"Create a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet","full_name":"subnet","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"subnet[name]","description":"\n\u003cp\u003eSubnet name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"subnet[description]","description":"\n\u003cp\u003eSubnet description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"network_type","full_name":"subnet[network_type]","description":"\n\u003cp\u003eType or protocol, IPv4 or IPv6, defaults to IPv4\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPv4\u003c/code\u003e, \u003ccode\u003eIPv6\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"network","full_name":"subnet[network]","description":"\n\u003cp\u003eSubnet network\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mask","full_name":"subnet[mask]","description":"\n\u003cp\u003eNetmask for this subnet\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gateway","full_name":"subnet[gateway]","description":"\n\u003cp\u003eSubnet gateway\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_primary","full_name":"subnet[dns_primary]","description":"\n\u003cp\u003ePrimary DNS for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_secondary","full_name":"subnet[dns_secondary]","description":"\n\u003cp\u003eSecondary DNS for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ipam","full_name":"subnet[ipam]","description":"\n\u003cp\u003eIP Address auto suggestion mode for this subnet.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eDHCP\u003c/code\u003e, \u003ccode\u003eInternal DB\u003c/code\u003e, \u003ccode\u003eRandom DB\u003c/code\u003e, \u003ccode\u003eEUI-64\u003c/code\u003e, \u003ccode\u003eNone\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"from","full_name":"subnet[from]","description":"\n\u003cp\u003eStarting IP Address for IP auto suggestion\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"to","full_name":"subnet[to]","description":"\n\u003cp\u003eEnding IP Address for IP auto suggestion\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vlanid","full_name":"subnet[vlanid]","description":"\n\u003cp\u003eVLAN ID for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"subnet[mtu]","description":"\n\u003cp\u003eMTU for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"subnet[domain_ids]","description":"\n\u003cp\u003eDomains in which this subnet is part\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"dhcp_id","full_name":"subnet[dhcp_id]","description":"\n\u003cp\u003eDHCP Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"tftp_id","full_name":"subnet[tftp_id]","description":"\n\u003cp\u003eTFTP Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"httpboot_id","full_name":"subnet[httpboot_id]","description":"\n\u003cp\u003eHTTPBoot Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"dns_id","full_name":"subnet[dns_id]","description":"\n\u003cp\u003eDNS Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"subnet[template_id]","description":"\n\u003cp\u003eTemplate HTTP(S) Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"boot_mode","full_name":"subnet[boot_mode]","description":"\n\u003cp\u003eDefault boot mode for interfaces assigned to this subnet.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eStatic\u003c/code\u003e, \u003ccode\u003eDHCP\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_parameters_attributes","full_name":"subnet[subnet_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters (name, value)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"subnet[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"subnet[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/update","name":"update","apis":[{"api_url":"/api/subnets/:id","http_method":"PUT","short_description":"Update a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eSubnet numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet","full_name":"subnet","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"subnet[name]","description":"\n\u003cp\u003eSubnet name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"subnet[description]","description":"\n\u003cp\u003eSubnet description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"network_type","full_name":"subnet[network_type]","description":"\n\u003cp\u003eType or protocol, IPv4 or IPv6, defaults to IPv4\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPv4\u003c/code\u003e, \u003ccode\u003eIPv6\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"network","full_name":"subnet[network]","description":"\n\u003cp\u003eSubnet network\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mask","full_name":"subnet[mask]","description":"\n\u003cp\u003eNetmask for this subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gateway","full_name":"subnet[gateway]","description":"\n\u003cp\u003eSubnet gateway\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_primary","full_name":"subnet[dns_primary]","description":"\n\u003cp\u003ePrimary DNS for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_secondary","full_name":"subnet[dns_secondary]","description":"\n\u003cp\u003eSecondary DNS for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ipam","full_name":"subnet[ipam]","description":"\n\u003cp\u003eIP Address auto suggestion mode for this subnet.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eDHCP\u003c/code\u003e, \u003ccode\u003eInternal DB\u003c/code\u003e, \u003ccode\u003eRandom DB\u003c/code\u003e, \u003ccode\u003eEUI-64\u003c/code\u003e, \u003ccode\u003eNone\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"from","full_name":"subnet[from]","description":"\n\u003cp\u003eStarting IP Address for IP auto suggestion\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"to","full_name":"subnet[to]","description":"\n\u003cp\u003eEnding IP Address for IP auto suggestion\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vlanid","full_name":"subnet[vlanid]","description":"\n\u003cp\u003eVLAN ID for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"subnet[mtu]","description":"\n\u003cp\u003eMTU for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"subnet[domain_ids]","description":"\n\u003cp\u003eDomains in which this subnet is part\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"dhcp_id","full_name":"subnet[dhcp_id]","description":"\n\u003cp\u003eDHCP Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"tftp_id","full_name":"subnet[tftp_id]","description":"\n\u003cp\u003eTFTP Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"httpboot_id","full_name":"subnet[httpboot_id]","description":"\n\u003cp\u003eHTTPBoot Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"dns_id","full_name":"subnet[dns_id]","description":"\n\u003cp\u003eDNS Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"subnet[template_id]","description":"\n\u003cp\u003eTemplate HTTP(S) Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"boot_mode","full_name":"subnet[boot_mode]","description":"\n\u003cp\u003eDefault boot mode for interfaces assigned to this subnet.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eStatic\u003c/code\u003e, \u003ccode\u003eDHCP\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_parameters_attributes","full_name":"subnet[subnet_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters (name, value)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"subnet[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"subnet[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/destroy","name":"destroy","apis":[{"api_url":"/api/subnets/:id","http_method":"DELETE","short_description":"Delete a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eSubnet numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/freeip","name":"freeip","apis":[{"api_url":"/api/subnets/:id/freeip","http_method":"GET","short_description":"Provides an unused IP address in this subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mac","full_name":"mac","description":"\n\u003cp\u003eMAC address to reuse the IP for this host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"excluded_ips","full_name":"excluded_ips","description":"\n\u003cp\u003eIP addresses that should be excluded from suggestion\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"recurring_logics":{"doc_url":"../apidoc/v2/recurring_logics","id":"recurring_logics","api_url":"/api","name":"Recurring logics","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/recurring_logics/index","name":"index","apis":[{"api_url":"/foreman_tasks/api/recurring_logics","http_method":"GET","short_description":"List recurring logics","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/recurring_logics/show","name":"show","apis":[{"api_url":"/foreman_tasks/api/recurring_logics/:id","http_method":"GET","short_description":"Show recurring logic details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the recurring logic\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/recurring_logics/update","name":"update","apis":[{"api_url":"/foreman_tasks/api/recurring_logics/:id","http_method":"PUT","short_description":"Update recurring logic","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the recurring logic\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eWhether the recurring logic is enabled or disabled.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/recurring_logics/cancel","name":"cancel","apis":[{"api_url":"/foreman_tasks/api/recurring_logics/:id/cancel","http_method":"POST","short_description":"Cancel recurring logic","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the recurring logic\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"foreman_tasks":{"doc_url":"../apidoc/v2/foreman_tasks","id":"foreman_tasks","api_url":"/api","name":"Foreman tasks","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/foreman_tasks/summary","name":"summary","apis":[{"api_url":"/foreman_tasks/api/tasks/summary","http_method":"GET","short_description":"Show task summary","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/show","name":"show","apis":[{"api_url":"/foreman_tasks/api/tasks/:id","http_method":"GET","short_description":"Show task details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/details","name":"details","apis":[{"api_url":"/foreman_tasks/api/tasks/:id/details","http_method":"GET","short_description":"Show task extended details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/sub_tasks","name":"sub_tasks","apis":[{"api_url":"/foreman_tasks/api/tasks/:id/sub_tasks","http_method":"GET","short_description":"Show sub_tasks details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/bulk_search","name":"bulk_search","apis":[{"api_url":"/foreman_tasks/api/tasks/bulk_search","http_method":"POST","short_description":"List dynflow tasks for uuids","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eFor every search it returns the list of tasks that satisfty the condition.\nThe reason for supporting multiple searches is the UI that might be ending\nneeding periodic updates on task status for various searches at the same\ntime. This way, it is possible to get all the task statuses with one\nrequest.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"searches","full_name":"searches","description":"\n\u003cp\u003eList of uuids to fetch info about\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"search_id","full_name":"searches[search_id]","description":"\n\u003cp\u003eArbitraty value for client to identify the the request parts with results.\nIt\u0026#39;s passed in the results to be able to pair the requests and\nresponses properly.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"searches[type]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003euser\u003c/code\u003e, \u003ccode\u003eresource\u003c/code\u003e, \u003ccode\u003etask\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"task_id","full_name":"searches[task_id]","description":"\n\u003cp\u003eIn case :type = \u0026#39;task\u0026#39;, find the task by the uuid\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"searches[user_id]","description":"\n\u003cp\u003eIn case :type = \u0026#39;user\u0026#39;, find tasks for the user\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resource_type","full_name":"searches[resource_type]","description":"\n\u003cp\u003eIn case :type = \u0026#39;resource\u0026#39;, what resource type we\u0026#39;re searching\nthe tasks for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resource_type","full_name":"searches[resource_type]","description":"\n\u003cp\u003eIn case :type = \u0026#39;resource\u0026#39;, what resource id we\u0026#39;re searching\nthe tasks for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"action_types","full_name":"searches[action_types]","description":"\n\u003cp\u003eReturn just tasks of given action type, e.g.\n[“Actions::Katello::Repository::Synchronize”]\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eString\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"active_only","full_name":"searches[active_only]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"searches[page]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"searches[per_page]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/bulk_resume","name":"bulk_resume","apis":[{"api_url":"/foreman_tasks/api/tasks/bulk_resume","http_method":"POST","short_description":"Resume all paused error tasks","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eResume tasks matching search string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"task_ids","full_name":"task_ids","description":"\n\u003cp\u003eResume specific tasks by ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/index","name":"index","apis":[{"api_url":"/foreman_tasks/api/tasks","http_method":"GET","short_description":"List tasks","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, e.g. \u0026#39;name DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort","full_name":"sort","description":"\n\u003cp\u003eHash version of \u0026#39;order\u0026#39; param\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"by","full_name":"sort[by]","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"sort[order]","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/callback","name":"callback","apis":[{"api_url":"/foreman_tasks/api/tasks/callback","http_method":"POST","short_description":"Send data to the task from external executor (such as smart_proxy_dynflow)","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"callback","full_name":"callback","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"task_id","full_name":"callback[task_id]","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"step_id","full_name":"callback[step_id]","description":"\n\u003cp\u003eThe ID of the step inside the execution plan to send the event to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"data","full_name":"data","description":"\n\u003cp\u003eData to be sent to the action\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"callbacks","full_name":"callbacks","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"callback","full_name":"callbacks[callback]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"task_id","full_name":"callbacks[callback][task_id]","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"step_id","full_name":"callbacks[callback][step_id]","description":"\n\u003cp\u003eThe ID of the step inside the execution plan to send the event to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"data","full_name":"callbacks[data]","description":"\n\u003cp\u003eData to be sent to the action\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"puppet_modules":{"doc_url":"../apidoc/v2/puppet_modules","id":"puppet_modules","api_url":"/api","name":"Puppet modules","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/puppet_modules/index","name":"index","apis":[{"api_url":"/katello/api/puppet_modules","http_method":"GET","short_description":"List puppet_modules","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/puppet_modules","http_method":"GET","short_description":"List puppet_modules","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/puppet_modules","http_method":"GET","short_description":"List puppet_modules","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/puppet_modules","http_method":"GET","short_description":"List puppet_modules","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppet_modules/show","name":"show","apis":[{"api_url":"/katello/api/puppet_modules/:id","http_method":"GET","short_description":"Show a puppet module","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/puppet_modules/:id","http_method":"GET","short_description":"Show a puppet module","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea puppet module identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppet_modules/compare","name":"compare","apis":[{"api_url":"/katello/api/puppet_modules/compare","http_method":"GET","short_description":"List puppet_modules","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"activation_keys":{"doc_url":"../apidoc/v2/activation_keys","id":"activation_keys","api_url":"/api","name":"Activation keys","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/activation_keys/index","name":"index","apis":[{"api_url":"/katello/api/activation_keys","http_method":"GET","short_description":"List activation keys","deprecated":null},{"api_url":"/katello/api/environments/:environment_id/activation_keys","http_method":"GET","short_description":null,"deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/activation_keys","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eactivation key name to filter by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"addon","type":"string"},{"name":"content_view","type":"string"},{"name":"content_view_id","type":"integer"},{"name":"description","type":"text"},{"name":"environment","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"},{"name":"role","type":"string"},{"name":"subscription_id","type":"string"},{"name":"subscription_name","type":"string"},{"name":"usage","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/create","name":"create","apis":[{"api_url":"/katello/api/activation_keys","http_method":"POST","short_description":"Create an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment","full_name":"environment","description":"\n\u003cp\u003eenvironment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"max_hosts","full_name":"max_hosts","description":"\n\u003cp\u003emaximum number of registered content hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unlimited_hosts","full_name":"unlimited_hosts","description":"\n\u003cp\u003ecan the activation key have unlimited hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"release_version","full_name":"release_version","description":"\n\u003cp\u003econtent release version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"service_level","description":"\n\u003cp\u003eservice level\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auto_attach","full_name":"auto_attach","description":"\n\u003cp\u003eauto attach subscriptions upon registration\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"purpose_usage","full_name":"purpose_usage","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_role","full_name":"purpose_role","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_addons","full_name":"purpose_addons","description":"\n\u003cp\u003eSets the system add-ons\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/update","name":"update","apis":[{"api_url":"/katello/api/activation_keys/:id","http_method":"PUT","short_description":"Update an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"max_hosts","full_name":"max_hosts","description":"\n\u003cp\u003emaximum number of registered content hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unlimited_hosts","full_name":"unlimited_hosts","description":"\n\u003cp\u003ecan the activation key have unlimited hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"release_version","full_name":"release_version","description":"\n\u003cp\u003econtent release version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"service_level","description":"\n\u003cp\u003eservice level\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auto_attach","full_name":"auto_attach","description":"\n\u003cp\u003eauto attach subscriptions upon registration\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"purpose_usage","full_name":"purpose_usage","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_role","full_name":"purpose_role","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_addons","full_name":"purpose_addons","description":"\n\u003cp\u003eSets the system add-ons\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/destroy","name":"destroy","apis":[{"api_url":"/katello/api/activation_keys/:id","http_method":"DELETE","short_description":"Destroy an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/show","name":"show","apis":[{"api_url":"/katello/api/activation_keys/:id","http_method":"GET","short_description":"Show an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/copy","name":"copy","apis":[{"api_url":"/katello/api/activation_keys/:id/copy","http_method":"POST","short_description":"Copy an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"new_name","full_name":"new_name","description":"\n\u003cp\u003eName of new activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/available_host_collections","name":"available_host_collections","apis":[{"api_url":"/katello/api/activation_keys/:id/host_collections/available","http_method":"GET","short_description":"List host collections the activation key does not belong to","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ehost collection name to filter by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/available_releases","name":"available_releases","apis":[{"api_url":"/katello/api/activation_keys/:id/releases","http_method":"GET","short_description":"Show release versions available for an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/product_content","name":"product_content","apis":[{"api_url":"/katello/api/activation_keys/:id/product_content","http_method":"GET","short_description":"Show content available for an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_access_mode_all","full_name":"content_access_mode_all","description":"\n\u003cp\u003eGet all content available, not just that provided by subscriptions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"content_access_mode_env","full_name":"content_access_mode_env","description":"\n\u003cp\u003eLimit content to just that available in the activation key\u0026#39;s content\nview version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/add_host_collections","name":"add_host_collections","apis":[{"api_url":"/katello/api/activation_keys/:id/host_collections","http_method":"POST","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection IDs to associate with activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/remove_host_collections","name":"remove_host_collections","apis":[{"api_url":"/katello/api/activation_keys/:id/host_collections","http_method":"PUT","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection IDs to disassociate from the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/add_subscriptions","name":"add_subscriptions","apis":[{"api_url":"/katello/api/activation_keys/:id/add_subscriptions","http_method":"PUT","short_description":"Attach a subscription","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscription_id","full_name":"subscription_id","description":"\n\u003cp\u003eSubscription identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"quantity","description":"\n\u003cp\u003eQuantity of this subscription to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool uuid\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eQuantity of this subscriptions to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/remove_subscriptions","name":"remove_subscriptions","apis":[{"api_url":"/katello/api/activation_keys/:id/remove_subscriptions","http_method":"PUT","short_description":"Unattach a subscription","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscription_id","full_name":"subscription_id","description":"\n\u003cp\u003eSubscription ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool uuid\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/content_override","name":"content_override","apis":[{"api_url":"/katello/api/activation_keys/:id/content_override","http_method":"PUT","short_description":"Override content for activation_key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_overrides","full_name":"content_overrides","description":"\n\u003cp\u003eArray of Content override parameters to be added in bulk\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_label","full_name":"content_overrides[content_label]","description":"\n\u003cp\u003eLabel of the content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"content_overrides[value]","description":"\n\u003cp\u003eOverride value. Provide a boolean value if name is \u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"content_overrides[name]","description":"\n\u003cp\u003eOverride parameter key or name. Note if name is not provided the default\nname will be \u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"remove","full_name":"content_overrides[remove]","description":"\n\u003cp\u003eSet true to remove an override and reset it to \u0026#39;default\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"repositories_bulk_actions":{"doc_url":"../apidoc/v2/repositories_bulk_actions","id":"repositories_bulk_actions","api_url":"/api","name":"Repositories bulk actions","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/repositories_bulk_actions/destroy_repositories","name":"destroy_repositories","apis":[{"api_url":"/katello/api/repositories/bulk/destroy","http_method":"PUT","short_description":"Destroy one or more repositories","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of repository ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories_bulk_actions/sync_repositories","name":"sync_repositories","apis":[{"api_url":"/katello/api/repositories/bulk/sync","http_method":"POST","short_description":"Synchronize repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of repository ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ansible_collections":{"doc_url":"../apidoc/v2/ansible_collections","id":"ansible_collections","api_url":"/api","name":"Ansible Collections","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ansible_collections/index","name":"index","apis":[{"api_url":"/katello/api/ansible_collections","http_method":"GET","short_description":"List ansible_collections","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/ansible_collections","http_method":"GET","short_description":"List ansible_collections","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/ansible_collections","http_method":"GET","short_description":"List ansible_collections","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/ansible_collections","http_method":"GET","short_description":"List ansible_collections","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ansible_collections/show","name":"show","apis":[{"api_url":"/katello/api/ansible_collections/:id","http_method":"GET","short_description":"Show an ansible collection","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/ansible_collections/:id","http_method":"GET","short_description":"Show an ansible collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ean ansible collection identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ansible_collections/compare","name":"compare","apis":[{"api_url":"/katello/api/ansible_collections/compare","http_method":"GET","short_description":"List ansible_collections","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"repositories":{"doc_url":"../apidoc/v2/repositories","id":"repositories","api_url":"/api","name":"Repositories","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/repositories/index","name":"index","apis":[{"api_url":"/katello/api/repositories","http_method":"GET","short_description":"List of enabled repositories","deprecated":null},{"api_url":"/katello/api/content_views/:id/repositories","http_method":"GET","short_description":"List of repositories for a content view","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/repositories","http_method":"GET","short_description":"List of repositories in an organization","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments/:environment_id/repositories","http_method":"GET","short_description":"List repositories in the environment","deprecated":null},{"api_url":"/katello/api/products/:product_id/repositories","http_method":"GET","short_description":"List of repositories for a product","deprecated":null},{"api_url":"/katello/api/environments/:environment_id/products/:product_id/repositories","http_method":"GET","short_description":"List of repositories belonging to a product in an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of an organization to show repositories in\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of a product to show repositories of\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of an environment to show repositories in\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003eID of a content view to show repositories in\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eID of a content view version to show repositories in\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"deb_id","full_name":"deb_id","description":"\n\u003cp\u003eId of a deb package to find repositories that contain the deb\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"erratum_id","full_name":"erratum_id","description":"\n\u003cp\u003eId of an erratum to find repositories that contain the erratum\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"rpm_id","full_name":"rpm_id","description":"\n\u003cp\u003eId of a rpm package to find repositories that contain the rpm\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"file_id","full_name":"file_id","description":"\n\u003cp\u003eId of a file to find repositories that contain the file\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ansible_collection_id","full_name":"ansible_collection_id","description":"\n\u003cp\u003eId of an ansible collection to find repositories that contain the ansible\ncollection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_branch_id","full_name":"ostree_branch_id","description":"\n\u003cp\u003eId of an ostree branch to find repositories that contain that branch\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"library","full_name":"library","description":"\n\u003cp\u003eshow repositories in Library and the default content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"archived","full_name":"archived","description":"\n\u003cp\u003eshow archived repositories\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003elimit to only repositories of this type\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet\u003c/code\u003e, \u003ccode\u003eyum\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003elabel of the repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003einterpret specified object to return only Repositories that can be\nassociated with specified object. Only \u0026#39;content_view\u0026#39; \u0026amp;\n\u0026#39;content_view_version\u0026#39; are supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"with_content","full_name":"with_content","description":"\n\u003cp\u003eonly repositories having at least one of the specified content type ex: rpm\n, erratum\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003edocker_manifest_list\u003c/code\u003e, \u003ccode\u003edocker_tag\u003c/code\u003e, \u003ccode\u003edocker_blob\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003emodulemd\u003c/code\u003e, \u003ccode\u003eerratum\u003c/code\u003e, \u003ccode\u003edistribution\u003c/code\u003e, \u003ccode\u003epackage_category\u003c/code\u003e, \u003ccode\u003epackage_group\u003c/code\u003e, \u003ccode\u003eyum_repo_metadata_file\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"container_repository_name","type":"string"},{"name":"content_label","type":"string"},{"name":"content_type","type":"string"},{"name":"content_view_id","type":"integer"},{"name":"description","type":"text"},{"name":"distribution_arch","type":"string"},{"name":"distribution_bootable","type":"boolean"},{"name":"distribution_family","type":"string"},{"name":"distribution_uuid","type":"string"},{"name":"distribution_variant","type":"string"},{"name":"distribution_version","type":"string"},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"product","type":"string"},{"name":"product_id","type":"integer"},{"name":"product_name","type":"string"},{"name":"redhat","values":["true","false"]}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/create","name":"create","apis":[{"api_url":"/katello/api/repositories","http_method":"POST","short_description":"Create a custom repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"name","full_name":"name","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eProduct the repository belongs to\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003etype of repo\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet\u003c/code\u003e, \u003ccode\u003eyum\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"url","description":"\n\u003cp\u003erepository source url\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gpg_key_id","full_name":"gpg_key_id","description":"\n\u003cp\u003eid of the gpg key that will be assigned to the new repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_ca_cert_id","full_name":"ssl_ca_cert_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL CA Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_cert_id","full_name":"ssl_client_cert_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL Client Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_key_id","full_name":"ssl_client_key_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL Client Key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unprotected","full_name":"unprotected","description":"\n\u003cp\u003etrue if this repository can be published via HTTP\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"checksum_type","full_name":"checksum_type","description":"\n\u003cp\u003eChecksum of the repository, currently \u0026#39;sha1\u0026#39; \u0026amp; \u0026#39;sha256\u0026#39;\nare supported\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"docker_upstream_name","full_name":"docker_upstream_name","description":"\n\u003cp\u003eName of the upstream docker repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"docker_tags_whitelist","full_name":"docker_tags_whitelist","description":"\n\u003cp\u003eComma separated list of tags to sync for Container Image repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"download_policy","full_name":"download_policy","description":"\n\u003cp\u003edownload policy for yum repos (either \u0026#39;immediate\u0026#39;,\n\u0026#39;on_demand\u0026#39;, or \u0026#39;background\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eimmediate\u003c/code\u003e, \u003ccode\u003eon_demand\u003c/code\u003e, \u003ccode\u003ebackground\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mirror_on_sync","full_name":"mirror_on_sync","description":"\n\u003cp\u003etrue if this repository when synced has to be mirrored from the source and\nstale rpms removed\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"verify_ssl_on_sync","full_name":"verify_ssl_on_sync","description":"\n\u003cp\u003eif true, Katello will verify the upstream url\u0026#39;s SSL certifcates are\nsigned by a trusted CA\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"upstream_username","full_name":"upstream_username","description":"\n\u003cp\u003eUsername of the upstream repository user used for authentication\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"upstream_password","full_name":"upstream_password","description":"\n\u003cp\u003ePassword of the upstream repository user used for authentication\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_upstream_sync_policy","full_name":"ostree_upstream_sync_policy","description":"\n\u003cp\u003epolicies for syncing upstream ostree repositories\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003elatest\u003c/code\u003e, \u003ccode\u003eall\u003c/code\u003e, \u003ccode\u003ecustom\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_upstream_sync_depth","full_name":"ostree_upstream_sync_depth","description":"\n\u003cp\u003eif a custom sync policy is chosen for ostree repositories then a\n\u0026#39;depth\u0026#39; value must be provided\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"deb_releases","full_name":"deb_releases","description":"\n\u003cp\u003ecomma separated list of releases to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"deb_components","full_name":"deb_components","description":"\n\u003cp\u003ecomma separated list of repo components to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"deb_architectures","full_name":"deb_architectures","description":"\n\u003cp\u003ecomma separated list of architectures to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ignore_global_proxy","full_name":"ignore_global_proxy","description":"\n\u003cp\u003eif true, will ignore the globally configured proxy when syncing\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"ignorable_content","full_name":"ignorable_content","description":"\n\u003cp\u003eList of content units to ignore while syncing a yum repository. Must be\nsubset of rpm,drpm,srpm,distribution,erratum\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ansible_collection_requirements","full_name":"ansible_collection_requirements","description":"\n\u003cp\u003eContents of requirement yaml file to sync from URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_policy","full_name":"http_proxy_policy","description":"\n\u003cp\u003epolicies for HTTP proxy for content sync\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eglobal_default_http_proxy\u003c/code\u003e, \u003ccode\u003enone\u003c/code\u003e, \u003ccode\u003euse_selected_http_proxy\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_id","full_name":"http_proxy_id","description":"\n\u003cp\u003eID of a HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/repository_types","name":"repository_types","apis":[{"api_url":"/katello/api/repositories/repository_types","http_method":"GET","short_description":"Show the available repository types","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"creatable","full_name":"creatable","description":"\n\u003cp\u003eWhen set to \u0026#39;True\u0026#39; repository types that are creatable will be\nreturned\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/republish","name":"republish","apis":[{"api_url":"/katello/api/repositories/:id/republish","http_method":"PUT","short_description":"Forces a republish of the specified repository, regenerating metadata and symlinks on the filesystem.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/show","name":"show","apis":[{"api_url":"/katello/api/repositories/:id","http_method":"GET","short_description":"Show a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/sync","name":"sync","apis":[{"api_url":"/katello/api/repositories/:id/sync","http_method":"POST","short_description":"Sync a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"source_url","full_name":"source_url","description":"\n\u003cp\u003etemporarily override feed URL for sync\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"incremental","full_name":"incremental","description":"\n\u003cp\u003eperform an incremental import\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"skip_metadata_check","full_name":"skip_metadata_check","description":"\n\u003cp\u003eForce sync even if no upstream changes are detected. Only used with yum\nrepositories.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"validate_contents","full_name":"validate_contents","description":"\n\u003cp\u003eForce a sync and validate the checksums of all content. Only used with yum\nrepositories.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/export","name":"export","apis":[{"api_url":"/katello/api/repositories/:id/export","http_method":"POST","short_description":"Export a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"export_to_iso","full_name":"export_to_iso","description":"\n\u003cp\u003eExport to ISO format\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"iso_mb_size","full_name":"iso_mb_size","description":"\n\u003cp\u003emaximum size of each ISO in MB\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"since","full_name":"since","description":"\n\u003cp\u003eOptional date of last export (ex: 2010-01-01T12:00:00Z)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Date","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/update","name":"update","apis":[{"api_url":"/katello/api/repositories/:id","http_method":"PUT","short_description":"Update a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"url","description":"\n\u003cp\u003erepository source url\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gpg_key_id","full_name":"gpg_key_id","description":"\n\u003cp\u003eid of the gpg key that will be assigned to the new repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_ca_cert_id","full_name":"ssl_ca_cert_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL CA Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_cert_id","full_name":"ssl_client_cert_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL Client Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_key_id","full_name":"ssl_client_key_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL Client Key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unprotected","full_name":"unprotected","description":"\n\u003cp\u003etrue if this repository can be published via HTTP\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"checksum_type","full_name":"checksum_type","description":"\n\u003cp\u003eChecksum of the repository, currently \u0026#39;sha1\u0026#39; \u0026amp; \u0026#39;sha256\u0026#39;\nare supported\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"docker_upstream_name","full_name":"docker_upstream_name","description":"\n\u003cp\u003eName of the upstream docker repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"docker_tags_whitelist","full_name":"docker_tags_whitelist","description":"\n\u003cp\u003eComma separated list of tags to sync for Container Image repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"download_policy","full_name":"download_policy","description":"\n\u003cp\u003edownload policy for yum repos (either \u0026#39;immediate\u0026#39;,\n\u0026#39;on_demand\u0026#39;, or \u0026#39;background\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eimmediate\u003c/code\u003e, \u003ccode\u003eon_demand\u003c/code\u003e, \u003ccode\u003ebackground\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mirror_on_sync","full_name":"mirror_on_sync","description":"\n\u003cp\u003etrue if this repository when synced has to be mirrored from the source and\nstale rpms removed\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"verify_ssl_on_sync","full_name":"verify_ssl_on_sync","description":"\n\u003cp\u003eif true, Katello will verify the upstream url\u0026#39;s SSL certifcates are\nsigned by a trusted CA\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"upstream_username","full_name":"upstream_username","description":"\n\u003cp\u003eUsername of the upstream repository user used for authentication\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"upstream_password","full_name":"upstream_password","description":"\n\u003cp\u003ePassword of the upstream repository user used for authentication\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_upstream_sync_policy","full_name":"ostree_upstream_sync_policy","description":"\n\u003cp\u003epolicies for syncing upstream ostree repositories\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003elatest\u003c/code\u003e, \u003ccode\u003eall\u003c/code\u003e, \u003ccode\u003ecustom\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_upstream_sync_depth","full_name":"ostree_upstream_sync_depth","description":"\n\u003cp\u003eif a custom sync policy is chosen for ostree repositories then a\n\u0026#39;depth\u0026#39; value must be provided\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"deb_releases","full_name":"deb_releases","description":"\n\u003cp\u003ecomma separated list of releases to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"deb_components","full_name":"deb_components","description":"\n\u003cp\u003ecomma separated list of repo components to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"deb_architectures","full_name":"deb_architectures","description":"\n\u003cp\u003ecomma separated list of architectures to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ignore_global_proxy","full_name":"ignore_global_proxy","description":"\n\u003cp\u003eif true, will ignore the globally configured proxy when syncing\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"ignorable_content","full_name":"ignorable_content","description":"\n\u003cp\u003eList of content units to ignore while syncing a yum repository. Must be\nsubset of rpm,drpm,srpm,distribution,erratum\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ansible_collection_requirements","full_name":"ansible_collection_requirements","description":"\n\u003cp\u003eContents of requirement yaml file to sync from URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_policy","full_name":"http_proxy_policy","description":"\n\u003cp\u003epolicies for HTTP proxy for content sync\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eglobal_default_http_proxy\u003c/code\u003e, \u003ccode\u003enone\u003c/code\u003e, \u003ccode\u003euse_selected_http_proxy\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_id","full_name":"http_proxy_id","description":"\n\u003cp\u003eID of a HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/destroy","name":"destroy","apis":[{"api_url":"/katello/api/repositories/:id","http_method":"DELETE","short_description":"Destroy a custom repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/remove_content","name":"remove_content","apis":[{"api_url":"/katello/api/repositories/:id/remove_packages","http_method":"PUT","short_description":null,"deprecated":null},{"api_url":"/katello/api/repositories/:id/remove_docker_manifests","http_method":"PUT","short_description":null,"deprecated":null},{"api_url":"/katello/api/repositories/:id/remove_puppet_modules","http_method":"PUT","short_description":null,"deprecated":null},{"api_url":"/katello/api/repositories/:id/remove_content","http_method":"PUT","short_description":null,"deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eRemove content from a repository\u003c/p\u003e\n","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eArray of content ids to remove\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003econtent type (\u0026#39;deb\u0026#39;, \u0026#39;docker_manifest\u0026#39;, \u0026#39;file\u0026#39;,\n\u0026#39;ostree\u0026#39;, \u0026#39;puppet_module\u0026#39;, \u0026#39;rpm\u0026#39;, \u0026#39;srpm\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sync_capsule","full_name":"sync_capsule","description":"\n\u003cp\u003eWhether or not to sync an external capsule after upload. Default: true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/upload_content","name":"upload_content","apis":[{"api_url":"/katello/api/repositories/:id/upload_content","http_method":"POST","short_description":"Upload content into the repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eContent files to upload. Can be a single file or array of files.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003econtent type (\u0026#39;deb\u0026#39;, \u0026#39;docker_manifest\u0026#39;, \u0026#39;file\u0026#39;,\n\u0026#39;ostree\u0026#39;, \u0026#39;puppet_module\u0026#39;, \u0026#39;rpm\u0026#39;, \u0026#39;srpm\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/import_uploads","name":"import_uploads","apis":[{"api_url":"/katello/api/repositories/:id/import_uploads","http_method":"PUT","short_description":"Import uploads into a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eRepository id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"upload_ids","full_name":"upload_ids","description":"\n\u003cp\u003eArray of upload ids to import\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"async","full_name":"async","description":"\n\u003cp\u003eDo not wait for the ImportUpload action to finish. Default: false\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"publish_repository","full_name":"publish_repository","description":"\n\u003cp\u003eWhether or not to regenerate the repository on disk. Default: true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sync_capsule","full_name":"sync_capsule","description":"\n\u003cp\u003eWhether or not to sync an external capsule after upload. Default: true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003econtent type (\u0026#39;deb\u0026#39;, \u0026#39;docker_manifest\u0026#39;, \u0026#39;file\u0026#39;,\n\u0026#39;ostree\u0026#39;, \u0026#39;puppet_module\u0026#39;, \u0026#39;rpm\u0026#39;, \u0026#39;srpm\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uploads","full_name":"uploads","description":"\n\u003cp\u003eArray of uploads to import\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"uploads[id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_unit_id","full_name":"uploads[content_unit_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"size","full_name":"uploads[size]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"checksum","full_name":"uploads[checksum]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"uploads[name]","description":"\n\u003cp\u003eNeeds to only be set for file repositories or docker tags\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"digest","full_name":"uploads[digest]","description":"\n\u003cp\u003eNeeds to only be set for docker tags\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/gpg_key_content","name":"gpg_key_content","apis":[{"api_url":"/katello/api/repositories/:id/gpg_key_content","http_method":"GET","short_description":"Return the content of a repo gpg key, used directly by yum","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"capsule_content":{"doc_url":"../apidoc/v2/capsule_content","id":"capsule_content","api_url":"/api","name":"Capsule content","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/capsule_content/lifecycle_environments","name":"lifecycle_environments","apis":[{"api_url":"/katello/api/capsules/:id/content/lifecycle_environments","http_method":"GET","short_description":"List the lifecycle environments attached to the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eId of the organization to limit environments on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/available_lifecycle_environments","name":"available_lifecycle_environments","apis":[{"api_url":"/katello/api/capsules/:id/content/available_lifecycle_environments","http_method":"GET","short_description":"List the lifecycle environments not attached to the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eId of the organization to limit environments on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/add_lifecycle_environment","name":"add_lifecycle_environment","apis":[{"api_url":"/katello/api/capsules/:id/content/lifecycle_environments","http_method":"POST","short_description":"Add lifecycle environments to the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eId of the lifecycle environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/remove_lifecycle_environment","name":"remove_lifecycle_environment","apis":[{"api_url":"/katello/api/capsules/:id/content/lifecycle_environments/:environment_id","http_method":"DELETE","short_description":"Remove lifecycle environments from the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eId of the lifecycle environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/sync","name":"sync","apis":[{"api_url":"/katello/api/capsules/:id/content/sync","http_method":"POST","short_description":"Synchronize the content to the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eId of the environment to limit the synchronization on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"skip_metadata_check","full_name":"skip_metadata_check","description":"\n\u003cp\u003eSkip metadata check on each repository on the smart proxy\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/sync_status","name":"sync_status","apis":[{"api_url":"/katello/api/capsules/:id/content/sync","http_method":"GET","short_description":"Get current smart proxy synchronization status","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eId of the organization to get the status for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/cancel_sync","name":"cancel_sync","apis":[{"api_url":"/katello/api/capsules/:id/content/sync","http_method":"DELETE","short_description":"Cancel running smart proxy synchronization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"capsules":{"doc_url":"../apidoc/v2/capsules","id":"capsules","api_url":"/api","name":"Capsules","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/capsules/index","name":"index","apis":[{"api_url":"/katello/api/capsules","http_method":"GET","short_description":"List all smart proxies that have content","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsules/show","name":"show","apis":[{"api_url":"/katello/api/capsules/:id","http_method":"GET","short_description":"Show the smart proxy details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"repository_sets":{"doc_url":"../apidoc/v2/repository_sets","id":"repository_sets","api_url":"/api","name":"Repository sets","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/repository_sets/index","name":"index","apis":[{"api_url":"/katello/api/repository_sets","http_method":"GET","short_description":"List repository sets.","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets","http_method":"GET","short_description":"List repository sets for a product.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of a product to list repository sets from\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eRepository set name to search on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eIf true, only return repository sets that have been enabled. Defaults to\nfalse\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"with_active_subscription","full_name":"with_active_subscription","description":"\n\u003cp\u003eIf true, only return repository sets that are associated with an active\nsubscriptions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"with_custom","full_name":"with_custom","description":"\n\u003cp\u003eIf true, return custom repository sets along with redhat repos\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"content_label","type":"string"},{"name":"content_type","type":"string"},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"product_id","type":"integer"},{"name":"product_name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repository_sets/show","name":"show","apis":[{"api_url":"/katello/api/repository_sets/:id","http_method":"GET","short_description":"Get info about a repository set","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets/:id","http_method":"GET","short_description":"Get info about a repository set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the repository set\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of a product to list repository sets from\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repository_sets/available_repositories","name":"available_repositories","apis":[{"api_url":"/katello/api/repository_sets/:id/available_repositories","http_method":"GET","short_description":"Get list of available repositories for the repository set","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets/:id/available_repositories","http_method":"GET","short_description":"Get list of available repositories for the repository set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the repository set\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of a product to list repository sets from\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repository_sets/enable","name":"enable","apis":[{"api_url":"/katello/api/repository_sets/:id/enable","http_method":"PUT","short_description":"Enable a repository from the set","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets/:id/enable","http_method":"PUT","short_description":"Enable a repository from the set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the repository set to enable\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of the product containing the repository set\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"basearch","full_name":"basearch","description":"\n\u003cp\u003eBasearch to enable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"releasever","full_name":"releasever","description":"\n\u003cp\u003eReleasever to enable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repository_sets/disable","name":"disable","apis":[{"api_url":"/katello/api/repository_sets/:id/disable","http_method":"PUT","short_description":"Disable a repository from the set","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets/:id/disable","http_method":"PUT","short_description":"Disable a repository from the set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the repository set to disable\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of the product containing the repository set\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"basearch","full_name":"basearch","description":"\n\u003cp\u003eBasearch to disable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"releasever","full_name":"releasever","description":"\n\u003cp\u003eReleasever to disable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"content_credentials":{"doc_url":"../apidoc/v2/content_credentials","id":"content_credentials","api_url":"/api","name":"Content credentials","short_description":null,"full_description":"\n\u003cp\u003e# Description\u003c/p\u003e\n\n\u003cp\u003eContent Credentials are used to store credentials like GPG Keys and\nCertificates for the authentication to Products / Repositories.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_credentials/index","name":"index","apis":[{"api_url":"/katello/api/content_credentials","http_method":"GET","short_description":"List content credentials","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the Content Credential\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003etype of content\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/create","name":"create","apis":[{"api_url":"/katello/api/content_credentials","http_method":"POST","short_description":"Create a content credential","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eidentifier of the content credential\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003etype of content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003epublic key block in DER encoding or certificate content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/show","name":"show","apis":[{"api_url":"/katello/api/content_credentials/:id","http_method":"GET","short_description":"Show a content credential","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent credential numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/update","name":"update","apis":[{"api_url":"/katello/api/content_credentials/:id","http_method":"PUT","short_description":"Update a content credential","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent credential numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eidentifier of the content credential\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003etype of content\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003epublic key block in DER encoding or certificate content\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_credentials/:id","http_method":"DELETE","short_description":"Destroy a content credential","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent credential numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/content","name":"content","apis":[{"api_url":"/katello/api/content_credentials/:id/content","http_method":"GET","short_description":"Return the content of a content credential, used directly by yum","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/set_content","name":"set_content","apis":[{"api_url":"/katello/api/content_credentials/:id/content","http_method":"POST","short_description":"Upload content credential contents","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent credential numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003efile contents\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"content_uploads":{"doc_url":"../apidoc/v2/content_uploads","id":"content_uploads","api_url":"/api","name":"Content uploads","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_uploads/create","name":"create","apis":[{"api_url":"/katello/api/repositories/:repository_id/content_uploads","http_method":"POST","short_description":"Create an upload request","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"size","full_name":"size","description":"\n\u003cp\u003eSize of file to upload\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"checksum","full_name":"checksum","description":"\n\u003cp\u003eChecksum of file to upload\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003econtent type (\u0026#39;deb\u0026#39;, \u0026#39;docker_manifest\u0026#39;, \u0026#39;file\u0026#39;,\n\u0026#39;ostree\u0026#39;, \u0026#39;puppet_module\u0026#39;, \u0026#39;rpm\u0026#39;, \u0026#39;srpm\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_uploads/update","name":"update","apis":[{"api_url":"/katello/api/repositories/:repository_id/content_uploads/:id","http_method":"PUT","short_description":"Upload a chunk of the file's content","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUpload request id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"size","full_name":"size","description":"\n\u003cp\u003eSize of file to upload\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"offset","full_name":"offset","description":"\n\u003cp\u003eThe offset in the file where the content starts\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eThe actual file contents\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_uploads/destroy","name":"destroy","apis":[{"api_url":"/katello/api/repositories/:repository_id/content_uploads/:id","http_method":"DELETE","short_description":"Delete an upload request","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUpload request id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"packages":{"doc_url":"../apidoc/v2/packages","id":"packages","api_url":"/api","name":"Packages","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/packages/index","name":"index","apis":[{"api_url":"/katello/api/packages","http_method":"GET","short_description":"List packages","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/:resource_id","http_method":"GET","short_description":"List :resource_id","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/:resource_id","http_method":"GET","short_description":"List :resource_id","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/:resource_id","http_method":"GET","short_description":"List :resource_id","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eContent View Version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003eContent View Filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eEnvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003ePackage identifiers to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost id to list applicable packages for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"packages_restrict_applicable","full_name":"packages_restrict_applicable","description":"\n\u003cp\u003eReturn packages that are applicable to one or more hosts (defaults to true\nif host_id is specified)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"packages_restrict_upgradable","full_name":"packages_restrict_upgradable","description":"\n\u003cp\u003eReturn packages that are upgradable on one or more hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"packages_restrict_latest","full_name":"packages_restrict_latest","description":"\n\u003cp\u003eReturn only the latest version of each package\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eReturn packages that can be added to the specified object. Only the value\n\u0026#39;content_view_version\u0026#39; is supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/packages/show","name":"show","apis":[{"api_url":"/katello/api/packages/:id","http_method":"GET","short_description":"Show a package","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/packages/:id","http_method":"GET","short_description":"Show a package","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea package identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/packages/compare","name":"compare","apis":[{"api_url":"/katello/api/packages/compare","http_method":"GET","short_description":"List packages","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_view_components":{"doc_url":"../apidoc/v2/content_view_components","id":"content_view_components","api_url":"/api","name":"Content view components","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_components/index","name":"index","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components","http_method":"GET","short_description":"List components attached to this content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_components/add_components","name":"add_components","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components/add","http_method":"PUT","short_description":"Add components to the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"components","full_name":"components","description":"\n\u003cp\u003eArray of components to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_view_version_id","full_name":"components[content_view_version_id]","description":"\n\u003cp\u003eidentifier of the version of the component content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"components[content_view_id]","description":"\n\u003cp\u003econtent view identifier of the component who\u0026#39;s latest version is\ndesired\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"latest","full_name":"components[latest]","description":"\n\u003cp\u003etrue if the latest version of the component\u0026#39;s content view is desired\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_components/remove_components","name":"remove_components","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components/remove","http_method":"PUT","short_description":"Remove components from the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"component_ids","full_name":"component_ids","description":"\n\u003cp\u003eArray of content view component IDs to remove. Identifier of the component\nassociation\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_components/show","name":"show","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components/:id","http_method":"GET","short_description":"Show a content view component","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view component ID. Identifier of the component association\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_components/update","name":"update","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components/:id","http_method":"PUT","short_description":"Update a component associated with the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view component ID. Identifier of the component association\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eidentifier of the version of the component content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"latest","full_name":"latest","description":"\n\u003cp\u003etrue if the latest version of the components content view is desired\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"products_bulk_actions":{"doc_url":"../apidoc/v2/products_bulk_actions","id":"products_bulk_actions","api_url":"/api","name":"Products bulk actions","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/products_bulk_actions/destroy_products","name":"destroy_products","apis":[{"api_url":"/katello/api/products/bulk/destroy","http_method":"PUT","short_description":"Destroy one or more products","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of product ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products_bulk_actions/sync_products","name":"sync_products","apis":[{"api_url":"/katello/api/products/bulk/sync","http_method":"PUT","short_description":"Sync one or more products","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of product ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"skip_metadata_check","full_name":"skip_metadata_check","description":"\n\u003cp\u003eForce sync even if no upstream changes are detected. Non-yum repositories\nare skipped.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"validate_contents","full_name":"validate_contents","description":"\n\u003cp\u003eForce a sync and validate the checksums of all content. Non-yum\nrepositories (or those with \nOn Demand download policy) are skipped.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products_bulk_actions/update_http_proxy","name":"update_http_proxy","apis":[{"api_url":"/katello/api/products/bulk/http_proxy","http_method":"PUT","short_description":"Update the HTTP proxy configuration on the repositories of one or more products.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of product ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_policy","full_name":"http_proxy_policy","description":"\n\u003cp\u003epolicy for HTTP proxy for content sync\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eglobal_default_http_proxy\u003c/code\u003e, \u003ccode\u003enone\u003c/code\u003e, \u003ccode\u003euse_selected_http_proxy\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_id","full_name":"http_proxy_id","description":"\n\u003cp\u003eHTTP Proxy identifier to associated\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products_bulk_actions/update_sync_plans","name":"update_sync_plans","apis":[{"api_url":"/katello/api/products/bulk/sync_plan","http_method":"PUT","short_description":"Sync one or more products","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of product ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"plan_id","full_name":"plan_id","description":"\n\u003cp\u003eSync plan identifier to attach\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_view_filter_rules":{"doc_url":"../apidoc/v2/content_view_filter_rules","id":"content_view_filter_rules","api_url":"/api","name":"Content view filter rules","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_filter_rules/index","name":"index","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules","http_method":"GET","short_description":"List filter rules","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the content view filter rule\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"errata_id","full_name":"errata_id","description":"\n\u003cp\u003eerrata_id of the content view filter rule\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filter_rules/create","name":"create","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules","http_method":"POST","short_description":"Create a filter rule. The parameters included should be based upon the filter type.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003epackage, package group, or docker tag names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of [String]","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003epackage group: uuid\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003epackage: version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"\n\u003cp\u003epackage: architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"min_version","full_name":"min_version","description":"\n\u003cp\u003epackage: minimum version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"max_version","full_name":"max_version","description":"\n\u003cp\u003epackage: maximum version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"errata_id","full_name":"errata_id","description":"\n\u003cp\u003eerratum: id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"errata_ids","full_name":"errata_ids","description":"\n\u003cp\u003eerratum: IDs or a select all object\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"start_date","full_name":"start_date","description":"\n\u003cp\u003eerratum: start date (YYYY-MM-DD)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"end_date","full_name":"end_date","description":"\n\u003cp\u003eerratum: end date (YYYY-MM-DD)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"types","full_name":"types","description":"\n\u003cp\u003eerratum: types (enhancement, bugfix, security)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"date_type","full_name":"date_type","description":"\n\u003cp\u003eerratum: search using the \u0026#39;Issued On\u0026#39; or \u0026#39;Updated On\u0026#39;\ncolumn of the errata. Values are \u0026#39;issued\u0026#39;/\u0026#39;updated\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"module_stream_ids","full_name":"module_stream_ids","description":"\n\u003cp\u003emodule stream ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filter_rules/show","name":"show","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules/:id","http_method":"GET","short_description":"Show filter rule info","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003erule identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filter_rules/update","name":"update","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules/:id","http_method":"PUT","short_description":"Update a filter rule. The parameters included should be based upon the filter type.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003erule identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003epackage, package group, or docker tag: name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003epackage: version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"\n\u003cp\u003epackage: architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"min_version","full_name":"min_version","description":"\n\u003cp\u003epackage: minimum version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"max_version","full_name":"max_version","description":"\n\u003cp\u003epackage: maximum version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"errata_id","full_name":"errata_id","description":"\n\u003cp\u003eerratum: id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"start_date","full_name":"start_date","description":"\n\u003cp\u003eerratum: start date (YYYY-MM-DD)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"end_date","full_name":"end_date","description":"\n\u003cp\u003eerratum: end date (YYYY-MM-DD)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"types","full_name":"types","description":"\n\u003cp\u003eerratum: types (enhancement, bugfix, security)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filter_rules/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules/:id","http_method":"DELETE","short_description":"Delete a filter rule","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003erule identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"srpms":{"doc_url":"../apidoc/v2/srpms","id":"srpms","api_url":"/api","name":"Srpms","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/srpms/index","name":"index","apis":[{"api_url":"/katello/api/srpms","http_method":"GET","short_description":"List srpms","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eEnvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eContent View Version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/srpms/show","name":"show","apis":[{"api_url":"/katello/api/srpms/:id","http_method":"GET","short_description":"Show SRPM details","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/srpms/:id","http_method":"GET","short_description":"Show SRPM details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eSRPM details identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/srpms/compare","name":"compare","apis":[{"api_url":"/katello/api/srpms/compare","http_method":"GET","short_description":"List srpms","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_view_filters":{"doc_url":"../apidoc/v2/content_view_filters","id":"content_view_filters","api_url":"/api","name":"Content view filters","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_filters/index","name":"index","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters","http_method":"get","short_description":"list filters","deprecated":null},{"api_url":"/katello/api/content_view_filters","http_method":"get","short_description":"list filters","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003efilter content view filters by name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"types","full_name":"types","description":"\n\u003cp\u003etypes of filters\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"content_type","values":["rpm","package_group","erratum","docker","modulemd"]},{"name":"inclusion_type","values":["include","exclude"]},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filters/create","name":"create","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters","http_method":"post","short_description":"create a filter for a content view","deprecated":null},{"api_url":"/katello/api/content_view_filters","http_method":"post","short_description":"create a filter for a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the filter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"type","description":"\n\u003cp\u003etype of filter (e.g. rpm, package_group, erratum, docker, modulemd)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"original_packages","full_name":"original_packages","description":"\n\u003cp\u003eadd all packages without errata to the included/excluded list. (package\nfilter only)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"inclusion","full_name":"inclusion","description":"\n\u003cp\u003especifies if content should be included or excluded, default:\ninclusion=false\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"repository_ids","full_name":"repository_ids","description":"\n\u003cp\u003elist of repository ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the filter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filters/show","name":"show","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters/:id","http_method":"get","short_description":"show filter info","deprecated":null},{"api_url":"/katello/api/content_view_filters/:id","http_method":"get","short_description":"show filter info","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filters/update","name":"update","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters/:id","http_method":"put","short_description":"update a filter","deprecated":null},{"api_url":"/katello/api/content_view_filters/:id","http_method":"put","short_description":"update a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003enew name for the filter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"original_packages","full_name":"original_packages","description":"\n\u003cp\u003eadd all packages without errata to the included/excluded list. (package\nfilter only)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"inclusion","full_name":"inclusion","description":"\n\u003cp\u003especifies if content should be included or excluded, default:\ninclusion=false\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"repository_ids","full_name":"repository_ids","description":"\n\u003cp\u003elist of repository ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the filter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filters/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters/:id","http_method":"delete","short_description":"delete a filter","deprecated":null},{"api_url":"/katello/api/content_view_filters/:id","http_method":"delete","short_description":"delete a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_view_histories":{"doc_url":"../apidoc/v2/content_view_histories","id":"content_view_histories","api_url":"/api","name":"Content view histories","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_histories/index","name":"index","apis":[{"api_url":"/katello/api/content_views/:id/history","http_method":"GET","short_description":"Show a content view's history","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"products":{"doc_url":"../apidoc/v2/products","id":"products","api_url":"/api","name":"Products","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/products/index","name":"index","apis":[{"api_url":"/katello/api/products","http_method":"GET","short_description":"List products","deprecated":null},{"api_url":"/katello/api/subscriptions/:subscription_id/products","http_method":"GET","short_description":"List of subscription products in a subscription","deprecated":null},{"api_url":"/katello/api/activation_keys/:activation_key_id/products","http_method":"GET","short_description":"List of subscription products in an activation key","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/products","http_method":"GET","short_description":"List of products in an organization","deprecated":null},{"api_url":"/katello/api/sync_plans/:sync_plan_id/products","http_method":"GET","short_description":"List of Products for sync plan","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:sync_plan_id/products","http_method":"GET","short_description":"List of Products for sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eFilter products by organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscription_id","full_name":"subscription_id","description":"\n\u003cp\u003eFilter products by subscription\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eFilter products by name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eReturn enabled products only\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"custom","full_name":"custom","description":"\n\u003cp\u003eReturn custom products only\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"redhat_only","full_name":"redhat_only","description":"\n\u003cp\u003eReturn Red Hat (non-custom) products only\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"include_available_content","full_name":"include_available_content","description":"\n\u003cp\u003eWhether to include available content attribute in results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sync_plan_id","full_name":"sync_plan_id","description":"\n\u003cp\u003eFilter products by sync plan id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eInterpret specified object to return only Products that can be associated\nwith specified object. Only \u0026#39;sync_plan\u0026#39; is supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"},{"name":"redhat","values":["true","false"]}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/create","name":"create","apis":[{"api_url":"/katello/api/products","http_method":"POST","short_description":"Create a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eProduct description\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gpg_key_id","full_name":"gpg_key_id","description":"\n\u003cp\u003eIdentifier of the GPG key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_ca_cert_id","full_name":"ssl_ca_cert_id","description":"\n\u003cp\u003eIdenifier of the SSL CA Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_cert_id","full_name":"ssl_client_cert_id","description":"\n\u003cp\u003eIdentifier of the SSL Client Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_key_id","full_name":"ssl_client_key_id","description":"\n\u003cp\u003eIdentifier of the SSL Client Key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"sync_plan_id","full_name":"sync_plan_id","description":"\n\u003cp\u003ePlan numeric identifier\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eProduct name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/show","name":"show","apis":[{"api_url":"/katello/api/products/:id","http_method":"GET","short_description":"Show a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eproduct numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/update","name":"update","apis":[{"api_url":"/katello/api/products/:id","http_method":"PUT","short_description":"Updates a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eproduct numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eProduct description\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gpg_key_id","full_name":"gpg_key_id","description":"\n\u003cp\u003eIdentifier of the GPG key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_ca_cert_id","full_name":"ssl_ca_cert_id","description":"\n\u003cp\u003eIdenifier of the SSL CA Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_cert_id","full_name":"ssl_client_cert_id","description":"\n\u003cp\u003eIdentifier of the SSL Client Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_key_id","full_name":"ssl_client_key_id","description":"\n\u003cp\u003eIdentifier of the SSL Client Key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"sync_plan_id","full_name":"sync_plan_id","description":"\n\u003cp\u003ePlan numeric identifier\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eProduct name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/destroy","name":"destroy","apis":[{"api_url":"/katello/api/products/:id","http_method":"DELETE","short_description":"Destroy a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eproduct numeric identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/sync","name":"sync","apis":[{"api_url":"/katello/api/products/:id/sync","http_method":"POST","short_description":"Sync all repositories for a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eproduct ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"content_view_puppet_modules":{"doc_url":"../apidoc/v2/content_view_puppet_modules","id":"content_view_puppet_modules","api_url":"/api","name":"Content view puppet modules","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_puppet_modules/index","name":"index","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules","http_method":"GET","short_description":"List content view puppet modules","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"author","full_name":"author","description":"\n\u003cp\u003eauthor of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003euuid of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"author","type":"string"},{"name":"content_view_name","type":"string"},{"name":"name","type":"string"},{"name":"uuid","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_puppet_modules/create","name":"create","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules","http_method":"POST","short_description":"Add a puppet module to the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"author","full_name":"author","description":"\n\u003cp\u003eauthor of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ethe id of the puppet module to associate\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003ethe uuid of the puppet module to associate\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_puppet_modules/show","name":"show","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules/:id","http_method":"GET","short_description":"Show a content view puppet module","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003epuppet module ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_puppet_modules/update","name":"update","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules/:id","http_method":"PUT","short_description":"Update a puppet module associated with the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003epuppet module ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"author","full_name":"author","description":"\n\u003cp\u003eauthor of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003ethe uuid of the puppet module to associate\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_puppet_modules/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules/:id","http_method":"DELETE","short_description":"Remove a puppet module from the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003epuppet module ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"subscriptions":{"doc_url":"../apidoc/v2/subscriptions","id":"subscriptions","api_url":"/api","name":"Subscriptions","short_description":null,"full_description":"\n\u003cp\u003eSubscriptions management.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/subscriptions/index","name":"index","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions","http_method":"GET","short_description":"List organization subscriptions","deprecated":null},{"api_url":"/katello/api/activation_keys/:activation_key_id/subscriptions","http_method":"GET","short_description":"List an activation key's subscriptions","deprecated":null},{"api_url":"/katello/api/subscriptions","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eid of a host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"activation_key_id","full_name":"activation_key_id","description":"\n\u003cp\u003eActivation key ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eObject to show subscriptions available for, either \u0026#39;host\u0026#39; or\n\u0026#39;activation_key\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"match_host","full_name":"match_host","description":"\n\u003cp\u003eIgnore subscriptions that are unavailable to the specified host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"match_installed","full_name":"match_installed","description":"\n\u003cp\u003eReturn subscriptions that match installed products of the specified host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"no_overlap","full_name":"no_overlap","description":"\n\u003cp\u003eReturn subscriptions which do not overlap with a currently-attached\nsubscription\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/show","name":"show","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/:id","http_method":"GET","short_description":"Show a subscription","deprecated":null},{"api_url":"/katello/api/subscriptions/:id","http_method":"GET","short_description":"Show a subscription","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eSubscription identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/create","name":"create","apis":[{"api_url":"/katello/api/activation_keys/:activation_key_id/subscriptions","http_method":"POST","short_description":"Add a subscription to an activation key","deprecated":true}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eSubscription Pool uuid\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"activation_key_id","full_name":"activation_key_id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"quantity","description":"\n\u003cp\u003eQuantity of this subscriptions to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool uuid\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eQuantity of this subscriptions to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/upload","name":"upload","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/upload","http_method":"POST","short_description":"Upload a subscription manifest","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eSubscription manifest file\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]},{"name":"repository_url","full_name":"repository_url","description":"\n\u003cp\u003erepository url\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/refresh_manifest","name":"refresh_manifest","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/refresh_manifest","http_method":"PUT","short_description":"Refresh previously imported manifest for Red Hat provider","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/delete_manifest","name":"delete_manifest","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/delete_manifest","http_method":"POST","short_description":"Delete manifest from Red Hat provider","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/manifest_history","name":"manifest_history","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/manifest_history","http_method":"GET","short_description":"obtain manifest history for subscriptions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"content_view_versions":{"doc_url":"../apidoc/v2/content_view_versions","id":"content_view_versions","api_url":"/api","name":"Content view versions","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_versions/index","name":"index","apis":[{"api_url":"/katello/api/content_view_versions","http_method":"GET","short_description":"List content view versions","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/content_view_versions","http_method":"GET","short_description":"List content view versions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003eContent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eFilter versions by environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_module_id","full_name":"puppet_module_id","description":"\n\u003cp\u003eFilter versions by puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003eFilter versions by version number\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"composite_version_id","full_name":"composite_version_id","description":"\n\u003cp\u003eFilter versions that are components in the specified composite version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"triggered_by_id","full_name":"triggered_by_id","description":"\n\u003cp\u003eFilter composite versions whose publish was triggered by the specified\ncomponent version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"content_view_id","type":"integer"},{"name":"repository","type":"string"},{"name":"version","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/show","name":"show","apis":[{"api_url":"/katello/api/content_view_versions/:id","http_method":"GET","short_description":"Show content view version","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/promote","name":"promote","apis":[{"api_url":"/katello/api/content_view_versions/:id/promote","http_method":"POST","short_description":"Promote a content view version","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"force","full_name":"force","description":"\n\u003cp\u003eforce content view promotion and bypass lifecycle environment restriction\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eLifeCycle Environment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"environment_ids","description":"\n\u003cp\u003eIdentifiers for Lifecycle Environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eThe description for the content view version promotion\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/update","name":"update","apis":[{"api_url":"/katello/api/content_view_versions/:id","http_method":"PUT","short_description":"Update a content view version","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eThe description for the content view version\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/republish_repositories","name":"republish_repositories","apis":[{"api_url":"/katello/api/content_view_versions/:id/republish_repositories","http_method":"PUT","short_description":"Forces a republish of the version's repositories' metadata","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/export","name":"export","apis":[{"api_url":"/katello/api/content_view_versions/:id/export","http_method":"POST","short_description":"Export a content view version","deprecated":true}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"export_to_iso","full_name":"export_to_iso","description":"\n\u003cp\u003eExport to ISO format\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"iso_mb_size","full_name":"iso_mb_size","description":"\n\u003cp\u003emaximum size of each ISO in MB\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"since","full_name":"since","description":"\n\u003cp\u003eOptional date of last export (ex: 2010-01-01T12:00:00Z)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Date","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_view_versions/:id","http_method":"DELETE","short_description":"Remove content view version","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/incremental_update","name":"incremental_update","apis":[{"api_url":"/katello/api/content_view_versions/incremental_update","http_method":"POST","short_description":"Perform an Incremental Update on one or more Content View Versions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_environments","full_name":"content_view_version_environments","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_view_version_id","full_name":"content_view_version_environments[content_view_version_id]","description":"\n\u003cp\u003eContent View Version Ids to perform an incremental update on. May contain\ncomposites as well as one or more components to update.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"content_view_version_environments[environment_ids]","description":"\n\u003cp\u003eThe list of environments to promote the specified Content View Version to\n(replacing the older version)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eThe description for the new generated Content View Versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resolve_dependencies","full_name":"resolve_dependencies","description":"\n\u003cp\u003eIf true, when adding the specified errata or packages, any needed\ndependencies will be copied as well. Defaults to true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"propagate_all_composites","full_name":"propagate_all_composites","description":"\n\u003cp\u003eIf true, will publish a new composite version using any specified\ncontent_view_version_id that has been promoted to a lifecycle environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"add_content","full_name":"add_content","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"errata_ids","full_name":"add_content[errata_ids]","description":"\n\u003cp\u003eErrata ids to copy into the new versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"package_ids","full_name":"add_content[package_ids]","description":"\n\u003cp\u003ePackage ids to copy into the new versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"deb_ids","full_name":"add_content[deb_ids]","description":"\n\u003cp\u003eDeb Package ids to copy into the new versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"puppet_module_ids","full_name":"add_content[puppet_module_ids]","description":"\n\u003cp\u003ePuppet Module ids to copy into the new versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"update_hosts","full_name":"update_hosts","description":"\n\u003cp\u003eAfter generating the incremental update, apply the changes to the specified\nhosts. Only Errata are supported currently.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"included","full_name":"update_hosts[included]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"update_hosts[included][search]","description":"\n\u003cp\u003eSearch string for host to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"update_hosts[included][ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"update_hosts[excluded]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"update_hosts[excluded][ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_views":{"doc_url":"../apidoc/v2/content_views","id":"content_views","api_url":"/api","name":"Content views","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_views/index","name":"index","apis":[{"api_url":"/katello/api/organizations/:organization_id/content_views","http_method":"GET","short_description":"List content views","deprecated":null},{"api_url":"/katello/api/content_views","http_method":"GET","short_description":"List content views","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"nondefault","full_name":"nondefault","description":"\n\u003cp\u003eFilter out default content views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"noncomposite","full_name":"noncomposite","description":"\n\u003cp\u003eFilter out composite content views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"composite","full_name":"composite","description":"\n\u003cp\u003eFilter only composite content views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"without","full_name":"without","description":"\n\u003cp\u003eDo not include this array of content views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eName of the content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"composite","values":["true","false"]},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/create","name":"create","apis":[{"api_url":"/katello/api/organizations/:organization_id/content_views","http_method":"POST","short_description":"Create a content view","deprecated":null},{"api_url":"/katello/api/content_views","http_method":"POST","short_description":"Create a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eName of the content view\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003eContent view label\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"composite","full_name":"composite","description":"\n\u003cp\u003eComposite content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eDescription for the content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"repository_ids","full_name":"repository_ids","description":"\n\u003cp\u003eList of repository ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"component_ids","full_name":"component_ids","description":"\n\u003cp\u003eList of component content view version ids for composite views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"auto_publish","full_name":"auto_publish","description":"\n\u003cp\u003eEnable/Disable auto publish of composite view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"solve_dependencies","full_name":"solve_dependencies","description":"\n\u003cp\u003eSolve RPM dependencies by default on Content View publish, defaults to\nfalse\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/update","name":"update","apis":[{"api_url":"/katello/api/content_views/:id","http_method":"PUT","short_description":"Update a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eNew name for the content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eDescription for the content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"repository_ids","full_name":"repository_ids","description":"\n\u003cp\u003eList of repository ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"component_ids","full_name":"component_ids","description":"\n\u003cp\u003eList of component content view version ids for composite views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"auto_publish","full_name":"auto_publish","description":"\n\u003cp\u003eEnable/Disable auto publish of composite view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"solve_dependencies","full_name":"solve_dependencies","description":"\n\u003cp\u003eSolve RPM dependencies by default on Content View publish, defaults to\nfalse\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/publish","name":"publish","apis":[{"api_url":"/katello/api/content_views/:id/publish","http_method":"POST","short_description":"Publish a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eDescription for the new published content view version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"major","full_name":"major","description":"\n\u003cp\u003eOverride the major version number\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"minor","full_name":"minor","description":"\n\u003cp\u003eOverride the minor version number\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repos_units","full_name":"repos_units","description":"\n\u003cp\u003eSpecify the list of units in each repo\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"label","full_name":"repos_units[label]","description":"\n\u003cp\u003erepo label\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"rpm_filenames","full_name":"repos_units[rpm_filenames]","description":"\n\u003cp\u003elist of rpm filename strings to include in published version\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of String","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/show","name":"show","apis":[{"api_url":"/katello/api/content_views/:id","http_method":"GET","short_description":"Show a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/available_puppet_modules","name":"available_puppet_modules","apis":[{"api_url":"/katello/api/content_views/:id/available_puppet_modules","http_method":"GET","short_description":"Get puppet modules that are available to be added to the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003emodule name to restrict modules for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/available_puppet_module_names","name":"available_puppet_module_names","apis":[{"api_url":"/katello/api/content_views/:id/available_puppet_module_names","http_method":"GET","short_description":"Get puppet modules names that are available to be added to the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/remove_from_environment","name":"remove_from_environment","apis":[{"api_url":"/katello/api/content_views/:id/environments/:environment_id","http_method":"DELETE","short_description":"Remove a content view from an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/remove","name":"remove","apis":[{"api_url":"/katello/api/content_views/:id/remove","http_method":"PUT","short_description":"Remove versions and/or environments from a content view and reassign systems and keys","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"environment_ids","description":"\n\u003cp\u003eenvironment numeric identifiers to be removed\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view version identifiers to be deleted\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"system_content_view_id","full_name":"system_content_view_id","description":"\n\u003cp\u003econtent view to reassign orphaned systems to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"system_environment_id","full_name":"system_environment_id","description":"\n\u003cp\u003eenvironment to reassign orphaned systems to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"key_content_view_id","full_name":"key_content_view_id","description":"\n\u003cp\u003econtent view to reassign orphaned activation keys to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"key_environment_id","full_name":"key_environment_id","description":"\n\u003cp\u003eenvironment to reassign orphaned activation keys to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_views/:id","http_method":"DELETE","short_description":"Delete a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/copy","name":"copy","apis":[{"api_url":"/katello/api/content_views/:id/copy","http_method":"POST","short_description":"Make copy of a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eNew content view name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"debs":{"doc_url":"../apidoc/v2/debs","id":"debs","api_url":"/api","name":"Deb Packages","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/debs/index","name":"index","apis":[{"api_url":"/katello/api/debs","http_method":"GET","short_description":"List debs","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/debs","http_method":"GET","short_description":"List debs","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/debs","http_method":"GET","short_description":"List debs","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/debs","http_method":"GET","short_description":"List debs","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/debs/show","name":"show","apis":[{"api_url":"/katello/api/debs/:id","http_method":"GET","short_description":"Show a deb","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/debs/:id","http_method":"GET","short_description":"Show a deb","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea deb identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/debs/compare","name":"compare","apis":[{"api_url":"/katello/api/debs/compare","http_method":"GET","short_description":"List debs","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"docker_manifest_lists":{"doc_url":"../apidoc/v2/docker_manifest_lists","id":"docker_manifest_lists","api_url":"/api","name":"Docker manifest lists","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/docker_manifest_lists/index","name":"index","apis":[{"api_url":"/katello/api/docker_manifest_lists","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/docker_manifest_lists","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/docker_manifest_lists","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_manifest_lists","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_manifest_lists/show","name":"show","apis":[{"api_url":"/katello/api/docker_manifest_lists/:id","http_method":"GET","short_description":"Show a docker manifest list","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_manifest_lists/:id","http_method":"GET","short_description":"Show a docker manifest list","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea docker manifest list identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_manifest_lists/compare","name":"compare","apis":[{"api_url":"/katello/api/docker_manifest_lists/compare","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"docker_manifests":{"doc_url":"../apidoc/v2/docker_manifests","id":"docker_manifests","api_url":"/api","name":"Docker manifests","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/docker_manifests/index","name":"index","apis":[{"api_url":"/katello/api/docker_manifests","http_method":"GET","short_description":"List docker_manifests","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/docker_manifests","http_method":"GET","short_description":"List docker_manifests","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/docker_manifests","http_method":"GET","short_description":"List docker_manifests","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_manifests","http_method":"GET","short_description":"List docker_manifests","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_manifests/show","name":"show","apis":[{"api_url":"/katello/api/docker_manifests/:id","http_method":"GET","short_description":"Show a docker manifest","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_manifests/:id","http_method":"GET","short_description":"Show a docker manifest","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea docker manifest identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_manifests/compare","name":"compare","apis":[{"api_url":"/katello/api/docker_manifests/compare","http_method":"GET","short_description":"List docker_manifests","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"docker_tags":{"doc_url":"../apidoc/v2/docker_tags","id":"docker_tags","api_url":"/api","name":"Docker tags","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/docker_tags/index","name":"index","apis":[{"api_url":"/katello/api/docker_tags","http_method":"GET","short_description":"List docker_tags","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/docker_tags","http_method":"GET","short_description":"List docker_tags","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/docker_tags","http_method":"GET","short_description":"List docker_tags","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_tags","http_method":"GET","short_description":"List docker_tags","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_tags/show","name":"show","apis":[{"api_url":"/katello/api/docker_tags/:id","http_method":"GET","short_description":"Show a docker tag","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_tags/:id","http_method":"GET","short_description":"Show a docker tag","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea docker tag identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_tags/compare","name":"compare","apis":[{"api_url":"/katello/api/docker_tags/compare","http_method":"GET","short_description":"List docker_tags","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"lifecycle_environments":{"doc_url":"../apidoc/v2/lifecycle_environments","id":"lifecycle_environments","api_url":"/api","name":"Lifecycle environments","short_description":null,"full_description":"\n\u003cp\u003e# Description\u003c/p\u003e\n\n\u003cp\u003eAn environment is a basic organization structure that groups hosts,\nproducts, repositories, etc. Every host belongs to one environment and\nit\u0026#39;s isolated inside so that it can see only content that is in its\nenvironment.\u003c/p\u003e\n\n\u003cp\u003e## Chains\u003c/p\u003e\n\n\u003cp\u003eEnvironments are ordered into chains and their content (products,\nrepositories, tempaltes, packages) can be moved to an environment only from\nits prior environment. You can have for example chain like:\u003c/p\u003e\n\n\u003cpre\u003eLibrary -\u0026gt; Development -\u0026gt; Testing -\u0026gt; Production\u003c/pre\u003e\n\n\u003cp\u003eEach change in an environment is done through a changeset in an action\ncalled promotion.\u003c/p\u003e\n\n\u003cp\u003e## Library\u003c/p\u003e\n\n\u003cp\u003eLibrary is a special environment that has no ascendant: All the content\nstarts in this environment. More chains can start from the library\nenvironment but no further branching of a chain is enabled.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/lifecycle_environments/index","name":"index","apis":[{"api_url":"/katello/api/environments","http_method":"GET","short_description":"List environments in an organization","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments","http_method":"GET","short_description":"List environments in an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"library","full_name":"library","description":"\n\u003cp\u003eset true if you want to see only library environments\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003efilter only environments containing this name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"id","type":"integer"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/show","name":"show","apis":[{"api_url":"/katello/api/environments/:id","http_method":"GET","short_description":"Show an environment","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments/:environment_id","http_method":"GET","short_description":"Show an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/create","name":"create","apis":[{"api_url":"/katello/api/environments","http_method":"POST","short_description":"Create an environment","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments","http_method":"POST","short_description":"Create an environment in an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003ename of organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003elabel of the environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"registry_name_pattern","full_name":"registry_name_pattern","description":"\n\u003cp\u003epattern for container image names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"registry_unauthenticated_pull","full_name":"registry_unauthenticated_pull","description":"\n\u003cp\u003eallow unauthenticed pull of container images\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"prior_id","full_name":"prior_id","description":"\n\u003cp\u003eID of an environment that is prior to the new environment in the chain. It\nhas to be either the ID of Library or the ID of an environment at the end\nof a chain.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/update","name":"update","apis":[{"api_url":"/katello/api/environments/:id","http_method":"PUT","short_description":"Update an environment","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments/:id","http_method":"PUT","short_description":"Update an environment in an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003ename of the organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"new_name","full_name":"new_name","description":"\n\u003cp\u003enew name to be given to the environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"registry_name_pattern","full_name":"registry_name_pattern","description":"\n\u003cp\u003epattern for container image names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"registry_unauthenticated_pull","full_name":"registry_unauthenticated_pull","description":"\n\u003cp\u003eallow unauthenticed pull of container images\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"async","full_name":"async","description":"\n\u003cp\u003eDo not wait for the update action to finish. Default: true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/destroy","name":"destroy","apis":[{"api_url":"/katello/api/environments/:id","http_method":"DELETE","short_description":"Destroy an environment","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments/:id","http_method":"DELETE","short_description":"Destroy an environment in an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/paths","name":"paths","apis":[{"api_url":"/katello/api/organizations/:organization_id/environments/paths","http_method":"GET","short_description":"List environment paths","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"permission_type","full_name":"permission_type","description":"\n\u003cp\u003eThe associated permission type. One of (readable | promotable) Default:\nreadable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"errata":{"doc_url":"../apidoc/v2/errata","id":"errata","api_url":"/api","name":"Errata","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/errata/index","name":"index","apis":[{"api_url":"/katello/api/errata","http_method":"GET","short_description":"List errata","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eContent View Version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003eContent View Filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eEnvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"cve","full_name":"cve","description":"\n\u003cp\u003eCVE identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost id to list applicable errata for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"errata_restrict_applicable","full_name":"errata_restrict_applicable","description":"\n\u003cp\u003eReturn errata that are applicable to one or more hosts (defaults to true if\nhost_id is specified)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"errata_restrict_installable","full_name":"errata_restrict_installable","description":"\n\u003cp\u003eReturn errata that are upgradable on one or more hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eReturn errata that can be added to the specified object. The values\n\u0026#39;content_view_version\u0026#39; and \u0026#39;content_view_filter are supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"bug","type":"string"},{"name":"cve","type":"string"},{"name":"errata_id","type":"string"},{"name":"errata_type","type":"string"},{"name":"id","type":"string"},{"name":"issued","type":"date"},{"name":"modular","values":["true","false"]},{"name":"package","type":"string"},{"name":"package_name","type":"string"},{"name":"reboot_suggested","type":"boolean"},{"name":"repository","type":"string"},{"name":"severity","type":"string"},{"name":"title","type":"string"},{"name":"type","type":"string"},{"name":"updated","type":"date"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/errata/show","name":"show","apis":[{"api_url":"/katello/api/errata/:id","http_method":"GET","short_description":"Show an erratum","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/errata/:id","http_method":"GET","short_description":"Show an erratum","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ean erratum identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/errata/compare","name":"compare","apis":[{"api_url":"/katello/api/errata/compare","http_method":"GET","short_description":"List errata","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/errata/available_errata","name":"available_errata","apis":[{"api_url":"/katello/api/content_view_versions/:id/available_errata","http_method":"GET","short_description":"Return errata that can be added to the Content View Version via an Incremental Update","deprecated":true}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent View Version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003eContent View Filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eEnvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"cve","full_name":"cve","description":"\n\u003cp\u003eCVE identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost id to list applicable errata for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"errata_restrict_applicable","full_name":"errata_restrict_applicable","description":"\n\u003cp\u003eReturn errata that are applicable to one or more hosts (defaults to true if\nhost_id is specified)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"errata_restrict_installable","full_name":"errata_restrict_installable","description":"\n\u003cp\u003eReturn errata that are upgradable on one or more hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"file_units":{"doc_url":"../apidoc/v2/file_units","id":"file_units","api_url":"/api","name":"Files","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/file_units/index","name":"index","apis":[{"api_url":"/katello/api/files","http_method":"GET","short_description":"List files","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/files","http_method":"GET","short_description":"List files","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/files","http_method":"GET","short_description":"List files","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/files","http_method":"GET","short_description":"List files","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/file_units/show","name":"show","apis":[{"api_url":"/katello/api/files/:id","http_method":"GET","short_description":"Show a file","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/files/:id","http_method":"GET","short_description":"Show a file","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea file identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/file_units/compare","name":"compare","apis":[{"api_url":"/katello/api/files/compare","http_method":"GET","short_description":"List files","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"gpg_keys":{"doc_url":"../apidoc/v2/gpg_keys","id":"gpg_keys","api_url":"/api","name":"Gpg keys","short_description":null,"full_description":"\n\u003cp\u003e# Description Documents the calls for the list, read, create, update and\ndelete operations for GPG keys\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/gpg_keys/index","name":"index","apis":[{"api_url":"/katello/api/gpg_keys","http_method":"GET","short_description":"List gpg keys","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the GPG key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/create","name":"create","apis":[{"api_url":"/katello/api/gpg_keys","http_method":"POST","short_description":"Create a gpg key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eidentifier of the gpg key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003epublic key block in DER encoding\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/show","name":"show","apis":[{"api_url":"/katello/api/gpg_keys/:id","http_method":"GET","short_description":"Show a gpg key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003egpg key numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/update","name":"update","apis":[{"api_url":"/katello/api/gpg_keys/:id","http_method":"PUT","short_description":"Update a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003egpg key numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eidentifier of the gpg key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003epublic key block in DER encoding\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/destroy","name":"destroy","apis":[{"api_url":"/katello/api/gpg_keys/:id","http_method":"DELETE","short_description":"Destroy a gpg key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003egpg key numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/content","name":"content","apis":[{"api_url":"/katello/api/gpg_keys/:id/content","http_method":"GET","short_description":"Return the content of a gpg key, used directly by yum","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/set_content","name":"set_content","apis":[{"api_url":"/katello/api/gpg_keys/:id/content","http_method":"POST","short_description":"Upload gpg key contents","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003egpg key numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003efile contents\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_collections":{"doc_url":"../apidoc/v2/host_collections","id":"host_collections","api_url":"/api","name":"Host collections","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_collections/show","name":"show","apis":[{"api_url":"/katello/api/host_collections/:id","http_method":"GET","short_description":"Show a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/index","name":"index","apis":[{"api_url":"/katello/api/host_collections","http_method":"GET","short_description":"List host collections","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/host_collections","http_method":"GET","short_description":"List host collections within an organization","deprecated":null},{"api_url":"/katello/api/activation_keys/:activation_key_id/host_collections","http_method":"GET","short_description":"List host collections in an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ehost collection name to filter by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"activation_key_id","full_name":"activation_key_id","description":"\n\u003cp\u003eactivation key identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eFilter products by host id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eInterpret specified object to return only Host Collections that can be\nassociated with specified object. The value \u0026#39;host\u0026#39; is supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"host","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/create","name":"create","apis":[{"api_url":"/katello/api/host_collections","http_method":"POST","short_description":"Create a host collection","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/host_collections","http_method":"POST","short_description":"Create a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eHost Collection name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eList of host ids to replace the hosts in host collection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"max_hosts","full_name":"max_hosts","description":"\n\u003cp\u003eMaximum number of hosts in the host collection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unlimited_hosts","full_name":"unlimited_hosts","description":"\n\u003cp\u003eWhether or not the host collection may have unlimited hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/update","name":"update","apis":[{"api_url":"/katello/api/host_collections/:id","http_method":"PUT","short_description":"Update a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eHost Collection name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eList of host ids to replace the hosts in host collection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"max_hosts","full_name":"max_hosts","description":"\n\u003cp\u003eMaximum number of hosts in the host collection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unlimited_hosts","full_name":"unlimited_hosts","description":"\n\u003cp\u003eWhether or not the host collection may have unlimited hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/add_hosts","name":"add_hosts","apis":[{"api_url":"/katello/api/host_collections/:id/add_hosts","http_method":"PUT","short_description":"Add host to the host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eArray of host ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/remove_hosts","name":"remove_hosts","apis":[{"api_url":"/katello/api/host_collections/:id/remove_hosts","http_method":"PUT","short_description":"Remove hosts from the host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eArray of host ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/destroy","name":"destroy","apis":[{"api_url":"/katello/api/host_collections/:id","http_method":"DELETE","short_description":"Destroy a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/copy","name":"copy","apis":[{"api_url":"/katello/api/host_collections/:id/copy","http_method":"POST","short_description":"Make copy of a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eNew host collection name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"host_debs":{"doc_url":"../apidoc/v2/host_debs","id":"host_debs","api_url":"/api","name":"Host debs","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_debs/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/debs","http_method":"GET","short_description":"List deb packages installed on the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_errata":{"doc_url":"../apidoc/v2/host_errata","id":"host_errata","api_url":"/api","name":"Host errata","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_errata/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/errata","http_method":"GET","short_description":"List errata available for the content host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eUUID of the content host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003eCalculate Applicable Errata based on a particular Content View\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eCalculate Applicable Errata based on a particular Environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_errata/apply","name":"apply","apis":[{"api_url":"/api/hosts/:host_id/errata/apply","http_method":"PUT","short_description":"Schedule errata for installation","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"errata_ids","full_name":"errata_ids","description":"\n\u003cp\u003eList of Errata ids to install\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"\n\u003cp\u003eErrata to exclusively include in the action\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for erratum to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of errata ids to perform an action on, (ex: RHSA-2019:1168)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"\n\u003cp\u003eErrata to explicitly exclude in the action. All other applicable errata\nwill be included in the action, unless an included parameter is passed as\nwell.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of errata ids to exclude and not run an action on, (ex:\nRHSA-2019:1168)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_errata/show","name":"show","apis":[{"api_url":"/api/hosts/:host_id/errata/:id","http_method":"GET","short_description":"Retrieve a single errata for a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eErrata id of the erratum (RHSA-2012:108)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_errata/applicability","name":"applicability","apis":[{"api_url":"/api/hosts/:host_id/errata/applicability","http_method":"PUT","short_description":"Force regenerate applicability.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_module_streams":{"doc_url":"../apidoc/v2/host_module_streams","id":"host_module_streams","api_url":"/api","name":"Host module streams","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_module_streams/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/module_streams","http_method":"GET","short_description":"List module streams available to the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"status","full_name":"status","description":"\n\u003cp\u003eStreams based on the host based on their status\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eenabled\u003c/code\u003e, \u003ccode\u003edisabled\u003c/code\u003e, \u003ccode\u003eunknown\u003c/code\u003e, \u003ccode\u003einstalled\u003c/code\u003e, \u003ccode\u003eupgradable\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_packages":{"doc_url":"../apidoc/v2/host_packages","id":"host_packages","api_url":"/api","name":"Host packages","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_packages/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/packages","http_method":"GET","short_description":"List packages installed on the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"arch","type":"string"},{"name":"epoch","type":"string"},{"name":"name","type":"string"},{"name":"nvra","type":"string"},{"name":"nvrea","type":"string"},{"name":"release","type":"string"},{"name":"version","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_packages/install","name":"install","apis":[{"api_url":"/api/hosts/:host_id/packages/install","http_method":"PUT","short_description":"Install packages remotely","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"packages","full_name":"packages","description":"\n\u003cp\u003eList of package names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"groups","full_name":"groups","description":"\n\u003cp\u003eList of package group names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_packages/upgrade","name":"upgrade","apis":[{"api_url":"/api/hosts/:host_id/packages/upgrade","http_method":"PUT","short_description":"Update packages remotely","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"packages","full_name":"packages","description":"\n\u003cp\u003elist of packages names\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_packages/upgrade_all","name":"upgrade_all","apis":[{"api_url":"/api/hosts/:host_id/packages/upgrade_all","http_method":"PUT","short_description":"Update packages remotely","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_packages/remove","name":"remove","apis":[{"api_url":"/api/hosts/:host_id/packages/remove","http_method":"PUT","short_description":"Uninstall packages remotely","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"packages","full_name":"packages","description":"\n\u003cp\u003eList of package names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"groups","full_name":"groups","description":"\n\u003cp\u003eList of package group names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_tracer":{"doc_url":"../apidoc/v2/host_tracer","id":"host_tracer","api_url":"/api","name":"Host tracer","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_tracer/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/traces","http_method":"GET","short_description":"List services that need restarting on the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"hosts_bulk_actions":{"doc_url":"../apidoc/v2/hosts_bulk_actions","id":"hosts_bulk_actions","api_url":"/api","name":"Hosts bulk actions","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/hosts_bulk_actions/bulk_add_host_collections","name":"bulk_add_host_collections","apis":[{"api_url":"/api/hosts/bulk/add_host_collections","http_method":"PUT","short_description":"Add one or more host collections to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/bulk_remove_host_collections","name":"bulk_remove_host_collections","apis":[{"api_url":"/api/hosts/bulk/remove_host_collections","http_method":"PUT","short_description":"Remove one or more host collections from one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/applicable_errata","name":"applicable_errata","apis":[{"api_url":"/api/hosts/bulk/applicable_errata","http_method":"POST","short_description":"Fetch applicable errata for one or more hosts.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/installable_errata","name":"installable_errata","apis":[{"api_url":"/api/hosts/bulk/installable_errata","http_method":"POST","short_description":"Fetch installable errata for one or more hosts.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/install_content","name":"install_content","apis":[{"api_url":"/api/hosts/bulk/install_content","http_method":"PUT","short_description":"Install content on one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003eThe type of content. The following types are supported: \u0026#39;package\u0026#39;,\n\u0026#39;package_group\u0026#39; and \u0026#39;errata\u0026#39;.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eList of content (e.g. package names, package group names or errata ids)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/update_content","name":"update_content","apis":[{"api_url":"/api/hosts/bulk/update_content","http_method":"PUT","short_description":"Update content on one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003eThe type of content. The following types are supported: \u0026#39;package\u0026#39;\nand \u0026#39;package_group.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eList of content (e.g. package or package group names)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"update_all","full_name":"update_all","description":"\n\u003cp\u003eUpdates all packages on the host(s)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/remove_content","name":"remove_content","apis":[{"api_url":"/api/hosts/bulk/remove_content","http_method":"PUT","short_description":"Remove content on one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003eThe type of content. The following types are supported: \u0026#39;package\u0026#39;\nand \u0026#39;package_group.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eList of content (e.g. package or package group names)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/destroy_hosts","name":"destroy_hosts","apis":[{"api_url":"/api/hosts/bulk/destroy","http_method":"PUT","short_description":"Destroy one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/remove_subscriptions","name":"remove_subscriptions","apis":[{"api_url":"/api/hosts/bulk/remove_subscriptions","http_method":"PUT","short_description":"Remove subscriptions from one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to remove\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eQuantity of specified subscription to remove\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/add_subscriptions","name":"add_subscriptions","apis":[{"api_url":"/api/hosts/bulk/add_subscriptions","http_method":"PUT","short_description":"Add subscriptions to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eQuantity of this subscriptions to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/auto_attach","name":"auto_attach","apis":[{"api_url":"/api/hosts/bulk/auto_attach","http_method":"PUT","short_description":"Trigger an auto-attach of subscriptions on one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/content_overrides","name":"content_overrides","apis":[{"api_url":"/api/hosts/bulk/content_overrides","http_method":"PUT","short_description":"Set content overrides to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"content_overrides","full_name":"content_overrides","description":"\n\u003cp\u003eArray of Content override parameters\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_label","full_name":"content_overrides[content_label]","description":"\n\u003cp\u003eLabel of the content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"content_overrides[value]","description":"\n\u003cp\u003eOverride value. Provide a boolean value if name is \u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"content_overrides[name]","description":"\n\u003cp\u003eOverride key or name. Note if name is not provided the default name will be\n\u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"remove","full_name":"content_overrides[remove]","description":"\n\u003cp\u003eSet true to remove an override and reset it to \u0026#39;default\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/environment_content_view","name":"environment_content_view","apis":[{"api_url":"/api/hosts/bulk/environment_content_view","http_method":"PUT","short_description":"Assign the environment and content view to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"environment_id","full_name":"environment_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/release_version","name":"release_version","apis":[{"api_url":"/api/hosts/bulk/release_version","http_method":"PUT","short_description":"Assign the release version to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"release_version","full_name":"release_version","description":"\n\u003cp\u003econtent release version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/available_incremental_updates","name":"available_incremental_updates","apis":[{"api_url":"/api/hosts/bulk/available_incremental_updates","http_method":"POST","short_description":"Given a set of hosts and errata, lists the content view versions and environments that need updating.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"errata_ids","full_name":"errata_ids","description":"\n\u003cp\u003eList of Errata ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/module_streams","name":"module_streams","apis":[{"api_url":"/api/hosts/bulk/module_streams","http_method":"POST","short_description":"Fetch available module streams for hosts.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"module_streams":{"doc_url":"../apidoc/v2/module_streams","id":"module_streams","api_url":"/api","name":"Module streams","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/module_streams/index","name":"index","apis":[{"api_url":"/katello/api/module_streams","http_method":"GET","short_description":"List module_streams","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/module_streams","http_method":"GET","short_description":"List module_streams","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/module_streams","http_method":"GET","short_description":"List module_streams","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/module_streams","http_method":"GET","short_description":"List module_streams","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eList of host id to list available module streams for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"name_stream_only","full_name":"name_stream_only","description":"\n\u003cp\u003eReturn name and stream information only)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/module_streams/show","name":"show","apis":[{"api_url":"/katello/api/module_streams/:id","http_method":"GET","short_description":"Show a module stream","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/module_streams/:id","http_method":"GET","short_description":"Show a module stream","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea module stream identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/module_streams/compare","name":"compare","apis":[{"api_url":"/katello/api/module_streams/compare","http_method":"GET","short_description":"List module_streams","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ostree_branches":{"doc_url":"../apidoc/v2/ostree_branches","id":"ostree_branches","api_url":"/api","name":"Ostree branches","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ostree_branches/index","name":"index","apis":[{"api_url":"/katello/api/ostree_branches","http_method":"GET","short_description":"List ostree_branches","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/ostree_branches","http_method":"GET","short_description":"List ostree_branches","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/ostree_branches","http_method":"GET","short_description":"List ostree_branches","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/ostree_branches","http_method":"GET","short_description":"List ostree_branches","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ostree_branches/show","name":"show","apis":[{"api_url":"/katello/api/ostree_branches/:id","http_method":"GET","short_description":"Show an ostree branch","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/ostree_branches/:id","http_method":"GET","short_description":"Show an ostree branch","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ean ostree branch identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ostree_branches/compare","name":"compare","apis":[{"api_url":"/katello/api/ostree_branches/compare","http_method":"GET","short_description":"List ostree_branches","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"package_groups":{"doc_url":"../apidoc/v2/package_groups","id":"package_groups","api_url":"/api","name":"Package groups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/package_groups/index","name":"index","apis":[{"api_url":"/katello/api/package_groups","http_method":"GET","short_description":"List package_groups","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/package_groups","http_method":"GET","short_description":"List package_groups","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/package_groups","http_method":"GET","short_description":"List package_groups","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/package_groups","http_method":"GET","short_description":"List package_groups","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/package_groups/show","name":"show","apis":[{"api_url":"/katello/api/package_groups/:id","http_method":"GET","short_description":"Show a package group","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/package_groups/:id","http_method":"GET","short_description":"Show a package group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea package group identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/package_groups/compare","name":"compare","apis":[{"api_url":"/katello/api/package_groups/compare","http_method":"GET","short_description":"List package_groups","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/package_groups/create","name":"create","apis":[{"api_url":"/katello/api/package_group","http_method":"POST","short_description":"Create a package group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository_id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003epackage group name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003epackage group description. Defaults to \u003ca href=\":name\"\u003eparams\u003c/a\u003e\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_visible","full_name":"user_visible","description":"\n\u003cp\u003eset “user_visible” flag on package group. Defaults to true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"mandatory_package_names","full_name":"mandatory_package_names","description":"\n\u003cp\u003emandatory package names to include in the package group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"optional_package_names","full_name":"optional_package_names","description":"\n\u003cp\u003eoptional package names to include in the package group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"conditional_package_names","full_name":"conditional_package_names","description":"\n\u003cp\u003econditional package names to include in the package group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"default_package_names","full_name":"default_package_names","description":"\n\u003cp\u003edefault package names to include in the package group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/package_groups/destroy","name":"destroy","apis":[{"api_url":"/katello/api/package_group","http_method":"DELETE","short_description":"Delete a package group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"name","full_name":"name","description":"\n\u003cp\u003epackage group name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository_id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"sync":{"doc_url":"../apidoc/v2/sync","id":"sync","api_url":"/api","name":"Sync","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/sync/index","name":"index","apis":[{"api_url":"/katello/api/organizations/:organization_id/products/:product_id/sync","http_method":"GET","short_description":"Get status of repo synchronisation for given product","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/sync","http_method":"GET","short_description":"Get status of synchronisation for given repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"sync_plans":{"doc_url":"../apidoc/v2/sync_plans","id":"sync_plans","api_url":"/api","name":"Sync plans","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/sync_plans/index","name":"index","apis":[{"api_url":"/katello/api/sync_plans","http_method":"GET","short_description":"List sync plans","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/sync_plans","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003efilter by name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sync_date","full_name":"sync_date","description":"\n\u003cp\u003efilter by sync date\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interval","full_name":"interval","description":"\n\u003cp\u003efilter by interval\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ehourly\u003c/code\u003e, \u003ccode\u003edaily\u003c/code\u003e, \u003ccode\u003eweekly\u003c/code\u003e, \u003ccode\u003ecustom cron\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"enabled","values":["true","false"]},{"name":"interval","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/show","name":"show","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id","http_method":"GET","short_description":"Show a sync plan","deprecated":null},{"api_url":"/katello/api/sync_plans/:id","http_method":"GET","short_description":"Show a sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003esync plan numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/create","name":"create","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans","http_method":"POST","short_description":"Create a sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003esync plan name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interval","full_name":"interval","description":"\n\u003cp\u003ehow often synchronization should run\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ehourly\u003c/code\u003e, \u003ccode\u003edaily\u003c/code\u003e, \u003ccode\u003eweekly\u003c/code\u003e, \u003ccode\u003ecustom cron\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sync_date","full_name":"sync_date","description":"\n\u003cp\u003estart datetime of synchronization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003esync plan description\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eenables or disables synchronization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"cron_expression","full_name":"cron_expression","description":"\n\u003cp\u003eAdd custom cron logic for sync plan\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/update","name":"update","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id","http_method":"PUT","short_description":"Update a sync plan","deprecated":null},{"api_url":"/katello/api/sync_plans/:id","http_method":"PUT","short_description":"Update a sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003esync plan numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003esync plan name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interval","full_name":"interval","description":"\n\u003cp\u003ehow often synchronization should run\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ehourly\u003c/code\u003e, \u003ccode\u003edaily\u003c/code\u003e, \u003ccode\u003eweekly\u003c/code\u003e, \u003ccode\u003ecustom cron\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sync_date","full_name":"sync_date","description":"\n\u003cp\u003estart datetime of synchronization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003esync plan description\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eenables or disables synchronization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"cron_expression","full_name":"cron_expression","description":"\n\u003cp\u003eAdd custom cron logic for sync plan\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/destroy","name":"destroy","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id","http_method":"DELETE","short_description":"Destroy a sync plan","deprecated":null},{"api_url":"/katello/api/sync_plans/:id","http_method":"DELETE","short_description":"Destroy a sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003esync plan numeric identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/add_products","name":"add_products","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id/add_products","http_method":"PUT","short_description":"Add products to sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_ids","full_name":"product_ids","description":"\n\u003cp\u003eList of product ids to add to the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/remove_products","name":"remove_products","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id/remove_products","http_method":"PUT","short_description":"Remove products from sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_ids","full_name":"product_ids","description":"\n\u003cp\u003eList of product ids to remove from the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/sync","name":"sync","apis":[{"api_url":"/katello/api/sync_plans/:id/sync","http_method":"PUT","short_description":"Initiate a sync of the products attached to the sync plan","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id/sync","http_method":"PUT","short_description":"Initiate a sync of the products attached to the sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"upstream_subscriptions":{"doc_url":"../apidoc/v2/upstream_subscriptions","id":"upstream_subscriptions","api_url":"/api","name":"Upstream subscriptions","short_description":null,"full_description":"\n\u003cp\u003eRed Hat subscriptions management platform.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/upstream_subscriptions/index","name":"index","apis":[{"api_url":"/katello/api/organizations/:organization_id/upstream_subscriptions","http_method":"GET","short_description":"List available subscriptions from Red Hat Subscription Management","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eThe order to sort the results in. [\u0026#39;asc\u0026#39;, \u0026#39;desc\u0026#39;] Defaults\nto \u0026#39;desc\u0026#39;.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eThe field to sort the data by. Defaults to the created date.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"pool_ids","full_name":"pool_ids","description":"\n\u003cp\u003eReturn only the upstream pools which map to the given Katello pool IDs\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"quantities_only","full_name":"quantities_only","description":"\n\u003cp\u003eOnly returns id and quantity fields\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"attachable","full_name":"attachable","description":"\n\u003cp\u003eReturn only subscriptions which can be attached to the upstream allocation\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/upstream_subscriptions/update","name":"update","apis":[{"api_url":"/katello/api/organizations/:organization_id/upstream_subscriptions","http_method":"PUT","short_description":"Update the quantity of one or more subscriptions on an upstream allocation","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"pools","full_name":"pools","description":"\n\u003cp\u003eArray of Pools to be updated. Only pools originating upstream are accepted.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"pools[id]","description":"\n\u003cp\u003eKatello ID of local pool to update\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"pools[quantity]","description":"\n\u003cp\u003eDesired quantity of the pool\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/upstream_subscriptions/destroy","name":"destroy","apis":[{"api_url":"/katello/api/organizations/:organization_id/upstream_subscriptions","http_method":"DELETE","short_description":"Remove one or more subscriptions from an upstream subscription allocation","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"pool_ids","full_name":"pool_ids","description":"\n\u003cp\u003eArray of local pool IDs. Only pools originating upstream are accepted.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/upstream_subscriptions/create","name":"create","apis":[{"api_url":"/katello/api/organizations/:organization_id/upstream_subscriptions","http_method":"POST","short_description":"Add subscriptions consumed by a manifest from Red Hat Subscription Management","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"pools","full_name":"pools","description":"\n\u003cp\u003eArray of pools to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"pools[id]","description":"\n\u003cp\u003eCandlepin ID of pool to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"pools[quantity]","description":"\n\u003cp\u003eQuantity of entitlements to bind\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false}},"link_extension":".html"}} \ No newline at end of file +{"docs":{"name":"Foreman","info":"\n\u003cp\u003eForeman API v2 is currently the default API version.\u003c/p\u003e\n","copyright":"","doc_url":"../apidoc/v2","api_url":"/api","resources":{"host_subscriptions":{"doc_url":"../apidoc/v2/host_subscriptions","id":"host_subscriptions","api_url":"/api","name":"Host subscriptions","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_subscriptions/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/subscriptions","http_method":"GET","short_description":"List a host's subscriptions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/auto_attach","name":"auto_attach","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/auto_attach","http_method":"PUT","short_description":"Trigger an auto-attach of subscriptions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:host_id/subscriptions","http_method":"DELETE","short_description":"Unregister the host as a subscription consumer","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/create","name":"create","apis":[{"api_url":"/api/hosts/subscriptions","http_method":"POST","short_description":"Register a host with subscription and information","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"name","full_name":"name","description":"\n\u003cp\u003eName of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003eUUID to use for registered host, random uuid is generated if not provided\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"facts","full_name":"facts","description":"\n\u003cp\u003eKey-value hash of subscription-manager facts, nesting uses a period\ndelimiter (.)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"hypervisor_guest_uuids","full_name":"hypervisor_guest_uuids","description":"\n\u003cp\u003eUUIDs of the virtual guests from the host\u0026#39;s hypervisor\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"installed_products","full_name":"installed_products","description":"\n\u003cp\u003eList of products installed on the host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"product_id","full_name":"installed_products[product_id]","description":"\n\u003cp\u003eProduct id as listed from a host\u0026#39;s installed products, this is\nnot the same product id as the products api returns\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_name","full_name":"installed_products[product_name]","description":"\n\u003cp\u003eProduct name as listed from a host\u0026#39;s installed products\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"arch","full_name":"installed_products[arch]","description":"\n\u003cp\u003eProduct architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"installed_products[version]","description":"\n\u003cp\u003eProduct version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"release_version","full_name":"release_version","description":"\n\u003cp\u003eRelease version of the content host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"service_level","description":"\n\u003cp\u003eA service level for auto-healing process, e.g. SELF-SUPPORT\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"lifecycle_environment_id","description":"\n\u003cp\u003eLifecycle Environment ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003eContent View ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/remove_subscriptions","name":"remove_subscriptions","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/remove_subscriptions","http_method":"PUT","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to remove\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eIf specified, remove the first instance of a subscription with matching id\nand quantity\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/add_subscriptions","name":"add_subscriptions","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/add_subscriptions","http_method":"PUT","short_description":"Add a subscription to a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eQuantity of this subscriptions to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/content_override","name":"content_override","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/content_override","http_method":"PUT","short_description":"Set content overrides for the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the content host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"value","description":"\n\u003cp\u003eOverride to a boolean value or \u0026#39;default\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_overrides","full_name":"content_overrides","description":"\n\u003cp\u003eArray of Content override parameters\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_label","full_name":"content_overrides[content_label]","description":"\n\u003cp\u003eLabel of the content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"content_overrides[value]","description":"\n\u003cp\u003eOverride value. Provide a boolean value if name is \u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"content_overrides[name]","description":"\n\u003cp\u003eOverride key or name. Note if name is not provided the default name will be\n\u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"remove","full_name":"content_overrides[remove]","description":"\n\u003cp\u003eSet true to remove an override and reset it to \u0026#39;default\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/product_content","name":"product_content","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/product_content","http_method":"GET","short_description":"Get content and overrides for the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eId of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_access_mode_all","full_name":"content_access_mode_all","description":"\n\u003cp\u003eGet all content available, not just that provided by subscriptions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"content_access_mode_env","full_name":"content_access_mode_env","description":"\n\u003cp\u003eLimit content to just that available in the host\u0026#39;s content view version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_subscriptions/available_release_versions","name":"available_release_versions","apis":[{"api_url":"/api/hosts/:host_id/subscriptions/available_release_versions","http_method":"GET","short_description":"Show releases available for the content host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eid of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"hosts":{"doc_url":"../apidoc/v2/hosts","id":"hosts","api_url":"/api","name":"Hosts","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/hosts/index","name":"index","apis":[{"api_url":"/api/hosts","http_method":"GET","short_description":"List all hosts","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/hosts","http_method":"GET","short_description":"List all hosts for a host group","deprecated":null},{"api_url":"/api/locations/:location_id/hosts","http_method":"GET","short_description":"List hosts per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/hosts","http_method":"GET","short_description":"List hosts per organization","deprecated":null},{"api_url":"/api/environments/:environment_id/hosts","http_method":"GET","short_description":"List hosts per environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"thin","full_name":"thin","description":"\n\u003cp\u003eOnly list ID and name of hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"include","full_name":"include","description":"\n\u003cp\u003eArray of extra information types to include\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eparameters\u003c/code\u003e, \u003ccode\u003eall_parameters\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"activation_key","type":"string"},{"name":"activation_key_id","type":"string"},{"name":"addon","type":"string"},{"name":"addons_status","values":["mismatched","matched","not_specified"]},{"name":"applicable_errata","type":"string"},{"name":"applicable_errata_issued","type":"date"},{"name":"applicable_rpms","type":"string"},{"name":"architecture","type":"string"},{"name":"autoheal","type":"boolean"},{"name":"available_module_stream_name","type":"string"},{"name":"available_module_stream_stream","type":"string"},{"name":"boot_time","type":""},{"name":"build","values":["true","false"]},{"name":"class","type":"string"},{"name":"comment","type":"text"},{"name":"compute_resource","type":"string"},{"name":"compute_resource_id","type":"integer"},{"name":"config_group","type":"string"},{"name":"content_source","type":"string"},{"name":"content_view","type":"string"},{"name":"content_view_id","type":"integer"},{"name":"created_at","type":"datetime"},{"name":"domain","type":"string"},{"name":"domain_id","type":"integer"},{"name":"environment","type":"string"},{"name":"errata_status","values":["security_needed","errata_needed","updated","unknown"]},{"name":"facts","type":"string"},{"name":"global_status","values":["ok","warning","error"]},{"name":"has_ip","type":"string"},{"name":"has_mac","type":"string"},{"name":"host_collection","type":"string"},{"name":"host_collection_id","type":"integer"},{"name":"hostgroup","type":"string"},{"name":"hostgroup_fullname","type":"string"},{"name":"hostgroup_id","type":"integer"},{"name":"hostgroup_name","type":"string"},{"name":"hostgroup_title","type":"string"},{"name":"hypervisor","values":["true","false"]},{"name":"hypervisor_host","type":"string"},{"name":"image","type":"string"},{"name":"installable_errata","type":"string"},{"name":"installed_at","type":"datetime"},{"name":"installed_package","type":"string"},{"name":"installed_package_name","type":"string"},{"name":"ip","type":"string"},{"name":"last_checkin","type":"datetime"},{"name":"last_report","type":"datetime"},{"name":"lifecycle_environment","type":"string"},{"name":"lifecycle_environment_id","type":"integer"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"mac","type":"string"},{"name":"managed","values":["true","false"]},{"name":"model","type":"string"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"origin","type":"string"},{"name":"os","type":"string"},{"name":"os_description","type":"string"},{"name":"os_id","type":"integer"},{"name":"os_major","type":"string"},{"name":"os_minor","type":"string"},{"name":"os_title","type":"string"},{"name":"owner","type":"string"},{"name":"owner_id","type":"integer"},{"name":"owner_type","type":"string"},{"name":"params","type":"string"},{"name":"params_name","type":"string"},{"name":"parent_hostgroup","type":"string"},{"name":"pools_expiring_in_days","type":"string"},{"name":"puppet_ca","type":"string"},{"name":"puppet_proxy_id","type":"integer"},{"name":"puppetmaster","type":"string"},{"name":"purpose_status","values":["mismatched","matched","not_specified"]},{"name":"realm","type":"string"},{"name":"realm_id","type":"integer"},{"name":"registered_at","type":"datetime"},{"name":"registered_through","type":"string"},{"name":"release_version","type":"string"},{"name":"role","type":"text"},{"name":"role_status","values":["mismatched","matched","not_specified"]},{"name":"service_level","type":"string"},{"name":"sla_status","values":["mismatched","matched","not_specified"]},{"name":"smart_proxy","type":"string"},{"name":"status.applied","type":"integer"},{"name":"status.enabled","values":["true","false"]},{"name":"status.failed","type":"integer"},{"name":"status.failed_restarts","type":"integer"},{"name":"status.interesting","values":["true","false"]},{"name":"status.pending","type":"integer"},{"name":"status.restarted","type":"integer"},{"name":"status.skipped","type":"integer"},{"name":"subnet","type":"string"},{"name":"subnet.name","type":"text"},{"name":"subnet6","type":"string"},{"name":"subnet6.name","type":"text"},{"name":"subscription_id","type":"string"},{"name":"subscription_name","type":"string"},{"name":"subscription_status","values":["valid","partial","invalid","unknown","disabled","unsubscribed_hypervisor"]},{"name":"subscription_uuid","type":"string"},{"name":"trace_app","type":"string"},{"name":"trace_app_type","type":"string"},{"name":"trace_helper","type":"string"},{"name":"trace_status","values":["reboot_needed","process_restart_needed","updated"]},{"name":"upgradable_rpms","type":"string"},{"name":"usage","type":"text"},{"name":"usage_status","values":["mismatched","matched","not_specified"]},{"name":"user.firstname","type":"string"},{"name":"user.lastname","type":"string"},{"name":"user.login","type":"string"},{"name":"user.mail","type":"string"},{"name":"usergroup","type":"string"},{"name":"usergroup.name","type":"string"},{"name":"uuid","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/show","name":"show","apis":[{"api_url":"/api/hosts/:id","http_method":"GET","short_description":"Show a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/create","name":"create","apis":[{"api_url":"/api/hosts","http_method":"POST","short_description":"Create a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"host","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"host[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"host[location_id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"host[organization_id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"host[environment_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"host[ip]","description":"\n\u003cp\u003enot required if using a subnet with DHCP proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mac","full_name":"host[mac]","description":"\n\u003cp\u003erequired for managed host that is bare metal, not required if it\u0026#39;s a\nvirtual machine\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"host[architecture_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"host[domain_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_id","full_name":"host[realm_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_proxy_id","full_name":"host[puppet_proxy_id]","description":"\n\u003cp\u003ePuppet proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_ca_proxy_id","full_name":"host[puppet_ca_proxy_id]","description":"\n\u003cp\u003ePuppet CA proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"host[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_group_ids","full_name":"host[config_group_ids]","description":"\n\u003cp\u003eIDs of associated config groups\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"host[operatingsystem_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"host[medium_id]","description":"\n\u003cp\u003erequired if not imaged based provisioning and host is managed and value is\nnot inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"pxe_loader","full_name":"host[pxe_loader]","description":"\n\u003cp\u003eDHCP filename option (Grub2/PXELinux by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eNone\u003c/code\u003e, \u003ccode\u003ePXELinux BIOS\u003c/code\u003e, \u003ccode\u003ePXELinux UEFI\u003c/code\u003e, \u003ccode\u003eGrub UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 BIOS\u003c/code\u003e, \u003ccode\u003eGrub2 ELF\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI SecureBoot\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTP\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS SecureBoot\u003c/code\u003e, \u003ccode\u003eiPXE Embedded\u003c/code\u003e, \u003ccode\u003eiPXE UEFI HTTP\u003c/code\u003e, \u003ccode\u003eiPXE Chain BIOS\u003c/code\u003e, \u003ccode\u003eiPXE Chain UEFI\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"host[ptable_id]","description":"\n\u003cp\u003erequired if host is managed and custom partition has not been defined\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"host[subnet_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"host[compute_resource_id]","description":"\n\u003cp\u003enil means host is bare metal\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"root_pass","full_name":"host[root_pass]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group or\ndefault password in settings\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"model_id","full_name":"host[model_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"host[hostgroup_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"owner_id","full_name":"host[owner_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"owner_type","full_name":"host[owner_type]","description":"\n\u003cp\u003eHost\u0026#39;s owner type\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eUser\u003c/code\u003e, \u003ccode\u003eUsergroup\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"image_id","full_name":"host[image_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_parameters_attributes","full_name":"host[host_parameters_attributes]","description":"\n\u003cp\u003eHost\u0026#39;s parameters (array or indexed hash)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"host[host_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"host[host_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"host[host_parameters_attributes][parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"host[host_parameters_attributes][hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]},{"name":"build","full_name":"host[build]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"host[enabled]","description":"\n\u003cp\u003eInclude this host within Foreman reporting\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision_method","full_name":"host[provision_method]","description":"\n\u003cp\u003eThe method used to provision the host.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebuild\u003c/code\u003e, \u003ccode\u003eimage\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"host[managed]","description":"\n\u003cp\u003eTrue/False flag whether a host is managed or unmanaged. Note: this value\nalso determines whether several parameters are required or not\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"progress_report_id","full_name":"host[progress_report_id]","description":"\n\u003cp\u003eUUID to track orchestration tasks status, GET\n/api/orchestration/:UUID/tasks\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"comment","full_name":"host[comment]","description":"\n\u003cp\u003eAdditional information about this host\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"capabilities","full_name":"host[capabilities]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"host[compute_profile_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"interfaces_attributes","full_name":"host[interfaces_attributes]","description":"\n\u003cp\u003eHost\u0026#39;s network interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"mac","full_name":"host[interfaces_attributes][mac]","description":"\n\u003cp\u003eMAC address of interface. Required for managed interfaces on bare metal.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"host[interfaces_attributes][ip]","description":"\n\u003cp\u003eIPv4 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip6","full_name":"host[interfaces_attributes][ip6]","description":"\n\u003cp\u003eIPv6 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"host[interfaces_attributes][type]","description":"\n\u003cp\u003eInterface type, e.g. bmc. Default is interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003einterface\u003c/code\u003e, \u003ccode\u003ebmc\u003c/code\u003e, \u003ccode\u003ebond\u003c/code\u003e, \u003ccode\u003ebridge\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"host[interfaces_attributes][name]","description":"\n\u003cp\u003eInterface\u0026#39;s DNS name\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"host[interfaces_attributes][subnet_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv4 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"host[interfaces_attributes][subnet6_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv6 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"host[interfaces_attributes][domain_id]","description":"\n\u003cp\u003eForeman domain ID of interface. Required for primary interfaces on managed\nhosts.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"identifier","full_name":"host[interfaces_attributes][identifier]","description":"\n\u003cp\u003eDevice identifier, e.g. eth0 or eth1.1\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"host[interfaces_attributes][managed]","description":"\n\u003cp\u003eShould this interface be managed via DHCP and DNS smart proxy and should it\nbe configured during provisioning?\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"primary","full_name":"host[interfaces_attributes][primary]","description":"\n\u003cp\u003eShould this interface be used for constructing the FQDN of the host? Each\nmanaged hosts needs to have one primary interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision","full_name":"host[interfaces_attributes][provision]","description":"\n\u003cp\u003eShould this interface be used for TFTP of PXELinux (or SSH for image-based\nhosts)? Each managed hosts needs to have one provision interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"host[interfaces_attributes][username]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"host[interfaces_attributes][password]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"host[interfaces_attributes][provider]","description":"\n\u003cp\u003eInterface provider, e.g. IPMI. Only for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPMI\u003c/code\u003e, \u003ccode\u003eSSH\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"virtual","full_name":"host[interfaces_attributes][virtual]","description":"\n\u003cp\u003eAlias or VLAN device\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tag","full_name":"host[interfaces_attributes][tag]","description":"\n\u003cp\u003eVLAN tag, this attribute has precedence over the subnet VLAN ID. Only for\nvirtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"host[interfaces_attributes][mtu]","description":"\n\u003cp\u003eMTU, this attribute has precedence over the subnet MTU.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"attached_to","full_name":"host[interfaces_attributes][attached_to]","description":"\n\u003cp\u003eIdentifier of the interface to which this interface belongs, e.g. eth1.\nOnly for virtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mode","full_name":"host[interfaces_attributes][mode]","description":"\n\u003cp\u003eBond mode of the interface, e.g. balance-rr. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebalance-rr\u003c/code\u003e, \u003ccode\u003eactive-backup\u003c/code\u003e, \u003ccode\u003ebalance-xor\u003c/code\u003e, \u003ccode\u003ebroadcast\u003c/code\u003e, \u003ccode\u003e802.3ad\u003c/code\u003e, \u003ccode\u003ebalance-tlb\u003c/code\u003e, \u003ccode\u003ebalance-alb\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attached_devices","full_name":"host[interfaces_attributes][attached_devices]","description":"\n\u003cp\u003eIdentifiers of attached interfaces, e.g. `[\u0026#39;eth1\u0026#39;,\n\u0026#39;eth2\u0026#39;]`. For bond interfaces those are the slaves. Only for bond\nand bridges interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"bond_options","full_name":"host[interfaces_attributes][bond_options]","description":"\n\u003cp\u003eSpace separated options, e.g. miimon=100. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attributes","full_name":"host[interfaces_attributes][compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes for the interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]},{"name":"compute_attributes","full_name":"host[compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"content_facet_attributes","full_name":"host[content_facet_attributes]","description":"\n\u003cp\u003eParameters for host\u0026#39;s content_facet facet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"content_view_id","full_name":"host[content_facet_attributes][content_view_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"host[content_facet_attributes][lifecycle_environment_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_source_id","full_name":"host[content_facet_attributes][content_source_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"kickstart_repository_id","full_name":"host[content_facet_attributes][kickstart_repository_id]","description":"\n\u003cp\u003eRepository Id associated with the kickstart repo used for provisioning\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]},{"name":"subscription_facet_attributes","full_name":"host[subscription_facet_attributes]","description":"\n\u003cp\u003eParameters for host\u0026#39;s subscription_facet facet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"release_version","full_name":"host[subscription_facet_attributes][release_version]","description":"\n\u003cp\u003eRelease version for this Host to use (7Server, 7.1, etc)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"autoheal","full_name":"host[subscription_facet_attributes][autoheal]","description":"\n\u003cp\u003eSets whether the Host will autoheal subscriptions upon checkin\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"purpose_usage","full_name":"host[subscription_facet_attributes][purpose_usage]","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_role","full_name":"host[subscription_facet_attributes][purpose_role]","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_addons","full_name":"host[subscription_facet_attributes][purpose_addons]","description":"\n\u003cp\u003eSets the system add-ons\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"host[subscription_facet_attributes][service_level]","description":"\n\u003cp\u003eService level to be used for autoheal\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hypervisor_guest_uuids","full_name":"host[subscription_facet_attributes][hypervisor_guest_uuids]","description":"\n\u003cp\u003eList of hypervisor guest uuids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"installed_products_attributes","full_name":"host[subscription_facet_attributes][installed_products_attributes]","description":"\n\u003cp\u003eList of products installed on the host\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"product_id","full_name":"host[subscription_facet_attributes][installed_products_attributes][product_id]","description":"\n\u003cp\u003eProduct id as listed from a host\u0026#39;s installed products, this is\nnot the same product id as the products api returns\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_name","full_name":"host[subscription_facet_attributes][installed_products_attributes][product_name]","description":"\n\u003cp\u003eProduct name as listed from a host\u0026#39;s installed products\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"arch","full_name":"host[subscription_facet_attributes][installed_products_attributes][arch]","description":"\n\u003cp\u003eProduct architecture\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"host[subscription_facet_attributes][installed_products_attributes][version]","description":"\n\u003cp\u003eProduct version\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/update","name":"update","apis":[{"api_url":"/api/hosts/:id","http_method":"PUT","short_description":"Update a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"host","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"host[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"host[location_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"host[organization_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"host[environment_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"host[ip]","description":"\n\u003cp\u003enot required if using a subnet with DHCP proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mac","full_name":"host[mac]","description":"\n\u003cp\u003erequired for managed host that is bare metal, not required if it\u0026#39;s a\nvirtual machine\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"host[architecture_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"host[domain_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_id","full_name":"host[realm_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_proxy_id","full_name":"host[puppet_proxy_id]","description":"\n\u003cp\u003ePuppet proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_ca_proxy_id","full_name":"host[puppet_ca_proxy_id]","description":"\n\u003cp\u003ePuppet CA proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"host[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_group_ids","full_name":"host[config_group_ids]","description":"\n\u003cp\u003eIDs of associated config groups\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"host[operatingsystem_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"host[medium_id]","description":"\n\u003cp\u003erequired if not imaged based provisioning and host is managed and value is\nnot inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"pxe_loader","full_name":"host[pxe_loader]","description":"\n\u003cp\u003eDHCP filename option (Grub2/PXELinux by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eNone\u003c/code\u003e, \u003ccode\u003ePXELinux BIOS\u003c/code\u003e, \u003ccode\u003ePXELinux UEFI\u003c/code\u003e, \u003ccode\u003eGrub UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 BIOS\u003c/code\u003e, \u003ccode\u003eGrub2 ELF\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI SecureBoot\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTP\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS SecureBoot\u003c/code\u003e, \u003ccode\u003eiPXE Embedded\u003c/code\u003e, \u003ccode\u003eiPXE UEFI HTTP\u003c/code\u003e, \u003ccode\u003eiPXE Chain BIOS\u003c/code\u003e, \u003ccode\u003eiPXE Chain UEFI\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"host[ptable_id]","description":"\n\u003cp\u003erequired if host is managed and custom partition has not been defined\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"host[subnet_id]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"host[compute_resource_id]","description":"\n\u003cp\u003enil means host is bare metal\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"root_pass","full_name":"host[root_pass]","description":"\n\u003cp\u003erequired if host is managed and value is not inherited from host group or\ndefault password in settings\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"model_id","full_name":"host[model_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"host[hostgroup_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"owner_id","full_name":"host[owner_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"owner_type","full_name":"host[owner_type]","description":"\n\u003cp\u003eHost\u0026#39;s owner type\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eUser\u003c/code\u003e, \u003ccode\u003eUsergroup\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"image_id","full_name":"host[image_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_parameters_attributes","full_name":"host[host_parameters_attributes]","description":"\n\u003cp\u003eHost\u0026#39;s parameters (array or indexed hash)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"host[host_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"host[host_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"host[host_parameters_attributes][parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"host[host_parameters_attributes][hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]},{"name":"build","full_name":"host[build]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"host[enabled]","description":"\n\u003cp\u003eInclude this host within Foreman reporting\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision_method","full_name":"host[provision_method]","description":"\n\u003cp\u003eThe method used to provision the host.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebuild\u003c/code\u003e, \u003ccode\u003eimage\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"host[managed]","description":"\n\u003cp\u003eTrue/False flag whether a host is managed or unmanaged. Note: this value\nalso determines whether several parameters are required or not\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"progress_report_id","full_name":"host[progress_report_id]","description":"\n\u003cp\u003eUUID to track orchestration tasks status, GET\n/api/orchestration/:UUID/tasks\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"comment","full_name":"host[comment]","description":"\n\u003cp\u003eAdditional information about this host\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"capabilities","full_name":"host[capabilities]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"host[compute_profile_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"interfaces_attributes","full_name":"host[interfaces_attributes]","description":"\n\u003cp\u003eHost\u0026#39;s network interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"mac","full_name":"host[interfaces_attributes][mac]","description":"\n\u003cp\u003eMAC address of interface. Required for managed interfaces on bare metal.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"host[interfaces_attributes][ip]","description":"\n\u003cp\u003eIPv4 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip6","full_name":"host[interfaces_attributes][ip6]","description":"\n\u003cp\u003eIPv6 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"host[interfaces_attributes][type]","description":"\n\u003cp\u003eInterface type, e.g. bmc. Default is interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003einterface\u003c/code\u003e, \u003ccode\u003ebmc\u003c/code\u003e, \u003ccode\u003ebond\u003c/code\u003e, \u003ccode\u003ebridge\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"host[interfaces_attributes][name]","description":"\n\u003cp\u003eInterface\u0026#39;s DNS name\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"host[interfaces_attributes][subnet_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv4 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"host[interfaces_attributes][subnet6_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv6 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"host[interfaces_attributes][domain_id]","description":"\n\u003cp\u003eForeman domain ID of interface. Required for primary interfaces on managed\nhosts.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"identifier","full_name":"host[interfaces_attributes][identifier]","description":"\n\u003cp\u003eDevice identifier, e.g. eth0 or eth1.1\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"host[interfaces_attributes][managed]","description":"\n\u003cp\u003eShould this interface be managed via DHCP and DNS smart proxy and should it\nbe configured during provisioning?\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"primary","full_name":"host[interfaces_attributes][primary]","description":"\n\u003cp\u003eShould this interface be used for constructing the FQDN of the host? Each\nmanaged hosts needs to have one primary interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision","full_name":"host[interfaces_attributes][provision]","description":"\n\u003cp\u003eShould this interface be used for TFTP of PXELinux (or SSH for image-based\nhosts)? Each managed hosts needs to have one provision interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"host[interfaces_attributes][username]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"host[interfaces_attributes][password]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"host[interfaces_attributes][provider]","description":"\n\u003cp\u003eInterface provider, e.g. IPMI. Only for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPMI\u003c/code\u003e, \u003ccode\u003eSSH\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"virtual","full_name":"host[interfaces_attributes][virtual]","description":"\n\u003cp\u003eAlias or VLAN device\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tag","full_name":"host[interfaces_attributes][tag]","description":"\n\u003cp\u003eVLAN tag, this attribute has precedence over the subnet VLAN ID. Only for\nvirtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"host[interfaces_attributes][mtu]","description":"\n\u003cp\u003eMTU, this attribute has precedence over the subnet MTU.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"attached_to","full_name":"host[interfaces_attributes][attached_to]","description":"\n\u003cp\u003eIdentifier of the interface to which this interface belongs, e.g. eth1.\nOnly for virtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mode","full_name":"host[interfaces_attributes][mode]","description":"\n\u003cp\u003eBond mode of the interface, e.g. balance-rr. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebalance-rr\u003c/code\u003e, \u003ccode\u003eactive-backup\u003c/code\u003e, \u003ccode\u003ebalance-xor\u003c/code\u003e, \u003ccode\u003ebroadcast\u003c/code\u003e, \u003ccode\u003e802.3ad\u003c/code\u003e, \u003ccode\u003ebalance-tlb\u003c/code\u003e, \u003ccode\u003ebalance-alb\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attached_devices","full_name":"host[interfaces_attributes][attached_devices]","description":"\n\u003cp\u003eIdentifiers of attached interfaces, e.g. `[\u0026#39;eth1\u0026#39;,\n\u0026#39;eth2\u0026#39;]`. For bond interfaces those are the slaves. Only for bond\nand bridges interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"bond_options","full_name":"host[interfaces_attributes][bond_options]","description":"\n\u003cp\u003eSpace separated options, e.g. miimon=100. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attributes","full_name":"host[interfaces_attributes][compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes for the interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]},{"name":"compute_attributes","full_name":"host[compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"content_facet_attributes","full_name":"host[content_facet_attributes]","description":"\n\u003cp\u003eParameters for host\u0026#39;s content_facet facet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"content_view_id","full_name":"host[content_facet_attributes][content_view_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"host[content_facet_attributes][lifecycle_environment_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_source_id","full_name":"host[content_facet_attributes][content_source_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"kickstart_repository_id","full_name":"host[content_facet_attributes][kickstart_repository_id]","description":"\n\u003cp\u003eRepository Id associated with the kickstart repo used for provisioning\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]},{"name":"subscription_facet_attributes","full_name":"host[subscription_facet_attributes]","description":"\n\u003cp\u003eParameters for host\u0026#39;s subscription_facet facet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"release_version","full_name":"host[subscription_facet_attributes][release_version]","description":"\n\u003cp\u003eRelease version for this Host to use (7Server, 7.1, etc)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"autoheal","full_name":"host[subscription_facet_attributes][autoheal]","description":"\n\u003cp\u003eSets whether the Host will autoheal subscriptions upon checkin\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"purpose_usage","full_name":"host[subscription_facet_attributes][purpose_usage]","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_role","full_name":"host[subscription_facet_attributes][purpose_role]","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_addons","full_name":"host[subscription_facet_attributes][purpose_addons]","description":"\n\u003cp\u003eSets the system add-ons\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"host[subscription_facet_attributes][service_level]","description":"\n\u003cp\u003eService level to be used for autoheal\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hypervisor_guest_uuids","full_name":"host[subscription_facet_attributes][hypervisor_guest_uuids]","description":"\n\u003cp\u003eList of hypervisor guest uuids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"installed_products_attributes","full_name":"host[subscription_facet_attributes][installed_products_attributes]","description":"\n\u003cp\u003eList of products installed on the host\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"product_id","full_name":"host[subscription_facet_attributes][installed_products_attributes][product_id]","description":"\n\u003cp\u003eProduct id as listed from a host\u0026#39;s installed products, this is\nnot the same product id as the products api returns\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_name","full_name":"host[subscription_facet_attributes][installed_products_attributes][product_name]","description":"\n\u003cp\u003eProduct name as listed from a host\u0026#39;s installed products\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"arch","full_name":"host[subscription_facet_attributes][installed_products_attributes][arch]","description":"\n\u003cp\u003eProduct architecture\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"host[subscription_facet_attributes][installed_products_attributes][version]","description":"\n\u003cp\u003eProduct version\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:id","http_method":"DELETE","short_description":"Delete a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/enc","name":"enc","apis":[{"api_url":"/api/hosts/:id/enc","http_method":"GET","short_description":"Get ENC values of host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/get_status","name":"get_status","apis":[{"api_url":"/api/hosts/:id/status/:type","http_method":"GET","short_description":"Get status of host","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eReturns string representing a host status of a given type\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"type","description":"\n\u003cp\u003estatus type, can be one of\u003c/p\u003e\n\u003cul\u003e\u003cli\u003e\n\u003cp\u003eglobal\u003c/p\u003e\n\u003c/li\u003e\u003cli\u003e\n\u003cp\u003econfiguration\u003c/p\u003e\n\u003c/li\u003e\u003cli\u003e\n\u003cp\u003ebuild\u003c/p\u003e\n\u003c/li\u003e\u003c/ul\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eHostStatus::Global\u003c/code\u003e, \u003ccode\u003econfiguration\u003c/code\u003e, \u003ccode\u003ebuild\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/forget_status","name":"forget_status","apis":[{"api_url":"/api/hosts/:id/status/:type","http_method":"DELETE","short_description":"Clear sub-status of host","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eClears a host sub-status of a given type\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"type","description":"\n\u003cp\u003estatus type\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003econfiguration\u003c/code\u003e, \u003ccode\u003ebuild\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/vm_compute_attributes","name":"vm_compute_attributes","apis":[{"api_url":"/api/hosts/:id/vm_compute_attributes","http_method":"GET","short_description":"Get vm attributes of host","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eReturn the host\u0026#39;s compute attributes that can be used to create a clone\nof this VM\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/disassociate","name":"disassociate","apis":[{"api_url":"/api/hosts/:id/disassociate","http_method":"PUT","short_description":"Disassociate the host from a VM","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/power","name":"power","apis":[{"api_url":"/api/hosts/:id/power","http_method":"PUT","short_description":"Run a power operation on host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"power_action","full_name":"power_action","description":"\n\u003cp\u003epower action, valid actions are (on/start), (off/stop), (soft/reboot),\n(cycle/reset), (state/status)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/power_status","name":"power_status","apis":[{"api_url":"/api/hosts/:id/power","http_method":"GET","short_description":"Fetch the status of whether the host is powered on or not. Supported hosts are VMs and physical hosts with BMCs.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/boot","name":"boot","apis":[{"api_url":"/api/hosts/:id/boot","http_method":"PUT","short_description":"Boot host from specified device","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"device","full_name":"device","description":"\n\u003cp\u003eboot device, valid devices are disk, cdrom, pxe, bios\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/facts","name":"facts","apis":[{"api_url":"/api/hosts/facts","http_method":"POST","short_description":"Upload facts for a host, creating the host if required","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ehostname of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"facts","full_name":"facts","description":"\n\u003cp\u003ehash containing the facts for the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"certname","full_name":"certname","description":"\n\u003cp\u003eoptional: certname of the host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"type","description":"\n\u003cp\u003eoptional: the STI type of host to create\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/rebuild_config","name":"rebuild_config","apis":[{"api_url":"/api/hosts/:id/rebuild_config","http_method":"PUT","short_description":"Rebuild orchestration config","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"only","full_name":"only","description":"\n\u003cp\u003eLimit rebuild steps, valid steps are DHCP, DNS, TFTP\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/template","name":"template","apis":[{"api_url":"/api/hosts/:id/template/:kind","http_method":"GET","short_description":"Preview rendered provisioning template content","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"kind","full_name":"kind","description":"\n\u003cp\u003eTemplate kinds, available values: PXELinux, PXEGrub, PXEGrub2, iPXE,\nprovision, finish, script, user_data, ZTP, POAP, cloud-init\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts/host_collections","name":"host_collections","apis":[{"api_url":"/api/hosts/:host_id/host_collections","http_method":"PUT","short_description":"Alter a hosts host collections","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eThe id of the host to alter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection ids to update\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"interfaces":{"doc_url":"../apidoc/v2/interfaces","id":"interfaces","api_url":"/api","name":"Interfaces","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/interfaces/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/interfaces","http_method":"GET","short_description":"List all interfaces for host","deprecated":null},{"api_url":"/api/domains/:domain_id/interfaces","http_method":"GET","short_description":"List all interfaces for domain","deprecated":null},{"api_url":"/api/subnets/:subnet_id/interfaces","http_method":"GET","short_description":"List all interfaces for subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID or name of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID or name of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/interfaces/show","name":"show","apis":[{"api_url":"/api/hosts/:host_id/interfaces/:id","http_method":"GET","short_description":"Show an interface for host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name of interface\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/interfaces/create","name":"create","apis":[{"api_url":"/api/hosts/:host_id/interfaces","http_method":"POST","short_description":"Create an interface on a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interface","full_name":"interface","description":"\n\u003cp\u003einterface information\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"mac","full_name":"interface[mac]","description":"\n\u003cp\u003eMAC address of interface. Required for managed interfaces on bare metal.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"interface[ip]","description":"\n\u003cp\u003eIPv4 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip6","full_name":"interface[ip6]","description":"\n\u003cp\u003eIPv6 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"interface[type]","description":"\n\u003cp\u003eInterface type, e.g. bmc. Default is interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003einterface\u003c/code\u003e, \u003ccode\u003ebmc\u003c/code\u003e, \u003ccode\u003ebond\u003c/code\u003e, \u003ccode\u003ebridge\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"interface[name]","description":"\n\u003cp\u003eInterface\u0026#39;s DNS name\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"interface[subnet_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv4 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"interface[subnet6_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv6 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"interface[domain_id]","description":"\n\u003cp\u003eForeman domain ID of interface. Required for primary interfaces on managed\nhosts.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"identifier","full_name":"interface[identifier]","description":"\n\u003cp\u003eDevice identifier, e.g. eth0 or eth1.1\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"interface[managed]","description":"\n\u003cp\u003eShould this interface be managed via DHCP and DNS smart proxy and should it\nbe configured during provisioning?\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"primary","full_name":"interface[primary]","description":"\n\u003cp\u003eShould this interface be used for constructing the FQDN of the host? Each\nmanaged hosts needs to have one primary interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision","full_name":"interface[provision]","description":"\n\u003cp\u003eShould this interface be used for TFTP of PXELinux (or SSH for image-based\nhosts)? Each managed hosts needs to have one provision interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"interface[username]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"interface[password]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"interface[provider]","description":"\n\u003cp\u003eInterface provider, e.g. IPMI. Only for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPMI\u003c/code\u003e, \u003ccode\u003eSSH\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"virtual","full_name":"interface[virtual]","description":"\n\u003cp\u003eAlias or VLAN device\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tag","full_name":"interface[tag]","description":"\n\u003cp\u003eVLAN tag, this attribute has precedence over the subnet VLAN ID. Only for\nvirtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"interface[mtu]","description":"\n\u003cp\u003eMTU, this attribute has precedence over the subnet MTU.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"attached_to","full_name":"interface[attached_to]","description":"\n\u003cp\u003eIdentifier of the interface to which this interface belongs, e.g. eth1.\nOnly for virtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mode","full_name":"interface[mode]","description":"\n\u003cp\u003eBond mode of the interface, e.g. balance-rr. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebalance-rr\u003c/code\u003e, \u003ccode\u003eactive-backup\u003c/code\u003e, \u003ccode\u003ebalance-xor\u003c/code\u003e, \u003ccode\u003ebroadcast\u003c/code\u003e, \u003ccode\u003e802.3ad\u003c/code\u003e, \u003ccode\u003ebalance-tlb\u003c/code\u003e, \u003ccode\u003ebalance-alb\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attached_devices","full_name":"interface[attached_devices]","description":"\n\u003cp\u003eIdentifiers of attached interfaces, e.g. `[\u0026#39;eth1\u0026#39;,\n\u0026#39;eth2\u0026#39;]`. For bond interfaces those are the slaves. Only for bond\nand bridges interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"bond_options","full_name":"interface[bond_options]","description":"\n\u003cp\u003eSpace separated options, e.g. miimon=100. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attributes","full_name":"interface[compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes for the interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/interfaces/update","name":"update","apis":[{"api_url":"/api/hosts/:host_id/interfaces/:id","http_method":"PUT","short_description":"Update a host's interface","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of interface\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interface","full_name":"interface","description":"\n\u003cp\u003einterface information\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"mac","full_name":"interface[mac]","description":"\n\u003cp\u003eMAC address of interface. Required for managed interfaces on bare metal.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip","full_name":"interface[ip]","description":"\n\u003cp\u003eIPv4 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ip6","full_name":"interface[ip6]","description":"\n\u003cp\u003eIPv6 address of interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"interface[type]","description":"\n\u003cp\u003eInterface type, e.g. bmc. Default is interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003einterface\u003c/code\u003e, \u003ccode\u003ebmc\u003c/code\u003e, \u003ccode\u003ebond\u003c/code\u003e, \u003ccode\u003ebridge\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"interface[name]","description":"\n\u003cp\u003eInterface\u0026#39;s DNS name\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"interface[subnet_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv4 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"interface[subnet6_id]","description":"\n\u003cp\u003eForeman subnet ID of IPv6 interface\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"interface[domain_id]","description":"\n\u003cp\u003eForeman domain ID of interface. Required for primary interfaces on managed\nhosts.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"identifier","full_name":"interface[identifier]","description":"\n\u003cp\u003eDevice identifier, e.g. eth0 or eth1.1\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"managed","full_name":"interface[managed]","description":"\n\u003cp\u003eShould this interface be managed via DHCP and DNS smart proxy and should it\nbe configured during provisioning?\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"primary","full_name":"interface[primary]","description":"\n\u003cp\u003eShould this interface be used for constructing the FQDN of the host? Each\nmanaged hosts needs to have one primary interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"provision","full_name":"interface[provision]","description":"\n\u003cp\u003eShould this interface be used for TFTP of PXELinux (or SSH for image-based\nhosts)? Each managed hosts needs to have one provision interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"interface[username]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"interface[password]","description":"\n\u003cp\u003eOnly for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"interface[provider]","description":"\n\u003cp\u003eInterface provider, e.g. IPMI. Only for BMC interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPMI\u003c/code\u003e, \u003ccode\u003eSSH\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"virtual","full_name":"interface[virtual]","description":"\n\u003cp\u003eAlias or VLAN device\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tag","full_name":"interface[tag]","description":"\n\u003cp\u003eVLAN tag, this attribute has precedence over the subnet VLAN ID. Only for\nvirtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"interface[mtu]","description":"\n\u003cp\u003eMTU, this attribute has precedence over the subnet MTU.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"attached_to","full_name":"interface[attached_to]","description":"\n\u003cp\u003eIdentifier of the interface to which this interface belongs, e.g. eth1.\nOnly for virtual interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mode","full_name":"interface[mode]","description":"\n\u003cp\u003eBond mode of the interface, e.g. balance-rr. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ebalance-rr\u003c/code\u003e, \u003ccode\u003eactive-backup\u003c/code\u003e, \u003ccode\u003ebalance-xor\u003c/code\u003e, \u003ccode\u003ebroadcast\u003c/code\u003e, \u003ccode\u003e802.3ad\u003c/code\u003e, \u003ccode\u003ebalance-tlb\u003c/code\u003e, \u003ccode\u003ebalance-alb\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attached_devices","full_name":"interface[attached_devices]","description":"\n\u003cp\u003eIdentifiers of attached interfaces, e.g. `[\u0026#39;eth1\u0026#39;,\n\u0026#39;eth2\u0026#39;]`. For bond interfaces those are the slaves. Only for bond\nand bridges interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"bond_options","full_name":"interface[bond_options]","description":"\n\u003cp\u003eSpace separated options, e.g. miimon=100. Only for bond interfaces.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attributes","full_name":"interface[compute_attributes]","description":"\n\u003cp\u003eAdditional compute resource specific attributes for the interface.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/interfaces/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:host_id/interfaces/:id","http_method":"DELETE","short_description":"Delete a host's interface","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID or name of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of interface\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"hostgroups":{"doc_url":"../apidoc/v2/hostgroups","id":"hostgroups","api_url":"/api","name":"Hostgroups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/hostgroups/index","name":"index","apis":[{"api_url":"/api/hostgroups","http_method":"GET","short_description":"List all host groups","deprecated":null},{"api_url":"/api/puppetclasses/:puppetclass_id/hostgroups","http_method":"GET","short_description":"List all host groups for a Puppet class","deprecated":null},{"api_url":"/api/locations/:location_id/hostgroups","http_method":"GET","short_description":"List all host groups per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/hostgroups","http_method":"GET","short_description":"List all host groups per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"puppetclass_id","full_name":"puppetclass_id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"include","full_name":"include","description":"\n\u003cp\u003eArray of extra information types to include\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of [\"parameters\"]","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"architecture","type":"string"},{"name":"class","type":"string"},{"name":"config_group","type":"string"},{"name":"content_source","type":"string"},{"name":"content_view","type":"string"},{"name":"environment","type":"string"},{"name":"host","type":"string"},{"name":"id","type":"integer"},{"name":"label","type":"string"},{"name":"lifecycle_environment","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"medium","type":"string"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"os","type":"string"},{"name":"os_description","type":"string"},{"name":"os_id","type":"integer"},{"name":"os_major","type":"string"},{"name":"os_minor","type":"string"},{"name":"os_title","type":"string"},{"name":"params","type":"text"},{"name":"template","type":"string"},{"name":"title","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/show","name":"show","apis":[{"api_url":"/api/hostgroups/:id","http_method":"GET","short_description":"Show a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/create","name":"create","apis":[{"api_url":"/api/hostgroups","http_method":"POST","short_description":"Create a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup","full_name":"hostgroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"hostgroup[name]","description":"\n\u003cp\u003eName of the host group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"hostgroup[description]","description":"\n\u003cp\u003eHost group description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parent_id","full_name":"hostgroup[parent_id]","description":"\n\u003cp\u003eParent ID of the host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"hostgroup[environment_id]","description":"\n\u003cp\u003eEnvironment ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"hostgroup[compute_profile_id]","description":"\n\u003cp\u003eCompute profile ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"hostgroup[compute_resource_id]","description":"\n\u003cp\u003eCompute resource ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"hostgroup[operatingsystem_id]","description":"\n\u003cp\u003eOperating system ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"hostgroup[architecture_id]","description":"\n\u003cp\u003eArchitecture ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"pxe_loader","full_name":"hostgroup[pxe_loader]","description":"\n\u003cp\u003eDHCP filename option (Grub2/PXELinux by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eNone\u003c/code\u003e, \u003ccode\u003ePXELinux BIOS\u003c/code\u003e, \u003ccode\u003ePXELinux UEFI\u003c/code\u003e, \u003ccode\u003eGrub UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 BIOS\u003c/code\u003e, \u003ccode\u003eGrub2 ELF\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI SecureBoot\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTP\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS SecureBoot\u003c/code\u003e, \u003ccode\u003eiPXE Embedded\u003c/code\u003e, \u003ccode\u003eiPXE UEFI HTTP\u003c/code\u003e, \u003ccode\u003eiPXE Chain BIOS\u003c/code\u003e, \u003ccode\u003eiPXE Chain UEFI\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"hostgroup[medium_id]","description":"\n\u003cp\u003eMedia ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"hostgroup[ptable_id]","description":"\n\u003cp\u003ePartition table ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"hostgroup[subnet_id]","description":"\n\u003cp\u003eSubnet ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"hostgroup[subnet6_id]","description":"\n\u003cp\u003eSubnet IPv6 ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"hostgroup[domain_id]","description":"\n\u003cp\u003eDomain ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_id","full_name":"hostgroup[realm_id]","description":"\n\u003cp\u003eRealm ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"hostgroup[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_group_ids","full_name":"hostgroup[config_group_ids]","description":"\n\u003cp\u003eIDs of associated config groups\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"group_parameters_attributes","full_name":"hostgroup[group_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"hostgroup[group_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"hostgroup[group_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"hostgroup[group_parameters_attributes][parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"hostgroup[group_parameters_attributes][hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]},{"name":"puppet_proxy_id","full_name":"hostgroup[puppet_proxy_id]","description":"\n\u003cp\u003ePuppet proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_ca_proxy_id","full_name":"hostgroup[puppet_ca_proxy_id]","description":"\n\u003cp\u003ePuppet CA proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"root_pass","full_name":"hostgroup[root_pass]","description":"\n\u003cp\u003eRoot password on provisioned hosts\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"hostgroup[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"hostgroup[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"content_source_id","full_name":"hostgroup[content_source_id]","description":"\n\u003cp\u003eContent source ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"hostgroup[content_view_id]","description":"\n\u003cp\u003eContent view ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"hostgroup[lifecycle_environment_id]","description":"\n\u003cp\u003eLifecycle environment ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"kickstart_repository_id","full_name":"hostgroup[kickstart_repository_id]","description":"\n\u003cp\u003eKickstart repository ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/update","name":"update","apis":[{"api_url":"/api/hostgroups/:id","http_method":"PUT","short_description":"Update a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup","full_name":"hostgroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"hostgroup[name]","description":"\n\u003cp\u003eName of the host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"hostgroup[description]","description":"\n\u003cp\u003eHost group description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parent_id","full_name":"hostgroup[parent_id]","description":"\n\u003cp\u003eParent ID of the host group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"hostgroup[environment_id]","description":"\n\u003cp\u003eEnvironment ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"hostgroup[compute_profile_id]","description":"\n\u003cp\u003eCompute profile ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"hostgroup[compute_resource_id]","description":"\n\u003cp\u003eCompute resource ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"hostgroup[operatingsystem_id]","description":"\n\u003cp\u003eOperating system ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"hostgroup[architecture_id]","description":"\n\u003cp\u003eArchitecture ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"pxe_loader","full_name":"hostgroup[pxe_loader]","description":"\n\u003cp\u003eDHCP filename option (Grub2/PXELinux by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eNone\u003c/code\u003e, \u003ccode\u003ePXELinux BIOS\u003c/code\u003e, \u003ccode\u003ePXELinux UEFI\u003c/code\u003e, \u003ccode\u003eGrub UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 BIOS\u003c/code\u003e, \u003ccode\u003eGrub2 ELF\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI SecureBoot\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTP\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS\u003c/code\u003e, \u003ccode\u003eGrub2 UEFI HTTPS SecureBoot\u003c/code\u003e, \u003ccode\u003eiPXE Embedded\u003c/code\u003e, \u003ccode\u003eiPXE UEFI HTTP\u003c/code\u003e, \u003ccode\u003eiPXE Chain BIOS\u003c/code\u003e, \u003ccode\u003eiPXE Chain UEFI\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"hostgroup[medium_id]","description":"\n\u003cp\u003eMedia ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"hostgroup[ptable_id]","description":"\n\u003cp\u003ePartition table ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"hostgroup[subnet_id]","description":"\n\u003cp\u003eSubnet ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet6_id","full_name":"hostgroup[subnet6_id]","description":"\n\u003cp\u003eSubnet IPv6 ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"hostgroup[domain_id]","description":"\n\u003cp\u003eDomain ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_id","full_name":"hostgroup[realm_id]","description":"\n\u003cp\u003eRealm ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"hostgroup[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_group_ids","full_name":"hostgroup[config_group_ids]","description":"\n\u003cp\u003eIDs of associated config groups\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"group_parameters_attributes","full_name":"hostgroup[group_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"hostgroup[group_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"hostgroup[group_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"hostgroup[group_parameters_attributes][parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"hostgroup[group_parameters_attributes][hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]},{"name":"puppet_proxy_id","full_name":"hostgroup[puppet_proxy_id]","description":"\n\u003cp\u003ePuppet proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_ca_proxy_id","full_name":"hostgroup[puppet_ca_proxy_id]","description":"\n\u003cp\u003ePuppet CA proxy ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"root_pass","full_name":"hostgroup[root_pass]","description":"\n\u003cp\u003eRoot password on provisioned hosts\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"hostgroup[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"hostgroup[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"content_source_id","full_name":"hostgroup[content_source_id]","description":"\n\u003cp\u003eContent source ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"hostgroup[content_view_id]","description":"\n\u003cp\u003eContent view ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"lifecycle_environment_id","full_name":"hostgroup[lifecycle_environment_id]","description":"\n\u003cp\u003eLifecycle environment ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"kickstart_repository_id","full_name":"hostgroup[kickstart_repository_id]","description":"\n\u003cp\u003eKickstart repository ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/destroy","name":"destroy","apis":[{"api_url":"/api/hostgroups/:id","http_method":"DELETE","short_description":"Delete a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/clone","name":"clone","apis":[{"api_url":"/api/hostgroups/:id/clone","http_method":"POST","short_description":"Clone a host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroups/rebuild_config","name":"rebuild_config","apis":[{"api_url":"/api/hostgroups/:id/rebuild_config","http_method":"PUT","short_description":"Rebuild orchestration config","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"only","full_name":"only","description":"\n\u003cp\u003eLimit rebuild steps, valid steps are DHCP, DNS, TFTP\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"children_hosts","full_name":"children_hosts","description":"\n\u003cp\u003eOperate on child hostgroup hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"smart_proxies":{"doc_url":"../apidoc/v2/smart_proxies","id":"smart_proxies","api_url":"/api","name":"Smart proxies","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/smart_proxies/import_puppetclasses","name":"import_puppetclasses","apis":[{"api_url":"/api/smart_proxies/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy","deprecated":null},{"api_url":"/api/smart_proxies/:smart_proxy_id/environments/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy for an environment","deprecated":null},{"api_url":"/api/environments/:environment_id/smart_proxies/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy for an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_id","full_name":"smart_proxy_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dryrun","full_name":"dryrun","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"except","full_name":"except","description":"\n\u003cp\u003eOptional comma-delimited string containing either \u0026#39;new\u0026#39;,\n\u0026#39;updated\u0026#39;, or \u0026#39;obsolete\u0026#39; that is used to limit the imported\nPuppet classes\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/index","name":"index","apis":[{"api_url":"/api/smart_proxies","http_method":"GET","short_description":"List all smart proxies","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"feature","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"url","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/show","name":"show","apis":[{"api_url":"/api/smart_proxies/:id","http_method":"GET","short_description":"Show a smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/create","name":"create","apis":[{"api_url":"/api/smart_proxies","http_method":"POST","short_description":"Create a smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy","full_name":"smart_proxy","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"smart_proxy[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"smart_proxy[url]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"smart_proxy[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"smart_proxy[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"download_policy","full_name":"smart_proxy[download_policy]","description":"\n\u003cp\u003eDownload Policy of the capsule, must be one of immediate, on_demand,\nbackground, inherit\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/update","name":"update","apis":[{"api_url":"/api/smart_proxies/:id","http_method":"PUT","short_description":"Update a smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy","full_name":"smart_proxy","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"smart_proxy[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"smart_proxy[url]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"smart_proxy[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"smart_proxy[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"download_policy","full_name":"smart_proxy[download_policy]","description":"\n\u003cp\u003eDownload Policy of the capsule, must be one of immediate, on_demand,\nbackground, inherit\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/destroy","name":"destroy","apis":[{"api_url":"/api/smart_proxies/:id","http_method":"DELETE","short_description":"Delete a smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_proxies/refresh","name":"refresh","apis":[{"api_url":"/api/smart_proxies/:id/refresh","http_method":"PUT","short_description":"Refresh smart proxy features","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"template_inputs":{"doc_url":"../apidoc/v2/template_inputs","id":"template_inputs","api_url":"/api","name":"Template inputs","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/template_inputs/index","name":"index","apis":[{"api_url":"/api/templates/:template_id/template_inputs","http_method":"GET","short_description":"List template inputs","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"input_type","type":"string"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_inputs/show","name":"show","apis":[{"api_url":"/api/templates/:template_id/template_inputs/:id","http_method":"GET","short_description":"Show template input details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_inputs/create","name":"create","apis":[{"api_url":"/api/templates/:template_id/template_inputs","http_method":"POST","short_description":"Create a template input","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_input","full_name":"template_input","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"template_input[name]","description":"\n\u003cp\u003eInput name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"template_input[description]","description":"\n\u003cp\u003eInput description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"required","full_name":"template_input[required]","description":"\n\u003cp\u003eInput is required\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"advanced","full_name":"template_input[advanced]","description":"\n\u003cp\u003eInput is advanced\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"input_type","full_name":"template_input[input_type]","description":"\n\u003cp\u003eInput type\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003euser\u003c/code\u003e, \u003ccode\u003efact\u003c/code\u003e, \u003ccode\u003evariable\u003c/code\u003e, \u003ccode\u003epuppet_parameter\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fact_name","full_name":"template_input[fact_name]","description":"\n\u003cp\u003eFact name, used when input type is fact\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"variable_name","full_name":"template_input[variable_name]","description":"\n\u003cp\u003eVariable name, used when input type is variable\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppet_class_name","full_name":"template_input[puppet_class_name]","description":"\n\u003cp\u003ePuppet class name, used when input type is puppet_parameter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppet_parameter_name","full_name":"template_input[puppet_parameter_name]","description":"\n\u003cp\u003ePuppet parameter name, used when input type is puppet_parameter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"options","full_name":"template_input[options]","description":"\n\u003cp\u003eSelectable values for user inputs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"template_input[default]","description":"\n\u003cp\u003eDefault value for user input\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"template_input[hidden_value]","description":"\n\u003cp\u003eThe value contains sensitive information and shouldn not be normally\nvisible, useful e.g. for passwords\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"value_type","full_name":"template_input[value_type]","description":"\n\u003cp\u003eValue type, defaults to plain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eplain\u003c/code\u003e, \u003ccode\u003esearch\u003c/code\u003e, \u003ccode\u003edate\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resource_type","full_name":"template_input[resource_type]","description":"\n\u003cp\u003eFor values of type search, this is the resource the value searches in\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eArchitecture\u003c/code\u003e, \u003ccode\u003eAudit\u003c/code\u003e, \u003ccode\u003eAuthSource\u003c/code\u003e, \u003ccode\u003eBookmark\u003c/code\u003e, \u003ccode\u003eComputeProfile\u003c/code\u003e, \u003ccode\u003eComputeResource\u003c/code\u003e, \u003ccode\u003eConfigGroup\u003c/code\u003e, \u003ccode\u003eConfigReport\u003c/code\u003e, \u003ccode\u003eDomain\u003c/code\u003e, \u003ccode\u003eEnvironment\u003c/code\u003e, \u003ccode\u003eExternalUsergroup\u003c/code\u003e, \u003ccode\u003eFactValue\u003c/code\u003e, \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eForemanTasks::RecurringLogic\u003c/code\u003e, \u003ccode\u003eForemanTasks::Task\u003c/code\u003e, \u003ccode\u003eHost\u003c/code\u003e, \u003ccode\u003eHostClass\u003c/code\u003e, \u003ccode\u003eHostgroup\u003c/code\u003e, \u003ccode\u003eHttpProxy\u003c/code\u003e, \u003ccode\u003eImage\u003c/code\u003e, \u003ccode\u003eKatello::ActivationKey\u003c/code\u003e, \u003ccode\u003eKatello::ContentView\u003c/code\u003e, \u003ccode\u003eKatello::GpgKey\u003c/code\u003e, \u003ccode\u003eKatello::HostCollection\u003c/code\u003e, \u003ccode\u003eKatello::KTEnvironment\u003c/code\u003e, \u003ccode\u003eKatello::Product\u003c/code\u003e, \u003ccode\u003eKatello::Subscription\u003c/code\u003e, \u003ccode\u003eKatello::SyncPlan\u003c/code\u003e, \u003ccode\u003eKeyPair\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, \u003ccode\u003eMailNotification\u003c/code\u003e, \u003ccode\u003eMedium\u003c/code\u003e, \u003ccode\u003eModel\u003c/code\u003e, \u003ccode\u003eOperatingsystem\u003c/code\u003e, \u003ccode\u003eOrganization\u003c/code\u003e, \u003ccode\u003eParameter\u003c/code\u003e, \u003ccode\u003ePersonalAccessToken\u003c/code\u003e, \u003ccode\u003eProvisioningTemplate\u003c/code\u003e, \u003ccode\u003ePtable\u003c/code\u003e, \u003ccode\u003ePuppetclass\u003c/code\u003e, \u003ccode\u003ePuppetclassLookupKey\u003c/code\u003e, \u003ccode\u003eRealm\u003c/code\u003e, \u003ccode\u003eReport\u003c/code\u003e, \u003ccode\u003eReportTemplate\u003c/code\u003e, \u003ccode\u003eRole\u003c/code\u003e, \u003ccode\u003eSetting\u003c/code\u003e, \u003ccode\u003eSmartProxy\u003c/code\u003e, \u003ccode\u003eSshKey\u003c/code\u003e, \u003ccode\u003eSubnet\u003c/code\u003e, \u003ccode\u003eTrend\u003c/code\u003e, \u003ccode\u003eUser\u003c/code\u003e, \u003ccode\u003eUsergroup\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_inputs/destroy","name":"destroy","apis":[{"api_url":"/api/templates/:template_id/template_inputs/:id","http_method":"DELETE","short_description":"Delete a template input","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_inputs/update","name":"update","apis":[{"api_url":"/api/templates/:template_id/template_inputs/:id","http_method":"PUT","short_description":"Update a template input","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"template_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_input","full_name":"template_input","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"template_input[name]","description":"\n\u003cp\u003eInput name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"template_input[description]","description":"\n\u003cp\u003eInput description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"required","full_name":"template_input[required]","description":"\n\u003cp\u003eInput is required\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"advanced","full_name":"template_input[advanced]","description":"\n\u003cp\u003eInput is advanced\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"input_type","full_name":"template_input[input_type]","description":"\n\u003cp\u003eInput type\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003euser\u003c/code\u003e, \u003ccode\u003efact\u003c/code\u003e, \u003ccode\u003evariable\u003c/code\u003e, \u003ccode\u003epuppet_parameter\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fact_name","full_name":"template_input[fact_name]","description":"\n\u003cp\u003eFact name, used when input type is fact\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"variable_name","full_name":"template_input[variable_name]","description":"\n\u003cp\u003eVariable name, used when input type is variable\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppet_class_name","full_name":"template_input[puppet_class_name]","description":"\n\u003cp\u003ePuppet class name, used when input type is puppet_parameter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppet_parameter_name","full_name":"template_input[puppet_parameter_name]","description":"\n\u003cp\u003ePuppet parameter name, used when input type is puppet_parameter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"options","full_name":"template_input[options]","description":"\n\u003cp\u003eSelectable values for user inputs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"template_input[default]","description":"\n\u003cp\u003eDefault value for user input\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"template_input[hidden_value]","description":"\n\u003cp\u003eThe value contains sensitive information and shouldn not be normally\nvisible, useful e.g. for passwords\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"value_type","full_name":"template_input[value_type]","description":"\n\u003cp\u003eValue type, defaults to plain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eplain\u003c/code\u003e, \u003ccode\u003esearch\u003c/code\u003e, \u003ccode\u003edate\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resource_type","full_name":"template_input[resource_type]","description":"\n\u003cp\u003eFor values of type search, this is the resource the value searches in\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eArchitecture\u003c/code\u003e, \u003ccode\u003eAudit\u003c/code\u003e, \u003ccode\u003eAuthSource\u003c/code\u003e, \u003ccode\u003eBookmark\u003c/code\u003e, \u003ccode\u003eComputeProfile\u003c/code\u003e, \u003ccode\u003eComputeResource\u003c/code\u003e, \u003ccode\u003eConfigGroup\u003c/code\u003e, \u003ccode\u003eConfigReport\u003c/code\u003e, \u003ccode\u003eDomain\u003c/code\u003e, \u003ccode\u003eEnvironment\u003c/code\u003e, \u003ccode\u003eExternalUsergroup\u003c/code\u003e, \u003ccode\u003eFactValue\u003c/code\u003e, \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eForemanTasks::RecurringLogic\u003c/code\u003e, \u003ccode\u003eForemanTasks::Task\u003c/code\u003e, \u003ccode\u003eHost\u003c/code\u003e, \u003ccode\u003eHostClass\u003c/code\u003e, \u003ccode\u003eHostgroup\u003c/code\u003e, \u003ccode\u003eHttpProxy\u003c/code\u003e, \u003ccode\u003eImage\u003c/code\u003e, \u003ccode\u003eKatello::ActivationKey\u003c/code\u003e, \u003ccode\u003eKatello::ContentView\u003c/code\u003e, \u003ccode\u003eKatello::GpgKey\u003c/code\u003e, \u003ccode\u003eKatello::HostCollection\u003c/code\u003e, \u003ccode\u003eKatello::KTEnvironment\u003c/code\u003e, \u003ccode\u003eKatello::Product\u003c/code\u003e, \u003ccode\u003eKatello::Subscription\u003c/code\u003e, \u003ccode\u003eKatello::SyncPlan\u003c/code\u003e, \u003ccode\u003eKeyPair\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, \u003ccode\u003eMailNotification\u003c/code\u003e, \u003ccode\u003eMedium\u003c/code\u003e, \u003ccode\u003eModel\u003c/code\u003e, \u003ccode\u003eOperatingsystem\u003c/code\u003e, \u003ccode\u003eOrganization\u003c/code\u003e, \u003ccode\u003eParameter\u003c/code\u003e, \u003ccode\u003ePersonalAccessToken\u003c/code\u003e, \u003ccode\u003eProvisioningTemplate\u003c/code\u003e, \u003ccode\u003ePtable\u003c/code\u003e, \u003ccode\u003ePuppetclass\u003c/code\u003e, \u003ccode\u003ePuppetclassLookupKey\u003c/code\u003e, \u003ccode\u003eRealm\u003c/code\u003e, \u003ccode\u003eReport\u003c/code\u003e, \u003ccode\u003eReportTemplate\u003c/code\u003e, \u003ccode\u003eRole\u003c/code\u003e, \u003ccode\u003eSetting\u003c/code\u003e, \u003ccode\u003eSmartProxy\u003c/code\u003e, \u003ccode\u003eSshKey\u003c/code\u003e, \u003ccode\u003eSubnet\u003c/code\u003e, \u003ccode\u003eTrend\u003c/code\u003e, \u003ccode\u003eUser\u003c/code\u003e, \u003ccode\u003eUsergroup\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"architectures":{"doc_url":"../apidoc/v2/architectures","id":"architectures","api_url":"/api","name":"Architectures","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/architectures/index","name":"index","apis":[{"api_url":"/api/architectures","http_method":"GET","short_description":"List all architectures","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/architectures","http_method":"GET","short_description":"List all architectures for operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/architectures/show","name":"show","apis":[{"api_url":"/api/architectures/:id","http_method":"GET","short_description":"Show an architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/architectures/create","name":"create","apis":[{"api_url":"/api/architectures","http_method":"POST","short_description":"Create an architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"architecture[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"architecture[operatingsystem_ids]","description":"\n\u003cp\u003eOperating system IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/architectures/update","name":"update","apis":[{"api_url":"/api/architectures/:id","http_method":"PUT","short_description":"Update an architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"architecture[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"architecture[operatingsystem_ids]","description":"\n\u003cp\u003eOperating system IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/architectures/destroy","name":"destroy","apis":[{"api_url":"/api/architectures/:id","http_method":"DELETE","short_description":"Delete an architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"template_kinds":{"doc_url":"../apidoc/v2/template_kinds","id":"template_kinds","api_url":"/api","name":"Template kinds","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/template_kinds/index","name":"index","apis":[{"api_url":"/api/template_kinds","http_method":"GET","short_description":"List all template kinds","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"audits":{"doc_url":"../apidoc/v2/audits","id":"audits","api_url":"/api","name":"Audits","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/audits/index","name":"index","apis":[{"api_url":"/api/audits","http_method":"GET","short_description":"List all audits","deprecated":null},{"api_url":"/api/hosts/:host_id/audits","http_method":"GET","short_description":"List all audits for a given host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"action","type":"string"},{"name":"auditable_id","type":"integer"},{"name":"changes","type":"text"},{"name":"comment","type":"string"},{"name":"host","type":"string"},{"name":"hostgroup","type":"string"},{"name":"hostgroup_title","type":"string"},{"name":"id","type":"integer"},{"name":"interface_fqdn","type":"string"},{"name":"interface_ip","type":"string"},{"name":"interface_mac","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"os","type":"string"},{"name":"os_title","type":"string"},{"name":"parameter","type":"string"},{"name":"partition_table","type":"string"},{"name":"provisioning_template","type":"string"},{"name":"puppetclass","type":"string"},{"name":"remote_address","type":"string"},{"name":"request_uuid","type":"string"},{"name":"setting","type":"string"},{"name":"time","type":"datetime"},{"name":"type","values":["role","ptable","provisioning_template","user","filter","architecture","bookmark","compute_profile","config_group","domain","environment","host_class","hostgroup","http_proxy","image","key_pair","medium","model","personal_access_token","report_template","puppetclass","realm","smart_proxy","ssh_key","subnet","usergroup","katello/repository","katello/host/content_facet","katello/host/subscription_facet","katello/activation_key","katello/content_view","katello/gpg_key","katello/host_collection","katello/kt_environment","katello/product","katello/sync_plan","lookup_value","hostgroup_class","auth_source","compute_resource","host","interface","location","organization","os","override_value","parameter","partition_table","setting","smart_class_parameter"]},{"name":"user","type":"string"},{"name":"username","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/audits/show","name":"show","apis":[{"api_url":"/api/audits/:id","http_method":"GET","short_description":"Show an audit","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"personal_access_tokens":{"doc_url":"../apidoc/v2/personal_access_tokens","id":"personal_access_tokens","api_url":"/api","name":"Personal access tokens","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/personal_access_tokens/index","name":"index","apis":[{"api_url":"/api/users/:user_id/personal_access_tokens","http_method":"GET","short_description":"List all Personal Access Tokens for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"user_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/personal_access_tokens/show","name":"show","apis":[{"api_url":"/api/users/:user_id/personal_access_tokens/:id","http_method":"GET","short_description":"Show a Personal Access Token for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/personal_access_tokens/create","name":"create","apis":[{"api_url":"/api/users/:user_id/personal_access_tokens","http_method":"POST","short_description":"Create a Personal Access Token for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"personal_access_token","full_name":"personal_access_token","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"personal_access_token[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"expires_at","full_name":"personal_access_token[expires_at]","description":"\n\u003cp\u003eExpiry Date\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"DateTime","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/personal_access_tokens/destroy","name":"destroy","apis":[{"api_url":"/api/users/:user_id/personal_access_tokens/:id","http_method":"DELETE","short_description":"Revoke a Personal Access Token for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"auth_source_externals":{"doc_url":"../apidoc/v2/auth_source_externals","id":"auth_source_externals","api_url":"/api","name":"Auth source externals","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/auth_source_externals/index","name":"index","apis":[{"api_url":"/api/auth_source_externals","http_method":"GET","short_description":"List external authentication sources","deprecated":null},{"api_url":"/api/locations/:location_id/auth_source_externals","http_method":"GET","short_description":"List external authentication sources per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/auth_source_externals","http_method":"GET","short_description":"List external authentication sources per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_externals/show","name":"show","apis":[{"api_url":"/api/auth_source_externals/:id","http_method":"GET","short_description":"Show an external authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_externals/update","name":"update","apis":[{"api_url":"/api/auth_source_externals/:id","http_method":"PUT","short_description":"Update an external authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auth_source_external","full_name":"auth_source_external","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"auth_source_external[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"auth_source_external[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"auth_source_external[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ping":{"doc_url":"../apidoc/v2/ping","id":"ping","api_url":"/api","name":"Ping","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ping/ping","name":"ping","apis":[{"api_url":"/api/ping","http_method":"GET","short_description":"Shows status of Foreman system and it's subcomponents","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThis service is available for unauthenticated users\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ping/statuses","name":"statuses","apis":[{"api_url":"/api/statuses","http_method":"GET","short_description":"Shows status and version information of Foreman system and it's subcomponents","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThis service is only available for authenticated users\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ping/index","name":"index","apis":[{"api_url":"/katello/api/ping","http_method":"GET","short_description":"Shows status of Katello system and it's subcomponents","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThis service is only available for authenticated users\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ping/server_status","name":"server_status","apis":[{"api_url":"/katello/api/status","http_method":"GET","short_description":"Shows version information","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThis service is available for unauthenticated users\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"auth_source_internals":{"doc_url":"../apidoc/v2/auth_source_internals","id":"auth_source_internals","api_url":"/api","name":"Auth source internals","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/auth_source_internals/index","name":"index","apis":[{"api_url":"/api/auth_source_internals","http_method":"GET","short_description":"List internal authentication sources","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_internals/show","name":"show","apis":[{"api_url":"/api/auth_source_internals/:id","http_method":"GET","short_description":"Show an internal authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"plugins":{"doc_url":"../apidoc/v2/plugins","id":"plugins","api_url":"/api","name":"Plugins","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/plugins/index","name":"index","apis":[{"api_url":"/api/plugins","http_method":"GET","short_description":"List installed plugins","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"auth_source_ldaps":{"doc_url":"../apidoc/v2/auth_source_ldaps","id":"auth_source_ldaps","api_url":"/api","name":"Auth source ldaps","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/auth_source_ldaps/index","name":"index","apis":[{"api_url":"/api/auth_source_ldaps","http_method":"GET","short_description":"List all LDAP authentication sources","deprecated":null},{"api_url":"/api/locations/:location_id/auth_source_ldaps","http_method":"GET","short_description":"List LDAP authentication sources per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/auth_source_ldaps","http_method":"GET","short_description":"List LDAP authentication sources per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/show","name":"show","apis":[{"api_url":"/api/auth_source_ldaps/:id","http_method":"GET","short_description":"Show an LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/create","name":"create","apis":[{"api_url":"/api/auth_source_ldaps","http_method":"POST","short_description":"Create an LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"auth_source_ldap","full_name":"auth_source_ldap","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"auth_source_ldap[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"auth_source_ldap[host]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"port","full_name":"auth_source_ldap[port]","description":"\n\u003cp\u003edefaults to 389\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"account","full_name":"auth_source_ldap[account]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"base_dn","full_name":"auth_source_ldap[base_dn]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"account_password","full_name":"auth_source_ldap[account_password]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_login","full_name":"auth_source_ldap[attr_login]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_firstname","full_name":"auth_source_ldap[attr_firstname]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_lastname","full_name":"auth_source_ldap[attr_lastname]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_mail","full_name":"auth_source_ldap[attr_mail]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_photo","full_name":"auth_source_ldap[attr_photo]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"onthefly_register","full_name":"auth_source_ldap[onthefly_register]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"usergroup_sync","full_name":"auth_source_ldap[usergroup_sync]","description":"\n\u003cp\u003esync external user groups on login\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tls","full_name":"auth_source_ldap[tls]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"groups_base","full_name":"auth_source_ldap[groups_base]","description":"\n\u003cp\u003egroups base DN\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"use_netgroups","full_name":"auth_source_ldap[use_netgroups]","description":"\n\u003cp\u003euse NIS netgroups instead of posix groups, applicable only when server_type\nis posix or free_ipa\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"server_type","full_name":"auth_source_ldap[server_type]","description":"\n\u003cp\u003etype of the LDAP server\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003efree_ipa\u003c/code\u003e, \u003ccode\u003eactive_directory\u003c/code\u003e, \u003ccode\u003eposix\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ldap_filter","full_name":"auth_source_ldap[ldap_filter]","description":"\n\u003cp\u003eLDAP filter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"auth_source_ldap[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"auth_source_ldap[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/update","name":"update","apis":[{"api_url":"/api/auth_source_ldaps/:id","http_method":"PUT","short_description":"Update an LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auth_source_ldap","full_name":"auth_source_ldap","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"auth_source_ldap[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"auth_source_ldap[host]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"port","full_name":"auth_source_ldap[port]","description":"\n\u003cp\u003edefaults to 389\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"account","full_name":"auth_source_ldap[account]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"base_dn","full_name":"auth_source_ldap[base_dn]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"account_password","full_name":"auth_source_ldap[account_password]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_login","full_name":"auth_source_ldap[attr_login]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_firstname","full_name":"auth_source_ldap[attr_firstname]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_lastname","full_name":"auth_source_ldap[attr_lastname]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_mail","full_name":"auth_source_ldap[attr_mail]","description":"\n\u003cp\u003erequired if onthefly_register is true\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"attr_photo","full_name":"auth_source_ldap[attr_photo]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"onthefly_register","full_name":"auth_source_ldap[onthefly_register]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"usergroup_sync","full_name":"auth_source_ldap[usergroup_sync]","description":"\n\u003cp\u003esync external user groups on login\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"tls","full_name":"auth_source_ldap[tls]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"groups_base","full_name":"auth_source_ldap[groups_base]","description":"\n\u003cp\u003egroups base DN\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"use_netgroups","full_name":"auth_source_ldap[use_netgroups]","description":"\n\u003cp\u003euse NIS netgroups instead of posix groups, applicable only when server_type\nis posix or free_ipa\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"server_type","full_name":"auth_source_ldap[server_type]","description":"\n\u003cp\u003etype of the LDAP server\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003efree_ipa\u003c/code\u003e, \u003ccode\u003eactive_directory\u003c/code\u003e, \u003ccode\u003eposix\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ldap_filter","full_name":"auth_source_ldap[ldap_filter]","description":"\n\u003cp\u003eLDAP filter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"auth_source_ldap[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"auth_source_ldap[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/test","name":"test","apis":[{"api_url":"/api/auth_source_ldaps/:id/test","http_method":"PUT","short_description":"Test LDAP connection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/auth_source_ldaps/destroy","name":"destroy","apis":[{"api_url":"/api/auth_source_ldaps/:id","http_method":"DELETE","short_description":"Delete an LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"trends":{"doc_url":"../apidoc/v2/trends","id":"trends","api_url":"/api","name":"Trends","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/trends/index","name":"index","apis":[{"api_url":"/api/trends","http_method":"GET","short_description":"List of trends counters","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/trends/show","name":"show","apis":[{"api_url":"/api/trends/:id","http_method":"GET","short_description":"Show a trend","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/trends/create","name":"create","apis":[{"api_url":"/api/trends","http_method":"POST","short_description":"Create a trend counter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"trendable_type","full_name":"trendable_type","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eEnvironment\u003c/code\u003e, \u003ccode\u003eOperatingsystem\u003c/code\u003e, \u003ccode\u003eModel\u003c/code\u003e, \u003ccode\u003eFactName\u003c/code\u003e, \u003ccode\u003eHostgroup\u003c/code\u003e, \u003ccode\u003eComputeResource\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fact_name","full_name":"fact_name","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/trends/destroy","name":"destroy","apis":[{"api_url":"/api/trends/:id","http_method":"DELETE","short_description":"Delete a trend counter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"auth_sources":{"doc_url":"../apidoc/v2/auth_sources","id":"auth_sources","api_url":"/api","name":"Auth sources","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/auth_sources/index","name":"index","apis":[{"api_url":"/api/auth_sources","http_method":"GET","short_description":"List all authentication sources","deprecated":null},{"api_url":"/api/locations/:location_id/auth_sources","http_method":"GET","short_description":"List all authentication sources per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/auth_sources","http_method":"GET","short_description":"List all authentication sources per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"usergroups":{"doc_url":"../apidoc/v2/usergroups","id":"usergroups","api_url":"/api","name":"Usergroups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/usergroups/index","name":"index","apis":[{"api_url":"/api/usergroups","http_method":"GET","short_description":"List all user groups","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"role","type":"string"},{"name":"role_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/usergroups/show","name":"show","apis":[{"api_url":"/api/usergroups/:id","http_method":"GET","short_description":"Show a user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/usergroups/create","name":"create","apis":[{"api_url":"/api/usergroups","http_method":"POST","short_description":"Create a user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup","full_name":"usergroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"usergroup[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"admin","full_name":"usergroup[admin]","description":"\n\u003cp\u003eis an admin user group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"usergroup[user_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"usergroup_ids","full_name":"usergroup[usergroup_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"role_ids","full_name":"usergroup[role_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/usergroups/update","name":"update","apis":[{"api_url":"/api/usergroups/:id","http_method":"PUT","short_description":"Update a user group","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eUser groups linked to external groups (LDAP) are automatically synced with\nthese groups on update. Remember this synchronization will remove any LDAP\nusers manually added to the Foreman user group. Only LDAP users in the\nexternal groups will remain. Internal users can be added or removed freely.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"usergroup","full_name":"usergroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"usergroup[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"admin","full_name":"usergroup[admin]","description":"\n\u003cp\u003eis an admin user group\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"usergroup[user_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"usergroup_ids","full_name":"usergroup[usergroup_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"role_ids","full_name":"usergroup[role_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/usergroups/destroy","name":"destroy","apis":[{"api_url":"/api/usergroups/:id","http_method":"DELETE","short_description":"Delete a user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"autosign":{"doc_url":"../apidoc/v2/autosign","id":"autosign","api_url":"/api","name":"Autosign","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/autosign/index","name":"index","apis":[{"api_url":"/api/smart_proxies/:smart_proxy_id/autosign","http_method":"GET","short_description":"List all autosign entries","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/autosign/create","name":"create","apis":[{"api_url":"/api/smart_proxies/:smart_proxy_id/autosign","http_method":"POST","short_description":"Create autosign entry","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eAutosign entry name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/autosign/destroy","name":"destroy","apis":[{"api_url":"/api/smart_proxies/:smart_proxy_id/autosign/:id","http_method":"DELETE","short_description":"Delete autosign entry","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eAutosign entry name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"users":{"doc_url":"../apidoc/v2/users","id":"users","api_url":"/api","name":"Users","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/users/index","name":"index","apis":[{"api_url":"/api/users","http_method":"GET","short_description":"List all users","deprecated":null},{"api_url":"/api/auth_source_ldaps/:auth_source_ldap_id/users","http_method":"GET","short_description":"List all users for LDAP authentication source","deprecated":null},{"api_url":"/api/auth_source_externals/:auth_source_external_id/users","http_method":"GET","short_description":"List all users for external authentication source","deprecated":null},{"api_url":"/api/usergroups/:usergroup_id/users","http_method":"GET","short_description":"List all users for user group","deprecated":null},{"api_url":"/api/roles/:role_id/users","http_method":"GET","short_description":"List all users for role","deprecated":null},{"api_url":"/api/locations/:location_id/users","http_method":"GET","short_description":"List all users for location","deprecated":null},{"api_url":"/api/organizations/:organization_id/users","http_method":"GET","short_description":"List all users for organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"auth_source_ldap_id","full_name":"auth_source_ldap_id","description":"\n\u003cp\u003eID of LDAP authentication source\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID of user group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role_id","full_name":"role_id","description":"\n\u003cp\u003eID of role\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"admin","values":["true","false"]},{"name":"auth_source","type":"string"},{"name":"auth_source_type","type":"string"},{"name":"description","type":"text"},{"name":"firstname","type":"string"},{"name":"last_login_on","type":"datetime"},{"name":"lastname","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"login","type":"string"},{"name":"mail","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"role","type":"string"},{"name":"role_id","type":"integer"},{"name":"usergroup","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/show","name":"show","apis":[{"api_url":"/api/users/:id","http_method":"GET","short_description":"Show a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/show_current","name":"show_current","apis":[{"api_url":"/api/current_user","http_method":"GET","short_description":"Show the currently logged-in user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/create","name":"create","apis":[{"api_url":"/api/users","http_method":"POST","short_description":"Create a user","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eAdds role \u0026#39;Default role\u0026#39; to the user by default\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"user","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"login","full_name":"user[login]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"firstname","full_name":"user[firstname]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lastname","full_name":"user[lastname]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mail","full_name":"user[mail]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"user[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"admin","full_name":"user[admin]","description":"\n\u003cp\u003eis an admin account\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"user[password]","description":"\n\u003cp\u003eRequired unless user is in an external authentication source\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"default_location_id","full_name":"user[default_location_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"default_organization_id","full_name":"user[default_organization_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"auth_source_id","full_name":"user[auth_source_id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"timezone","full_name":"user[timezone]","description":"\n\u003cp\u003eUser\u0026#39;s timezone\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eInternational Date Line West\u003c/code\u003e, \u003ccode\u003eAmerican Samoa\u003c/code\u003e, \u003ccode\u003eMidway Island\u003c/code\u003e, \u003ccode\u003eHawaii\u003c/code\u003e, \u003ccode\u003eAlaska\u003c/code\u003e, \u003ccode\u003ePacific Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eTijuana\u003c/code\u003e, \u003ccode\u003eArizona\u003c/code\u003e, \u003ccode\u003eChihuahua\u003c/code\u003e, \u003ccode\u003eMazatlan\u003c/code\u003e, \u003ccode\u003eMountain Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eCentral America\u003c/code\u003e, \u003ccode\u003eCentral Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eGuadalajara\u003c/code\u003e, \u003ccode\u003eMexico City\u003c/code\u003e, \u003ccode\u003eMonterrey\u003c/code\u003e, \u003ccode\u003eSaskatchewan\u003c/code\u003e, \u003ccode\u003eBogota\u003c/code\u003e, \u003ccode\u003eEastern Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eIndiana (East)\u003c/code\u003e, \u003ccode\u003eLima\u003c/code\u003e, \u003ccode\u003eQuito\u003c/code\u003e, \u003ccode\u003eAtlantic Time (Canada)\u003c/code\u003e, \u003ccode\u003eCaracas\u003c/code\u003e, \u003ccode\u003eGeorgetown\u003c/code\u003e, \u003ccode\u003eLa Paz\u003c/code\u003e, \u003ccode\u003ePuerto Rico\u003c/code\u003e, \u003ccode\u003eSantiago\u003c/code\u003e, \u003ccode\u003eNewfoundland\u003c/code\u003e, \u003ccode\u003eBrasilia\u003c/code\u003e, \u003ccode\u003eBuenos Aires\u003c/code\u003e, \u003ccode\u003eGreenland\u003c/code\u003e, \u003ccode\u003eMontevideo\u003c/code\u003e, \u003ccode\u003eMid-Atlantic\u003c/code\u003e, \u003ccode\u003eAzores\u003c/code\u003e, \u003ccode\u003eCape Verde Is.\u003c/code\u003e, \u003ccode\u003eCasablanca\u003c/code\u003e, \u003ccode\u003eDublin\u003c/code\u003e, \u003ccode\u003eEdinburgh\u003c/code\u003e, \u003ccode\u003eLisbon\u003c/code\u003e, \u003ccode\u003eLondon\u003c/code\u003e, \u003ccode\u003eMonrovia\u003c/code\u003e, \u003ccode\u003eUTC\u003c/code\u003e, \u003ccode\u003eAmsterdam\u003c/code\u003e, \u003ccode\u003eBelgrade\u003c/code\u003e, \u003ccode\u003eBerlin\u003c/code\u003e, \u003ccode\u003eBern\u003c/code\u003e, \u003ccode\u003eBratislava\u003c/code\u003e, \u003ccode\u003eBrussels\u003c/code\u003e, \u003ccode\u003eBudapest\u003c/code\u003e, \u003ccode\u003eCopenhagen\u003c/code\u003e, \u003ccode\u003eLjubljana\u003c/code\u003e, \u003ccode\u003eMadrid\u003c/code\u003e, \u003ccode\u003eParis\u003c/code\u003e, \u003ccode\u003ePrague\u003c/code\u003e, \u003ccode\u003eRome\u003c/code\u003e, \u003ccode\u003eSarajevo\u003c/code\u003e, \u003ccode\u003eSkopje\u003c/code\u003e, \u003ccode\u003eStockholm\u003c/code\u003e, \u003ccode\u003eVienna\u003c/code\u003e, \u003ccode\u003eWarsaw\u003c/code\u003e, \u003ccode\u003eWest Central Africa\u003c/code\u003e, \u003ccode\u003eZagreb\u003c/code\u003e, \u003ccode\u003eZurich\u003c/code\u003e, \u003ccode\u003eAthens\u003c/code\u003e, \u003ccode\u003eBucharest\u003c/code\u003e, \u003ccode\u003eCairo\u003c/code\u003e, \u003ccode\u003eHarare\u003c/code\u003e, \u003ccode\u003eHelsinki\u003c/code\u003e, \u003ccode\u003eJerusalem\u003c/code\u003e, \u003ccode\u003eKaliningrad\u003c/code\u003e, \u003ccode\u003eKyiv\u003c/code\u003e, \u003ccode\u003ePretoria\u003c/code\u003e, \u003ccode\u003eRiga\u003c/code\u003e, \u003ccode\u003eSofia\u003c/code\u003e, \u003ccode\u003eTallinn\u003c/code\u003e, \u003ccode\u003eVilnius\u003c/code\u003e, \u003ccode\u003eBaghdad\u003c/code\u003e, \u003ccode\u003eIstanbul\u003c/code\u003e, \u003ccode\u003eKuwait\u003c/code\u003e, \u003ccode\u003eMinsk\u003c/code\u003e, \u003ccode\u003eMoscow\u003c/code\u003e, \u003ccode\u003eNairobi\u003c/code\u003e, \u003ccode\u003eRiyadh\u003c/code\u003e, \u003ccode\u003eSt. Petersburg\u003c/code\u003e, \u003ccode\u003eTehran\u003c/code\u003e, \u003ccode\u003eAbu Dhabi\u003c/code\u003e, \u003ccode\u003eBaku\u003c/code\u003e, \u003ccode\u003eMuscat\u003c/code\u003e, \u003ccode\u003eSamara\u003c/code\u003e, \u003ccode\u003eTbilisi\u003c/code\u003e, \u003ccode\u003eVolgograd\u003c/code\u003e, \u003ccode\u003eYerevan\u003c/code\u003e, \u003ccode\u003eKabul\u003c/code\u003e, \u003ccode\u003eEkaterinburg\u003c/code\u003e, \u003ccode\u003eIslamabad\u003c/code\u003e, \u003ccode\u003eKarachi\u003c/code\u003e, \u003ccode\u003eTashkent\u003c/code\u003e, \u003ccode\u003eChennai\u003c/code\u003e, \u003ccode\u003eKolkata\u003c/code\u003e, \u003ccode\u003eMumbai\u003c/code\u003e, \u003ccode\u003eNew Delhi\u003c/code\u003e, \u003ccode\u003eSri Jayawardenepura\u003c/code\u003e, \u003ccode\u003eKathmandu\u003c/code\u003e, \u003ccode\u003eAlmaty\u003c/code\u003e, \u003ccode\u003eAstana\u003c/code\u003e, \u003ccode\u003eDhaka\u003c/code\u003e, \u003ccode\u003eUrumqi\u003c/code\u003e, \u003ccode\u003eRangoon\u003c/code\u003e, \u003ccode\u003eBangkok\u003c/code\u003e, \u003ccode\u003eHanoi\u003c/code\u003e, \u003ccode\u003eJakarta\u003c/code\u003e, \u003ccode\u003eKrasnoyarsk\u003c/code\u003e, \u003ccode\u003eNovosibirsk\u003c/code\u003e, \u003ccode\u003eBeijing\u003c/code\u003e, \u003ccode\u003eChongqing\u003c/code\u003e, \u003ccode\u003eHong Kong\u003c/code\u003e, \u003ccode\u003eIrkutsk\u003c/code\u003e, \u003ccode\u003eKuala Lumpur\u003c/code\u003e, \u003ccode\u003ePerth\u003c/code\u003e, \u003ccode\u003eSingapore\u003c/code\u003e, \u003ccode\u003eTaipei\u003c/code\u003e, \u003ccode\u003eUlaanbaatar\u003c/code\u003e, \u003ccode\u003eOsaka\u003c/code\u003e, \u003ccode\u003eSapporo\u003c/code\u003e, \u003ccode\u003eSeoul\u003c/code\u003e, \u003ccode\u003eTokyo\u003c/code\u003e, \u003ccode\u003eYakutsk\u003c/code\u003e, \u003ccode\u003eAdelaide\u003c/code\u003e, \u003ccode\u003eDarwin\u003c/code\u003e, \u003ccode\u003eBrisbane\u003c/code\u003e, \u003ccode\u003eCanberra\u003c/code\u003e, \u003ccode\u003eGuam\u003c/code\u003e, \u003ccode\u003eHobart\u003c/code\u003e, \u003ccode\u003eMelbourne\u003c/code\u003e, \u003ccode\u003ePort Moresby\u003c/code\u003e, \u003ccode\u003eSydney\u003c/code\u003e, \u003ccode\u003eVladivostok\u003c/code\u003e, \u003ccode\u003eMagadan\u003c/code\u003e, \u003ccode\u003eNew Caledonia\u003c/code\u003e, \u003ccode\u003eSolomon Is.\u003c/code\u003e, \u003ccode\u003eSrednekolymsk\u003c/code\u003e, \u003ccode\u003eAuckland\u003c/code\u003e, \u003ccode\u003eFiji\u003c/code\u003e, \u003ccode\u003eKamchatka\u003c/code\u003e, \u003ccode\u003eMarshall Is.\u003c/code\u003e, \u003ccode\u003eWellington\u003c/code\u003e, \u003ccode\u003eChatham Is.\u003c/code\u003e, \u003ccode\u003eNuku\u0026#39;alofa\u003c/code\u003e, \u003ccode\u003eSamoa\u003c/code\u003e, \u003ccode\u003eTokelau Is.\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locale","full_name":"user[locale]","description":"\n\u003cp\u003eUser\u0026#39;s preferred locale\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eca\u003c/code\u003e, \u003ccode\u003ecs_CZ\u003c/code\u003e, \u003ccode\u003ede\u003c/code\u003e, \u003ccode\u003een\u003c/code\u003e, \u003ccode\u003een_GB\u003c/code\u003e, \u003ccode\u003ees\u003c/code\u003e, \u003ccode\u003efr\u003c/code\u003e, \u003ccode\u003egl\u003c/code\u003e, \u003ccode\u003eit\u003c/code\u003e, \u003ccode\u003eja\u003c/code\u003e, \u003ccode\u003eko\u003c/code\u003e, \u003ccode\u003enl_NL\u003c/code\u003e, \u003ccode\u003epl\u003c/code\u003e, \u003ccode\u003ept_BR\u003c/code\u003e, \u003ccode\u003eru\u003c/code\u003e, \u003ccode\u003esv_SE\u003c/code\u003e, \u003ccode\u003ezh_CN\u003c/code\u003e, \u003ccode\u003ezh_TW\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role_ids","full_name":"user[role_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"user[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"user[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/update","name":"update","apis":[{"api_url":"/api/users/:id","http_method":"PUT","short_description":"Update a user","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eAdds role \u0026#39;Default role\u0026#39; to the user if it is not already present.\nOnly another admin can change the admin account attribute.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"user","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"login","full_name":"user[login]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"firstname","full_name":"user[firstname]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lastname","full_name":"user[lastname]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mail","full_name":"user[mail]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"user[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"admin","full_name":"user[admin]","description":"\n\u003cp\u003eis an admin account\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"user[password]","description":"\n\u003cp\u003eRequired unless user is in an external authentication source\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"default_location_id","full_name":"user[default_location_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"default_organization_id","full_name":"user[default_organization_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"auth_source_id","full_name":"user[auth_source_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"timezone","full_name":"user[timezone]","description":"\n\u003cp\u003eUser\u0026#39;s timezone\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eInternational Date Line West\u003c/code\u003e, \u003ccode\u003eAmerican Samoa\u003c/code\u003e, \u003ccode\u003eMidway Island\u003c/code\u003e, \u003ccode\u003eHawaii\u003c/code\u003e, \u003ccode\u003eAlaska\u003c/code\u003e, \u003ccode\u003ePacific Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eTijuana\u003c/code\u003e, \u003ccode\u003eArizona\u003c/code\u003e, \u003ccode\u003eChihuahua\u003c/code\u003e, \u003ccode\u003eMazatlan\u003c/code\u003e, \u003ccode\u003eMountain Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eCentral America\u003c/code\u003e, \u003ccode\u003eCentral Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eGuadalajara\u003c/code\u003e, \u003ccode\u003eMexico City\u003c/code\u003e, \u003ccode\u003eMonterrey\u003c/code\u003e, \u003ccode\u003eSaskatchewan\u003c/code\u003e, \u003ccode\u003eBogota\u003c/code\u003e, \u003ccode\u003eEastern Time (US \u0026amp; Canada)\u003c/code\u003e, \u003ccode\u003eIndiana (East)\u003c/code\u003e, \u003ccode\u003eLima\u003c/code\u003e, \u003ccode\u003eQuito\u003c/code\u003e, \u003ccode\u003eAtlantic Time (Canada)\u003c/code\u003e, \u003ccode\u003eCaracas\u003c/code\u003e, \u003ccode\u003eGeorgetown\u003c/code\u003e, \u003ccode\u003eLa Paz\u003c/code\u003e, \u003ccode\u003ePuerto Rico\u003c/code\u003e, \u003ccode\u003eSantiago\u003c/code\u003e, \u003ccode\u003eNewfoundland\u003c/code\u003e, \u003ccode\u003eBrasilia\u003c/code\u003e, \u003ccode\u003eBuenos Aires\u003c/code\u003e, \u003ccode\u003eGreenland\u003c/code\u003e, \u003ccode\u003eMontevideo\u003c/code\u003e, \u003ccode\u003eMid-Atlantic\u003c/code\u003e, \u003ccode\u003eAzores\u003c/code\u003e, \u003ccode\u003eCape Verde Is.\u003c/code\u003e, \u003ccode\u003eCasablanca\u003c/code\u003e, \u003ccode\u003eDublin\u003c/code\u003e, \u003ccode\u003eEdinburgh\u003c/code\u003e, \u003ccode\u003eLisbon\u003c/code\u003e, \u003ccode\u003eLondon\u003c/code\u003e, \u003ccode\u003eMonrovia\u003c/code\u003e, \u003ccode\u003eUTC\u003c/code\u003e, \u003ccode\u003eAmsterdam\u003c/code\u003e, \u003ccode\u003eBelgrade\u003c/code\u003e, \u003ccode\u003eBerlin\u003c/code\u003e, \u003ccode\u003eBern\u003c/code\u003e, \u003ccode\u003eBratislava\u003c/code\u003e, \u003ccode\u003eBrussels\u003c/code\u003e, \u003ccode\u003eBudapest\u003c/code\u003e, \u003ccode\u003eCopenhagen\u003c/code\u003e, \u003ccode\u003eLjubljana\u003c/code\u003e, \u003ccode\u003eMadrid\u003c/code\u003e, \u003ccode\u003eParis\u003c/code\u003e, \u003ccode\u003ePrague\u003c/code\u003e, \u003ccode\u003eRome\u003c/code\u003e, \u003ccode\u003eSarajevo\u003c/code\u003e, \u003ccode\u003eSkopje\u003c/code\u003e, \u003ccode\u003eStockholm\u003c/code\u003e, \u003ccode\u003eVienna\u003c/code\u003e, \u003ccode\u003eWarsaw\u003c/code\u003e, \u003ccode\u003eWest Central Africa\u003c/code\u003e, \u003ccode\u003eZagreb\u003c/code\u003e, \u003ccode\u003eZurich\u003c/code\u003e, \u003ccode\u003eAthens\u003c/code\u003e, \u003ccode\u003eBucharest\u003c/code\u003e, \u003ccode\u003eCairo\u003c/code\u003e, \u003ccode\u003eHarare\u003c/code\u003e, \u003ccode\u003eHelsinki\u003c/code\u003e, \u003ccode\u003eJerusalem\u003c/code\u003e, \u003ccode\u003eKaliningrad\u003c/code\u003e, \u003ccode\u003eKyiv\u003c/code\u003e, \u003ccode\u003ePretoria\u003c/code\u003e, \u003ccode\u003eRiga\u003c/code\u003e, \u003ccode\u003eSofia\u003c/code\u003e, \u003ccode\u003eTallinn\u003c/code\u003e, \u003ccode\u003eVilnius\u003c/code\u003e, \u003ccode\u003eBaghdad\u003c/code\u003e, \u003ccode\u003eIstanbul\u003c/code\u003e, \u003ccode\u003eKuwait\u003c/code\u003e, \u003ccode\u003eMinsk\u003c/code\u003e, \u003ccode\u003eMoscow\u003c/code\u003e, \u003ccode\u003eNairobi\u003c/code\u003e, \u003ccode\u003eRiyadh\u003c/code\u003e, \u003ccode\u003eSt. Petersburg\u003c/code\u003e, \u003ccode\u003eTehran\u003c/code\u003e, \u003ccode\u003eAbu Dhabi\u003c/code\u003e, \u003ccode\u003eBaku\u003c/code\u003e, \u003ccode\u003eMuscat\u003c/code\u003e, \u003ccode\u003eSamara\u003c/code\u003e, \u003ccode\u003eTbilisi\u003c/code\u003e, \u003ccode\u003eVolgograd\u003c/code\u003e, \u003ccode\u003eYerevan\u003c/code\u003e, \u003ccode\u003eKabul\u003c/code\u003e, \u003ccode\u003eEkaterinburg\u003c/code\u003e, \u003ccode\u003eIslamabad\u003c/code\u003e, \u003ccode\u003eKarachi\u003c/code\u003e, \u003ccode\u003eTashkent\u003c/code\u003e, \u003ccode\u003eChennai\u003c/code\u003e, \u003ccode\u003eKolkata\u003c/code\u003e, \u003ccode\u003eMumbai\u003c/code\u003e, \u003ccode\u003eNew Delhi\u003c/code\u003e, \u003ccode\u003eSri Jayawardenepura\u003c/code\u003e, \u003ccode\u003eKathmandu\u003c/code\u003e, \u003ccode\u003eAlmaty\u003c/code\u003e, \u003ccode\u003eAstana\u003c/code\u003e, \u003ccode\u003eDhaka\u003c/code\u003e, \u003ccode\u003eUrumqi\u003c/code\u003e, \u003ccode\u003eRangoon\u003c/code\u003e, \u003ccode\u003eBangkok\u003c/code\u003e, \u003ccode\u003eHanoi\u003c/code\u003e, \u003ccode\u003eJakarta\u003c/code\u003e, \u003ccode\u003eKrasnoyarsk\u003c/code\u003e, \u003ccode\u003eNovosibirsk\u003c/code\u003e, \u003ccode\u003eBeijing\u003c/code\u003e, \u003ccode\u003eChongqing\u003c/code\u003e, \u003ccode\u003eHong Kong\u003c/code\u003e, \u003ccode\u003eIrkutsk\u003c/code\u003e, \u003ccode\u003eKuala Lumpur\u003c/code\u003e, \u003ccode\u003ePerth\u003c/code\u003e, \u003ccode\u003eSingapore\u003c/code\u003e, \u003ccode\u003eTaipei\u003c/code\u003e, \u003ccode\u003eUlaanbaatar\u003c/code\u003e, \u003ccode\u003eOsaka\u003c/code\u003e, \u003ccode\u003eSapporo\u003c/code\u003e, \u003ccode\u003eSeoul\u003c/code\u003e, \u003ccode\u003eTokyo\u003c/code\u003e, \u003ccode\u003eYakutsk\u003c/code\u003e, \u003ccode\u003eAdelaide\u003c/code\u003e, \u003ccode\u003eDarwin\u003c/code\u003e, \u003ccode\u003eBrisbane\u003c/code\u003e, \u003ccode\u003eCanberra\u003c/code\u003e, \u003ccode\u003eGuam\u003c/code\u003e, \u003ccode\u003eHobart\u003c/code\u003e, \u003ccode\u003eMelbourne\u003c/code\u003e, \u003ccode\u003ePort Moresby\u003c/code\u003e, \u003ccode\u003eSydney\u003c/code\u003e, \u003ccode\u003eVladivostok\u003c/code\u003e, \u003ccode\u003eMagadan\u003c/code\u003e, \u003ccode\u003eNew Caledonia\u003c/code\u003e, \u003ccode\u003eSolomon Is.\u003c/code\u003e, \u003ccode\u003eSrednekolymsk\u003c/code\u003e, \u003ccode\u003eAuckland\u003c/code\u003e, \u003ccode\u003eFiji\u003c/code\u003e, \u003ccode\u003eKamchatka\u003c/code\u003e, \u003ccode\u003eMarshall Is.\u003c/code\u003e, \u003ccode\u003eWellington\u003c/code\u003e, \u003ccode\u003eChatham Is.\u003c/code\u003e, \u003ccode\u003eNuku\u0026#39;alofa\u003c/code\u003e, \u003ccode\u003eSamoa\u003c/code\u003e, \u003ccode\u003eTokelau Is.\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locale","full_name":"user[locale]","description":"\n\u003cp\u003eUser\u0026#39;s preferred locale\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eca\u003c/code\u003e, \u003ccode\u003ecs_CZ\u003c/code\u003e, \u003ccode\u003ede\u003c/code\u003e, \u003ccode\u003een\u003c/code\u003e, \u003ccode\u003een_GB\u003c/code\u003e, \u003ccode\u003ees\u003c/code\u003e, \u003ccode\u003efr\u003c/code\u003e, \u003ccode\u003egl\u003c/code\u003e, \u003ccode\u003eit\u003c/code\u003e, \u003ccode\u003eja\u003c/code\u003e, \u003ccode\u003eko\u003c/code\u003e, \u003ccode\u003enl_NL\u003c/code\u003e, \u003ccode\u003epl\u003c/code\u003e, \u003ccode\u003ept_BR\u003c/code\u003e, \u003ccode\u003eru\u003c/code\u003e, \u003ccode\u003esv_SE\u003c/code\u003e, \u003ccode\u003ezh_CN\u003c/code\u003e, \u003ccode\u003ezh_TW\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role_ids","full_name":"user[role_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"user[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"user[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"current_password","full_name":"user[current_password]","description":"\n\u003cp\u003eRequired when user want to change own password\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/users/destroy","name":"destroy","apis":[{"api_url":"/api/users/:id","http_method":"DELETE","short_description":"Delete a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"bookmarks":{"doc_url":"../apidoc/v2/bookmarks","id":"bookmarks","api_url":"/api","name":"Bookmarks","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/bookmarks/index","name":"index","apis":[{"api_url":"/api/bookmarks","http_method":"GET","short_description":"List all bookmarks","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"controller","type":"string"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/bookmarks/show","name":"show","apis":[{"api_url":"/api/bookmarks/:id","http_method":"GET","short_description":"Show a bookmark","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/bookmarks/create","name":"create","apis":[{"api_url":"/api/bookmarks","http_method":"POST","short_description":"Create a bookmark","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"bookmark","full_name":"bookmark","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"bookmark[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"controller","full_name":"bookmark[controller]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"query","full_name":"bookmark[query]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"public","full_name":"bookmark[public]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/bookmarks/update","name":"update","apis":[{"api_url":"/api/bookmarks/:id","http_method":"PUT","short_description":"Update a bookmark","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"bookmark","full_name":"bookmark","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"bookmark[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"controller","full_name":"bookmark[controller]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"query","full_name":"bookmark[query]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"public","full_name":"bookmark[public]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/bookmarks/destroy","name":"destroy","apis":[{"api_url":"/api/bookmarks/:id","http_method":"DELETE","short_description":"Delete a bookmark","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"provisioning_templates":{"doc_url":"../apidoc/v2/provisioning_templates","id":"provisioning_templates","api_url":"/api","name":"Provisioning templates","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/provisioning_templates/index","name":"index","apis":[{"api_url":"/api/provisioning_templates","http_method":"GET","short_description":"List provisioning templates","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/provisioning_templates","http_method":"GET","short_description":"List provisioning templates per operating system","deprecated":null},{"api_url":"/api/locations/:location_id/provisioning_templates","http_method":"GET","short_description":"List provisioning templates per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/provisioning_templates","http_method":"GET","short_description":"List provisioning templates per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"default_template","values":["true","false"]},{"name":"environment","type":"string"},{"name":"hostgroup","type":"string"},{"name":"kind","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"locked","values":["true","false"]},{"name":"name","type":"string"},{"name":"operatingsystem","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"snippet","values":["true","false"]},{"name":"template","type":"text"},{"name":"vendor","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/show","name":"show","apis":[{"api_url":"/api/provisioning_templates/:id","http_method":"GET","short_description":"Show provisioning template details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/create","name":"create","apis":[{"api_url":"/api/provisioning_templates","http_method":"POST","short_description":"Create a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template","full_name":"provisioning_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"provisioning_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"provisioning_template[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"provisioning_template[template]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"provisioning_template[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"provisioning_template[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_kind_id","full_name":"provisioning_template[template_kind_id]","description":"\n\u003cp\u003enot relevant for snippet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_combinations_attributes","full_name":"provisioning_template[template_combinations_attributes]","description":"\n\u003cp\u003eArray of template combinations (hostgroup_id, environment_id)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"provisioning_template[operatingsystem_ids]","description":"\n\u003cp\u003eArray of operating system IDs to associate with the template\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"provisioning_template[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"provisioning_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"provisioning_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/import","name":"import","apis":[{"api_url":"/api/provisioning_templates/import","http_method":"POST","short_description":"Import a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template","full_name":"provisioning_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"provisioning_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"provisioning_template[template]","description":"\n\u003cp\u003etemplate contents including metadata\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"provisioning_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"provisioning_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"options","full_name":"options","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"force","full_name":"options[force]","description":"\n\u003cp\u003euse if you want update locked templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"associate","full_name":"options[associate]","description":"\n\u003cp\u003edetermines when the template should associate objects based on metadata,\nnew means only when new template is being created, always means both for\nnew and existing template which is only being updated, never ignores\nmetadata\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003enew\u003c/code\u003e, \u003ccode\u003ealways\u003c/code\u003e, \u003ccode\u003enever\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lock","full_name":"options[lock]","description":"\n\u003cp\u003elock imported templates (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"options[default]","description":"\n\u003cp\u003emakes the template default meaning it will be automatically associated with\nnewly created organizations and locations (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/update","name":"update","apis":[{"api_url":"/api/provisioning_templates/:id","http_method":"PUT","short_description":"Update a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template","full_name":"provisioning_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"provisioning_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"provisioning_template[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"provisioning_template[template]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"provisioning_template[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"provisioning_template[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_kind_id","full_name":"provisioning_template[template_kind_id]","description":"\n\u003cp\u003enot relevant for snippet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_combinations_attributes","full_name":"provisioning_template[template_combinations_attributes]","description":"\n\u003cp\u003eArray of template combinations (hostgroup_id, environment_id)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"provisioning_template[operatingsystem_ids]","description":"\n\u003cp\u003eArray of operating system IDs to associate with the template\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"provisioning_template[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"provisioning_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"provisioning_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/revision","name":"revision","apis":[{"api_url":"/api/provisioning_templates/revision","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003etemplate version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/destroy","name":"destroy","apis":[{"api_url":"/api/provisioning_templates/:id","http_method":"DELETE","short_description":"Delete a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/build_pxe_default","name":"build_pxe_default","apis":[{"api_url":"/api/provisioning_templates/build_pxe_default","http_method":"POST","short_description":"Update the default PXE menu on all configured TFTP servers","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/clone","name":"clone","apis":[{"api_url":"/api/provisioning_templates/:id/clone","http_method":"POST","short_description":"Clone a provision template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template","full_name":"provisioning_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"provisioning_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/provisioning_templates/export","name":"export","apis":[{"api_url":"/api/provisioning_templates/:id/export","http_method":"GET","short_description":"Export a provisioning template to ERB","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"common_parameters":{"doc_url":"../apidoc/v2/common_parameters","id":"common_parameters","api_url":"/api","name":"Common parameters","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/common_parameters/index","name":"index","apis":[{"api_url":"/api/common_parameters","http_method":"GET","short_description":"List all global parameters","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"domain_name","type":"string"},{"name":"host_group_name","type":"string"},{"name":"host_name","type":"string"},{"name":"key_type","type":"string"},{"name":"location_name","type":"string"},{"name":"name","type":"string"},{"name":"organization_name","type":"string"},{"name":"os_name","type":"string"},{"name":"parameter_type","type":"string"},{"name":"subnet_name","type":"text"},{"name":"type","type":"string"},{"name":"value","type":"text"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/common_parameters/show","name":"show","apis":[{"api_url":"/api/common_parameters/:id","http_method":"GET","short_description":"Show a global parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/common_parameters/create","name":"create","apis":[{"api_url":"/api/common_parameters","http_method":"POST","short_description":"Create a global parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"common_parameter","full_name":"common_parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"common_parameter[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"common_parameter[value]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"common_parameter[parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"common_parameter[hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/common_parameters/update","name":"update","apis":[{"api_url":"/api/common_parameters/:id","http_method":"PUT","short_description":"Update a global parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"common_parameter","full_name":"common_parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"common_parameter[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"common_parameter[value]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"common_parameter[parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"common_parameter[hidden_value]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/common_parameters/destroy","name":"destroy","apis":[{"api_url":"/api/common_parameters/:id","http_method":"DELETE","short_description":"Delete a global parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ptables":{"doc_url":"../apidoc/v2/ptables","id":"ptables","api_url":"/api","name":"Ptables","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ptables/index","name":"index","apis":[{"api_url":"/api/ptables","http_method":"GET","short_description":"List all partition tables","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/ptables","http_method":"GET","short_description":"List all partition tables for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/ptables","http_method":"GET","short_description":"List all partition tables per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/ptables","http_method":"GET","short_description":"List all partition tables per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"default","values":["true","false"]},{"name":"family","type":"string"},{"name":"layout","type":"text"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"locked","values":["true","false"]},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"snippet","values":["true","false"]},{"name":"template","type":"text"},{"name":"vendor","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/show","name":"show","apis":[{"api_url":"/api/ptables/:id","http_method":"GET","short_description":"Show a partition table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/create","name":"create","apis":[{"api_url":"/api/ptables","http_method":"POST","short_description":"Create a partition table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ptable[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"ptable[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"layout","full_name":"ptable[layout]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"ptable[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"ptable[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"ptable[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"os_family","full_name":"ptable[os_family]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"ptable[operatingsystem_ids]","description":"\n\u003cp\u003eArray of operating system IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"ptable[host_ids]","description":"\n\u003cp\u003eArray of host IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"ptable[hostgroup_ids]","description":"\n\u003cp\u003eArray of host group IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"ptable[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"ptable[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/import","name":"import","apis":[{"api_url":"/api/ptables/import","http_method":"POST","short_description":"Import a provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ptable[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"ptable[template]","description":"\n\u003cp\u003etemplate contents including metadata\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"ptable[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"ptable[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"options","full_name":"options","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"force","full_name":"options[force]","description":"\n\u003cp\u003euse if you want update locked templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"associate","full_name":"options[associate]","description":"\n\u003cp\u003edetermines when the template should associate objects based on metadata,\nnew means only when new template is being created, always means both for\nnew and existing template which is only being updated, never ignores\nmetadata\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003enew\u003c/code\u003e, \u003ccode\u003ealways\u003c/code\u003e, \u003ccode\u003enever\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lock","full_name":"options[lock]","description":"\n\u003cp\u003elock imported templates (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"options[default]","description":"\n\u003cp\u003emakes the template default meaning it will be automatically associated with\nnewly created organizations and locations (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/revision","name":"revision","apis":[{"api_url":"/api/ptables/revision","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003etemplate version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/update","name":"update","apis":[{"api_url":"/api/ptables/:id","http_method":"PUT","short_description":"Update a partition table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ptable[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"ptable[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"layout","full_name":"ptable[layout]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"ptable[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"ptable[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"ptable[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"os_family","full_name":"ptable[os_family]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"ptable[operatingsystem_ids]","description":"\n\u003cp\u003eArray of operating system IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"ptable[host_ids]","description":"\n\u003cp\u003eArray of host IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"ptable[hostgroup_ids]","description":"\n\u003cp\u003eArray of host group IDs to associate with the partition table\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"ptable[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"ptable[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/destroy","name":"destroy","apis":[{"api_url":"/api/ptables/:id","http_method":"DELETE","short_description":"Delete a partition table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/clone","name":"clone","apis":[{"api_url":"/api/ptables/:id/clone","http_method":"POST","short_description":"Clone a template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ptable[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ptables/export","name":"export","apis":[{"api_url":"/api/ptables/:id/export","http_method":"GET","short_description":"Export a partition template to ERB","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"compute_attributes":{"doc_url":"../apidoc/v2/compute_attributes","id":"compute_attributes","api_url":"/api","name":"Compute attributes","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/compute_attributes/index","name":"index","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes","http_method":"GET","short_description":"List of compute attributes for provided compute profile and compute resource","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes","http_method":"GET","short_description":"List of compute attributes for provided compute profile and compute resource","deprecated":null},{"api_url":"/api/compute_resources/:compute_resource_id/compute_attributes","http_method":"GET","short_description":"List of compute attributes for compute resource","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_attributes","http_method":"GET","short_description":"List of compute attributes for compute profile","deprecated":null},{"api_url":"/api/compute_attributes/:id","http_method":"GET","short_description":"List of compute attributes","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"compute_profile_id","description":"\n\u003cp\u003eID of compute profile\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"\n\u003cp\u003eID of compute_resource\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"compute_profile","type":"string"},{"name":"compute_resource","type":"string"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_attributes/show","name":"show","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null},{"api_url":"/api/compute_resources/:compute_resource_id/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null},{"api_url":"/api/compute_attributes/:id","http_method":"GET","short_description":"Show a compute attributes set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_attributes/create","name":"create","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null},{"api_url":"/api/compute_resources/:compute_resource_id/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null},{"api_url":"/api/compute_attributes","http_method":"POST","short_description":"Create a compute attributes set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"compute_profile_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attribute","full_name":"compute_attribute","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"vm_attrs","full_name":"compute_attribute[vm_attrs]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_attributes/update","name":"update","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null},{"api_url":"/api/compute_resources/:compute_resource_id/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null},{"api_url":"/api/compute_profiles/:compute_profile_id/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null},{"api_url":"/api/compute_attributes/:id","http_method":"PUT","short_description":"Update a compute attributes set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile_id","full_name":"compute_profile_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_attribute","full_name":"compute_attribute","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"vm_attrs","full_name":"compute_attribute[vm_attrs]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"puppetclasses":{"doc_url":"../apidoc/v2/puppetclasses","id":"puppetclasses","api_url":"/api","name":"Puppetclasses","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/puppetclasses/index","name":"index","apis":[{"api_url":"/api/puppetclasses","http_method":"GET","short_description":"List all Puppet classes","deprecated":null},{"api_url":"/api/hosts/:host_id/puppetclasses","http_method":"GET","short_description":"List all Puppet classes for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/puppetclasses","http_method":"GET","short_description":"List all Puppet classes for a host group","deprecated":null},{"api_url":"/api/environments/:environment_id/puppetclasses","http_method":"GET","short_description":"List all Puppet classes for an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"config_group","type":"string"},{"name":"environment","type":"string"},{"name":"host","type":"string"},{"name":"hostgroup","type":"string"},{"name":"key","type":"string"},{"name":"location","type":"string"},{"name":"name","type":"string"},{"name":"organization","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppetclasses/show","name":"show","apis":[{"api_url":"/api/puppetclasses/:id","http_method":"GET","short_description":"Show a Puppet class","deprecated":null},{"api_url":"/api/hosts/:host_id/puppetclasses/:id","http_method":"GET","short_description":"Show a Puppet class for host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/puppetclasses/:id","http_method":"GET","short_description":"Show a Puppet class for a host group","deprecated":null},{"api_url":"/api/environments/:environment_id/puppetclasses/:id","http_method":"GET","short_description":"Show a Puppet class for an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppetclasses/create","name":"create","apis":[{"api_url":"/api/puppetclasses","http_method":"POST","short_description":"Create a Puppet class","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass","full_name":"puppetclass","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"puppetclass[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppetclasses/update","name":"update","apis":[{"api_url":"/api/puppetclasses/:id","http_method":"PUT","short_description":"Update a Puppet class","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass","full_name":"puppetclass","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"puppetclass[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppetclasses/destroy","name":"destroy","apis":[{"api_url":"/api/puppetclasses/:id","http_method":"DELETE","short_description":"Delete a Puppet class","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"compute_profiles":{"doc_url":"../apidoc/v2/compute_profiles","id":"compute_profiles","api_url":"/api","name":"Compute profiles","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/compute_profiles/index","name":"index","apis":[{"api_url":"/api/compute_profiles","http_method":"GET","short_description":"List of compute profiles","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_profiles/show","name":"show","apis":[{"api_url":"/api/compute_profiles/:id","http_method":"GET","short_description":"Show a compute profile","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_profiles/create","name":"create","apis":[{"api_url":"/api/compute_profiles","http_method":"POST","short_description":"Create a compute profile","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_profile","full_name":"compute_profile","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"compute_profile[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_profiles/update","name":"update","apis":[{"api_url":"/api/compute_profiles/:id","http_method":"PUT","short_description":"Update a compute profile","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_profile","full_name":"compute_profile","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"compute_profile[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_profiles/destroy","name":"destroy","apis":[{"api_url":"/api/compute_profiles/:id","http_method":"DELETE","short_description":"Delete a compute profile","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"puppet_hosts":{"doc_url":"../apidoc/v2/puppet_hosts","id":"puppet_hosts","api_url":"/api","name":"Puppet hosts","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/puppet_hosts/puppetrun","name":"puppetrun","apis":[{"api_url":"/api/hosts/:id/puppetrun","http_method":"PUT","short_description":"Force a Puppet agent run on the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"compute_resources":{"doc_url":"../apidoc/v2/compute_resources","id":"compute_resources","api_url":"/api","name":"Compute resources","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/compute_resources/index","name":"index","apis":[{"api_url":"/api/compute_resources","http_method":"GET","short_description":"List all compute resources","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"id","type":"integer"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"type","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/show","name":"show","apis":[{"api_url":"/api/compute_resources/:id","http_method":"GET","short_description":"Show a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/create","name":"create","apis":[{"api_url":"/api/compute_resources","http_method":"POST","short_description":"Create a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource","full_name":"compute_resource","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"compute_resource[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"compute_resource[provider]","description":"\n\u003cp\u003eProviders include\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"compute_resource[url]","description":"\n\u003cp\u003eURL for Libvirt, oVirt and OpenStack\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"compute_resource[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"compute_resource[user]","description":"\n\u003cp\u003eUsername for oVirt, EC2, VMware, OpenStack. Access Key for EC2.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"compute_resource[password]","description":"\n\u003cp\u003ePassword for oVirt, EC2, VMware, OpenStack. Secret key for EC2\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"datacenter","full_name":"compute_resource[datacenter]","description":"\n\u003cp\u003efor oVirt, VMware Datacenter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"use_v4","full_name":"compute_resource[use_v4]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"ovirt_quota","full_name":"compute_resource[ovirt_quota]","description":"\n\u003cp\u003efor oVirt only, ID or Name of quota to use\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"public_key","full_name":"compute_resource[public_key]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"region","full_name":"compute_resource[region]","description":"\n\u003cp\u003efor AzureRm eg. \u0026#39;eastus\u0026#39; and for EC2 only. Use\n\u0026#39;us-gov-west-1\u0026#39; for EC2 GovCloud region\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"tenant","full_name":"compute_resource[tenant]","description":"\n\u003cp\u003efor OpenStack and AzureRm only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"compute_resource[domain]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"project_domain_name","full_name":"compute_resource[project_domain_name]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"project_domain_id","full_name":"compute_resource[project_domain_id]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"server","full_name":"compute_resource[server]","description":"\n\u003cp\u003efor VMware\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"set_console_password","full_name":"compute_resource[set_console_password]","description":"\n\u003cp\u003efor Libvirt and VMware only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"display_type","full_name":"compute_resource[display_type]","description":"\n\u003cp\u003efor Libvirt and oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eVNC\u003c/code\u003e, \u003ccode\u003eSPICE\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"keyboard_layout","full_name":"compute_resource[keyboard_layout]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ear\u003c/code\u003e, \u003ccode\u003ede-ch\u003c/code\u003e, \u003ccode\u003ees\u003c/code\u003e, \u003ccode\u003efo\u003c/code\u003e, \u003ccode\u003efr-ca\u003c/code\u003e, \u003ccode\u003ehu\u003c/code\u003e, \u003ccode\u003eja\u003c/code\u003e, \u003ccode\u003emk\u003c/code\u003e, \u003ccode\u003eno\u003c/code\u003e, \u003ccode\u003ept-br\u003c/code\u003e, \u003ccode\u003esv\u003c/code\u003e, \u003ccode\u003eda\u003c/code\u003e, \u003ccode\u003een-gb\u003c/code\u003e, \u003ccode\u003eet\u003c/code\u003e, \u003ccode\u003efr\u003c/code\u003e, \u003ccode\u003efr-ch\u003c/code\u003e, \u003ccode\u003eis\u003c/code\u003e, \u003ccode\u003elt\u003c/code\u003e, \u003ccode\u003enl\u003c/code\u003e, \u003ccode\u003epl\u003c/code\u003e, \u003ccode\u003eru\u003c/code\u003e, \u003ccode\u003eth\u003c/code\u003e, \u003ccode\u003ede\u003c/code\u003e, \u003ccode\u003een-us\u003c/code\u003e, \u003ccode\u003efi\u003c/code\u003e, \u003ccode\u003efr-be\u003c/code\u003e, \u003ccode\u003ehr\u003c/code\u003e, \u003ccode\u003eit\u003c/code\u003e, \u003ccode\u003elv\u003c/code\u003e, \u003ccode\u003enl-be\u003c/code\u003e, \u003ccode\u003ept\u003c/code\u003e, \u003ccode\u003esl\u003c/code\u003e, \u003ccode\u003etr\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"caching_enabled","full_name":"compute_resource[caching_enabled]","description":"\n\u003cp\u003eenable caching, for VMware only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"project","full_name":"compute_resource[project]","description":"\n\u003cp\u003eProject id for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"email","full_name":"compute_resource[email]","description":"\n\u003cp\u003eEmail for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"key_path","full_name":"compute_resource[key_path]","description":"\n\u003cp\u003eCertificate path for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"zone","full_name":"compute_resource[zone]","description":"\n\u003cp\u003efor GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"compute_resource[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"compute_resource[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/update","name":"update","apis":[{"api_url":"/api/compute_resources/:id","http_method":"PUT","short_description":"Update a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource","full_name":"compute_resource","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"compute_resource[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provider","full_name":"compute_resource[provider]","description":"\n\u003cp\u003eProviders include\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"compute_resource[url]","description":"\n\u003cp\u003eURL for Libvirt, oVirt and OpenStack\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"compute_resource[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"compute_resource[user]","description":"\n\u003cp\u003eUsername for oVirt, EC2, VMware, OpenStack. Access Key for EC2.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"compute_resource[password]","description":"\n\u003cp\u003ePassword for oVirt, EC2, VMware, OpenStack. Secret key for EC2\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"datacenter","full_name":"compute_resource[datacenter]","description":"\n\u003cp\u003efor oVirt, VMware Datacenter\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"use_v4","full_name":"compute_resource[use_v4]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"ovirt_quota","full_name":"compute_resource[ovirt_quota]","description":"\n\u003cp\u003efor oVirt only, ID or Name of quota to use\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"public_key","full_name":"compute_resource[public_key]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"region","full_name":"compute_resource[region]","description":"\n\u003cp\u003efor AzureRm eg. \u0026#39;eastus\u0026#39; and for EC2 only. Use\n\u0026#39;us-gov-west-1\u0026#39; for EC2 GovCloud region\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"tenant","full_name":"compute_resource[tenant]","description":"\n\u003cp\u003efor OpenStack and AzureRm only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"compute_resource[domain]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"project_domain_name","full_name":"compute_resource[project_domain_name]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"project_domain_id","full_name":"compute_resource[project_domain_id]","description":"\n\u003cp\u003efor OpenStack (v3) only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"server","full_name":"compute_resource[server]","description":"\n\u003cp\u003efor VMware\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"set_console_password","full_name":"compute_resource[set_console_password]","description":"\n\u003cp\u003efor Libvirt and VMware only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"display_type","full_name":"compute_resource[display_type]","description":"\n\u003cp\u003efor Libvirt and oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eVNC\u003c/code\u003e, \u003ccode\u003eSPICE\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"keyboard_layout","full_name":"compute_resource[keyboard_layout]","description":"\n\u003cp\u003efor oVirt only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ear\u003c/code\u003e, \u003ccode\u003ede-ch\u003c/code\u003e, \u003ccode\u003ees\u003c/code\u003e, \u003ccode\u003efo\u003c/code\u003e, \u003ccode\u003efr-ca\u003c/code\u003e, \u003ccode\u003ehu\u003c/code\u003e, \u003ccode\u003eja\u003c/code\u003e, \u003ccode\u003emk\u003c/code\u003e, \u003ccode\u003eno\u003c/code\u003e, \u003ccode\u003ept-br\u003c/code\u003e, \u003ccode\u003esv\u003c/code\u003e, \u003ccode\u003eda\u003c/code\u003e, \u003ccode\u003een-gb\u003c/code\u003e, \u003ccode\u003eet\u003c/code\u003e, \u003ccode\u003efr\u003c/code\u003e, \u003ccode\u003efr-ch\u003c/code\u003e, \u003ccode\u003eis\u003c/code\u003e, \u003ccode\u003elt\u003c/code\u003e, \u003ccode\u003enl\u003c/code\u003e, \u003ccode\u003epl\u003c/code\u003e, \u003ccode\u003eru\u003c/code\u003e, \u003ccode\u003eth\u003c/code\u003e, \u003ccode\u003ede\u003c/code\u003e, \u003ccode\u003een-us\u003c/code\u003e, \u003ccode\u003efi\u003c/code\u003e, \u003ccode\u003efr-be\u003c/code\u003e, \u003ccode\u003ehr\u003c/code\u003e, \u003ccode\u003eit\u003c/code\u003e, \u003ccode\u003elv\u003c/code\u003e, \u003ccode\u003enl-be\u003c/code\u003e, \u003ccode\u003ept\u003c/code\u003e, \u003ccode\u003esl\u003c/code\u003e, \u003ccode\u003etr\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"caching_enabled","full_name":"compute_resource[caching_enabled]","description":"\n\u003cp\u003eenable caching, for VMware only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"project","full_name":"compute_resource[project]","description":"\n\u003cp\u003eProject id for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"email","full_name":"compute_resource[email]","description":"\n\u003cp\u003eEmail for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"key_path","full_name":"compute_resource[key_path]","description":"\n\u003cp\u003eCertificate path for GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"zone","full_name":"compute_resource[zone]","description":"\n\u003cp\u003efor GCE only\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"compute_resource[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"compute_resource[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/destroy","name":"destroy","apis":[{"api_url":"/api/compute_resources/:id","http_method":"DELETE","short_description":"Delete a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_images","name":"available_images","apis":[{"api_url":"/api/compute_resources/:id/available_images","http_method":"GET","short_description":"List available images for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_clusters","name":"available_clusters","apis":[{"api_url":"/api/compute_resources/:id/available_clusters","http_method":"GET","short_description":"List available clusters for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_flavors","name":"available_flavors","apis":[{"api_url":"/api/compute_resources/:id/available_flavors","http_method":"GET","short_description":"List available flavors for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_folders","name":"available_folders","apis":[{"api_url":"/api/compute_resources/:id/available_folders","http_method":"GET","short_description":"List available folders for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_zones","name":"available_zones","apis":[{"api_url":"/api/compute_resources/:id/available_zones","http_method":"GET","short_description":"List available zone for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_networks","name":"available_networks","apis":[{"api_url":"/api/compute_resources/:id/available_networks","http_method":"GET","short_description":"List available networks for a compute resource","deprecated":null},{"api_url":"/api/compute_resources/:id/available_clusters/:cluster_id/available_networks","http_method":"GET","short_description":"List available networks for a compute resource cluster","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cluster_id","full_name":"cluster_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_resource_pools","name":"available_resource_pools","apis":[{"api_url":"/api/compute_resources/:id/available_clusters/:cluster_id/available_resource_pools","http_method":"GET","short_description":"List resource pools for a compute resource cluster","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cluster_id","full_name":"cluster_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/storage_domain","name":"storage_domain","apis":[{"api_url":"/api/compute_resources/:id/storage_domains/:storage_domain_id","http_method":"GET","short_description":"List attributes for a given storage domain","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"storage_domain_id","full_name":"storage_domain_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_storage_domains","name":"available_storage_domains","apis":[{"api_url":"/api/compute_resources/:id/available_storage_domains","http_method":"GET","short_description":"List storage domains for a compute resource","deprecated":null},{"api_url":"/api/compute_resources/:id/available_storage_domains/:storage_domain","http_method":"GET","short_description":"List attributes for a given storage domain","deprecated":null},{"api_url":"/api/compute_resources/:id/available_clusters/:cluster_id/available_storage_domains","http_method":"GET","short_description":"List storage domains for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cluster_id","full_name":"cluster_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"storage_domain","full_name":"storage_domain","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/storage_pod","name":"storage_pod","apis":[{"api_url":"/api/compute_resources/:id/storage_pods/:storage_pod_id","http_method":"GET","short_description":"List attributes for a given storage pod","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"storage_pod_id","full_name":"storage_pod_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_storage_pods","name":"available_storage_pods","apis":[{"api_url":"/api/compute_resources/:id/available_storage_pods","http_method":"GET","short_description":"List storage pods for a compute resource","deprecated":null},{"api_url":"/api/compute_resources/:id/available_storage_pods/:storage_pod","http_method":"GET","short_description":"List attributes for a given storage pod","deprecated":null},{"api_url":"/api/compute_resources/:id/available_clusters/:cluster_id/available_storage_pods","http_method":"GET","short_description":"List storage pods for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cluster_id","full_name":"cluster_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"storage_pod","full_name":"storage_pod","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_security_groups","name":"available_security_groups","apis":[{"api_url":"/api/compute_resources/:id/available_security_groups","http_method":"GET","short_description":"List available security groups for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/associate","name":"associate","apis":[{"api_url":"/api/compute_resources/:id/associate","http_method":"PUT","short_description":"Associate VMs to Hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/refresh_cache","name":"refresh_cache","apis":[{"api_url":"/api/compute_resources/:id/refresh_cache","http_method":"PUT","short_description":"Refresh Compute Resource Cache","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/available_virtual_machines","name":"available_virtual_machines","apis":[{"api_url":"/api/compute_resources/:id/available_virtual_machines","http_method":"GET","short_description":"List available virtual machines for a compute resource","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/show_vm","name":"show_vm","apis":[{"api_url":"/api/compute_resources/:id/available_virtual_machines/:vm_id","http_method":"GET","short_description":"Show a virtual machine","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vm_id","full_name":"vm_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/power_vm","name":"power_vm","apis":[{"api_url":"/api/compute_resources/:id/available_virtual_machines/:vm_id/power","http_method":"PUT","short_description":"Power a Virtual Machine","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vm_id","full_name":"vm_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/compute_resources/destroy_vm","name":"destroy_vm","apis":[{"api_url":"/api/compute_resources/:id/available_virtual_machines/:vm_id","http_method":"DELETE","short_description":"Delete a Virtual Machine","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vm_id","full_name":"vm_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"config_groups":{"doc_url":"../apidoc/v2/config_groups","id":"config_groups","api_url":"/api","name":"Config groups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/config_groups/index","name":"index","apis":[{"api_url":"/api/config_groups","http_method":"GET","short_description":"List of config groups","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"class","type":"string"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_groups/show","name":"show","apis":[{"api_url":"/api/config_groups/:id","http_method":"GET","short_description":"Show a config group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_groups/create","name":"create","apis":[{"api_url":"/api/config_groups","http_method":"POST","short_description":"Create a config group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"config_group","full_name":"config_group","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"config_group[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"config_group[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_groups/update","name":"update","apis":[{"api_url":"/api/config_groups/:id","http_method":"PUT","short_description":"Update a config group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"config_group","full_name":"config_group","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"config_group[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_ids","full_name":"config_group[puppetclass_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_groups/destroy","name":"destroy","apis":[{"api_url":"/api/config_groups/:id","http_method":"DELETE","short_description":"Delete a config group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"realms":{"doc_url":"../apidoc/v2/realms","id":"realms","api_url":"/api","name":"Realms","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/realms/index","name":"index","apis":[{"api_url":"/api/realms","http_method":"GET","short_description":"List of realms","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"type","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/realms/show","name":"show","apis":[{"api_url":"/api/realms/:id","http_method":"GET","short_description":"Show a realm","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eNumerical ID or realm name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/realms/create","name":"create","apis":[{"api_url":"/api/realms","http_method":"POST","short_description":"Create a realm","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThe \u003cstrong\u003ename\u003c/strong\u003e field is used for the name of the realm.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm","full_name":"realm","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"realm[name]","description":"\n\u003cp\u003eThe realm name, e.g. EXAMPLE.COM\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"realm_proxy_id","full_name":"realm[realm_proxy_id]","description":"\n\u003cp\u003eProxy ID to use within this realm\u003c/p\u003e\n","required":true,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_type","full_name":"realm[realm_type]","description":"\n\u003cp\u003eRealm type, e.g. FreeIPA or Active Directory\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"realm[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"realm[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/realms/update","name":"update","apis":[{"api_url":"/api/realms/:id","http_method":"PUT","short_description":"Update a realm","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"realm","full_name":"realm","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"realm[name]","description":"\n\u003cp\u003eThe realm name, e.g. EXAMPLE.COM\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"realm_proxy_id","full_name":"realm[realm_proxy_id]","description":"\n\u003cp\u003eProxy ID to use within this realm\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm_type","full_name":"realm[realm_type]","description":"\n\u003cp\u003eRealm type, e.g. FreeIPA or Active Directory\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"realm[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"realm[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/realms/destroy","name":"destroy","apis":[{"api_url":"/api/realms/:id","http_method":"DELETE","short_description":"Delete a realm","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"config_reports":{"doc_url":"../apidoc/v2/config_reports","id":"config_reports","api_url":"/api","name":"Config reports","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/config_reports/index","name":"index","apis":[{"api_url":"/api/config_reports","http_method":"GET","short_description":"List all reports","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"applied","type":"integer"},{"name":"environment","type":"string"},{"name":"eventful","values":["true","false"]},{"name":"failed","type":"integer"},{"name":"failed_restarts","type":"integer"},{"name":"host","type":"string"},{"name":"host_id","type":"integer"},{"name":"hostgroup","type":"string"},{"name":"hostgroup_fullname","type":"string"},{"name":"hostgroup_title","type":"string"},{"name":"last_report","type":"datetime"},{"name":"location","type":"string"},{"name":"log","type":"text"},{"name":"organization","type":"string"},{"name":"origin","type":"string"},{"name":"pending","type":"integer"},{"name":"reported","type":"datetime"},{"name":"resource","type":"text"},{"name":"restarted","type":"integer"},{"name":"skipped","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_reports/show","name":"show","apis":[{"api_url":"/api/config_reports/:id","http_method":"GET","short_description":"Show a report","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_reports/create","name":"create","apis":[{"api_url":"/api/config_reports","http_method":"POST","short_description":"Create a report","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"config_report","full_name":"config_report","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"host","full_name":"config_report[host]","description":"\n\u003cp\u003eHostname or certname\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"reported_at","full_name":"config_report[reported_at]","description":"\n\u003cp\u003eUTC time of report\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"status","full_name":"config_report[status]","description":"\n\u003cp\u003eHash of status type totals\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"metrics","full_name":"config_report[metrics]","description":"\n\u003cp\u003eHash of report metrics, can be just {}\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"logs","full_name":"config_report[logs]","description":"\n\u003cp\u003eOptional array of log hashes\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_reports/destroy","name":"destroy","apis":[{"api_url":"/api/config_reports/:id","http_method":"DELETE","short_description":"Delete a report","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/config_reports/last","name":"last","apis":[{"api_url":"/api/hosts/:host_id/config_reports/last","http_method":"GET","short_description":"Show the last report for a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"dashboard":{"doc_url":"../apidoc/v2/dashboard","id":"dashboard","api_url":"/api","name":"Dashboard","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/dashboard/index","name":"index","apis":[{"api_url":"/api/dashboard","http_method":"GET","short_description":"Get dashboard details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"domains":{"doc_url":"../apidoc/v2/domains","id":"domains","api_url":"/api","name":"Domains","short_description":null,"full_description":"\n\u003cp\u003eForeman considers a domain and a DNS zone as the same thing. That is, if\nyou are planning to manage a site where all the machines are of the form\n\u003cem\u003ehostname\u003c/em\u003e.\u003cstrong\u003esomewhere.com\u003c/strong\u003e then the domain is\n\u003cstrong\u003esomewhere.com\u003c/strong\u003e. This allows Foreman to associate a puppet\nvariable with a domain/site and automatically append this variable to all\nexternal node requests made by machines at that site.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/domains/index","name":"index","apis":[{"api_url":"/api/domains","http_method":"GET","short_description":"List of domains","deprecated":null},{"api_url":"/api/subnets/:subnet_id/domains","http_method":"GET","short_description":"List of domains per subnet","deprecated":null},{"api_url":"/api/locations/:location_id/domains","http_method":"GET","short_description":"List of domains per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/domains","http_method":"GET","short_description":"List of domains per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"fullname","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"params","type":"text"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/domains/show","name":"show","apis":[{"api_url":"/api/domains/:id","http_method":"GET","short_description":"Show a domain","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eNumerical ID or domain name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/domains/create","name":"create","apis":[{"api_url":"/api/domains","http_method":"POST","short_description":"Create a domain","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThe \u003cstrong\u003efullname\u003c/strong\u003e field is used for human readability in\nreports and other pages that refer to domains, and also available as an\nexternal node parameter\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"domain","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"domain[name]","description":"\n\u003cp\u003eThe full DNS domain name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fullname","full_name":"domain[fullname]","description":"\n\u003cp\u003eDescription of the domain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_id","full_name":"domain[dns_id]","description":"\n\u003cp\u003eDNS proxy ID to use within this domain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_parameters_attributes","full_name":"domain[domain_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters (name, value)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"domain[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"domain[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/domains/update","name":"update","apis":[{"api_url":"/api/domains/:id","http_method":"PUT","short_description":"Update a domain","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"domain","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"domain[name]","description":"\n\u003cp\u003eThe full DNS domain name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"fullname","full_name":"domain[fullname]","description":"\n\u003cp\u003eDescription of the domain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_id","full_name":"domain[dns_id]","description":"\n\u003cp\u003eDNS proxy ID to use within this domain\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_parameters_attributes","full_name":"domain[domain_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters (name, value)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"domain[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"domain[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/domains/destroy","name":"destroy","apis":[{"api_url":"/api/domains/:id","http_method":"DELETE","short_description":"Delete a domain","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"environments":{"doc_url":"../apidoc/v2/environments","id":"environments","api_url":"/api","name":"Environments","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/environments/import_puppetclasses","name":"import_puppetclasses","apis":[{"api_url":"/api/smart_proxies/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy","deprecated":null},{"api_url":"/api/smart_proxies/:smart_proxy_id/environments/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy for an environment","deprecated":null},{"api_url":"/api/environments/:environment_id/smart_proxies/:id/import_puppetclasses","http_method":"POST","short_description":"Import puppet classes from puppet proxy for an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_id","full_name":"smart_proxy_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dryrun","full_name":"dryrun","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"except","full_name":"except","description":"\n\u003cp\u003eOptional comma-delimited string containing either \u0026#39;new\u0026#39;,\n\u0026#39;updated\u0026#39;, or \u0026#39;obsolete\u0026#39; that is used to limit the imported\nPuppet classes\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/index","name":"index","apis":[{"api_url":"/api/environments","http_method":"GET","short_description":"List all environments","deprecated":null},{"api_url":"/api/puppetclasses/:puppetclass_id/environments","http_method":"GET","short_description":"List environments of Puppet class","deprecated":null},{"api_url":"/api/locations/:location_id/environments","http_method":"GET","short_description":"List environments per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/environments","http_method":"GET","short_description":"List environments per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"puppetclass_id","full_name":"puppetclass_id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"content_view","type":"string"},{"name":"lifecycle_environment","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/show","name":"show","apis":[{"api_url":"/api/environments/:id","http_method":"GET","short_description":"Show an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/create","name":"create","apis":[{"api_url":"/api/environments","http_method":"POST","short_description":"Create an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment","full_name":"environment","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"environment[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"environment[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"environment[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/update","name":"update","apis":[{"api_url":"/api/environments/:id","http_method":"PUT","short_description":"Update an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment","full_name":"environment","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"environment[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"environment[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"environment[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/environments/destroy","name":"destroy","apis":[{"api_url":"/api/environments/:id","http_method":"DELETE","short_description":"Delete an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"report_templates":{"doc_url":"../apidoc/v2/report_templates","id":"report_templates","api_url":"/api","name":"Report templates","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/report_templates/index","name":"index","apis":[{"api_url":"/api/report_templates","http_method":"GET","short_description":"List all report templates","deprecated":null},{"api_url":"/api/locations/:location_id/report_templates","http_method":"GET","short_description":"List all report templates per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/report_templates","http_method":"GET","short_description":"List all report templates per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"default","values":["true","false"]},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"locked","values":["true","false"]},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"snippet","values":["true","false"]},{"name":"template","type":"text"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/show","name":"show","apis":[{"api_url":"/api/report_templates/:id","http_method":"GET","short_description":"Show a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/create","name":"create","apis":[{"api_url":"/api/report_templates","http_method":"POST","short_description":"Create a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"report_template","full_name":"report_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"report_template[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"report_template[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"report_template[template]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"report_template[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"report_template[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"report_template[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"report_template[default]","description":"\n\u003cp\u003eWhether or not the template is added automatically to new organizations and\nlocations\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"report_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"report_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/import","name":"import","apis":[{"api_url":"/api/report_templates/import","http_method":"POST","short_description":"Import a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"report_template","full_name":"report_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"report_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"report_template[template]","description":"\n\u003cp\u003etemplate contents including metadata\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"report_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"report_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"options","full_name":"options","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"force","full_name":"options[force]","description":"\n\u003cp\u003euse if you want update locked templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"associate","full_name":"options[associate]","description":"\n\u003cp\u003edetermines when the template should associate objects based on metadata,\nnew means only when new template is being created, always means both for\nnew and existing template which is only being updated, never ignores\nmetadata\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003enew\u003c/code\u003e, \u003ccode\u003ealways\u003c/code\u003e, \u003ccode\u003enever\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"lock","full_name":"options[lock]","description":"\n\u003cp\u003elock imported templates (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"options[default]","description":"\n\u003cp\u003emakes the template default meaning it will be automatically associated with\nnewly created organizations and locations (false by default)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/revision","name":"revision","apis":[{"api_url":"/api/report_templates/revision","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003etemplate version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/update","name":"update","apis":[{"api_url":"/api/report_templates/:id","http_method":"PUT","short_description":"Update a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"report_template","full_name":"report_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"report_template[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"report_template[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template","full_name":"report_template[template]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"snippet","full_name":"report_template[snippet]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"audit_comment","full_name":"report_template[audit_comment]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"locked","full_name":"report_template[locked]","description":"\n\u003cp\u003eWhether or not the template is locked for editing\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"default","full_name":"report_template[default]","description":"\n\u003cp\u003eWhether or not the template is added automatically to new organizations and\nlocations\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"report_template[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"report_template[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/destroy","name":"destroy","apis":[{"api_url":"/api/report_templates/:id","http_method":"DELETE","short_description":"Delete a report template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/clone","name":"clone","apis":[{"api_url":"/api/report_templates/:id/clone","http_method":"POST","short_description":"Clone a template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"report_template","full_name":"report_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"report_template[name]","description":"\n\u003cp\u003etemplate name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/export","name":"export","apis":[{"api_url":"/api/report_templates/:id/export","http_method":"GET","short_description":"Export a report template to ERB","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/generate","name":"generate","apis":[{"api_url":"/api/report_templates/:id/generate","http_method":"POST","short_description":"Generate report from a template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"input_values","full_name":"input_values","description":"\n\u003cp\u003eHash of input values where key is the name of input, value is the value for\nthis input\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"gzip","full_name":"gzip","description":"\n\u003cp\u003eCompress the report uzing gzip\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"report_format","full_name":"report_format","description":"\n\u003cp\u003eReport format, defaults to \u0026#39;csv\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ecsv\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ehtml\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/schedule_report","name":"schedule_report","apis":[{"api_url":"/api/report_templates/:id/schedule_report","http_method":"POST","short_description":"Schedule generating of a report","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eThe reports are generated asynchronously. If mail_to is not given, action\nreturns an url to get resulting report from (see\n\u003cstrong\u003ereport_data\u003c/strong\u003e).\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"input_values","full_name":"input_values","description":"\n\u003cp\u003eHash of input values where key is the name of input, value is the value for\nthis input\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"gzip","full_name":"gzip","description":"\n\u003cp\u003eCompress the report using gzip\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"mail_to","full_name":"mail_to","description":"\n\u003cp\u003eIf set, scheduled report will be delivered via e-mail. Use \u0026#39;,\u0026#39; to\nseparate multiple email addresses.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"generate_at","full_name":"generate_at","description":"\n\u003cp\u003eUTC time to generate report at\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"report_format","full_name":"report_format","description":"\n\u003cp\u003eReport format, defaults to \u0026#39;csv\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ecsv\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ehtml\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[{"code":200,"description":"a successful response","is_array":false,"returns_object":[{"name":"job_id","full_name":"job_id","description":"\n\u003cp\u003eAn ID of job, which generates report. To be used with report_data API\nendpoint for report data retrieval.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true},{"name":"data_url","full_name":"data_url","description":"\n\u003cp\u003eAn url to get resulting report from. This is not available when report is\ndelivered via e-mail.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true}],"additional_properties":false}],"examples":["POST /api/report_templates/:id/schedule_report/\n200\n{\n \"job_id\": UNIQUE-REPORT-GENERATING-JOB-UUID\n \"data_url\": \"/api/v2/report_templates/1/report_data/UNIQUE-REPORT-GENERATING-JOB-UUID\"\n}\n"],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/report_templates/report_data","name":"report_data","apis":[{"api_url":"/api/report_templates/:id/report_data/:job_id","http_method":"GET","short_description":"Downloads a generated report","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eReturns the report data as a raw response. In case the report hasn\u0026#39;t\nbeen generated yet, it will return an empty response with http status 204 -\nNoContent.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"job_id","full_name":"job_id","description":"\n\u003cp\u003eID assigned to generating job by the schedule command\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"external_usergroups":{"doc_url":"../apidoc/v2/external_usergroups","id":"external_usergroups","api_url":"/api","name":"External usergroups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/external_usergroups/index","name":"index","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups","http_method":"GET","short_description":"List all external user groups for user group","deprecated":null},{"api_url":"/api/auth_source_ldaps/:auth_source_ldap_id/external_usergroups","http_method":"GET","short_description":"List all external user groups for LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/show","name":"show","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups/:id","http_method":"GET","short_description":"Show an external user group for user group","deprecated":null},{"api_url":"/api/auth_source_ldaps/:auth_source_ldap_id/external_usergroups/:id","http_method":"GET","short_description":"Show an external user group for LDAP authentication source","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name of external user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/create","name":"create","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups","http_method":"POST","short_description":"Create an external user group linked to a user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"external_usergroup","full_name":"external_usergroup","description":"\n\u003cp\u003eExternal user group information\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"external_usergroup[name]","description":"\n\u003cp\u003eExternal user group name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auth_source_id","full_name":"external_usergroup[auth_source_id]","description":"\n\u003cp\u003eID of linked authentication source\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/update","name":"update","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups/:id","http_method":"PUT","short_description":"Update external user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name of external user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"external_usergroup","full_name":"external_usergroup","description":"\n\u003cp\u003eExternal user group information\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"external_usergroup[name]","description":"\n\u003cp\u003eExternal user group name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auth_source_id","full_name":"external_usergroup[auth_source_id]","description":"\n\u003cp\u003eID of linked authentication source\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/refresh","name":"refresh","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups/:id/refresh","http_method":"PUT","short_description":"Refresh external user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name of external user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/external_usergroups/destroy","name":"destroy","apis":[{"api_url":"/api/usergroups/:usergroup_id/external_usergroups/:id","http_method":"DELETE","short_description":"Delete an external user group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup_id","full_name":"usergroup_id","description":"\n\u003cp\u003eID or name of user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID or name external user group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"fact_values":{"doc_url":"../apidoc/v2/fact_values","id":"fact_values","api_url":"/api","name":"Fact values","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/fact_values/index","name":"index","apis":[{"api_url":"/api/fact_values","http_method":"GET","short_description":"List all fact values","deprecated":null},{"api_url":"/api/hosts/:host_id/facts","http_method":"GET","short_description":"List all fact values of a given host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"fact","type":"string"},{"name":"fact_short_name","type":"string"},{"name":"facts","type":"string"},{"name":"host","type":"string"},{"name":"host.hostgroup","type":"string"},{"name":"host_id","type":"integer"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"origin","type":"string"},{"name":"reported_at","type":"datetime"},{"name":"short_name","type":"string"},{"name":"type","type":"string"},{"name":"value","type":"string"}]},"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"filters":{"doc_url":"../apidoc/v2/filters","id":"filters","api_url":"/api","name":"Filters","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/filters/index","name":"index","apis":[{"api_url":"/api/filters","http_method":"GET","short_description":"List all filters","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"limited","values":["true","false"]},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"override","values":["true","false"]},{"name":"permission","type":"string"},{"name":"resource","type":"string"},{"name":"role","type":"string"},{"name":"role_id","type":"integer"},{"name":"search","type":"text"},{"name":"unlimited","values":["true","false"]}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/filters/show","name":"show","apis":[{"api_url":"/api/filters/:id","http_method":"GET","short_description":"Show a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/filters/create","name":"create","apis":[{"api_url":"/api/filters","http_method":"POST","short_description":"Create a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"filter","full_name":"filter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"role_id","full_name":"filter[role_id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"filter[search]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override","full_name":"filter[override]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"permission_ids","full_name":"filter[permission_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"filter[organization_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"filter[location_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/filters/update","name":"update","apis":[{"api_url":"/api/filters/:id","http_method":"PUT","short_description":"Update a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"filter","full_name":"filter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"role_id","full_name":"filter[role_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"filter[search]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override","full_name":"filter[override]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"permission_ids","full_name":"filter[permission_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"filter[organization_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"filter[location_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/filters/destroy","name":"destroy","apis":[{"api_url":"/api/filters/:id","http_method":"DELETE","short_description":"Delete a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"home":{"doc_url":"../apidoc/v2/home","id":"home","api_url":"/api","name":"Home","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/home/index","name":"index","apis":[{"api_url":"/api","http_method":"GET","short_description":"Show available API links","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/home/status","name":"status","apis":[{"api_url":"/api/status","http_method":"GET","short_description":"Show status","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"host_classes":{"doc_url":"../apidoc/v2/host_classes","id":"host_classes","api_url":"/api","name":"Host classes","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_classes/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/puppetclass_ids","http_method":"GET","short_description":"List all Puppet class IDs for host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_classes/create","name":"create","apis":[{"api_url":"/api/hosts/:host_id/puppetclass_ids","http_method":"POST","short_description":"Add a Puppet class to host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_id","full_name":"puppetclass_id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_classes/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:host_id/puppetclass_ids/:id","http_method":"DELETE","short_description":"Remove a Puppet class from host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"roles":{"doc_url":"../apidoc/v2/roles","id":"roles","api_url":"/api","name":"Roles","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/roles/index","name":"index","apis":[{"api_url":"/api/roles","http_method":"GET","short_description":"List all roles","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"builtin","values":["true","false"]},{"name":"description","type":"text"},{"name":"name","type":"string"},{"name":"permission","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/show","name":"show","apis":[{"api_url":"/api/roles/:id","http_method":"GET","short_description":"Show a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/create","name":"create","apis":[{"api_url":"/api/roles","http_method":"POST","short_description":"Create a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"role[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"role[description]","description":"\n\u003cp\u003eRole description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"role[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"role[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/update","name":"update","apis":[{"api_url":"/api/roles/:id","http_method":"PUT","short_description":"Update a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"role[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"role[description]","description":"\n\u003cp\u003eRole description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"role[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"role[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/destroy","name":"destroy","apis":[{"api_url":"/api/roles/:id","http_method":"DELETE","short_description":"Delete a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/roles/clone","name":"clone","apis":[{"api_url":"/api/roles/:id/clone","http_method":"POST","short_description":"Clone a role","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"role[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"role[description]","description":"\n\u003cp\u003eRole description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"role[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"role[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"hostgroup_classes":{"doc_url":"../apidoc/v2/hostgroup_classes","id":"hostgroup_classes","api_url":"/api","name":"Hostgroup classes","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/hostgroup_classes/index","name":"index","apis":[{"api_url":"/api/hostgroups/:hostgroup_id/puppetclass_ids","http_method":"GET","short_description":"List all Puppet class IDs for host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroup_classes/create","name":"create","apis":[{"api_url":"/api/hostgroups/:hostgroup_id/puppetclass_ids","http_method":"POST","short_description":"Add a Puppet class to host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_id","full_name":"puppetclass_id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hostgroup_classes/destroy","name":"destroy","apis":[{"api_url":"/api/hostgroups/:hostgroup_id/puppetclass_ids/:id","http_method":"DELETE","short_description":"Remove a Puppet class from host group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of Puppet class\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"http_proxies":{"doc_url":"../apidoc/v2/http_proxies","id":"http_proxies","api_url":"/api","name":"Http proxies","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/http_proxies/index","name":"index","apis":[{"api_url":"/api/http_proxies","http_method":"GET","short_description":"List of HTTP Proxies","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"url","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/http_proxies/show","name":"show","apis":[{"api_url":"/api/http_proxies/:id","http_method":"GET","short_description":"Show an HTTP Proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eIdentifier of the HTTP Proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/http_proxies/create","name":"create","apis":[{"api_url":"/api/http_proxies","http_method":"POST","short_description":"Create an HTTP Proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"http_proxy","full_name":"http_proxy","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"http_proxy[name]","description":"\n\u003cp\u003eThe HTTP Proxy name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"http_proxy[url]","description":"\n\u003cp\u003eURL of the HTTP Proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"http_proxy[username]","description":"\n\u003cp\u003eUsername used to authenticate with the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"http_proxy[password]","description":"\n\u003cp\u003ePassword used to authenticate with the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"http_proxy[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"http_proxy[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/http_proxies/update","name":"update","apis":[{"api_url":"/api/http_proxies/:id","http_method":"PUT","short_description":"Update an HTTP Proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy","full_name":"http_proxy","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"http_proxy[name]","description":"\n\u003cp\u003eThe HTTP Proxy name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"http_proxy[url]","description":"\n\u003cp\u003eURL of the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"http_proxy[username]","description":"\n\u003cp\u003eUsername used to authenticate with the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"http_proxy[password]","description":"\n\u003cp\u003ePassword used to authenticate with the HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"http_proxy[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"http_proxy[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/http_proxies/destroy","name":"destroy","apis":[{"api_url":"/api/http_proxies/:id","http_method":"DELETE","short_description":"Delete an HTTP Proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"images":{"doc_url":"../apidoc/v2/images","id":"images","api_url":"/api","name":"Images","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/images/index","name":"index","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images","http_method":"GET","short_description":"List all images for a compute resource","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/images","http_method":"GET","short_description":"List all images for operating system","deprecated":null},{"api_url":"/api/architectures/:architecture_id/images","http_method":"GET","short_description":"List all images for architecture","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"\n\u003cp\u003eID of compute resource\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"architecture_id","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"architecture","type":"integer"},{"name":"compute_resource","type":"string"},{"name":"name","type":"string"},{"name":"operatingsystem","type":"integer"},{"name":"user_data","values":["true","false"]},{"name":"username","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/images/show","name":"show","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images/:id","http_method":"GET","short_description":"Show an image","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/images/:id","http_method":"GET","short_description":"Show an image","deprecated":null},{"api_url":"/api/architectures/:architecture_id/images/:id","http_method":"GET","short_description":"Show an image","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"\n\u003cp\u003eID of compute resource\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"architecture_id","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/images/create","name":"create","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images","http_method":"POST","short_description":"Create an image","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"image","full_name":"image","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"image[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"image[username]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"image[uuid]","description":"\n\u003cp\u003eTemplate ID in the compute resource\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"image[password]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"image[compute_resource_id]","description":"\n\u003cp\u003eID of compute resource\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"image[architecture_id]","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"image[operatingsystem_id]","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_data","full_name":"image[user_data]","description":"\n\u003cp\u003eWhether or not the image supports user data\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/images/update","name":"update","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images/:id","http_method":"PUT","short_description":"Update an image","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"image","full_name":"image","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"image[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"username","full_name":"image[username]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"image[uuid]","description":"\n\u003cp\u003eTemplate ID in the compute resource\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"password","full_name":"image[password]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"image[compute_resource_id]","description":"\n\u003cp\u003eID of compute resource\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"image[architecture_id]","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"image[operatingsystem_id]","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_data","full_name":"image[user_data]","description":"\n\u003cp\u003eWhether or not the image supports user data\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/images/destroy","name":"destroy","apis":[{"api_url":"/api/compute_resources/:compute_resource_id/images/:id","http_method":"DELETE","short_description":"Delete an image","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_id","full_name":"compute_resource_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"locations":{"doc_url":"../apidoc/v2/locations","id":"locations","api_url":"/api","name":"Locations","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/locations/index","name":"index","apis":[{"api_url":"/api/locations","http_method":"GET","short_description":"List all locations","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"id","type":"integer"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"title","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/locations/show","name":"show","apis":[{"api_url":"/api/locations/:id","http_method":"GET","short_description":"Show a location","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/locations/create","name":"create","apis":[{"api_url":"/api/locations","http_method":"POST","short_description":"Create a location","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"location","full_name":"location","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"location[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"location[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"location[user_ids]","description":"\n\u003cp\u003eUser IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_ids","full_name":"location[smart_proxy_ids]","description":"\n\u003cp\u003eSmart proxy IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_ids","full_name":"location[compute_resource_ids]","description":"\n\u003cp\u003eCompute resource IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"location[medium_ids]","description":"\n\u003cp\u003eMedium IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"location[ptable_ids]","description":"\n\u003cp\u003ePartition template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"location[provisioning_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"location[domain_ids]","description":"\n\u003cp\u003eDomain IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"realm_ids","full_name":"location[realm_ids]","description":"\n\u003cp\u003eRealm IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"location[hostgroup_ids]","description":"\n\u003cp\u003eHost group IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"location[environment_ids]","description":"\n\u003cp\u003eEnvironment IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"subnet_ids","full_name":"location[subnet_ids]","description":"\n\u003cp\u003eSubnet IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"parent_id","full_name":"location[parent_id]","description":"\n\u003cp\u003eParent ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ignore_types","full_name":"location[ignore_types]","description":"\n\u003cp\u003eList of resources types that will be automatically associated\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"location[organization_ids]","description":"\n\u003cp\u003eAssociated organization IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/locations/update","name":"update","apis":[{"api_url":"/api/locations/:id","http_method":"PUT","short_description":"Update a location","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"location","full_name":"location","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"location[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"location[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"location[user_ids]","description":"\n\u003cp\u003eUser IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_ids","full_name":"location[smart_proxy_ids]","description":"\n\u003cp\u003eSmart proxy IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_ids","full_name":"location[compute_resource_ids]","description":"\n\u003cp\u003eCompute resource IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"location[medium_ids]","description":"\n\u003cp\u003eMedium IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"location[ptable_ids]","description":"\n\u003cp\u003ePartition template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"location[provisioning_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"location[domain_ids]","description":"\n\u003cp\u003eDomain IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"realm_ids","full_name":"location[realm_ids]","description":"\n\u003cp\u003eRealm IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"location[hostgroup_ids]","description":"\n\u003cp\u003eHost group IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"location[environment_ids]","description":"\n\u003cp\u003eEnvironment IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"subnet_ids","full_name":"location[subnet_ids]","description":"\n\u003cp\u003eSubnet IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"parent_id","full_name":"location[parent_id]","description":"\n\u003cp\u003eParent ID\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ignore_types","full_name":"location[ignore_types]","description":"\n\u003cp\u003eList of resources types that will be automatically associated\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"location[organization_ids]","description":"\n\u003cp\u003eAssociated organization IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/locations/destroy","name":"destroy","apis":[{"api_url":"/api/locations/:id","http_method":"DELETE","short_description":"Delete a location","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"settings":{"doc_url":"../apidoc/v2/settings","id":"settings","api_url":"/api","name":"Settings","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/settings/index","name":"index","apis":[{"api_url":"/api/settings","http_method":"GET","short_description":"List all settings","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/settings/show","name":"show","apis":[{"api_url":"/api/settings/:id","http_method":"GET","short_description":"Show a setting","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/settings/update","name":"update","apis":[{"api_url":"/api/settings/:id","http_method":"PUT","short_description":"Update a setting","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"setting","full_name":"setting","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"value","full_name":"setting[value]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"mail_notifications":{"doc_url":"../apidoc/v2/mail_notifications","id":"mail_notifications","api_url":"/api","name":"Mail notifications","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/mail_notifications/index","name":"index","apis":[{"api_url":"/api/mail_notifications","http_method":"GET","short_description":"List of email notifications","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"name","type":"string"},{"name":"user","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/mail_notifications/show","name":"show","apis":[{"api_url":"/api/mail_notifications/:id","http_method":"GET","short_description":"Show an email notification","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eNumerical ID or email notification name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/mail_notifications/create","name":"create","apis":[{"api_url":"/api/users/:user_id/mail_notifications","http_method":"POST","short_description":"Add an email notification for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mail_notification_id","full_name":"mail_notification_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"interval","full_name":"interval","description":"\n\u003cp\u003eMail notification interval option, e.g. Daily, Weekly or Monthly. Required\nfor summary notification\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subscription","full_name":"subscription","description":"\n\u003cp\u003eMail notification subscription option, e.g. Subscribe, Subscribe to my\nhosts or Subscribe to all hosts. Required for host built and config error\nstate\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mail_query","full_name":"mail_query","description":"\n\u003cp\u003eRelevant only for audit summary notification\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/mail_notifications/update","name":"update","apis":[{"api_url":"/api/users/:user_id/mail_notifications/:mail_notification_id","http_method":"PUT","short_description":"Update an email notification for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mail_notification_id","full_name":"mail_notification_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"interval","full_name":"interval","description":"\n\u003cp\u003eMail notification interval option, e.g. Daily, Weekly or Monthly. Required\nfor summary notification\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subscription","full_name":"subscription","description":"\n\u003cp\u003eMail notification subscription option, e.g. Subscribe, Subscribe to my\nhosts or Subscribe to all hosts. Required for host built and config error\nstate\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mail_query","full_name":"mail_query","description":"\n\u003cp\u003eRelevant only for audit summary notification\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/mail_notifications/destroy","name":"destroy","apis":[{"api_url":"/api/users/:user_id/mail_notifications/:mail_notification_id","http_method":"DELETE","short_description":"Remove an email notification for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mail_notification_id","full_name":"mail_notification_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/mail_notifications/user_mail_notifications","name":"user_mail_notifications","apis":[{"api_url":"/api/users/:user_id/mail_notifications","http_method":"GET","short_description":"List all email notifications for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"media":{"doc_url":"../apidoc/v2/media","id":"media","api_url":"/api","name":"Media","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/media/index","name":"index","apis":[{"api_url":"/api/media","http_method":"GET","short_description":"List all installation media","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/media","http_method":"GET","short_description":"List all media for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/media","http_method":"GET","short_description":"List all media per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/media","http_method":"GET","short_description":"List all media per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"family","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"name","type":"string"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"path","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/media/show","name":"show","apis":[{"api_url":"/api/media/:id","http_method":"GET","short_description":"Show a medium","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/media/create","name":"create","apis":[{"api_url":"/api/media","http_method":"POST","short_description":"Create a medium","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"medium[name]","description":"\n\u003cp\u003eName of media\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"path","full_name":"medium[path]","description":"\n\u003cp\u003eThe path to the medium, can be a URL or a valid NFS server (exclusive of\nthe architecture).\u003c/p\u003e\n\n\u003cp\u003efor example \u003ca\nhref=\"http://mirror.centos.org/centos/$version/os/$arch\"\u003emirror.centos.org/centos/$version/os/$arch\u003c/a\u003e\nwhere $arch will be substituted for the host\u0026#39;s actual OS architecture\nand $version, $major and $minor will be substituted for the version of the\noperating system.\u003c/p\u003e\n\n\u003cp\u003eSolaris and Debian media may also use $release.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_family","full_name":"medium[os_family]","description":"\n\u003cp\u003eOperating system family, available values: AIX, Altlinux, Archlinux,\nCoreos, Debian, Freebsd, Gentoo, Junos, NXOS, Rancheros, Redhat, Solaris,\nSuse, VRP, Windows, Xenserver\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"medium[operatingsystem_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"medium[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"medium[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/media/update","name":"update","apis":[{"api_url":"/api/media/:id","http_method":"PUT","short_description":"Update a medium","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"medium[name]","description":"\n\u003cp\u003eName of media\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"path","full_name":"medium[path]","description":"\n\u003cp\u003eThe path to the medium, can be a URL or a valid NFS server (exclusive of\nthe architecture).\u003c/p\u003e\n\n\u003cp\u003efor example \u003ca\nhref=\"http://mirror.centos.org/centos/$version/os/$arch\"\u003emirror.centos.org/centos/$version/os/$arch\u003c/a\u003e\nwhere $arch will be substituted for the host\u0026#39;s actual OS architecture\nand $version, $major and $minor will be substituted for the version of the\noperating system.\u003c/p\u003e\n\n\u003cp\u003eSolaris and Debian media may also use $release.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_family","full_name":"medium[os_family]","description":"\n\u003cp\u003eOperating system family, available values: AIX, Altlinux, Archlinux,\nCoreos, Debian, Freebsd, Gentoo, Junos, NXOS, Rancheros, Redhat, Solaris,\nSuse, VRP, Windows, Xenserver\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_ids","full_name":"medium[operatingsystem_ids]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"medium[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"medium[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/media/destroy","name":"destroy","apis":[{"api_url":"/api/media/:id","http_method":"DELETE","short_description":"Delete a medium","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"models":{"doc_url":"../apidoc/v2/models","id":"models","api_url":"/api","name":"Models","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/models/index","name":"index","apis":[{"api_url":"/api/models","http_method":"GET","short_description":"List all hardware models","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"hardware_model","type":"string"},{"name":"info","type":"text"},{"name":"name","type":"string"},{"name":"vendor_class","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/models/show","name":"show","apis":[{"api_url":"/api/models/:id","http_method":"GET","short_description":"Show a hardware model","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/models/create","name":"create","apis":[{"api_url":"/api/models","http_method":"POST","short_description":"Create a hardware model","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"model","full_name":"model","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"model[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"info","full_name":"model[info]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vendor_class","full_name":"model[vendor_class]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hardware_model","full_name":"model[hardware_model]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/models/update","name":"update","apis":[{"api_url":"/api/models/:id","http_method":"PUT","short_description":"Update a hardware model","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"model","full_name":"model","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"model[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"info","full_name":"model[info]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vendor_class","full_name":"model[vendor_class]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hardware_model","full_name":"model[hardware_model]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/models/destroy","name":"destroy","apis":[{"api_url":"/api/models/:id","http_method":"DELETE","short_description":"Delete a hardware model","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"table_preferences":{"doc_url":"../apidoc/v2/table_preferences","id":"table_preferences","api_url":"/api","name":"Table preferences","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/table_preferences/index","name":"index","apis":[{"api_url":"/api/users/:user_id/table_preferences","http_method":"GET","short_description":"List of table preferences for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/table_preferences/show","name":"show","apis":[{"api_url":"/api/users/:user_id/table_preferences/:name","http_method":"GET","short_description":"Table preference details of a given table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/table_preferences/create","name":"create","apis":[{"api_url":"/api/users/:user_id/table_preferences","http_method":"POST","short_description":"Creates a table preference for a given table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"table_preferences","full_name":"table_preferences","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"table_preferences[name]","description":"\n\u003cp\u003eName of the table\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"columns","full_name":"table_preferences[columns]","description":"\n\u003cp\u003eList of user selected columns\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/table_preferences/update","name":"update","apis":[{"api_url":"/api/users/:user_id/table_preferences/:name","http_method":"PUT","short_description":"Updates a table preference for a given table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"table_preferences","full_name":"table_preferences","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"table_preferences[name]","description":"\n\u003cp\u003eName of the table\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"columns","full_name":"table_preferences[columns]","description":"\n\u003cp\u003eList of user selected columns\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/table_preferences/destroy","name":"destroy","apis":[{"api_url":"/api/users/:user_id/table_preferences/:name","http_method":"DELETE","short_description":"Delete a table preference for a given table","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the table\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"operatingsystems":{"doc_url":"../apidoc/v2/operatingsystems","id":"operatingsystems","api_url":"/api","name":"Operating systems","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/operatingsystems/index","name":"index","apis":[{"api_url":"/api/operatingsystems","http_method":"GET","short_description":"List all operating systems","deprecated":null},{"api_url":"/api/architectures/:architecture_id/operatingsystems","http_method":"GET","short_description":"List all operating systems for nested architecture","deprecated":null},{"api_url":"/api/media/:medium_id/operatingsystems","http_method":"GET","short_description":"List all operating systems for nested medium","deprecated":null},{"api_url":"/api/ptables/:ptable_id/operatingsystems","http_method":"GET","short_description":"List all operating systems for nested partition table","deprecated":null},{"api_url":"/api/provisioning_templates/:provisioning_template_id/operatingsystems","http_method":"GET","short_description":"List all operating systems for nested provisioning template","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture_id","full_name":"architecture_id","description":"\n\u003cp\u003eID of architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium_id","full_name":"medium_id","description":"\n\u003cp\u003eID of medium\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable_id","full_name":"ptable_id","description":"\n\u003cp\u003eID of partition table\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_parameters_attributes","full_name":"os_parameters_attributes","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"os_parameters_attributes[name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"os_parameters_attributes[value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"architecture","type":"string"},{"name":"description","type":"string"},{"name":"family","type":"string"},{"name":"major","type":"string"},{"name":"medium","type":"string"},{"name":"minor","type":"string"},{"name":"name","type":"string"},{"name":"params","type":"text"},{"name":"template","type":"string"},{"name":"title","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/show","name":"show","apis":[{"api_url":"/api/operatingsystems/:id","http_method":"GET","short_description":"Show an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/create","name":"create","apis":[{"api_url":"/api/operatingsystems","http_method":"POST","short_description":"Create an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem","full_name":"operatingsystem","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"operatingsystem[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must match regular expression \u003ccode\u003e/\\A(\\S+)\\Z/\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"major","full_name":"operatingsystem[major]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"minor","full_name":"operatingsystem[minor]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"operatingsystem[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"family","full_name":"operatingsystem[family]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"release_name","full_name":"operatingsystem[release_name]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_parameters_attributes","full_name":"operatingsystem[os_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"operatingsystem[os_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"operatingsystem[os_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"password_hash","full_name":"operatingsystem[password_hash]","description":"\n\u003cp\u003eRoot password hash function to use\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eSHA256\u003c/code\u003e, \u003ccode\u003eSHA512\u003c/code\u003e, \u003ccode\u003eBase64\u003c/code\u003e, \u003ccode\u003eBase64-Windows\u003c/code\u003e, \u003ccode\u003eMD5\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_ids","full_name":"operatingsystem[architecture_ids]","description":"\n\u003cp\u003eIDs of associated architectures\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"operatingsystem[provisioning_template_ids]","description":"\n\u003cp\u003eIDs of associated provisioning templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"operatingsystem[medium_ids]","description":"\n\u003cp\u003eIDs of associated media\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"operatingsystem[ptable_ids]","description":"\n\u003cp\u003eIDs of associated partition tables\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/update","name":"update","apis":[{"api_url":"/api/operatingsystems/:id","http_method":"PUT","short_description":"Update an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem","full_name":"operatingsystem","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"operatingsystem[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must match regular expression \u003ccode\u003e/\\A(\\S+)\\Z/\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"major","full_name":"operatingsystem[major]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"minor","full_name":"operatingsystem[minor]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"operatingsystem[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"family","full_name":"operatingsystem[family]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"release_name","full_name":"operatingsystem[release_name]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_parameters_attributes","full_name":"operatingsystem[os_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"operatingsystem[os_parameters_attributes][name]","description":"\n\u003cp\u003eName of the parameter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"operatingsystem[os_parameters_attributes][value]","description":"\n\u003cp\u003eParameter value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"password_hash","full_name":"operatingsystem[password_hash]","description":"\n\u003cp\u003eRoot password hash function to use\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eSHA256\u003c/code\u003e, \u003ccode\u003eSHA512\u003c/code\u003e, \u003ccode\u003eBase64\u003c/code\u003e, \u003ccode\u003eBase64-Windows\u003c/code\u003e, \u003ccode\u003eMD5\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture_ids","full_name":"operatingsystem[architecture_ids]","description":"\n\u003cp\u003eIDs of associated architectures\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"operatingsystem[provisioning_template_ids]","description":"\n\u003cp\u003eIDs of associated provisioning templates\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"operatingsystem[medium_ids]","description":"\n\u003cp\u003eIDs of associated media\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"operatingsystem[ptable_ids]","description":"\n\u003cp\u003eIDs of associated partition tables\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/destroy","name":"destroy","apis":[{"api_url":"/api/operatingsystems/:id","http_method":"DELETE","short_description":"Delete an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/operatingsystems/bootfiles","name":"bootfiles","apis":[{"api_url":"/api/operatingsystems/:id/bootfiles","http_method":"GET","short_description":"List boot files for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"organizations":{"doc_url":"../apidoc/v2/organizations","id":"organizations","api_url":"/api","name":"Organizations","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/organizations/index","name":"index","apis":[{"api_url":"/katello/api/organizations","http_method":"GET","short_description":"List all organizations","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"id","type":"integer"},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"},{"name":"title","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/show","name":"show","apis":[{"api_url":"/katello/api/organizations/:id","http_method":"GET","short_description":"Show organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eorganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/create","name":"create","apis":[{"api_url":"/katello/api/organizations","http_method":"POST","short_description":"Create organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization","full_name":"organization","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"organization[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"organization[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"organization[user_ids]","description":"\n\u003cp\u003eUser IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_ids","full_name":"organization[smart_proxy_ids]","description":"\n\u003cp\u003eSmart proxy IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_ids","full_name":"organization[compute_resource_ids]","description":"\n\u003cp\u003eCompute resource IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"organization[medium_ids]","description":"\n\u003cp\u003eMedium IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_template_ids","full_name":"organization[config_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"organization[ptable_ids]","description":"\n\u003cp\u003ePartition template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"organization[provisioning_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"organization[domain_ids]","description":"\n\u003cp\u003eDomain IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"realm_ids","full_name":"organization[realm_ids]","description":"\n\u003cp\u003eRealm IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"organization[hostgroup_ids]","description":"\n\u003cp\u003eHost group IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"organization[environment_ids]","description":"\n\u003cp\u003eEnvironment IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"subnet_ids","full_name":"organization[subnet_ids]","description":"\n\u003cp\u003eSubnet IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"organization[label]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"organization[location_ids]","description":"\n\u003cp\u003eAssociated location IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/update","name":"update","apis":[{"api_url":"/katello/api/organizations/:id","http_method":"PUT","short_description":"Update organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eorganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"redhat_repository_url","full_name":"redhat_repository_url","description":"\n\u003cp\u003eRed Hat CDN URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization","full_name":"organization","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"organization[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"organization[description]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_ids","full_name":"organization[user_ids]","description":"\n\u003cp\u003eUser IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"smart_proxy_ids","full_name":"organization[smart_proxy_ids]","description":"\n\u003cp\u003eSmart proxy IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"compute_resource_ids","full_name":"organization[compute_resource_ids]","description":"\n\u003cp\u003eCompute resource IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"medium_ids","full_name":"organization[medium_ids]","description":"\n\u003cp\u003eMedium IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"config_template_ids","full_name":"organization[config_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ptable_ids","full_name":"organization[ptable_ids]","description":"\n\u003cp\u003ePartition template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_ids","full_name":"organization[provisioning_template_ids]","description":"\n\u003cp\u003eProvisioning template IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"organization[domain_ids]","description":"\n\u003cp\u003eDomain IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"realm_ids","full_name":"organization[realm_ids]","description":"\n\u003cp\u003eRealm IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_ids","full_name":"organization[hostgroup_ids]","description":"\n\u003cp\u003eHost group IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"organization[environment_ids]","description":"\n\u003cp\u003eEnvironment IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"subnet_ids","full_name":"organization[subnet_ids]","description":"\n\u003cp\u003eSubnet IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"organization[label]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"organization[location_ids]","description":"\n\u003cp\u003eAssociated location IDs\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/destroy","name":"destroy","apis":[{"api_url":"/katello/api/organizations/:id","http_method":"DELETE","short_description":"Delete an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/repo_discover","name":"repo_discover","apis":[{"api_url":"/katello/api/organizations/:id/repo_discover","http_method":"PUT","short_description":"Discover Repositories","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"url","description":"\n\u003cp\u003eBase URL to perform repo discovery on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003eOne of yum or docker\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"upstream_username","full_name":"upstream_username","description":"\n\u003cp\u003eUsername to access URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"upstream_password","full_name":"upstream_password","description":"\n\u003cp\u003ePassword to access URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch pattern (defaults to \u0026#39;*\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/cancel_repo_discover","name":"cancel_repo_discover","apis":[{"api_url":"/katello/api/organizations/:label/cancel_repo_discover","http_method":"PUT","short_description":"Cancel repository discovery","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003eOrganization label\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"url","description":"\n\u003cp\u003ebase url to perform repo discovery on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/download_debug_certificate","name":"download_debug_certificate","apis":[{"api_url":"/katello/api/organizations/:label/download_debug_certificate","http_method":"GET","short_description":"Download a debug certificate","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003eOrganization label\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/releases","name":"releases","apis":[{"api_url":"/katello/api/organizations/:id/releases","http_method":"GET","short_description":"List available releases in the organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the Organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/organizations/redhat_provider","name":"redhat_provider","apis":[{"api_url":"/katello/api/organizations/:id/redhat_provider","http_method":"GET","short_description":"List all :resource_id","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"tasks":{"doc_url":"../apidoc/v2/tasks","id":"tasks","api_url":"/api","name":"Tasks","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/tasks/index","name":"index","apis":[{"api_url":"/api/orchestration/:id/tasks","http_method":"GET","short_description":"List all tasks for a given orchestration event","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"os_default_templates":{"doc_url":"../apidoc/v2/os_default_templates","id":"os_default_templates","api_url":"/api","name":"Os default templates","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/os_default_templates/index","name":"index","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates","http_method":"GET","short_description":"List default templates combinations for an operating system","deprecated":null},{"api_url":"/api/provisioning_templates/:provisioning_template_id/os_default_templates","http_method":"GET","short_description":"List operating systems where this template is set as a default","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of provisioning template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/os_default_templates/show","name":"show","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates/:id","http_method":"GET","short_description":"Show a default template combination for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/os_default_templates/create","name":"create","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates","http_method":"POST","short_description":"Create a default template combination for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_default_template","full_name":"os_default_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"template_kind_id","full_name":"os_default_template[template_kind_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"os_default_template[provisioning_template_id]","description":"\n\u003cp\u003eID of provisioning template\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/os_default_templates/update","name":"update","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates/:id","http_method":"PUT","short_description":"Update a default template combination for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"os_default_template","full_name":"os_default_template","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"template_kind_id","full_name":"os_default_template[template_kind_id]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"os_default_template[provisioning_template_id]","description":"\n\u003cp\u003eID of provisioning template\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/os_default_templates/destroy","name":"destroy","apis":[{"api_url":"/api/operatingsystems/:operatingsystem_id/os_default_templates/:id","http_method":"DELETE","short_description":"Delete a default template combination for an operating system","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"template_combinations":{"doc_url":"../apidoc/v2/template_combinations","id":"template_combinations","api_url":"/api","name":"Template combinations","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/template_combinations/index","name":"index","apis":[{"api_url":"/api/provisioning_templates/:provisioning_template_id/template_combinations","http_method":"GET","short_description":"List template combination","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/template_combinations","http_method":"GET","short_description":"List template combination","deprecated":null},{"api_url":"/api/environments/:environment_id/template_combinations","http_method":"GET","short_description":"List template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of config template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_combinations/create","name":"create","apis":[{"api_url":"/api/provisioning_templates/:provisioning_template_id/template_combinations","http_method":"POST","short_description":"Add a template combination","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/template_combinations","http_method":"POST","short_description":"Add a template combination","deprecated":null},{"api_url":"/api/environments/:environment_id/template_combinations","http_method":"POST","short_description":"Add a template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of config template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_combination","full_name":"template_combination","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"environment_id","full_name":"template_combination[environment_id]","description":"\n\u003cp\u003eenvironment id\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"template_combination[hostgroup_id]","description":"\n\u003cp\u003ehost group id\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_combinations/show","name":"show","apis":[{"api_url":"/api/template_combinations/:id","http_method":"GET","short_description":"Show template combination","deprecated":null},{"api_url":"/api/provisioning_templates/:provisioning_template_id/template_combinations/:id","http_method":"GET","short_description":"Show template combination","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/template_combinations/:id","http_method":"GET","short_description":"Show template combination","deprecated":null},{"api_url":"/api/environments/:environment_id/template_combinations/:id","http_method":"GET","short_description":"Show template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of config template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_combinations/update","name":"update","apis":[{"api_url":"/api/provisioning_templates/:provisioning_template_id/template_combinations/:id","http_method":"PUT","short_description":"Update template combination","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/template_combinations/:id","http_method":"PUT","short_description":"Update template combination","deprecated":null},{"api_url":"/api/environments/:environment_id/template_combinations/:id","http_method":"PUT","short_description":"Update template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"provisioning_template_id","full_name":"provisioning_template_id","description":"\n\u003cp\u003eID of config template\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"template_combination","full_name":"template_combination","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"environment_id","full_name":"template_combination[environment_id]","description":"\n\u003cp\u003eenvironment id\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"template_combination[hostgroup_id]","description":"\n\u003cp\u003ehost group id\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/template_combinations/destroy","name":"destroy","apis":[{"api_url":"/api/template_combinations/:id","http_method":"DELETE","short_description":"Delete a template combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"override_values":{"doc_url":"../apidoc/v2/override_values","id":"override_values","api_url":"/api","name":"Override values","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/override_values/index","name":"index","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values","http_method":"GET","short_description":"List of override values for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/override_values/show","name":"show","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values/:id","http_method":"GET","short_description":"Show an override value for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/override_values/create","name":"create","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values","http_method":"POST","short_description":"Create an override value for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override_value","full_name":"override_value","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"match","full_name":"override_value[match]","description":"\n\u003cp\u003eOverride match\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"override_value[value]","description":"\n\u003cp\u003eOverride value, required if omit is false\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of types: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e","expected_type":"any_type","metadata":null,"show":true,"validations":[]},{"name":"omit","full_name":"override_value[omit]","description":"\n\u003cp\u003eForeman will not send this parameter in classification output\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/override_values/update","name":"update","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values/:id","http_method":"PUT","short_description":"Update an override value for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override_value","full_name":"override_value","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"match","full_name":"override_value[match]","description":"\n\u003cp\u003eOverride match\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"override_value[value]","description":"\n\u003cp\u003eOverride value, required if omit is false\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of types: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e","expected_type":"any_type","metadata":null,"show":true,"validations":[]},{"name":"omit","full_name":"override_value[omit]","description":"\n\u003cp\u003eForeman will not send this parameter in classification output\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/override_values/destroy","name":"destroy","apis":[{"api_url":"/api/smart_class_parameters/:smart_class_parameter_id/override_values/:id","http_method":"DELETE","short_description":"Delete an override value for a specific smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter_id","full_name":"smart_class_parameter_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"parameters":{"doc_url":"../apidoc/v2/parameters","id":"parameters","api_url":"/api","name":"Parameters","short_description":null,"full_description":"\n\u003cp\u003eThese API calls are related to \u003cstrong\u003enested parameters for a host,\ndomain, subnet, host group, operating system\u003c/strong\u003e. If you are looking\nfor \u0026lt;a href=“common_parameters.html”\u0026gt;global parameters\u0026lt;/a\u0026gt;, go\nto \u0026lt;a href=“common_parameters.html”\u0026gt;this link\u0026lt;/a\u0026gt;.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/parameters/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/parameters","http_method":"GET","short_description":"List all parameters for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters","http_method":"GET","short_description":"List all parameters for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters","http_method":"GET","short_description":"List all parameters for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters","http_method":"GET","short_description":"List all parameters for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters","http_method":"GET","short_description":"List all parameters for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters","http_method":"GET","short_description":"List all parameters for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters","http_method":"GET","short_description":"List all parameters for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"domain_name","type":"string"},{"name":"host_group_name","type":"string"},{"name":"host_name","type":"string"},{"name":"key_type","type":"string"},{"name":"location_name","type":"string"},{"name":"name","type":"string"},{"name":"organization_name","type":"string"},{"name":"os_name","type":"string"},{"name":"parameter_type","type":"string"},{"name":"subnet_name","type":"text"},{"name":"type","type":"string"},{"name":"value","type":"text"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/show","name":"show","apis":[{"api_url":"/api/hosts/:host_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters/:id","http_method":"GET","short_description":"Show a nested parameter for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/create","name":"create","apis":[{"api_url":"/api/hosts/:host_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters","http_method":"POST","short_description":"Create a nested parameter for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters","http_method":"POST","short_description":"Create a nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters","http_method":"POST","short_description":"Create a nested parameter for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter","full_name":"parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"parameter[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"parameter[value]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"parameter[parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/update","name":"update","apis":[{"api_url":"/api/hosts/:host_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters/:id","http_method":"PUT","short_description":"Update a nested parameter for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter","full_name":"parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"parameter[name]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"parameter[value]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"parameter[parameter_type]","description":"\n\u003cp\u003eType of value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/destroy","name":"destroy","apis":[{"api_url":"/api/hosts/:host_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters/:id","http_method":"DELETE","short_description":"Delete a nested parameter for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of parameter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/parameters/reset","name":"reset","apis":[{"api_url":"/api/hosts/:host_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for a host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for a host group","deprecated":null},{"api_url":"/api/domains/:domain_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for a domain","deprecated":null},{"api_url":"/api/operatingsystems/:operatingsystem_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for an operating system","deprecated":null},{"api_url":"/api/locations/:location_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameter for a location","deprecated":null},{"api_url":"/api/organizations/:organization_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameter for an organization","deprecated":null},{"api_url":"/api/subnets/:subnet_id/parameters","http_method":"DELETE","short_description":"Delete all nested parameters for a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"\n\u003cp\u003eID of host group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem_id","full_name":"operatingsystem_id","description":"\n\u003cp\u003eID of operating system\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eID of location\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_id","full_name":"subnet_id","description":"\n\u003cp\u003eID of subnet\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"permissions":{"doc_url":"../apidoc/v2/permissions","id":"permissions","api_url":"/api","name":"Permissions","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/permissions/index","name":"index","apis":[{"api_url":"/api/permissions","http_method":"GET","short_description":"List all permissions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"resource_type","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/permissions/show","name":"show","apis":[{"api_url":"/api/permissions/:id","http_method":"GET","short_description":"Show a permission","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/permissions/resource_types","name":"resource_types","apis":[{"api_url":"/api/permissions/resource_types","http_method":"GET","short_description":"List available resource types","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"smart_class_parameters":{"doc_url":"../apidoc/v2/smart_class_parameters","id":"smart_class_parameters","api_url":"/api","name":"Smart class parameters","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/smart_class_parameters/index","name":"index","apis":[{"api_url":"/api/smart_class_parameters","http_method":"GET","short_description":"List all smart class parameters","deprecated":null},{"api_url":"/api/hosts/:host_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific host","deprecated":null},{"api_url":"/api/hostgroups/:hostgroup_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific host group","deprecated":null},{"api_url":"/api/puppetclasses/:puppetclass_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific Puppet class","deprecated":null},{"api_url":"/api/environments/:environment_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific environment","deprecated":null},{"api_url":"/api/environments/:environment_id/puppetclasses/:puppetclass_id/smart_class_parameters","http_method":"GET","short_description":"List of smart class parameters for a specific environment/Puppet class combination","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"hostgroup_id","full_name":"hostgroup_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass_id","full_name":"puppetclass_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"avoid_duplicates","values":["true","false"]},{"name":"environment","type":"string"},{"name":"key","type":"string"},{"name":"merge_default","values":["true","false"]},{"name":"merge_overrides","values":["true","false"]},{"name":"override","values":["true","false"]},{"name":"parameter","type":"string"},{"name":"puppetclass","type":"string"},{"name":"puppetclass_name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_class_parameters/show","name":"show","apis":[{"api_url":"/api/smart_class_parameters/:id","http_method":"GET","short_description":"Show a smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden","full_name":"show_hidden","description":"\n\u003cp\u003eDisplay hidden values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/smart_class_parameters/update","name":"update","apis":[{"api_url":"/api/smart_class_parameters/:id","http_method":"PUT","short_description":"Update a smart class parameter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"smart_class_parameter","full_name":"smart_class_parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"override","full_name":"smart_class_parameter[override]","description":"\n\u003cp\u003eWhether the smart class parameter value is managed by Foreman\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"smart_class_parameter[description]","description":"\n\u003cp\u003eDescription of smart class\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"default_value","full_name":"smart_class_parameter[default_value]","description":"\n\u003cp\u003eValue to use when there is no match\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of types: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e","expected_type":"any_type","metadata":null,"show":true,"validations":[]},{"name":"hidden_value","full_name":"smart_class_parameter[hidden_value]","description":"\n\u003cp\u003eWhen enabled the parameter is hidden in the UI\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"omit","full_name":"smart_class_parameter[omit]","description":"\n\u003cp\u003eForeman will not send this parameter in classification output. Puppet will\nuse the value defined in the Puppet manifest for this parameter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"path","full_name":"smart_class_parameter[path]","description":"\n\u003cp\u003eThe order in which values are resolved\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"validator_type","full_name":"smart_class_parameter[validator_type]","description":"\n\u003cp\u003eTypes of validation values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eregexp\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"validator_rule","full_name":"smart_class_parameter[validator_rule]","description":"\n\u003cp\u003eUsed to enforce certain values for the parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"override_value_order","full_name":"smart_class_parameter[override_value_order]","description":"\n\u003cp\u003eThe order in which values are resolved\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter_type","full_name":"smart_class_parameter[parameter_type]","description":"\n\u003cp\u003eTypes of variable values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, \u003ccode\u003einteger\u003c/code\u003e, \u003ccode\u003ereal\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003ehash\u003c/code\u003e, \u003ccode\u003eyaml\u003c/code\u003e, \u003ccode\u003ejson\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"required","full_name":"smart_class_parameter[required]","description":"\n\u003cp\u003eIf true, will raise an error if there is no default value and no matcher\nprovide a value\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"merge_overrides","full_name":"smart_class_parameter[merge_overrides]","description":"\n\u003cp\u003eMerge all matching values (only array/hash type)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"merge_default","full_name":"smart_class_parameter[merge_default]","description":"\n\u003cp\u003eInclude default value when merging all matching values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"avoid_duplicates","full_name":"smart_class_parameter[avoid_duplicates]","description":"\n\u003cp\u003eRemove duplicate values (only array type)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ssh_keys":{"doc_url":"../apidoc/v2/ssh_keys","id":"ssh_keys","api_url":"/api","name":"Ssh keys","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ssh_keys/index","name":"index","apis":[{"api_url":"/api/users/:user_id/ssh_keys","http_method":"GET","short_description":"List all SSH keys for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"user_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ssh_keys/show","name":"show","apis":[{"api_url":"/api/users/:user_id/ssh_keys/:id","http_method":"GET","short_description":"Show an SSH key from a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ssh_keys/create","name":"create","apis":[{"api_url":"/api/users/:user_id/ssh_keys","http_method":"POST","short_description":"Add an SSH key for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ssh_key","full_name":"ssh_key","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"ssh_key[name]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"key","full_name":"ssh_key[key]","description":"\n\u003cp\u003ePublic SSH key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ssh_keys/destroy","name":"destroy","apis":[{"api_url":"/api/users/:user_id/ssh_keys/:id","http_method":"DELETE","short_description":"Delete an SSH key for a user","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"user_id","description":"\n\u003cp\u003eID of the user\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"statistics":{"doc_url":"../apidoc/v2/statistics","id":"statistics","api_url":"/api","name":"Statistics","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/statistics/index","name":"index","apis":[{"api_url":"/api/statistics","http_method":"GET","short_description":"Get statistics","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"subnets":{"doc_url":"../apidoc/v2/subnets","id":"subnets","api_url":"/api","name":"Subnets","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/subnets/index","name":"index","apis":[{"api_url":"/api/subnets","http_method":"GET","short_description":"List of subnets","deprecated":null},{"api_url":"/api/domains/:domain_id/subnets","http_method":"GET","short_description":"List of subnets for a domain","deprecated":null},{"api_url":"/api/locations/:location_id/subnets","http_method":"GET","short_description":"List of subnets per location","deprecated":null},{"api_url":"/api/organizations/:organization_id/subnets","http_method":"GET","short_description":"List of subnets per organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"domain_id","full_name":"domain_id","description":"\n\u003cp\u003eID of domain\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eScope by locations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eScope by organizations\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"boot_mode","type":"string"},{"name":"dns_primary","type":"string"},{"name":"dns_secondary","type":"string"},{"name":"domain","type":"string"},{"name":"gateway","type":"string"},{"name":"ipam","type":"string"},{"name":"location","type":"string"},{"name":"location_id","type":"integer"},{"name":"mask","type":"string"},{"name":"mtu","type":"integer"},{"name":"name","type":"text"},{"name":"network","type":"string"},{"name":"nic_delay","type":"integer"},{"name":"organization","type":"string"},{"name":"organization_id","type":"integer"},{"name":"params","type":"text"},{"name":"type","type":"string"},{"name":"vlanid","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/show","name":"show","apis":[{"api_url":"/api/subnets/:id","http_method":"GET","short_description":"Show a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"show_hidden_parameters","full_name":"show_hidden_parameters","description":"\n\u003cp\u003eDisplay hidden parameter values\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/create","name":"create","apis":[{"api_url":"/api/subnets","http_method":"POST","short_description":"Create a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet","full_name":"subnet","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"subnet[name]","description":"\n\u003cp\u003eSubnet name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"subnet[description]","description":"\n\u003cp\u003eSubnet description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"network_type","full_name":"subnet[network_type]","description":"\n\u003cp\u003eType or protocol, IPv4 or IPv6, defaults to IPv4\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPv4\u003c/code\u003e, \u003ccode\u003eIPv6\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"network","full_name":"subnet[network]","description":"\n\u003cp\u003eSubnet network\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cidr","full_name":"subnet[cidr]","description":"\n\u003cp\u003eNetwork prefix in CIDR notation\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mask","full_name":"subnet[mask]","description":"\n\u003cp\u003eNetmask for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gateway","full_name":"subnet[gateway]","description":"\n\u003cp\u003eSubnet gateway\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_primary","full_name":"subnet[dns_primary]","description":"\n\u003cp\u003ePrimary DNS for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_secondary","full_name":"subnet[dns_secondary]","description":"\n\u003cp\u003eSecondary DNS for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ipam","full_name":"subnet[ipam]","description":"\n\u003cp\u003eIP Address auto suggestion mode for this subnet.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eDHCP\u003c/code\u003e, \u003ccode\u003eInternal DB\u003c/code\u003e, \u003ccode\u003eRandom DB\u003c/code\u003e, \u003ccode\u003eEUI-64\u003c/code\u003e, \u003ccode\u003eExternal IPAM\u003c/code\u003e, \u003ccode\u003eNone\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"from","full_name":"subnet[from]","description":"\n\u003cp\u003eStarting IP Address for IP auto suggestion\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"to","full_name":"subnet[to]","description":"\n\u003cp\u003eEnding IP Address for IP auto suggestion\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vlanid","full_name":"subnet[vlanid]","description":"\n\u003cp\u003eVLAN ID for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"subnet[mtu]","description":"\n\u003cp\u003eMTU for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"subnet[domain_ids]","description":"\n\u003cp\u003eDomains in which this subnet is part\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"dhcp_id","full_name":"subnet[dhcp_id]","description":"\n\u003cp\u003eDHCP Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"tftp_id","full_name":"subnet[tftp_id]","description":"\n\u003cp\u003eTFTP Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"httpboot_id","full_name":"subnet[httpboot_id]","description":"\n\u003cp\u003eHTTPBoot Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"externalipam_id","full_name":"subnet[externalipam_id]","description":"\n\u003cp\u003eExternal IPAM Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"dns_id","full_name":"subnet[dns_id]","description":"\n\u003cp\u003eDNS Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"subnet[template_id]","description":"\n\u003cp\u003eTemplate HTTP(S) Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"boot_mode","full_name":"subnet[boot_mode]","description":"\n\u003cp\u003eDefault boot mode for interfaces assigned to this subnet.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eStatic\u003c/code\u003e, \u003ccode\u003eDHCP\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_parameters_attributes","full_name":"subnet[subnet_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters (name, value)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"subnet[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"subnet[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/update","name":"update","apis":[{"api_url":"/api/subnets/:id","http_method":"PUT","short_description":"Update a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eSubnet numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet","full_name":"subnet","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"name","full_name":"subnet[name]","description":"\n\u003cp\u003eSubnet name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"subnet[description]","description":"\n\u003cp\u003eSubnet description\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"network_type","full_name":"subnet[network_type]","description":"\n\u003cp\u003eType or protocol, IPv4 or IPv6, defaults to IPv4\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eIPv4\u003c/code\u003e, \u003ccode\u003eIPv6\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"network","full_name":"subnet[network]","description":"\n\u003cp\u003eSubnet network\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"cidr","full_name":"subnet[cidr]","description":"\n\u003cp\u003eNetwork prefix in CIDR notation\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mask","full_name":"subnet[mask]","description":"\n\u003cp\u003eNetmask for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gateway","full_name":"subnet[gateway]","description":"\n\u003cp\u003eSubnet gateway\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_primary","full_name":"subnet[dns_primary]","description":"\n\u003cp\u003ePrimary DNS for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"dns_secondary","full_name":"subnet[dns_secondary]","description":"\n\u003cp\u003eSecondary DNS for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ipam","full_name":"subnet[ipam]","description":"\n\u003cp\u003eIP Address auto suggestion mode for this subnet.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eDHCP\u003c/code\u003e, \u003ccode\u003eInternal DB\u003c/code\u003e, \u003ccode\u003eRandom DB\u003c/code\u003e, \u003ccode\u003eEUI-64\u003c/code\u003e, \u003ccode\u003eExternal IPAM\u003c/code\u003e, \u003ccode\u003eNone\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"from","full_name":"subnet[from]","description":"\n\u003cp\u003eStarting IP Address for IP auto suggestion\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"to","full_name":"subnet[to]","description":"\n\u003cp\u003eEnding IP Address for IP auto suggestion\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"vlanid","full_name":"subnet[vlanid]","description":"\n\u003cp\u003eVLAN ID for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mtu","full_name":"subnet[mtu]","description":"\n\u003cp\u003eMTU for this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain_ids","full_name":"subnet[domain_ids]","description":"\n\u003cp\u003eDomains in which this subnet is part\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"dhcp_id","full_name":"subnet[dhcp_id]","description":"\n\u003cp\u003eDHCP Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"tftp_id","full_name":"subnet[tftp_id]","description":"\n\u003cp\u003eTFTP Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"httpboot_id","full_name":"subnet[httpboot_id]","description":"\n\u003cp\u003eHTTPBoot Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"externalipam_id","full_name":"subnet[externalipam_id]","description":"\n\u003cp\u003eExternal IPAM Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"dns_id","full_name":"subnet[dns_id]","description":"\n\u003cp\u003eDNS Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"template_id","full_name":"subnet[template_id]","description":"\n\u003cp\u003eTemplate HTTP(S) Proxy ID to use within this subnet\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"boot_mode","full_name":"subnet[boot_mode]","description":"\n\u003cp\u003eDefault boot mode for interfaces assigned to this subnet.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eStatic\u003c/code\u003e, \u003ccode\u003eDHCP\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subnet_parameters_attributes","full_name":"subnet[subnet_parameters_attributes]","description":"\n\u003cp\u003eArray of parameters (name, value)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"location_ids","full_name":"subnet[location_ids]","description":"\n\u003cp\u003eREPLACE locations with given ids\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"organization_ids","full_name":"subnet[organization_ids]","description":"\n\u003cp\u003eREPLACE organizations with given ids.\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/destroy","name":"destroy","apis":[{"api_url":"/api/subnets/:id","http_method":"DELETE","short_description":"Delete a subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eSubnet numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subnets/freeip","name":"freeip","apis":[{"api_url":"/api/subnets/:id/freeip","http_method":"GET","short_description":"Provides an unused IP address in this subnet","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mac","full_name":"mac","description":"\n\u003cp\u003eMAC address to reuse the IP for this host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"excluded_ips","full_name":"excluded_ips","description":"\n\u003cp\u003eIP addresses that should be excluded from suggestion\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"recurring_logics":{"doc_url":"../apidoc/v2/recurring_logics","id":"recurring_logics","api_url":"/api","name":"Recurring logics","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/recurring_logics/index","name":"index","apis":[{"api_url":"/foreman_tasks/api/recurring_logics","http_method":"GET","short_description":"List recurring logics","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003efilter results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. ‘id DESC’\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/recurring_logics/show","name":"show","apis":[{"api_url":"/foreman_tasks/api/recurring_logics/:id","http_method":"GET","short_description":"Show recurring logic details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the recurring logic\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/recurring_logics/update","name":"update","apis":[{"api_url":"/foreman_tasks/api/recurring_logics/:id","http_method":"PUT","short_description":"Update recurring logic","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the recurring logic\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eWhether the recurring logic is enabled or disabled.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/recurring_logics/cancel","name":"cancel","apis":[{"api_url":"/foreman_tasks/api/recurring_logics/:id/cancel","http_method":"POST","short_description":"Cancel recurring logic","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the recurring logic\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/recurring_logics/bulk_destroy","name":"bulk_destroy","apis":[{"api_url":"/foreman_tasks/api/recurring_logics/bulk_destroy","http_method":"POST","short_description":"Delete recurring logics by search query","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch query\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"foreman_tasks":{"doc_url":"../apidoc/v2/foreman_tasks","id":"foreman_tasks","api_url":"/api","name":"Foreman tasks","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/foreman_tasks/summary","name":"summary","apis":[{"api_url":"/foreman_tasks/api/tasks/summary","http_method":"GET","short_description":"Show task summary","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/show","name":"show","apis":[{"api_url":"/foreman_tasks/api/tasks/:id","http_method":"GET","short_description":"Show task details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/details","name":"details","apis":[{"api_url":"/foreman_tasks/api/tasks/:id/details","http_method":"GET","short_description":"Show task extended details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/sub_tasks","name":"sub_tasks","apis":[{"api_url":"/foreman_tasks/api/tasks/:id/sub_tasks","http_method":"GET","short_description":"Show sub_tasks details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/bulk_search","name":"bulk_search","apis":[{"api_url":"/foreman_tasks/api/tasks/bulk_search","http_method":"POST","short_description":"List dynflow tasks for uuids","deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eFor every search it returns the list of tasks that satisfty the condition.\nThe reason for supporting multiple searches is the UI that might be ending\nneeding periodic updates on task status for various searches at the same\ntime. This way, it is possible to get all the task statuses with one\nrequest.\u003c/p\u003e\n","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"searches","full_name":"searches","description":"\n\u003cp\u003eList of uuids to fetch info about\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"search_id","full_name":"searches[search_id]","description":"\n\u003cp\u003eArbitraty value for client to identify the the request parts with results.\nIt\u0026#39;s passed in the results to be able to pair the requests and\nresponses properly.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"searches[type]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003euser\u003c/code\u003e, \u003ccode\u003eresource\u003c/code\u003e, \u003ccode\u003etask\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"task_id","full_name":"searches[task_id]","description":"\n\u003cp\u003eIn case :type = \u0026#39;task\u0026#39;, find the task by the uuid\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_id","full_name":"searches[user_id]","description":"\n\u003cp\u003eIn case :type = \u0026#39;user\u0026#39;, find tasks for the user\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resource_type","full_name":"searches[resource_type]","description":"\n\u003cp\u003eIn case :type = \u0026#39;resource\u0026#39;, what resource type we\u0026#39;re searching\nthe tasks for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resource_type","full_name":"searches[resource_type]","description":"\n\u003cp\u003eIn case :type = \u0026#39;resource\u0026#39;, what resource id we\u0026#39;re searching\nthe tasks for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"action_types","full_name":"searches[action_types]","description":"\n\u003cp\u003eReturn just tasks of given action type, e.g.\n[“Actions::Katello::Repository::Synchronize”]\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eString\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"active_only","full_name":"searches[active_only]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"searches[page]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"searches[per_page]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/bulk_resume","name":"bulk_resume","apis":[{"api_url":"/foreman_tasks/api/tasks/bulk_resume","http_method":"POST","short_description":"Resume all paused error tasks","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eResume tasks matching search string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"task_ids","full_name":"task_ids","description":"\n\u003cp\u003eResume specific tasks by ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/bulk_cancel","name":"bulk_cancel","apis":[{"api_url":"/foreman_tasks/api/tasks/bulk_cancel","http_method":"POST","short_description":"Cancel all cancellable tasks","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eCancel tasks matching search string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"task_ids","full_name":"task_ids","description":"\n\u003cp\u003eCancel specific tasks by ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/bulk_stop","name":"bulk_stop","apis":[{"api_url":"/foreman_tasks/api/tasks/bulk_stop","http_method":"POST","short_description":"Stop all stoppable tasks","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eStop tasks matching search string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"task_ids","full_name":"task_ids","description":"\n\u003cp\u003eStop specific tasks by ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/index","name":"index","apis":[{"api_url":"/foreman_tasks/api/tasks","http_method":"GET","short_description":"List tasks","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, e.g. \u0026#39;name DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort","full_name":"sort","description":"\n\u003cp\u003eHash version of \u0026#39;order\u0026#39; param\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"by","full_name":"sort[by]","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"sort[order]","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/foreman_tasks/callback","name":"callback","apis":[{"api_url":"/foreman_tasks/api/tasks/callback","http_method":"POST","short_description":"Send data to the task from external executor (such as smart_proxy_dynflow)","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"location_id","full_name":"location_id","description":"\n\u003cp\u003eSet the current location context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"callback","full_name":"callback","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"task_id","full_name":"callback[task_id]","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"step_id","full_name":"callback[step_id]","description":"\n\u003cp\u003eThe ID of the step inside the execution plan to send the event to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"data","full_name":"data","description":"\n\u003cp\u003eData to be sent to the action\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"callbacks","full_name":"callbacks","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"callback","full_name":"callbacks[callback]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"task_id","full_name":"callbacks[callback][task_id]","description":"\n\u003cp\u003eUUID of the task\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"step_id","full_name":"callbacks[callback][step_id]","description":"\n\u003cp\u003eThe ID of the step inside the execution plan to send the event to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]},{"name":"data","full_name":"callbacks[data]","description":"\n\u003cp\u003eData to be sent to the action\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"puppet_modules":{"doc_url":"../apidoc/v2/puppet_modules","id":"puppet_modules","api_url":"/api","name":"Puppet modules","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/puppet_modules/index","name":"index","apis":[{"api_url":"/katello/api/puppet_modules","http_method":"GET","short_description":"List puppet_modules","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/puppet_modules","http_method":"GET","short_description":"List puppet_modules","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/puppet_modules","http_method":"GET","short_description":"List puppet_modules","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/puppet_modules","http_method":"GET","short_description":"List puppet_modules","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppet_modules/show","name":"show","apis":[{"api_url":"/katello/api/puppet_modules/:id","http_method":"GET","short_description":"Show a puppet module","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/puppet_modules/:id","http_method":"GET","short_description":"Show a puppet module","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea puppet module identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/puppet_modules/compare","name":"compare","apis":[{"api_url":"/katello/api/puppet_modules/compare","http_method":"GET","short_description":"List puppet_modules","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"activation_keys":{"doc_url":"../apidoc/v2/activation_keys","id":"activation_keys","api_url":"/api","name":"Activation keys","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/activation_keys/index","name":"index","apis":[{"api_url":"/katello/api/activation_keys","http_method":"GET","short_description":"List activation keys","deprecated":null},{"api_url":"/katello/api/environments/:environment_id/activation_keys","http_method":"GET","short_description":null,"deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/activation_keys","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eactivation key name to filter by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"addon","type":"string"},{"name":"content_view","type":"string"},{"name":"content_view_id","type":"integer"},{"name":"description","type":"text"},{"name":"environment","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"},{"name":"role","type":"string"},{"name":"subscription_id","type":"string"},{"name":"subscription_name","type":"string"},{"name":"usage","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/create","name":"create","apis":[{"api_url":"/katello/api/activation_keys","http_method":"POST","short_description":"Create an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment","full_name":"environment","description":"\n\u003cp\u003eenvironment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"max_hosts","full_name":"max_hosts","description":"\n\u003cp\u003emaximum number of registered content hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unlimited_hosts","full_name":"unlimited_hosts","description":"\n\u003cp\u003ecan the activation key have unlimited hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"release_version","full_name":"release_version","description":"\n\u003cp\u003econtent release version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"service_level","description":"\n\u003cp\u003eservice level\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auto_attach","full_name":"auto_attach","description":"\n\u003cp\u003eauto attach subscriptions upon registration\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"purpose_usage","full_name":"purpose_usage","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_role","full_name":"purpose_role","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_addons","full_name":"purpose_addons","description":"\n\u003cp\u003eSets the system add-ons\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/update","name":"update","apis":[{"api_url":"/katello/api/activation_keys/:id","http_method":"PUT","short_description":"Update an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"max_hosts","full_name":"max_hosts","description":"\n\u003cp\u003emaximum number of registered content hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unlimited_hosts","full_name":"unlimited_hosts","description":"\n\u003cp\u003ecan the activation key have unlimited hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"release_version","full_name":"release_version","description":"\n\u003cp\u003econtent release version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"service_level","full_name":"service_level","description":"\n\u003cp\u003eservice level\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"auto_attach","full_name":"auto_attach","description":"\n\u003cp\u003eauto attach subscriptions upon registration\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"purpose_usage","full_name":"purpose_usage","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_role","full_name":"purpose_role","description":"\n\u003cp\u003eSets the system purpose usage\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"purpose_addons","full_name":"purpose_addons","description":"\n\u003cp\u003eSets the system add-ons\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/destroy","name":"destroy","apis":[{"api_url":"/katello/api/activation_keys/:id","http_method":"DELETE","short_description":"Destroy an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/show","name":"show","apis":[{"api_url":"/katello/api/activation_keys/:id","http_method":"GET","short_description":"Show an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/copy","name":"copy","apis":[{"api_url":"/katello/api/activation_keys/:id/copy","http_method":"POST","short_description":"Copy an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"new_name","full_name":"new_name","description":"\n\u003cp\u003eName of new activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/available_host_collections","name":"available_host_collections","apis":[{"api_url":"/katello/api/activation_keys/:id/host_collections/available","http_method":"GET","short_description":"List host collections the activation key does not belong to","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ehost collection name to filter by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/available_releases","name":"available_releases","apis":[{"api_url":"/katello/api/activation_keys/:id/releases","http_method":"GET","short_description":"Show release versions available for an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/product_content","name":"product_content","apis":[{"api_url":"/katello/api/activation_keys/:id/product_content","http_method":"GET","short_description":"Show content available for an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_access_mode_all","full_name":"content_access_mode_all","description":"\n\u003cp\u003eGet all content available, not just that provided by subscriptions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"content_access_mode_env","full_name":"content_access_mode_env","description":"\n\u003cp\u003eLimit content to just that available in the activation key\u0026#39;s content\nview version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/add_host_collections","name":"add_host_collections","apis":[{"api_url":"/katello/api/activation_keys/:id/host_collections","http_method":"POST","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection IDs to associate with activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/remove_host_collections","name":"remove_host_collections","apis":[{"api_url":"/katello/api/activation_keys/:id/host_collections","http_method":"PUT","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection IDs to disassociate from the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/add_subscriptions","name":"add_subscriptions","apis":[{"api_url":"/katello/api/activation_keys/:id/add_subscriptions","http_method":"PUT","short_description":"Attach a subscription","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscription_id","full_name":"subscription_id","description":"\n\u003cp\u003eSubscription identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"quantity","description":"\n\u003cp\u003eQuantity of this subscription to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool uuid\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eQuantity of this subscriptions to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/remove_subscriptions","name":"remove_subscriptions","apis":[{"api_url":"/katello/api/activation_keys/:id/remove_subscriptions","http_method":"PUT","short_description":"Unattach a subscription","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscription_id","full_name":"subscription_id","description":"\n\u003cp\u003eSubscription ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to add\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool uuid\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/activation_keys/content_override","name":"content_override","apis":[{"api_url":"/katello/api/activation_keys/:id/content_override","http_method":"PUT","short_description":"Override content for activation_key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the activation key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_overrides","full_name":"content_overrides","description":"\n\u003cp\u003eArray of Content override parameters to be added in bulk\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_label","full_name":"content_overrides[content_label]","description":"\n\u003cp\u003eLabel of the content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"content_overrides[value]","description":"\n\u003cp\u003eOverride value. Provide a boolean value if name is \u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"content_overrides[name]","description":"\n\u003cp\u003eOverride parameter key or name. Note if name is not provided the default\nname will be \u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"remove","full_name":"content_overrides[remove]","description":"\n\u003cp\u003eSet true to remove an override and reset it to \u0026#39;default\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"repositories_bulk_actions":{"doc_url":"../apidoc/v2/repositories_bulk_actions","id":"repositories_bulk_actions","api_url":"/api","name":"Repositories bulk actions","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/repositories_bulk_actions/destroy_repositories","name":"destroy_repositories","apis":[{"api_url":"/katello/api/repositories/bulk/destroy","http_method":"PUT","short_description":"Destroy one or more repositories","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of repository ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories_bulk_actions/sync_repositories","name":"sync_repositories","apis":[{"api_url":"/katello/api/repositories/bulk/sync","http_method":"POST","short_description":"Synchronize repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of repository ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ansible_collections":{"doc_url":"../apidoc/v2/ansible_collections","id":"ansible_collections","api_url":"/api","name":"Ansible Collections","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ansible_collections/index","name":"index","apis":[{"api_url":"/katello/api/ansible_collections","http_method":"GET","short_description":"List ansible_collections","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/ansible_collections","http_method":"GET","short_description":"List ansible_collections","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/ansible_collections","http_method":"GET","short_description":"List ansible_collections","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/ansible_collections","http_method":"GET","short_description":"List ansible_collections","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ansible_collections/show","name":"show","apis":[{"api_url":"/katello/api/ansible_collections/:id","http_method":"GET","short_description":"Show an ansible collection","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/ansible_collections/:id","http_method":"GET","short_description":"Show an ansible collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ean ansible collection identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ansible_collections/compare","name":"compare","apis":[{"api_url":"/katello/api/ansible_collections/compare","http_method":"GET","short_description":"List ansible_collections","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"repositories":{"doc_url":"../apidoc/v2/repositories","id":"repositories","api_url":"/api","name":"Repositories","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/repositories/index","name":"index","apis":[{"api_url":"/katello/api/repositories","http_method":"GET","short_description":"List of enabled repositories","deprecated":null},{"api_url":"/katello/api/content_views/:id/repositories","http_method":"GET","short_description":"List of repositories for a content view","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/repositories","http_method":"GET","short_description":"List of repositories in an organization","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments/:environment_id/repositories","http_method":"GET","short_description":"List repositories in the environment","deprecated":null},{"api_url":"/katello/api/products/:product_id/repositories","http_method":"GET","short_description":"List of repositories for a product","deprecated":null},{"api_url":"/katello/api/environments/:environment_id/products/:product_id/repositories","http_method":"GET","short_description":"List of repositories belonging to a product in an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of an organization to show repositories in\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of a product to show repositories of\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eID of an environment to show repositories in\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003eID of a content view to show repositories in\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eID of a content view version to show repositories in\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"deb_id","full_name":"deb_id","description":"\n\u003cp\u003eId of a deb package to find repositories that contain the deb\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"erratum_id","full_name":"erratum_id","description":"\n\u003cp\u003eId of an erratum to find repositories that contain the erratum\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"rpm_id","full_name":"rpm_id","description":"\n\u003cp\u003eId of a rpm package to find repositories that contain the rpm\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"file_id","full_name":"file_id","description":"\n\u003cp\u003eId of a file to find repositories that contain the file\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ansible_collection_id","full_name":"ansible_collection_id","description":"\n\u003cp\u003eId of an ansible collection to find repositories that contain the ansible\ncollection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_branch_id","full_name":"ostree_branch_id","description":"\n\u003cp\u003eId of an ostree branch to find repositories that contain that branch\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"library","full_name":"library","description":"\n\u003cp\u003eshow repositories in Library and the default content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"archived","full_name":"archived","description":"\n\u003cp\u003eshow archived repositories\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003elimit to only repositories of this type\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet\u003c/code\u003e, \u003ccode\u003eyum\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003elabel of the repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003einterpret specified object to return only Repositories that can be\nassociated with specified object. Only \u0026#39;content_view\u0026#39; \u0026amp;\n\u0026#39;content_view_version\u0026#39; are supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"with_content","full_name":"with_content","description":"\n\u003cp\u003eonly repositories having at least one of the specified content type ex: rpm\n, erratum\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003edocker_manifest_list\u003c/code\u003e, \u003ccode\u003edocker_tag\u003c/code\u003e, \u003ccode\u003edocker_blob\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003emodulemd\u003c/code\u003e, \u003ccode\u003eerratum\u003c/code\u003e, \u003ccode\u003edistribution\u003c/code\u003e, \u003ccode\u003epackage_category\u003c/code\u003e, \u003ccode\u003epackage_group\u003c/code\u003e, \u003ccode\u003eyum_repo_metadata_file\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"container_repository_name","type":"string"},{"name":"content_label","type":"string"},{"name":"content_type","type":"string"},{"name":"content_view_id","type":"integer"},{"name":"description","type":"text"},{"name":"distribution_arch","type":"string"},{"name":"distribution_bootable","type":"boolean"},{"name":"distribution_family","type":"string"},{"name":"distribution_uuid","type":"string"},{"name":"distribution_variant","type":"string"},{"name":"distribution_version","type":"string"},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"product","type":"string"},{"name":"product_id","type":"integer"},{"name":"product_name","type":"string"},{"name":"redhat","values":["true","false"]}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/create","name":"create","apis":[{"api_url":"/katello/api/repositories","http_method":"POST","short_description":"Create a custom repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"name","full_name":"name","description":"\n\u003cp\u003eName of the repository\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eDescription of the repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eProduct the repository belongs to\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003etype of repo\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet\u003c/code\u003e, \u003ccode\u003eyum\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"url","description":"\n\u003cp\u003erepository source url\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gpg_key_id","full_name":"gpg_key_id","description":"\n\u003cp\u003eid of the gpg key that will be assigned to the new repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_ca_cert_id","full_name":"ssl_ca_cert_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL CA Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_cert_id","full_name":"ssl_client_cert_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL Client Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_key_id","full_name":"ssl_client_key_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL Client Key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unprotected","full_name":"unprotected","description":"\n\u003cp\u003etrue if this repository can be published via HTTP\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"checksum_type","full_name":"checksum_type","description":"\n\u003cp\u003eChecksum of the repository, currently \u0026#39;sha1\u0026#39; \u0026amp; \u0026#39;sha256\u0026#39;\nare supported\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"docker_upstream_name","full_name":"docker_upstream_name","description":"\n\u003cp\u003eName of the upstream docker repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"docker_tags_whitelist","full_name":"docker_tags_whitelist","description":"\n\u003cp\u003eComma separated list of tags to sync for Container Image repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"download_policy","full_name":"download_policy","description":"\n\u003cp\u003edownload policy for yum repos (either \u0026#39;immediate\u0026#39;,\n\u0026#39;on_demand\u0026#39;, or \u0026#39;background (deprecated)\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eimmediate\u003c/code\u003e, \u003ccode\u003eon_demand\u003c/code\u003e, \u003ccode\u003ebackground\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mirror_on_sync","full_name":"mirror_on_sync","description":"\n\u003cp\u003etrue if this repository when synced has to be mirrored from the source and\nstale rpms removed\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"verify_ssl_on_sync","full_name":"verify_ssl_on_sync","description":"\n\u003cp\u003eif true, Katello will verify the upstream url\u0026#39;s SSL certifcates are\nsigned by a trusted CA\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"upstream_username","full_name":"upstream_username","description":"\n\u003cp\u003eUsername of the upstream repository user used for authentication\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"upstream_password","full_name":"upstream_password","description":"\n\u003cp\u003ePassword of the upstream repository user used for authentication\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_upstream_sync_policy","full_name":"ostree_upstream_sync_policy","description":"\n\u003cp\u003epolicies for syncing upstream ostree repositories\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003elatest\u003c/code\u003e, \u003ccode\u003eall\u003c/code\u003e, \u003ccode\u003ecustom\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_upstream_sync_depth","full_name":"ostree_upstream_sync_depth","description":"\n\u003cp\u003eif a custom sync policy is chosen for ostree repositories then a\n\u0026#39;depth\u0026#39; value must be provided\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"deb_releases","full_name":"deb_releases","description":"\n\u003cp\u003ecomma separated list of releases to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"deb_components","full_name":"deb_components","description":"\n\u003cp\u003ecomma separated list of repo components to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"deb_architectures","full_name":"deb_architectures","description":"\n\u003cp\u003ecomma separated list of architectures to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ignore_global_proxy","full_name":"ignore_global_proxy","description":"\n\u003cp\u003eif true, will ignore the globally configured proxy when syncing\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"ignorable_content","full_name":"ignorable_content","description":"\n\u003cp\u003eList of content units to ignore while syncing a yum repository. Must be\nsubset of rpm,drpm,srpm,distribution,erratum\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ansible_collection_requirements","full_name":"ansible_collection_requirements","description":"\n\u003cp\u003eContents of requirement yaml file to sync from URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_policy","full_name":"http_proxy_policy","description":"\n\u003cp\u003epolicies for HTTP proxy for content sync\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eglobal_default_http_proxy\u003c/code\u003e, \u003ccode\u003enone\u003c/code\u003e, \u003ccode\u003euse_selected_http_proxy\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_id","full_name":"http_proxy_id","description":"\n\u003cp\u003eID of a HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/repository_types","name":"repository_types","apis":[{"api_url":"/katello/api/repositories/repository_types","http_method":"GET","short_description":"Show the available repository types","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"creatable","full_name":"creatable","description":"\n\u003cp\u003eWhen set to \u0026#39;True\u0026#39; repository types that are creatable will be\nreturned\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/republish","name":"republish","apis":[{"api_url":"/katello/api/repositories/:id/republish","http_method":"PUT","short_description":"Forces a republish of the specified repository, regenerating metadata and symlinks on the filesystem.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/show","name":"show","apis":[{"api_url":"/katello/api/repositories/:id","http_method":"GET","short_description":"Show a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/sync","name":"sync","apis":[{"api_url":"/katello/api/repositories/:id/sync","http_method":"POST","short_description":"Sync a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"source_url","full_name":"source_url","description":"\n\u003cp\u003etemporarily override feed URL for sync\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"incremental","full_name":"incremental","description":"\n\u003cp\u003eperform an incremental import\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"skip_metadata_check","full_name":"skip_metadata_check","description":"\n\u003cp\u003eForce sync even if no upstream changes are detected. Only used with yum\nrepositories.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"validate_contents","full_name":"validate_contents","description":"\n\u003cp\u003eForce a sync and validate the checksums of all content. Only used with yum\nrepositories.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/export","name":"export","apis":[{"api_url":"/katello/api/repositories/:id/export","http_method":"POST","short_description":"Export a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"export_to_iso","full_name":"export_to_iso","description":"\n\u003cp\u003eExport to ISO format\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"iso_mb_size","full_name":"iso_mb_size","description":"\n\u003cp\u003emaximum size of each ISO in MB\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"since","full_name":"since","description":"\n\u003cp\u003eOptional date of last export (ex: 2010-01-01T12:00:00Z)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Date","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/update","name":"update","apis":[{"api_url":"/katello/api/repositories/:id","http_method":"PUT","short_description":"Update a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"url","full_name":"url","description":"\n\u003cp\u003erepository source url\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gpg_key_id","full_name":"gpg_key_id","description":"\n\u003cp\u003eid of the gpg key that will be assigned to the new repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_ca_cert_id","full_name":"ssl_ca_cert_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL CA Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_cert_id","full_name":"ssl_client_cert_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL Client Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_key_id","full_name":"ssl_client_key_id","description":"\n\u003cp\u003eIdentifier of the content credential containing the SSL Client Key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unprotected","full_name":"unprotected","description":"\n\u003cp\u003etrue if this repository can be published via HTTP\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"checksum_type","full_name":"checksum_type","description":"\n\u003cp\u003eChecksum of the repository, currently \u0026#39;sha1\u0026#39; \u0026amp; \u0026#39;sha256\u0026#39;\nare supported\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"docker_upstream_name","full_name":"docker_upstream_name","description":"\n\u003cp\u003eName of the upstream docker repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"docker_tags_whitelist","full_name":"docker_tags_whitelist","description":"\n\u003cp\u003eComma separated list of tags to sync for Container Image repository\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"download_policy","full_name":"download_policy","description":"\n\u003cp\u003edownload policy for yum repos (either \u0026#39;immediate\u0026#39;,\n\u0026#39;on_demand\u0026#39;, or \u0026#39;background (deprecated)\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eimmediate\u003c/code\u003e, \u003ccode\u003eon_demand\u003c/code\u003e, \u003ccode\u003ebackground\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"mirror_on_sync","full_name":"mirror_on_sync","description":"\n\u003cp\u003etrue if this repository when synced has to be mirrored from the source and\nstale rpms removed\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"verify_ssl_on_sync","full_name":"verify_ssl_on_sync","description":"\n\u003cp\u003eif true, Katello will verify the upstream url\u0026#39;s SSL certifcates are\nsigned by a trusted CA\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"upstream_username","full_name":"upstream_username","description":"\n\u003cp\u003eUsername of the upstream repository user used for authentication\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"upstream_password","full_name":"upstream_password","description":"\n\u003cp\u003ePassword of the upstream repository user used for authentication\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_upstream_sync_policy","full_name":"ostree_upstream_sync_policy","description":"\n\u003cp\u003epolicies for syncing upstream ostree repositories\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003elatest\u003c/code\u003e, \u003ccode\u003eall\u003c/code\u003e, \u003ccode\u003ecustom\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ostree_upstream_sync_depth","full_name":"ostree_upstream_sync_depth","description":"\n\u003cp\u003eif a custom sync policy is chosen for ostree repositories then a\n\u0026#39;depth\u0026#39; value must be provided\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"deb_releases","full_name":"deb_releases","description":"\n\u003cp\u003ecomma separated list of releases to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"deb_components","full_name":"deb_components","description":"\n\u003cp\u003ecomma separated list of repo components to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"deb_architectures","full_name":"deb_architectures","description":"\n\u003cp\u003ecomma separated list of architectures to be synched from deb-archive\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ignore_global_proxy","full_name":"ignore_global_proxy","description":"\n\u003cp\u003eif true, will ignore the globally configured proxy when syncing\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"ignorable_content","full_name":"ignorable_content","description":"\n\u003cp\u003eList of content units to ignore while syncing a yum repository. Must be\nsubset of rpm,drpm,srpm,distribution,erratum\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"ansible_collection_requirements","full_name":"ansible_collection_requirements","description":"\n\u003cp\u003eContents of requirement yaml file to sync from URL\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_policy","full_name":"http_proxy_policy","description":"\n\u003cp\u003epolicies for HTTP proxy for content sync\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eglobal_default_http_proxy\u003c/code\u003e, \u003ccode\u003enone\u003c/code\u003e, \u003ccode\u003euse_selected_http_proxy\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_id","full_name":"http_proxy_id","description":"\n\u003cp\u003eID of a HTTP Proxy\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/destroy","name":"destroy","apis":[{"api_url":"/katello/api/repositories/:id","http_method":"DELETE","short_description":"Destroy a custom repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/remove_content","name":"remove_content","apis":[{"api_url":"/katello/api/repositories/:id/remove_packages","http_method":"PUT","short_description":null,"deprecated":null},{"api_url":"/katello/api/repositories/:id/remove_docker_manifests","http_method":"PUT","short_description":null,"deprecated":null},{"api_url":"/katello/api/repositories/:id/remove_puppet_modules","http_method":"PUT","short_description":null,"deprecated":null},{"api_url":"/katello/api/repositories/:id/remove_content","http_method":"PUT","short_description":null,"deprecated":null}],"formats":null,"full_description":"\n\u003cp\u003eRemove content from a repository\u003c/p\u003e\n","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eArray of content ids to remove\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003econtent type (\u0026#39;deb\u0026#39;, \u0026#39;docker_manifest\u0026#39;, \u0026#39;file\u0026#39;,\n\u0026#39;ostree\u0026#39;, \u0026#39;puppet_module\u0026#39;, \u0026#39;rpm\u0026#39;, \u0026#39;srpm\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sync_capsule","full_name":"sync_capsule","description":"\n\u003cp\u003eWhether or not to sync an external capsule after upload. Default: true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/upload_content","name":"upload_content","apis":[{"api_url":"/katello/api/repositories/:id/upload_content","http_method":"POST","short_description":"Upload content into the repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003erepository ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eContent files to upload. Can be a single file or array of files.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003econtent type (\u0026#39;deb\u0026#39;, \u0026#39;docker_manifest\u0026#39;, \u0026#39;file\u0026#39;,\n\u0026#39;ostree\u0026#39;, \u0026#39;puppet_module\u0026#39;, \u0026#39;rpm\u0026#39;, \u0026#39;srpm\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/import_uploads","name":"import_uploads","apis":[{"api_url":"/katello/api/repositories/:id/import_uploads","http_method":"PUT","short_description":"Import uploads into a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eRepository id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"async","full_name":"async","description":"\n\u003cp\u003eDo not wait for the ImportUpload action to finish. Default: false\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"publish_repository","full_name":"publish_repository","description":"\n\u003cp\u003eWhether or not to regenerate the repository on disk. Default: true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sync_capsule","full_name":"sync_capsule","description":"\n\u003cp\u003eWhether or not to sync an external capsule after upload. Default: true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003econtent type (\u0026#39;deb\u0026#39;, \u0026#39;docker_manifest\u0026#39;, \u0026#39;file\u0026#39;,\n\u0026#39;ostree\u0026#39;, \u0026#39;puppet_module\u0026#39;, \u0026#39;rpm\u0026#39;, \u0026#39;srpm\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uploads","full_name":"uploads","description":"\n\u003cp\u003eArray of uploads to import\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"uploads[id]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_unit_id","full_name":"uploads[content_unit_id]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"size","full_name":"uploads[size]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"checksum","full_name":"uploads[checksum]","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"uploads[name]","description":"\n\u003cp\u003eNeeds to only be set for file repositories or docker tags\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"digest","full_name":"uploads[digest]","description":"\n\u003cp\u003eNeeds to only be set for docker tags\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repositories/gpg_key_content","name":"gpg_key_content","apis":[{"api_url":"/katello/api/repositories/:id/gpg_key_content","http_method":"GET","short_description":"Return the content of a repo gpg key, used directly by yum","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"capsule_content":{"doc_url":"../apidoc/v2/capsule_content","id":"capsule_content","api_url":"/api","name":"Capsule content","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/capsule_content/lifecycle_environments","name":"lifecycle_environments","apis":[{"api_url":"/katello/api/capsules/:id/content/lifecycle_environments","http_method":"GET","short_description":"List the lifecycle environments attached to the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eId of the organization to limit environments on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/available_lifecycle_environments","name":"available_lifecycle_environments","apis":[{"api_url":"/katello/api/capsules/:id/content/available_lifecycle_environments","http_method":"GET","short_description":"List the lifecycle environments not attached to the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eId of the organization to limit environments on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/add_lifecycle_environment","name":"add_lifecycle_environment","apis":[{"api_url":"/katello/api/capsules/:id/content/lifecycle_environments","http_method":"POST","short_description":"Add lifecycle environments to the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eId of the lifecycle environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/remove_lifecycle_environment","name":"remove_lifecycle_environment","apis":[{"api_url":"/katello/api/capsules/:id/content/lifecycle_environments/:environment_id","http_method":"DELETE","short_description":"Remove lifecycle environments from the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eId of the lifecycle environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/sync","name":"sync","apis":[{"api_url":"/katello/api/capsules/:id/content/sync","http_method":"POST","short_description":"Synchronize the content to the smart proxy","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eId of the environment to limit the synchronization on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"skip_metadata_check","full_name":"skip_metadata_check","description":"\n\u003cp\u003eSkip metadata check on each repository on the smart proxy\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/sync_status","name":"sync_status","apis":[{"api_url":"/katello/api/capsules/:id/content/sync","http_method":"GET","short_description":"Get current smart proxy synchronization status","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eId of the organization to get the status for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsule_content/cancel_sync","name":"cancel_sync","apis":[{"api_url":"/katello/api/capsules/:id/content/sync","http_method":"DELETE","short_description":"Cancel running smart proxy synchronization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"capsules":{"doc_url":"../apidoc/v2/capsules","id":"capsules","api_url":"/api","name":"Capsules","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/capsules/index","name":"index","apis":[{"api_url":"/katello/api/capsules","http_method":"GET","short_description":"List all smart proxies that have content","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/capsules/show","name":"show","apis":[{"api_url":"/katello/api/capsules/:id","http_method":"GET","short_description":"Show the smart proxy details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the smart proxy\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"repository_sets":{"doc_url":"../apidoc/v2/repository_sets","id":"repository_sets","api_url":"/api","name":"Repository sets","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/repository_sets/index","name":"index","apis":[{"api_url":"/katello/api/repository_sets","http_method":"GET","short_description":"List repository sets.","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets","http_method":"GET","short_description":"List repository sets for a product.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of a product to list repository sets from\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eRepository set name to search on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eIf true, only return repository sets that have been enabled. Defaults to\nfalse\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"with_active_subscription","full_name":"with_active_subscription","description":"\n\u003cp\u003eIf true, only return repository sets that are associated with an active\nsubscriptions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"with_custom","full_name":"with_custom","description":"\n\u003cp\u003eIf true, return custom repository sets along with redhat repos\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"content_label","type":"string"},{"name":"content_type","type":"string"},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"product_id","type":"integer"},{"name":"product_name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repository_sets/show","name":"show","apis":[{"api_url":"/katello/api/repository_sets/:id","http_method":"GET","short_description":"Get info about a repository set","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets/:id","http_method":"GET","short_description":"Get info about a repository set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the repository set\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of a product to list repository sets from\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repository_sets/available_repositories","name":"available_repositories","apis":[{"api_url":"/katello/api/repository_sets/:id/available_repositories","http_method":"GET","short_description":"Get list of available repositories for the repository set","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets/:id/available_repositories","http_method":"GET","short_description":"Get list of available repositories for the repository set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the repository set\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of a product to list repository sets from\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repository_sets/enable","name":"enable","apis":[{"api_url":"/katello/api/repository_sets/:id/enable","http_method":"PUT","short_description":"Enable a repository from the set","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets/:id/enable","http_method":"PUT","short_description":"Enable a repository from the set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the repository set to enable\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of the product containing the repository set\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"basearch","full_name":"basearch","description":"\n\u003cp\u003eBasearch to enable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"releasever","full_name":"releasever","description":"\n\u003cp\u003eReleasever to enable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/repository_sets/disable","name":"disable","apis":[{"api_url":"/katello/api/repository_sets/:id/disable","http_method":"PUT","short_description":"Disable a repository from the set","deprecated":null},{"api_url":"/katello/api/products/:product_id/repository_sets/:id/disable","http_method":"PUT","short_description":"Disable a repository from the set","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the repository set to disable\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"product_id","full_name":"product_id","description":"\n\u003cp\u003eID of the product containing the repository set\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"basearch","full_name":"basearch","description":"\n\u003cp\u003eBasearch to disable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"releasever","full_name":"releasever","description":"\n\u003cp\u003eReleasever to disable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"content_credentials":{"doc_url":"../apidoc/v2/content_credentials","id":"content_credentials","api_url":"/api","name":"Content credentials","short_description":null,"full_description":"\n\u003cp\u003e# Description\u003c/p\u003e\n\n\u003cp\u003eContent Credentials are used to store credentials like GPG Keys and\nCertificates for the authentication to Products / Repositories.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_credentials/index","name":"index","apis":[{"api_url":"/katello/api/content_credentials","http_method":"GET","short_description":"List content credentials","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the Content Credential\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003etype of content\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/create","name":"create","apis":[{"api_url":"/katello/api/content_credentials","http_method":"POST","short_description":"Create a content credential","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eidentifier of the content credential\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003etype of content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003epublic key block in DER encoding or certificate content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/show","name":"show","apis":[{"api_url":"/katello/api/content_credentials/:id","http_method":"GET","short_description":"Show a content credential","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent credential numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/update","name":"update","apis":[{"api_url":"/katello/api/content_credentials/:id","http_method":"PUT","short_description":"Update a content credential","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent credential numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eidentifier of the content credential\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003etype of content\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003epublic key block in DER encoding or certificate content\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_credentials/:id","http_method":"DELETE","short_description":"Destroy a content credential","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent credential numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/content","name":"content","apis":[{"api_url":"/katello/api/content_credentials/:id/content","http_method":"GET","short_description":"Return the content of a content credential, used directly by yum","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_credentials/set_content","name":"set_content","apis":[{"api_url":"/katello/api/content_credentials/:id/content","http_method":"POST","short_description":"Upload content credential contents","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent credential numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003efile contents\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"content_uploads":{"doc_url":"../apidoc/v2/content_uploads","id":"content_uploads","api_url":"/api","name":"Content uploads","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_uploads/create","name":"create","apis":[{"api_url":"/katello/api/repositories/:repository_id/content_uploads","http_method":"POST","short_description":"Create an upload request","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"size","full_name":"size","description":"\n\u003cp\u003eSize of file to upload\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"checksum","full_name":"checksum","description":"\n\u003cp\u003eChecksum of file to upload\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003econtent type (\u0026#39;deb\u0026#39;, \u0026#39;docker_manifest\u0026#39;, \u0026#39;file\u0026#39;,\n\u0026#39;ostree\u0026#39;, \u0026#39;puppet_module\u0026#39;, \u0026#39;rpm\u0026#39;, \u0026#39;srpm\u0026#39;)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003edeb\u003c/code\u003e, \u003ccode\u003edocker_manifest\u003c/code\u003e, \u003ccode\u003efile\u003c/code\u003e, \u003ccode\u003epuppet_module\u003c/code\u003e, \u003ccode\u003erpm\u003c/code\u003e, \u003ccode\u003esrpm\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_uploads/update","name":"update","apis":[{"api_url":"/katello/api/repositories/:repository_id/content_uploads/:id","http_method":"PUT","short_description":"Upload a chunk of the file's content","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUpload request id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"size","full_name":"size","description":"\n\u003cp\u003eSize of file to upload\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"offset","full_name":"offset","description":"\n\u003cp\u003eThe offset in the file where the content starts\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eThe actual file contents\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_uploads/destroy","name":"destroy","apis":[{"api_url":"/katello/api/repositories/:repository_id/content_uploads/:id","http_method":"DELETE","short_description":"Delete an upload request","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eUpload request id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"packages":{"doc_url":"../apidoc/v2/packages","id":"packages","api_url":"/api","name":"Packages","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/packages/index","name":"index","apis":[{"api_url":"/katello/api/packages","http_method":"GET","short_description":"List packages","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/:resource_id","http_method":"GET","short_description":"List :resource_id","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/:resource_id","http_method":"GET","short_description":"List :resource_id","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/:resource_id","http_method":"GET","short_description":"List :resource_id","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eContent View Version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003eContent View Filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eEnvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003ePackage identifiers to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost id to list applicable packages for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"packages_restrict_applicable","full_name":"packages_restrict_applicable","description":"\n\u003cp\u003eReturn packages that are applicable to one or more hosts (defaults to true\nif host_id is specified)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"packages_restrict_upgradable","full_name":"packages_restrict_upgradable","description":"\n\u003cp\u003eReturn packages that are upgradable on one or more hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"packages_restrict_latest","full_name":"packages_restrict_latest","description":"\n\u003cp\u003eReturn only the latest version of each package\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eReturn packages that can be added to the specified object. Only the value\n\u0026#39;content_view_version\u0026#39; is supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/packages/show","name":"show","apis":[{"api_url":"/katello/api/packages/:id","http_method":"GET","short_description":"Show a package","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/packages/:id","http_method":"GET","short_description":"Show a package","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea package identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/packages/compare","name":"compare","apis":[{"api_url":"/katello/api/packages/compare","http_method":"GET","short_description":"List packages","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_view_components":{"doc_url":"../apidoc/v2/content_view_components","id":"content_view_components","api_url":"/api","name":"Content view components","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_components/index","name":"index","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components","http_method":"GET","short_description":"List components attached to this content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_components/add_components","name":"add_components","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components/add","http_method":"PUT","short_description":"Add components to the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"components","full_name":"components","description":"\n\u003cp\u003eArray of components to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_view_version_id","full_name":"components[content_view_version_id]","description":"\n\u003cp\u003eidentifier of the version of the component content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"components[content_view_id]","description":"\n\u003cp\u003econtent view identifier of the component who\u0026#39;s latest version is\ndesired\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"latest","full_name":"components[latest]","description":"\n\u003cp\u003etrue if the latest version of the component\u0026#39;s content view is desired\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_components/remove_components","name":"remove_components","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components/remove","http_method":"PUT","short_description":"Remove components from the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"component_ids","full_name":"component_ids","description":"\n\u003cp\u003eArray of content view component IDs to remove. Identifier of the component\nassociation\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_components/show","name":"show","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components/:id","http_method":"GET","short_description":"Show a content view component","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view component ID. Identifier of the component association\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_components/update","name":"update","apis":[{"api_url":"/katello/api/content_views/:composite_content_view_id/content_view_components/:id","http_method":"PUT","short_description":"Update a component associated with the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"composite_content_view_id","full_name":"composite_content_view_id","description":"\n\u003cp\u003ecomposite content view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view component ID. Identifier of the component association\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eidentifier of the version of the component content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"latest","full_name":"latest","description":"\n\u003cp\u003etrue if the latest version of the components content view is desired\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"products_bulk_actions":{"doc_url":"../apidoc/v2/products_bulk_actions","id":"products_bulk_actions","api_url":"/api","name":"Products bulk actions","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/products_bulk_actions/destroy_products","name":"destroy_products","apis":[{"api_url":"/katello/api/products/bulk/destroy","http_method":"PUT","short_description":"Destroy one or more products","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of product ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products_bulk_actions/sync_products","name":"sync_products","apis":[{"api_url":"/katello/api/products/bulk/sync","http_method":"PUT","short_description":"Sync one or more products","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of product ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"skip_metadata_check","full_name":"skip_metadata_check","description":"\n\u003cp\u003eForce sync even if no upstream changes are detected. Non-yum repositories\nare skipped.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"validate_contents","full_name":"validate_contents","description":"\n\u003cp\u003eForce a sync and validate the checksums of all content. Non-yum\nrepositories (or those with \nOn Demand download policy) are skipped.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products_bulk_actions/update_http_proxy","name":"update_http_proxy","apis":[{"api_url":"/katello/api/products/bulk/http_proxy","http_method":"PUT","short_description":"Update the HTTP proxy configuration on the repositories of one or more products.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of product ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_policy","full_name":"http_proxy_policy","description":"\n\u003cp\u003epolicy for HTTP proxy for content sync\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eglobal_default_http_proxy\u003c/code\u003e, \u003ccode\u003enone\u003c/code\u003e, \u003ccode\u003euse_selected_http_proxy\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"http_proxy_id","full_name":"http_proxy_id","description":"\n\u003cp\u003eHTTP Proxy identifier to associated\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products_bulk_actions/update_sync_plans","name":"update_sync_plans","apis":[{"api_url":"/katello/api/products/bulk/sync_plan","http_method":"PUT","short_description":"Sync one or more products","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eList of product ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"plan_id","full_name":"plan_id","description":"\n\u003cp\u003eSync plan identifier to attach\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_view_filter_rules":{"doc_url":"../apidoc/v2/content_view_filter_rules","id":"content_view_filter_rules","api_url":"/api","name":"Content view filter rules","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_filter_rules/index","name":"index","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules","http_method":"GET","short_description":"List filter rules","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the content view filter rule\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"errata_id","full_name":"errata_id","description":"\n\u003cp\u003eerrata_id of the content view filter rule\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filter_rules/create","name":"create","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules","http_method":"POST","short_description":"Create a filter rule. The parameters included should be based upon the filter type.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003epackage, package group, or docker tag names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of [String]","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003epackage group: uuid\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003epackage: version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"\n\u003cp\u003epackage: architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"min_version","full_name":"min_version","description":"\n\u003cp\u003epackage: minimum version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"max_version","full_name":"max_version","description":"\n\u003cp\u003epackage: maximum version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"errata_id","full_name":"errata_id","description":"\n\u003cp\u003eerratum: id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"errata_ids","full_name":"errata_ids","description":"\n\u003cp\u003eerratum: IDs or a select all object\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"start_date","full_name":"start_date","description":"\n\u003cp\u003eerratum: start date (YYYY-MM-DD)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"end_date","full_name":"end_date","description":"\n\u003cp\u003eerratum: end date (YYYY-MM-DD)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"types","full_name":"types","description":"\n\u003cp\u003eerratum: types (enhancement, bugfix, security)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"date_type","full_name":"date_type","description":"\n\u003cp\u003eerratum: search using the \u0026#39;Issued On\u0026#39; or \u0026#39;Updated On\u0026#39;\ncolumn of the errata. Values are \u0026#39;issued\u0026#39;/\u0026#39;updated\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"module_stream_ids","full_name":"module_stream_ids","description":"\n\u003cp\u003emodule stream ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filter_rules/show","name":"show","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules/:id","http_method":"GET","short_description":"Show filter rule info","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003erule identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filter_rules/update","name":"update","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules/:id","http_method":"PUT","short_description":"Update a filter rule. The parameters included should be based upon the filter type.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003erule identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003epackage, package group, or docker tag: name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003epackage: version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"\n\u003cp\u003epackage: architecture\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"min_version","full_name":"min_version","description":"\n\u003cp\u003epackage: minimum version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"max_version","full_name":"max_version","description":"\n\u003cp\u003epackage: maximum version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"errata_id","full_name":"errata_id","description":"\n\u003cp\u003eerratum: id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"start_date","full_name":"start_date","description":"\n\u003cp\u003eerratum: start date (YYYY-MM-DD)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"end_date","full_name":"end_date","description":"\n\u003cp\u003eerratum: end date (YYYY-MM-DD)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"types","full_name":"types","description":"\n\u003cp\u003eerratum: types (enhancement, bugfix, security)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filter_rules/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/rules/:id","http_method":"DELETE","short_description":"Delete a filter rule","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003erule identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"srpms":{"doc_url":"../apidoc/v2/srpms","id":"srpms","api_url":"/api","name":"Srpms","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/srpms/index","name":"index","apis":[{"api_url":"/katello/api/srpms","http_method":"GET","short_description":"List srpms","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eEnvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eContent View Version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/srpms/show","name":"show","apis":[{"api_url":"/katello/api/srpms/:id","http_method":"GET","short_description":"Show SRPM details","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/srpms/:id","http_method":"GET","short_description":"Show SRPM details","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eSRPM details identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/srpms/compare","name":"compare","apis":[{"api_url":"/katello/api/srpms/compare","http_method":"GET","short_description":"List srpms","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_view_filters":{"doc_url":"../apidoc/v2/content_view_filters","id":"content_view_filters","api_url":"/api","name":"Content view filters","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_filters/index","name":"index","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters","http_method":"get","short_description":"list filters","deprecated":null},{"api_url":"/katello/api/content_view_filters","http_method":"get","short_description":"list filters","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003efilter content view filters by name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"types","full_name":"types","description":"\n\u003cp\u003etypes of filters\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"content_type","values":["rpm","package_group","erratum","docker","modulemd"]},{"name":"inclusion_type","values":["include","exclude"]},{"name":"name","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filters/create","name":"create","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters","http_method":"post","short_description":"create a filter for a content view","deprecated":null},{"api_url":"/katello/api/content_view_filters","http_method":"post","short_description":"create a filter for a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the filter\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"type","full_name":"type","description":"\n\u003cp\u003etype of filter (e.g. rpm, package_group, erratum, docker, modulemd)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"original_packages","full_name":"original_packages","description":"\n\u003cp\u003eadd all packages without errata to the included/excluded list. (package\nfilter only)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"original_module_streams","full_name":"original_module_streams","description":"\n\u003cp\u003eadd all module streams without errata to the included/excluded list.\n(module stream filter only)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"inclusion","full_name":"inclusion","description":"\n\u003cp\u003especifies if content should be included or excluded, default:\ninclusion=false\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"repository_ids","full_name":"repository_ids","description":"\n\u003cp\u003elist of repository ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the filter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filters/show","name":"show","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters/:id","http_method":"get","short_description":"show filter info","deprecated":null},{"api_url":"/katello/api/content_view_filters/:id","http_method":"get","short_description":"show filter info","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filters/update","name":"update","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters/:id","http_method":"put","short_description":"update a filter","deprecated":null},{"api_url":"/katello/api/content_view_filters/:id","http_method":"put","short_description":"update a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003enew name for the filter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"original_packages","full_name":"original_packages","description":"\n\u003cp\u003eadd all packages without errata to the included/excluded list. (package\nfilter only)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"original_module_streams","full_name":"original_module_streams","description":"\n\u003cp\u003eadd all module streams without errata to the included/excluded list.\n(module stream filter only)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"inclusion","full_name":"inclusion","description":"\n\u003cp\u003especifies if content should be included or excluded, default:\ninclusion=false\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"repository_ids","full_name":"repository_ids","description":"\n\u003cp\u003elist of repository ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the filter\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_filters/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_views/:content_view_id/filters/:id","http_method":"delete","short_description":"delete a filter","deprecated":null},{"api_url":"/katello/api/content_view_filters/:id","http_method":"delete","short_description":"delete a filter","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003efilter identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_view_histories":{"doc_url":"../apidoc/v2/content_view_histories","id":"content_view_histories","api_url":"/api","name":"Content view histories","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_histories/index","name":"index","apis":[{"api_url":"/katello/api/content_views/:id/history","http_method":"GET","short_description":"Show a content view's history","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"products":{"doc_url":"../apidoc/v2/products","id":"products","api_url":"/api","name":"Products","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/products/index","name":"index","apis":[{"api_url":"/katello/api/products","http_method":"GET","short_description":"List products","deprecated":null},{"api_url":"/katello/api/subscriptions/:subscription_id/products","http_method":"GET","short_description":"List of subscription products in a subscription","deprecated":null},{"api_url":"/katello/api/activation_keys/:activation_key_id/products","http_method":"GET","short_description":"List of subscription products in an activation key","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/products","http_method":"GET","short_description":"List of products in an organization","deprecated":null},{"api_url":"/katello/api/sync_plans/:sync_plan_id/products","http_method":"GET","short_description":"List of Products for sync plan","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:sync_plan_id/products","http_method":"GET","short_description":"List of Products for sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eFilter products by organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subscription_id","full_name":"subscription_id","description":"\n\u003cp\u003eFilter products by subscription\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eFilter products by name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eReturn enabled products only\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"custom","full_name":"custom","description":"\n\u003cp\u003eReturn custom products only\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"redhat_only","full_name":"redhat_only","description":"\n\u003cp\u003eReturn Red Hat (non-custom) products only\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"include_available_content","full_name":"include_available_content","description":"\n\u003cp\u003eWhether to include available content attribute in results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sync_plan_id","full_name":"sync_plan_id","description":"\n\u003cp\u003eFilter products by sync plan id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eInterpret specified object to return only Products that can be associated\nwith specified object. Only \u0026#39;sync_plan\u0026#39; is supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"description","type":"text"},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"},{"name":"redhat","values":["true","false"]}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/create","name":"create","apis":[{"api_url":"/katello/api/products","http_method":"POST","short_description":"Create a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eProduct description\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gpg_key_id","full_name":"gpg_key_id","description":"\n\u003cp\u003eIdentifier of the GPG key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_ca_cert_id","full_name":"ssl_ca_cert_id","description":"\n\u003cp\u003eIdenifier of the SSL CA Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_cert_id","full_name":"ssl_client_cert_id","description":"\n\u003cp\u003eIdentifier of the SSL Client Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_key_id","full_name":"ssl_client_key_id","description":"\n\u003cp\u003eIdentifier of the SSL Client Key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"sync_plan_id","full_name":"sync_plan_id","description":"\n\u003cp\u003ePlan numeric identifier\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eProduct name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/show","name":"show","apis":[{"api_url":"/katello/api/products/:id","http_method":"GET","short_description":"Show a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eproduct numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/update","name":"update","apis":[{"api_url":"/katello/api/products/:id","http_method":"PUT","short_description":"Updates a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eproduct numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eProduct description\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"gpg_key_id","full_name":"gpg_key_id","description":"\n\u003cp\u003eIdentifier of the GPG key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_ca_cert_id","full_name":"ssl_ca_cert_id","description":"\n\u003cp\u003eIdenifier of the SSL CA Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_cert_id","full_name":"ssl_client_cert_id","description":"\n\u003cp\u003eIdentifier of the SSL Client Cert\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ssl_client_key_id","full_name":"ssl_client_key_id","description":"\n\u003cp\u003eIdentifier of the SSL Client Key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"sync_plan_id","full_name":"sync_plan_id","description":"\n\u003cp\u003ePlan numeric identifier\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eProduct name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/destroy","name":"destroy","apis":[{"api_url":"/katello/api/products/:id","http_method":"DELETE","short_description":"Destroy a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eproduct numeric identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/products/sync","name":"sync","apis":[{"api_url":"/katello/api/products/:id/sync","http_method":"POST","short_description":"Sync all repositories for a product","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eproduct ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"content_view_puppet_modules":{"doc_url":"../apidoc/v2/content_view_puppet_modules","id":"content_view_puppet_modules","api_url":"/api","name":"Content view puppet modules","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_puppet_modules/index","name":"index","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules","http_method":"GET","short_description":"List content view puppet modules","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"author","full_name":"author","description":"\n\u003cp\u003eauthor of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003euuid of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"author","type":"string"},{"name":"content_view_name","type":"string"},{"name":"name","type":"string"},{"name":"uuid","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_puppet_modules/create","name":"create","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules","http_method":"POST","short_description":"Add a puppet module to the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"author","full_name":"author","description":"\n\u003cp\u003eauthor of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ethe id of the puppet module to associate\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003ethe uuid of the puppet module to associate\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_puppet_modules/show","name":"show","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules/:id","http_method":"GET","short_description":"Show a content view puppet module","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003epuppet module ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_puppet_modules/update","name":"update","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules/:id","http_method":"PUT","short_description":"Update a puppet module associated with the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003epuppet module ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"author","full_name":"author","description":"\n\u003cp\u003eauthor of the puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"uuid","full_name":"uuid","description":"\n\u003cp\u003ethe uuid of the puppet module to associate\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_puppet_modules/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_views/:content_view_id/content_view_puppet_modules/:id","http_method":"DELETE","short_description":"Remove a puppet module from the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003econtent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003epuppet module ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"subscriptions":{"doc_url":"../apidoc/v2/subscriptions","id":"subscriptions","api_url":"/api","name":"Subscriptions","short_description":null,"full_description":"\n\u003cp\u003eSubscriptions management.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/subscriptions/index","name":"index","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions","http_method":"GET","short_description":"List organization subscriptions","deprecated":null},{"api_url":"/katello/api/activation_keys/:activation_key_id/subscriptions","http_method":"GET","short_description":"List an activation key's subscriptions","deprecated":null},{"api_url":"/katello/api/subscriptions","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eid of a host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"activation_key_id","full_name":"activation_key_id","description":"\n\u003cp\u003eActivation key ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eObject to show subscriptions available for, either \u0026#39;host\u0026#39; or\n\u0026#39;activation_key\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"match_host","full_name":"match_host","description":"\n\u003cp\u003eIgnore subscriptions that are unavailable to the specified host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"match_installed","full_name":"match_installed","description":"\n\u003cp\u003eReturn subscriptions that match installed products of the specified host\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"no_overlap","full_name":"no_overlap","description":"\n\u003cp\u003eReturn subscriptions which do not overlap with a currently-attached\nsubscription\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/show","name":"show","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/:id","http_method":"GET","short_description":"Show a subscription","deprecated":null},{"api_url":"/katello/api/subscriptions/:id","http_method":"GET","short_description":"Show a subscription","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eSubscription identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/upload","name":"upload","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/upload","http_method":"POST","short_description":"Upload a subscription manifest","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eSubscription manifest file\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]},{"name":"repository_url","full_name":"repository_url","description":"\n\u003cp\u003erepository url\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/refresh_manifest","name":"refresh_manifest","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/refresh_manifest","http_method":"PUT","short_description":"Refresh previously imported manifest for Red Hat provider","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/delete_manifest","name":"delete_manifest","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/delete_manifest","http_method":"POST","short_description":"Delete manifest from Red Hat provider","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/subscriptions/manifest_history","name":"manifest_history","apis":[{"api_url":"/katello/api/organizations/:organization_id/subscriptions/manifest_history","http_method":"GET","short_description":"obtain manifest history for subscriptions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"content_view_versions":{"doc_url":"../apidoc/v2/content_view_versions","id":"content_view_versions","api_url":"/api","name":"Content view versions","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_view_versions/index","name":"index","apis":[{"api_url":"/katello/api/content_view_versions","http_method":"GET","short_description":"List content view versions","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/content_view_versions","http_method":"GET","short_description":"List content view versions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003eContent view identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eFilter versions by environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppet_module_id","full_name":"puppet_module_id","description":"\n\u003cp\u003eFilter versions by puppet module\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"version","full_name":"version","description":"\n\u003cp\u003eFilter versions by version number\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"composite_version_id","full_name":"composite_version_id","description":"\n\u003cp\u003eFilter versions that are components in the specified composite version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"triggered_by_id","full_name":"triggered_by_id","description":"\n\u003cp\u003eFilter composite versions whose publish was triggered by the specified\ncomponent version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"content_view_id","type":"integer"},{"name":"repository","type":"string"},{"name":"version","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/show","name":"show","apis":[{"api_url":"/katello/api/content_view_versions/:id","http_method":"GET","short_description":"Show content view version","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/promote","name":"promote","apis":[{"api_url":"/katello/api/content_view_versions/:id/promote","http_method":"POST","short_description":"Promote a content view version","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"force","full_name":"force","description":"\n\u003cp\u003eforce content view promotion and bypass lifecycle environment restriction\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"environment_ids","description":"\n\u003cp\u003eIdentifiers for Lifecycle Environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eThe description for the content view version promotion\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/update","name":"update","apis":[{"api_url":"/katello/api/content_view_versions/:id","http_method":"PUT","short_description":"Update a content view version","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eThe description for the content view version\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/republish_repositories","name":"republish_repositories","apis":[{"api_url":"/katello/api/content_view_versions/:id/republish_repositories","http_method":"PUT","short_description":"Forces a republish of the version's repositories' metadata","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/export","name":"export","apis":[{"api_url":"/katello/api/content_view_versions/:id/export","http_method":"POST","short_description":"Export a content view version","deprecated":true}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"export_to_iso","full_name":"export_to_iso","description":"\n\u003cp\u003eExport to ISO format\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"iso_mb_size","full_name":"iso_mb_size","description":"\n\u003cp\u003emaximum size of each ISO in MB\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"since","full_name":"since","description":"\n\u003cp\u003eOptional date of last export (ex: 2010-01-01T12:00:00Z)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Date","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_view_versions/:id","http_method":"DELETE","short_description":"Remove content view version","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_view_versions/incremental_update","name":"incremental_update","apis":[{"api_url":"/katello/api/content_view_versions/incremental_update","http_method":"POST","short_description":"Perform an Incremental Update on one or more Content View Versions","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_environments","full_name":"content_view_version_environments","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_view_version_id","full_name":"content_view_version_environments[content_view_version_id]","description":"\n\u003cp\u003eContent View Version Ids to perform an incremental update on. May contain\ncomposites as well as one or more components to update.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"content_view_version_environments[environment_ids]","description":"\n\u003cp\u003eThe list of environments to promote the specified Content View Version to\n(replacing the older version)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eThe description for the new generated Content View Versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"resolve_dependencies","full_name":"resolve_dependencies","description":"\n\u003cp\u003eIf true, when adding the specified errata or packages, any needed\ndependencies will be copied as well. Defaults to true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"propagate_all_composites","full_name":"propagate_all_composites","description":"\n\u003cp\u003eIf true, will publish a new composite version using any specified\ncontent_view_version_id that has been promoted to a lifecycle environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"add_content","full_name":"add_content","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"errata_ids","full_name":"add_content[errata_ids]","description":"\n\u003cp\u003eErrata ids to copy into the new versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"package_ids","full_name":"add_content[package_ids]","description":"\n\u003cp\u003ePackage ids to copy into the new versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"deb_ids","full_name":"add_content[deb_ids]","description":"\n\u003cp\u003eDeb Package ids to copy into the new versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"puppet_module_ids","full_name":"add_content[puppet_module_ids]","description":"\n\u003cp\u003ePuppet Module ids to copy into the new versions\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"update_hosts","full_name":"update_hosts","description":"\n\u003cp\u003eAfter generating the incremental update, apply the changes to the specified\nhosts. Only Errata are supported currently.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"included","full_name":"update_hosts[included]","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"update_hosts[included][search]","description":"\n\u003cp\u003eSearch string for host to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"update_hosts[included][ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"update_hosts[excluded]","description":"","required":false,"allow_nil":true,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"update_hosts[excluded][ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"content_views":{"doc_url":"../apidoc/v2/content_views","id":"content_views","api_url":"/api","name":"Content views","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/content_views/index","name":"index","apis":[{"api_url":"/katello/api/organizations/:organization_id/content_views","http_method":"GET","short_description":"List content views","deprecated":null},{"api_url":"/katello/api/content_views","http_method":"GET","short_description":"List content views","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"nondefault","full_name":"nondefault","description":"\n\u003cp\u003eFilter out default content views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"noncomposite","full_name":"noncomposite","description":"\n\u003cp\u003eFilter out composite content views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"composite","full_name":"composite","description":"\n\u003cp\u003eFilter only composite content views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"without","full_name":"without","description":"\n\u003cp\u003eDo not include this array of content views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eName of the content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"composite","values":["true","false"]},{"name":"label","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/create","name":"create","apis":[{"api_url":"/katello/api/organizations/:organization_id/content_views","http_method":"POST","short_description":"Create a content view","deprecated":null},{"api_url":"/katello/api/content_views","http_method":"POST","short_description":"Create a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eName of the content view\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003eContent view label\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"composite","full_name":"composite","description":"\n\u003cp\u003eComposite content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eDescription for the content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"repository_ids","full_name":"repository_ids","description":"\n\u003cp\u003eList of repository ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"component_ids","full_name":"component_ids","description":"\n\u003cp\u003eList of component content view version ids for composite views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"auto_publish","full_name":"auto_publish","description":"\n\u003cp\u003eEnable/Disable auto publish of composite view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"solve_dependencies","full_name":"solve_dependencies","description":"\n\u003cp\u003eSolve RPM dependencies by default on Content View publish, defaults to\nfalse\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/update","name":"update","apis":[{"api_url":"/katello/api/content_views/:id","http_method":"PUT","short_description":"Update a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eNew name for the content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eDescription for the content view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"repository_ids","full_name":"repository_ids","description":"\n\u003cp\u003eList of repository ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"component_ids","full_name":"component_ids","description":"\n\u003cp\u003eList of component content view version ids for composite views\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"auto_publish","full_name":"auto_publish","description":"\n\u003cp\u003eEnable/Disable auto publish of composite view\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"solve_dependencies","full_name":"solve_dependencies","description":"\n\u003cp\u003eSolve RPM dependencies by default on Content View publish, defaults to\nfalse\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/publish","name":"publish","apis":[{"api_url":"/katello/api/content_views/:id/publish","http_method":"POST","short_description":"Publish a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003eDescription for the new published content view version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"major","full_name":"major","description":"\n\u003cp\u003eOverride the major version number\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"minor","full_name":"minor","description":"\n\u003cp\u003eOverride the minor version number\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repos_units","full_name":"repos_units","description":"\n\u003cp\u003eSpecify the list of units in each repo\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"label","full_name":"repos_units[label]","description":"\n\u003cp\u003erepo label\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"rpm_filenames","full_name":"repos_units[rpm_filenames]","description":"\n\u003cp\u003elist of rpm filename strings to include in published version\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of String","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/show","name":"show","apis":[{"api_url":"/katello/api/content_views/:id","http_method":"GET","short_description":"Show a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/available_puppet_modules","name":"available_puppet_modules","apis":[{"api_url":"/katello/api/content_views/:id/available_puppet_modules","http_method":"GET","short_description":"Get puppet modules that are available to be added to the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003emodule name to restrict modules for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/available_puppet_module_names","name":"available_puppet_module_names","apis":[{"api_url":"/katello/api/content_views/:id/available_puppet_module_names","http_method":"GET","short_description":"Get puppet modules names that are available to be added to the content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/remove_from_environment","name":"remove_from_environment","apis":[{"api_url":"/katello/api/content_views/:id/environments/:environment_id","http_method":"DELETE","short_description":"Remove a content view from an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/remove","name":"remove","apis":[{"api_url":"/katello/api/content_views/:id/remove","http_method":"PUT","short_description":"Remove versions and/or environments from a content view and reassign systems and keys","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_ids","full_name":"environment_ids","description":"\n\u003cp\u003eenvironment numeric identifiers to be removed\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view version identifiers to be deleted\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"system_content_view_id","full_name":"system_content_view_id","description":"\n\u003cp\u003econtent view to reassign orphaned systems to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"system_environment_id","full_name":"system_environment_id","description":"\n\u003cp\u003eenvironment to reassign orphaned systems to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"key_content_view_id","full_name":"key_content_view_id","description":"\n\u003cp\u003econtent view to reassign orphaned activation keys to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"key_environment_id","full_name":"key_environment_id","description":"\n\u003cp\u003eenvironment to reassign orphaned activation keys to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/destroy","name":"destroy","apis":[{"api_url":"/katello/api/content_views/:id","http_method":"DELETE","short_description":"Delete a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003econtent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/content_views/copy","name":"copy","apis":[{"api_url":"/katello/api/content_views/:id/copy","http_method":"POST","short_description":"Make copy of a content view","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent view numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eNew content view name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"debs":{"doc_url":"../apidoc/v2/debs","id":"debs","api_url":"/api","name":"Deb Packages","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/debs/index","name":"index","apis":[{"api_url":"/katello/api/debs","http_method":"GET","short_description":"List debs","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/debs","http_method":"GET","short_description":"List debs","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/debs","http_method":"GET","short_description":"List debs","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/debs","http_method":"GET","short_description":"List debs","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/debs/show","name":"show","apis":[{"api_url":"/katello/api/debs/:id","http_method":"GET","short_description":"Show a deb","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/debs/:id","http_method":"GET","short_description":"Show a deb","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea deb identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/debs/compare","name":"compare","apis":[{"api_url":"/katello/api/debs/compare","http_method":"GET","short_description":"List debs","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"docker_manifest_lists":{"doc_url":"../apidoc/v2/docker_manifest_lists","id":"docker_manifest_lists","api_url":"/api","name":"Docker manifest lists","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/docker_manifest_lists/index","name":"index","apis":[{"api_url":"/katello/api/docker_manifest_lists","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/docker_manifest_lists","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/docker_manifest_lists","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_manifest_lists","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_manifest_lists/show","name":"show","apis":[{"api_url":"/katello/api/docker_manifest_lists/:id","http_method":"GET","short_description":"Show a docker manifest list","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_manifest_lists/:id","http_method":"GET","short_description":"Show a docker manifest list","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea docker manifest list identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_manifest_lists/compare","name":"compare","apis":[{"api_url":"/katello/api/docker_manifest_lists/compare","http_method":"GET","short_description":"List docker_manifest_lists","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"docker_manifests":{"doc_url":"../apidoc/v2/docker_manifests","id":"docker_manifests","api_url":"/api","name":"Docker manifests","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/docker_manifests/index","name":"index","apis":[{"api_url":"/katello/api/docker_manifests","http_method":"GET","short_description":"List docker_manifests","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/docker_manifests","http_method":"GET","short_description":"List docker_manifests","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/docker_manifests","http_method":"GET","short_description":"List docker_manifests","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_manifests","http_method":"GET","short_description":"List docker_manifests","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_manifests/show","name":"show","apis":[{"api_url":"/katello/api/docker_manifests/:id","http_method":"GET","short_description":"Show a docker manifest","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_manifests/:id","http_method":"GET","short_description":"Show a docker manifest","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea docker manifest identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_manifests/compare","name":"compare","apis":[{"api_url":"/katello/api/docker_manifests/compare","http_method":"GET","short_description":"List docker_manifests","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"docker_tags":{"doc_url":"../apidoc/v2/docker_tags","id":"docker_tags","api_url":"/api","name":"Docker tags","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/docker_tags/index","name":"index","apis":[{"api_url":"/katello/api/docker_tags","http_method":"GET","short_description":"List docker_tags","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/docker_tags","http_method":"GET","short_description":"List docker_tags","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/docker_tags","http_method":"GET","short_description":"List docker_tags","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_tags","http_method":"GET","short_description":"List docker_tags","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_tags/show","name":"show","apis":[{"api_url":"/katello/api/docker_tags/:id","http_method":"GET","short_description":"Show a docker tag","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/docker_tags/:id","http_method":"GET","short_description":"Show a docker tag","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea docker tag identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_tags/compare","name":"compare","apis":[{"api_url":"/katello/api/docker_tags/compare","http_method":"GET","short_description":"List docker_tags","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/docker_tags/repositories","name":"repositories","apis":[{"api_url":"/katello/api/docker_tags/:id/repositories","http_method":"GET","short_description":"List of repositories for a docker meta tag","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"lifecycle_environments":{"doc_url":"../apidoc/v2/lifecycle_environments","id":"lifecycle_environments","api_url":"/api","name":"Lifecycle environments","short_description":null,"full_description":"\n\u003cp\u003e# Description\u003c/p\u003e\n\n\u003cp\u003eAn environment is a basic organization structure that groups hosts,\nproducts, repositories, etc. Every host belongs to one environment and\nit\u0026#39;s isolated inside so that it can see only content that is in its\nenvironment.\u003c/p\u003e\n\n\u003cp\u003e## Chains\u003c/p\u003e\n\n\u003cp\u003eEnvironments are ordered into chains and their content (products,\nrepositories, tempaltes, packages) can be moved to an environment only from\nits prior environment. You can have for example chain like:\u003c/p\u003e\n\n\u003cpre\u003eLibrary -\u0026gt; Development -\u0026gt; Testing -\u0026gt; Production\u003c/pre\u003e\n\n\u003cp\u003eEach change in an environment is done through a changeset in an action\ncalled promotion.\u003c/p\u003e\n\n\u003cp\u003e## Library\u003c/p\u003e\n\n\u003cp\u003eLibrary is a special environment that has no ascendant: All the content\nstarts in this environment. More chains can start from the library\nenvironment but no further branching of a chain is enabled.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/lifecycle_environments/index","name":"index","apis":[{"api_url":"/katello/api/environments","http_method":"GET","short_description":"List environments in an organization","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments","http_method":"GET","short_description":"List environments in an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"library","full_name":"library","description":"\n\u003cp\u003eset true if you want to see only library environments\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003efilter only environments containing this name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"id","type":"integer"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/show","name":"show","apis":[{"api_url":"/katello/api/environments/:id","http_method":"GET","short_description":"Show an environment","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments/:environment_id","http_method":"GET","short_description":"Show an environment","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/create","name":"create","apis":[{"api_url":"/katello/api/environments","http_method":"POST","short_description":"Create an environment","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments","http_method":"POST","short_description":"Create an environment in an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003ename of organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"label","full_name":"label","description":"\n\u003cp\u003elabel of the environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"registry_name_pattern","full_name":"registry_name_pattern","description":"\n\u003cp\u003epattern for container image names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"registry_unauthenticated_pull","full_name":"registry_unauthenticated_pull","description":"\n\u003cp\u003eallow unauthenticed pull of container images\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"prior_id","full_name":"prior_id","description":"\n\u003cp\u003eID of an environment that is prior to the new environment in the chain. It\nhas to be either the ID of Library or the ID of an environment at the end\nof a chain.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/update","name":"update","apis":[{"api_url":"/katello/api/environments/:id","http_method":"PUT","short_description":"Update an environment","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments/:id","http_method":"PUT","short_description":"Update an environment in an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003ename of the organization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"new_name","full_name":"new_name","description":"\n\u003cp\u003enew name to be given to the environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003edescription of the environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"registry_name_pattern","full_name":"registry_name_pattern","description":"\n\u003cp\u003epattern for container image names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"registry_unauthenticated_pull","full_name":"registry_unauthenticated_pull","description":"\n\u003cp\u003eallow unauthenticed pull of container images\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"async","full_name":"async","description":"\n\u003cp\u003eDo not wait for the update action to finish. Default: true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/destroy","name":"destroy","apis":[{"api_url":"/katello/api/environments/:id","http_method":"DELETE","short_description":"Destroy an environment","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/environments/:id","http_method":"DELETE","short_description":"Destroy an environment in an organization","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the environment\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/lifecycle_environments/paths","name":"paths","apis":[{"api_url":"/katello/api/organizations/:organization_id/environments/paths","http_method":"GET","short_description":"List environment paths","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"permission_type","full_name":"permission_type","description":"\n\u003cp\u003eThe associated permission type. One of (readable | promotable) Default:\nreadable\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"errata":{"doc_url":"../apidoc/v2/errata","id":"errata","api_url":"/api","name":"Errata","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/errata/index","name":"index","apis":[{"api_url":"/katello/api/errata","http_method":"GET","short_description":"List errata","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003eContent View Version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003eContent View Filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eEnvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"cve","full_name":"cve","description":"\n\u003cp\u003eCVE identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost id to list applicable errata for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"errata_restrict_applicable","full_name":"errata_restrict_applicable","description":"\n\u003cp\u003eReturn errata that are applicable to one or more hosts (defaults to true if\nhost_id is specified)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"errata_restrict_installable","full_name":"errata_restrict_installable","description":"\n\u003cp\u003eReturn errata that are upgradable on one or more hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eReturn errata that can be added to the specified object. The values\n\u0026#39;content_view_version\u0026#39; and \u0026#39;content_view_filter are supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"bug","type":"string"},{"name":"cve","type":"string"},{"name":"errata_id","type":"string"},{"name":"errata_type","type":"string"},{"name":"id","type":"string"},{"name":"issued","type":"date"},{"name":"modular","values":["true","false"]},{"name":"package","type":"string"},{"name":"package_name","type":"string"},{"name":"reboot_suggested","type":"boolean"},{"name":"repository","type":"string"},{"name":"severity","type":"string"},{"name":"title","type":"string"},{"name":"type","type":"string"},{"name":"updated","type":"date"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/errata/show","name":"show","apis":[{"api_url":"/katello/api/errata/:id","http_method":"GET","short_description":"Show an erratum","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/errata/:id","http_method":"GET","short_description":"Show an erratum","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ean erratum identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/errata/compare","name":"compare","apis":[{"api_url":"/katello/api/errata/compare","http_method":"GET","short_description":"List errata","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/errata/available_errata","name":"available_errata","apis":[{"api_url":"/katello/api/content_view_versions/:id/available_errata","http_method":"GET","short_description":"Return errata that can be added to the Content View Version via an Incremental Update","deprecated":true}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eContent View Version identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003eContent View Filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eRepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eEnvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"cve","full_name":"cve","description":"\n\u003cp\u003eCVE identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost id to list applicable errata for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"errata_restrict_applicable","full_name":"errata_restrict_applicable","description":"\n\u003cp\u003eReturn errata that are applicable to one or more hosts (defaults to true if\nhost_id is specified)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"errata_restrict_installable","full_name":"errata_restrict_installable","description":"\n\u003cp\u003eReturn errata that are upgradable on one or more hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"file_units":{"doc_url":"../apidoc/v2/file_units","id":"file_units","api_url":"/api","name":"Files","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/file_units/index","name":"index","apis":[{"api_url":"/katello/api/files","http_method":"GET","short_description":"List files","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/files","http_method":"GET","short_description":"List files","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/files","http_method":"GET","short_description":"List files","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/files","http_method":"GET","short_description":"List files","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/file_units/show","name":"show","apis":[{"api_url":"/katello/api/files/:id","http_method":"GET","short_description":"Show a file","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/files/:id","http_method":"GET","short_description":"Show a file","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea file identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/file_units/compare","name":"compare","apis":[{"api_url":"/katello/api/files/compare","http_method":"GET","short_description":"List files","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"gpg_keys":{"doc_url":"../apidoc/v2/gpg_keys","id":"gpg_keys","api_url":"/api","name":"Gpg keys","short_description":null,"full_description":"\n\u003cp\u003e# Description Documents the calls for the list, read, create, update and\ndelete operations for GPG keys\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/gpg_keys/index","name":"index","apis":[{"api_url":"/katello/api/gpg_keys","http_method":"GET","short_description":"List gpg keys","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ename of the GPG key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/create","name":"create","apis":[{"api_url":"/katello/api/gpg_keys","http_method":"POST","short_description":"Create a gpg key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eidentifier of the gpg key\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003epublic key block in DER encoding\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/show","name":"show","apis":[{"api_url":"/katello/api/gpg_keys/:id","http_method":"GET","short_description":"Show a gpg key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003egpg key numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/update","name":"update","apis":[{"api_url":"/katello/api/gpg_keys/:id","http_method":"PUT","short_description":"Update a repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003egpg key numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eidentifier of the gpg key\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003epublic key block in DER encoding\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/destroy","name":"destroy","apis":[{"api_url":"/katello/api/gpg_keys/:id","http_method":"DELETE","short_description":"Destroy a gpg key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003egpg key numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/content","name":"content","apis":[{"api_url":"/katello/api/gpg_keys/:id/content","http_method":"GET","short_description":"Return the content of a gpg key, used directly by yum","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/gpg_keys/set_content","name":"set_content","apis":[{"api_url":"/katello/api/gpg_keys/:id/content","http_method":"POST","short_description":"Upload gpg key contents","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003egpg key numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003efile contents\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"File","expected_type":"file","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_collections":{"doc_url":"../apidoc/v2/host_collections","id":"host_collections","api_url":"/api","name":"Host collections","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_collections/show","name":"show","apis":[{"api_url":"/katello/api/host_collections/:id","http_method":"GET","short_description":"Show a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/index","name":"index","apis":[{"api_url":"/katello/api/host_collections","http_method":"GET","short_description":"List host collections","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/host_collections","http_method":"GET","short_description":"List host collections within an organization","deprecated":null},{"api_url":"/katello/api/activation_keys/:activation_key_id/host_collections","http_method":"GET","short_description":"List host collections in an activation key","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003ehost collection name to filter by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"activation_key_id","full_name":"activation_key_id","description":"\n\u003cp\u003eactivation key identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eFilter products by host id\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"available_for","full_name":"available_for","description":"\n\u003cp\u003eInterpret specified object to return only Host Collections that can be\nassociated with specified object. The value \u0026#39;host\u0026#39; is supported.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"host","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/create","name":"create","apis":[{"api_url":"/katello/api/host_collections","http_method":"POST","short_description":"Create a host collection","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/host_collections","http_method":"POST","short_description":"Create a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eHost Collection name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eList of host ids to replace the hosts in host collection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"max_hosts","full_name":"max_hosts","description":"\n\u003cp\u003eMaximum number of hosts in the host collection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unlimited_hosts","full_name":"unlimited_hosts","description":"\n\u003cp\u003eWhether or not the host collection may have unlimited hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/update","name":"update","apis":[{"api_url":"/katello/api/host_collections/:id","http_method":"PUT","short_description":"Update a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eHost Collection name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eList of host ids to replace the hosts in host collection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"max_hosts","full_name":"max_hosts","description":"\n\u003cp\u003eMaximum number of hosts in the host collection\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"unlimited_hosts","full_name":"unlimited_hosts","description":"\n\u003cp\u003eWhether or not the host collection may have unlimited hosts\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/add_hosts","name":"add_hosts","apis":[{"api_url":"/katello/api/host_collections/:id/add_hosts","http_method":"PUT","short_description":"Add host to the host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eArray of host ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/remove_hosts","name":"remove_hosts","apis":[{"api_url":"/katello/api/host_collections/:id/remove_hosts","http_method":"PUT","short_description":"Remove hosts from the host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eArray of host ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/destroy","name":"destroy","apis":[{"api_url":"/katello/api/host_collections/:id","http_method":"DELETE","short_description":"Destroy a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eId of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_collections/copy","name":"copy","apis":[{"api_url":"/katello/api/host_collections/:id/copy","http_method":"POST","short_description":"Make copy of a host collection","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the host collection\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003eNew host collection name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"host_debs":{"doc_url":"../apidoc/v2/host_debs","id":"host_debs","api_url":"/api","name":"Host debs","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_debs/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/debs","http_method":"GET","short_description":"List deb packages installed on the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_errata":{"doc_url":"../apidoc/v2/host_errata","id":"host_errata","api_url":"/api","name":"Host errata","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_errata/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/errata","http_method":"GET","short_description":"List errata available for the content host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eUUID of the content host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"\n\u003cp\u003eCalculate Applicable Errata based on a particular Content View\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eCalculate Applicable Errata based on a particular Environment\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_errata/apply","name":"apply","apis":[{"api_url":"/api/hosts/:host_id/errata/apply","http_method":"PUT","short_description":"Schedule errata for installation","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"errata_ids","full_name":"errata_ids","description":"\n\u003cp\u003eList of Errata ids to install\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"\n\u003cp\u003eErrata to exclusively include in the action\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for erratum to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of errata ids to perform an action on, (ex: RHSA-2019:1168)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"\n\u003cp\u003eErrata to explicitly exclude in the action. All other applicable errata\nwill be included in the action, unless an included parameter is passed as\nwell.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of errata ids to exclude and not run an action on, (ex:\nRHSA-2019:1168)\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_errata/show","name":"show","apis":[{"api_url":"/api/hosts/:host_id/errata/:id","http_method":"GET","short_description":"Retrieve a single errata for a host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eErrata id of the erratum (RHSA-2012:108)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_errata/applicability","name":"applicability","apis":[{"api_url":"/api/hosts/:host_id/errata/applicability","http_method":"PUT","short_description":"Force regenerate applicability.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eHost ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_module_streams":{"doc_url":"../apidoc/v2/host_module_streams","id":"host_module_streams","api_url":"/api","name":"Host module streams","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_module_streams/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/module_streams","http_method":"GET","short_description":"List module streams available to the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"status","full_name":"status","description":"\n\u003cp\u003eStreams based on the host based on their status\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003eenabled\u003c/code\u003e, \u003ccode\u003edisabled\u003c/code\u003e, \u003ccode\u003eunknown\u003c/code\u003e, \u003ccode\u003einstalled\u003c/code\u003e, \u003ccode\u003eupgradable\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_packages":{"doc_url":"../apidoc/v2/host_packages","id":"host_packages","api_url":"/api","name":"Host packages","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_packages/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/packages","http_method":"GET","short_description":"List packages installed on the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"arch","type":"string"},{"name":"epoch","type":"string"},{"name":"name","type":"string"},{"name":"nvra","type":"string"},{"name":"nvrea","type":"string"},{"name":"release","type":"string"},{"name":"version","type":"string"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_packages/install","name":"install","apis":[{"api_url":"/api/hosts/:host_id/packages/install","http_method":"PUT","short_description":"Install packages remotely","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"packages","full_name":"packages","description":"\n\u003cp\u003eList of package names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"groups","full_name":"groups","description":"\n\u003cp\u003eList of package group names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_packages/upgrade","name":"upgrade","apis":[{"api_url":"/api/hosts/:host_id/packages/upgrade","http_method":"PUT","short_description":"Update packages remotely","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"packages","full_name":"packages","description":"\n\u003cp\u003elist of packages names\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_packages/upgrade_all","name":"upgrade_all","apis":[{"api_url":"/api/hosts/:host_id/packages/upgrade_all","http_method":"PUT","short_description":"Update packages remotely","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_packages/remove","name":"remove","apis":[{"api_url":"/api/hosts/:host_id/packages/remove","http_method":"PUT","short_description":"Uninstall packages remotely","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"packages","full_name":"packages","description":"\n\u003cp\u003eList of package names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"groups","full_name":"groups","description":"\n\u003cp\u003eList of package group names\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"host_tracer":{"doc_url":"../apidoc/v2/host_tracer","id":"host_tracer","api_url":"/api","name":"Host tracer","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/host_tracer/index","name":"index","apis":[{"api_url":"/api/hosts/:host_id/traces","http_method":"GET","short_description":"List services that need restarting on the host","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"host_id","full_name":"host_id","description":"\n\u003cp\u003eID of the host\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/host_tracer/resolve","name":"resolve","apis":[{"api_url":"/api/traces/resolve","http_method":"PUT","short_description":"Resolve Traces","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"trace_ids","full_name":"trace_ids","description":"\n\u003cp\u003eArray of Trace IDs\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"hosts_bulk_actions":{"doc_url":"../apidoc/v2/hosts_bulk_actions","id":"hosts_bulk_actions","api_url":"/api","name":"Hosts bulk actions","short_description":null,"full_description":"","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/hosts_bulk_actions/bulk_add_host_collections","name":"bulk_add_host_collections","apis":[{"api_url":"/api/hosts/bulk/add_host_collections","http_method":"PUT","short_description":"Add one or more host collections to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/bulk_remove_host_collections","name":"bulk_remove_host_collections","apis":[{"api_url":"/api/hosts/bulk/remove_host_collections","http_method":"PUT","short_description":"Remove one or more host collections from one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"host_collection_ids","full_name":"host_collection_ids","description":"\n\u003cp\u003eList of host collection ids\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/applicable_errata","name":"applicable_errata","apis":[{"api_url":"/api/hosts/bulk/applicable_errata","http_method":"POST","short_description":"Fetch applicable errata for one or more hosts.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/installable_errata","name":"installable_errata","apis":[{"api_url":"/api/hosts/bulk/installable_errata","http_method":"POST","short_description":"Fetch installable errata for one or more hosts.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/install_content","name":"install_content","apis":[{"api_url":"/api/hosts/bulk/install_content","http_method":"PUT","short_description":"Install content on one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003eThe type of content. The following types are supported: \u0026#39;package\u0026#39;,\n\u0026#39;package_group\u0026#39; and \u0026#39;errata\u0026#39;.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eList of content (e.g. package names, package group names or errata ids)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/update_content","name":"update_content","apis":[{"api_url":"/api/hosts/bulk/update_content","http_method":"PUT","short_description":"Update content on one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003eThe type of content. The following types are supported: \u0026#39;package\u0026#39;\nand \u0026#39;package_group.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eList of content (e.g. package or package group names)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"update_all","full_name":"update_all","description":"\n\u003cp\u003eUpdates all packages on the host(s)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/remove_content","name":"remove_content","apis":[{"api_url":"/api/hosts/bulk/remove_content","http_method":"PUT","short_description":"Remove content on one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"content_type","full_name":"content_type","description":"\n\u003cp\u003eThe type of content. The following types are supported: \u0026#39;package\u0026#39;\nand \u0026#39;package_group.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"content","full_name":"content","description":"\n\u003cp\u003eList of content (e.g. package or package group names)\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/destroy_hosts","name":"destroy_hosts","apis":[{"api_url":"/api/hosts/bulk/destroy","http_method":"PUT","short_description":"Destroy one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/remove_subscriptions","name":"remove_subscriptions","apis":[{"api_url":"/api/hosts/bulk/remove_subscriptions","http_method":"PUT","short_description":"Remove subscriptions from one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to remove\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eQuantity of specified subscription to remove\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/add_subscriptions","name":"add_subscriptions","apis":[{"api_url":"/api/hosts/bulk/add_subscriptions","http_method":"PUT","short_description":"Add subscriptions to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"subscriptions","full_name":"subscriptions","description":"\n\u003cp\u003eArray of subscriptions to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"subscriptions[id]","description":"\n\u003cp\u003eSubscription Pool id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"subscriptions[quantity]","description":"\n\u003cp\u003eQuantity of this subscriptions to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/auto_attach","name":"auto_attach","apis":[{"api_url":"/api/hosts/bulk/auto_attach","http_method":"PUT","short_description":"Trigger an auto-attach of subscriptions on one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/content_overrides","name":"content_overrides","apis":[{"api_url":"/api/hosts/bulk/content_overrides","http_method":"PUT","short_description":"Set content overrides to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"content_overrides","full_name":"content_overrides","description":"\n\u003cp\u003eArray of Content override parameters\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"content_label","full_name":"content_overrides[content_label]","description":"\n\u003cp\u003eLabel of the content\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"value","full_name":"content_overrides[value]","description":"\n\u003cp\u003eOverride value. Provide a boolean value if name is \u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"content_overrides[name]","description":"\n\u003cp\u003eOverride key or name. Note if name is not provided the default name will be\n\u0026#39;enabled\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"remove","full_name":"content_overrides[remove]","description":"\n\u003cp\u003eSet true to remove an override and reset it to \u0026#39;default\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/environment_content_view","name":"environment_content_view","apis":[{"api_url":"/api/hosts/bulk/environment_content_view","http_method":"PUT","short_description":"Assign the environment and content view to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"environment_id","full_name":"environment_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_id","full_name":"content_view_id","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/release_version","name":"release_version","apis":[{"api_url":"/api/hosts/bulk/release_version","http_method":"PUT","short_description":"Assign the release version to one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"release_version","full_name":"release_version","description":"\n\u003cp\u003econtent release version\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/traces","name":"traces","apis":[{"api_url":"/api/hosts/bulk/traces","http_method":"POST","short_description":"Fetch traces for one or more hosts","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/available_incremental_updates","name":"available_incremental_updates","apis":[{"api_url":"/api/hosts/bulk/available_incremental_updates","http_method":"POST","short_description":"Given a set of hosts and errata, lists the content view versions and environments that need updating.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"errata_ids","full_name":"errata_ids","description":"\n\u003cp\u003eList of Errata ids\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/hosts_bulk_actions/module_streams","name":"module_streams","apis":[{"api_url":"/api/hosts/bulk/module_streams","http_method":"POST","short_description":"Fetch available module streams for hosts.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eID of the organization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"included","full_name":"included","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"search","full_name":"included[search]","description":"\n\u003cp\u003eSearch string for hosts to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"included[ids]","description":"\n\u003cp\u003eList of host ids to perform an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]},{"name":"excluded","full_name":"excluded","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Hash","expected_type":"hash","metadata":null,"show":true,"validations":[],"params":[{"name":"ids","full_name":"excluded[ids]","description":"\n\u003cp\u003eList of host ids to exclude and not run an action on\u003c/p\u003e\n","required":false,"allow_nil":true,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false},"module_streams":{"doc_url":"../apidoc/v2/module_streams","id":"module_streams","api_url":"/api","name":"Module streams","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/module_streams/index","name":"index","apis":[{"api_url":"/katello/api/module_streams","http_method":"GET","short_description":"List module_streams","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/module_streams","http_method":"GET","short_description":"List module_streams","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/module_streams","http_method":"GET","short_description":"List module_streams","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/module_streams","http_method":"GET","short_description":"List module_streams","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"host_ids","full_name":"host_ids","description":"\n\u003cp\u003eList of host id to list available module streams for\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"name_stream_only","full_name":"name_stream_only","description":"\n\u003cp\u003eReturn name and stream information only)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/module_streams/show","name":"show","apis":[{"api_url":"/katello/api/module_streams/:id","http_method":"GET","short_description":"Show a module stream","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/module_streams/:id","http_method":"GET","short_description":"Show a module stream","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea module stream identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/module_streams/compare","name":"compare","apis":[{"api_url":"/katello/api/module_streams/compare","http_method":"GET","short_description":"List module_streams","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"ostree_branches":{"doc_url":"../apidoc/v2/ostree_branches","id":"ostree_branches","api_url":"/api","name":"Ostree branches","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/ostree_branches/index","name":"index","apis":[{"api_url":"/katello/api/ostree_branches","http_method":"GET","short_description":"List ostree_branches","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/ostree_branches","http_method":"GET","short_description":"List ostree_branches","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/ostree_branches","http_method":"GET","short_description":"List ostree_branches","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/ostree_branches","http_method":"GET","short_description":"List ostree_branches","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ostree_branches/show","name":"show","apis":[{"api_url":"/katello/api/ostree_branches/:id","http_method":"GET","short_description":"Show an ostree branch","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/ostree_branches/:id","http_method":"GET","short_description":"Show an ostree branch","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ean ostree branch identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/ostree_branches/compare","name":"compare","apis":[{"api_url":"/katello/api/ostree_branches/compare","http_method":"GET","short_description":"List ostree_branches","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"package_groups":{"doc_url":"../apidoc/v2/package_groups","id":"package_groups","api_url":"/api","name":"Package groups","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/package_groups/index","name":"index","apis":[{"api_url":"/katello/api/package_groups","http_method":"GET","short_description":"List package_groups","deprecated":null},{"api_url":"/katello/api/content_views/:content_view_id/filters/:filter_id/package_groups","http_method":"GET","short_description":"List package_groups","deprecated":null},{"api_url":"/katello/api/content_view_filters/:content_view_filter_id/package_groups","http_method":"GET","short_description":"List package_groups","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/package_groups","http_method":"GET","short_description":"List package_groups","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_version_id","full_name":"content_view_version_id","description":"\n\u003cp\u003econtent view version identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_id","full_name":"content_view_filter_id","description":"\n\u003cp\u003econtent view filter identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"content_view_filter_rule_id","full_name":"content_view_filter_rule_id","description":"\n\u003cp\u003econtent view filter rule identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment_id","full_name":"environment_id","description":"\n\u003cp\u003eenvironment identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ids","full_name":"ids","description":"\n\u003cp\u003eids to filter content by\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/package_groups/show","name":"show","apis":[{"api_url":"/katello/api/package_groups/:id","http_method":"GET","short_description":"Show a package group","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/package_groups/:id","http_method":"GET","short_description":"Show a package group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eorganization identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003ea package group identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/package_groups/compare","name":"compare","apis":[{"api_url":"/katello/api/package_groups/compare","http_method":"GET","short_description":"List package_groups","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"content_view_version_ids","full_name":"content_view_version_ids","description":"\n\u003cp\u003econtent view versions to compare\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003eLibrary repository id to restrict comparisons to\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/package_groups/create","name":"create","apis":[{"api_url":"/katello/api/package_group","http_method":"POST","short_description":"Create a package group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository_id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003epackage group name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003epackage group description. Defaults to \u003ca href=\":name\"\u003eparams\u003c/a\u003e\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user_visible","full_name":"user_visible","description":"\n\u003cp\u003eset “user_visible” flag on package group. Defaults to true\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"mandatory_package_names","full_name":"mandatory_package_names","description":"\n\u003cp\u003emandatory package names to include in the package group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"optional_package_names","full_name":"optional_package_names","description":"\n\u003cp\u003eoptional package names to include in the package group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"conditional_package_names","full_name":"conditional_package_names","description":"\n\u003cp\u003econditional package names to include in the package group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"default_package_names","full_name":"default_package_names","description":"\n\u003cp\u003edefault package names to include in the package group\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/package_groups/destroy","name":"destroy","apis":[{"api_url":"/katello/api/package_group","http_method":"DELETE","short_description":"Delete a package group","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"name","full_name":"name","description":"\n\u003cp\u003epackage group name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"repository_id","full_name":"repository_id","description":"\n\u003cp\u003erepository_id\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"sync":{"doc_url":"../apidoc/v2/sync","id":"sync","api_url":"/api","name":"Sync","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/sync/index","name":"index","apis":[{"api_url":"/katello/api/organizations/:organization_id/products/:product_id/sync","http_method":"GET","short_description":"Get status of repo synchronisation for given product","deprecated":null},{"api_url":"/katello/api/repositories/:repository_id/sync","http_method":"GET","short_description":"Get status of synchronisation for given repository","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"sync_plans":{"doc_url":"../apidoc/v2/sync_plans","id":"sync_plans","api_url":"/api","name":"Sync plans","short_description":null,"full_description":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/sync_plans/index","name":"index","apis":[{"api_url":"/katello/api/sync_plans","http_method":"GET","short_description":"List sync plans","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/sync_plans","http_method":"GET","short_description":null,"deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003efilter by name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sync_date","full_name":"sync_date","description":"\n\u003cp\u003efilter by sync date\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interval","full_name":"interval","description":"\n\u003cp\u003efilter by interval\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ehourly\u003c/code\u003e, \u003ccode\u003edaily\u003c/code\u003e, \u003ccode\u003eweekly\u003c/code\u003e, \u003ccode\u003ecustom cron\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"search","full_name":"search","description":"\n\u003cp\u003eSearch string\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eSort field and order, eg. \u0026#39;id DESC\u0026#39;\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"full_result","full_name":"full_result","description":"\n\u003cp\u003eWhether or not to show all results\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eField to sort the results on\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_order","full_name":"sort_order","description":"\n\u003cp\u003eHow to order the sorted results (e.g. ASC for ascending)\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":{"search":[{"name":"enabled","values":["true","false"]},{"name":"interval","type":"string"},{"name":"name","type":"string"},{"name":"organization_id","type":"integer"}]},"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/show","name":"show","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id","http_method":"GET","short_description":"Show a sync plan","deprecated":null},{"api_url":"/katello/api/sync_plans/:id","http_method":"GET","short_description":"Show a sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003esync plan numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/create","name":"create","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans","http_method":"POST","short_description":"Create a sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003esync plan name\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interval","full_name":"interval","description":"\n\u003cp\u003ehow often synchronization should run\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ehourly\u003c/code\u003e, \u003ccode\u003edaily\u003c/code\u003e, \u003ccode\u003eweekly\u003c/code\u003e, \u003ccode\u003ecustom cron\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sync_date","full_name":"sync_date","description":"\n\u003cp\u003estart datetime of synchronization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003esync plan description\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eenables or disables synchronization\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"cron_expression","full_name":"cron_expression","description":"\n\u003cp\u003eAdd custom cron logic for sync plan\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/update","name":"update","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id","http_method":"PUT","short_description":"Update a sync plan","deprecated":null},{"api_url":"/katello/api/sync_plans/:id","http_method":"PUT","short_description":"Update a sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003esync plan numeric identifier\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"\n\u003cp\u003esync plan name\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"interval","full_name":"interval","description":"\n\u003cp\u003ehow often synchronization should run\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003ehourly\u003c/code\u003e, \u003ccode\u003edaily\u003c/code\u003e, \u003ccode\u003eweekly\u003c/code\u003e, \u003ccode\u003ecustom cron\u003c/code\u003e.","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sync_date","full_name":"sync_date","description":"\n\u003cp\u003estart datetime of synchronization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"description","full_name":"description","description":"\n\u003cp\u003esync plan description\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"enabled","full_name":"enabled","description":"\n\u003cp\u003eenables or disables synchronization\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"cron_expression","full_name":"cron_expression","description":"\n\u003cp\u003eAdd custom cron logic for sync plan\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/destroy","name":"destroy","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id","http_method":"DELETE","short_description":"Destroy a sync plan","deprecated":null},{"api_url":"/katello/api/sync_plans/:id","http_method":"DELETE","short_description":"Destroy a sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003esync plan numeric identifier\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/add_products","name":"add_products","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id/add_products","http_method":"PUT","short_description":"Add products to sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_ids","full_name":"product_ids","description":"\n\u003cp\u003eList of product ids to add to the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/remove_products","name":"remove_products","apis":[{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id/remove_products","http_method":"PUT","short_description":"Remove products from sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"product_ids","full_name":"product_ids","description":"\n\u003cp\u003eList of product ids to remove from the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/sync_plans/sync","name":"sync","apis":[{"api_url":"/katello/api/sync_plans/:id/sync","http_method":"PUT","short_description":"Initiate a sync of the products attached to the sync plan","deprecated":null},{"api_url":"/katello/api/organizations/:organization_id/sync_plans/:id/sync","http_method":"PUT","short_description":"Initiate a sync of the products attached to the sync plan","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"id","full_name":"id","description":"\n\u003cp\u003eID of the sync plan\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":null,"deprecated":null},"upstream_subscriptions":{"doc_url":"../apidoc/v2/upstream_subscriptions","id":"upstream_subscriptions","api_url":"/api","name":"Upstream subscriptions","short_description":null,"full_description":"\n\u003cp\u003eRed Hat subscriptions management platform.\u003c/p\u003e\n","version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/upstream_subscriptions/index","name":"index","apis":[{"api_url":"/katello/api/organizations/:organization_id/upstream_subscriptions","http_method":"GET","short_description":"List available subscriptions from Red Hat Subscription Management","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"page","full_name":"page","description":"\n\u003cp\u003ePage number, starting at 1\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"per_page","full_name":"per_page","description":"\n\u003cp\u003eNumber of results per page to return.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"order","full_name":"order","description":"\n\u003cp\u003eThe order to sort the results in. [\u0026#39;asc\u0026#39;, \u0026#39;desc\u0026#39;] Defaults\nto \u0026#39;desc\u0026#39;.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"sort_by","full_name":"sort_by","description":"\n\u003cp\u003eThe field to sort the data by. Defaults to the created date.\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"pool_ids","full_name":"pool_ids","description":"\n\u003cp\u003eReturn only the upstream pools which map to the given Katello pool IDs\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]},{"name":"quantities_only","full_name":"quantities_only","description":"\n\u003cp\u003eOnly returns id and quantity fields\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]},{"name":"attachable","full_name":"attachable","description":"\n\u003cp\u003eReturn only subscriptions which can be attached to the upstream allocation\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be one of: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, \u003ccode\u003e1\u003c/code\u003e, \u003ccode\u003e0\u003c/code\u003e.","expected_type":"boolean","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/upstream_subscriptions/update","name":"update","apis":[{"api_url":"/katello/api/organizations/:organization_id/upstream_subscriptions","http_method":"PUT","short_description":"Update the quantity of one or more subscriptions on an upstream allocation","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"pools","full_name":"pools","description":"\n\u003cp\u003eArray of Pools to be updated. Only pools originating upstream are accepted.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"pools[id]","description":"\n\u003cp\u003eKatello ID of local pool to update\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"pools[quantity]","description":"\n\u003cp\u003eDesired quantity of the pool\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/upstream_subscriptions/destroy","name":"destroy","apis":[{"api_url":"/katello/api/organizations/:organization_id/upstream_subscriptions","http_method":"DELETE","short_description":"Remove one or more subscriptions from an upstream subscription allocation","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"pool_ids","full_name":"pool_ids","description":"\n\u003cp\u003eArray of local pool IDs. Only pools originating upstream are accepted.\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an array of any type","expected_type":"array","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/upstream_subscriptions/create","name":"create","apis":[{"api_url":"/katello/api/organizations/:organization_id/upstream_subscriptions","http_method":"POST","short_description":"Add subscriptions consumed by a manifest from Red Hat Subscription Management","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[{"name":"pools","full_name":"pools","description":"\n\u003cp\u003eArray of pools to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be an Array of nested elements","expected_type":"array","metadata":null,"show":true,"validations":[],"params":[{"name":"id","full_name":"pools[id]","description":"\n\u003cp\u003eCandlepin ID of pool to add\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"quantity","full_name":"pools[quantity]","description":"\n\u003cp\u003eQuantity of entitlements to bind\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eOrganization ID\u003c/p\u003e\n","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a number.","expected_type":"numeric","metadata":null,"show":true,"validations":[]}],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true},{"doc_url":"../apidoc/v2/upstream_subscriptions/ping","name":"ping","apis":[{"api_url":"/katello/api/organizations/:organization_id/upstream_subscriptions/ping","http_method":"GET","short_description":"Check if a connection can be made to Red Hat Subscription Management.","deprecated":null}],"formats":null,"full_description":"","errors":[],"params":[],"returns":[],"examples":[],"metadata":null,"see":[],"headers":[],"show":true}],"headers":[],"deprecated":false}},"link_extension":".html"}} \ No newline at end of file diff --git a/tests/fixtures/apidoc/status_info.json b/tests/fixtures/apidoc/status_info.json new file mode 120000 index 00000000..f9e40151 --- /dev/null +++ b/tests/fixtures/apidoc/status_info.json @@ -0,0 +1 @@ +foreman.json \ No newline at end of file diff --git a/tests/test_foreman_spec_helper.py b/tests/test_foreman_spec_helper.py index ae82195c..6c5ff47e 100644 --- a/tests/test_foreman_spec_helper.py +++ b/tests/test_foreman_spec_helper.py @@ -20,7 +20,7 @@ def test_full_entity(): 'prices': {'type': 'nested_list', 'foreman_spec': { 'value': {'type': 'int'}, }}, - 'tenant': {'type': 'invisible'}, + 'tenant': {'invisible': True}, } foreman_spec, argument_spec = _foreman_spec_helper(spec) assert spec == { @@ -33,7 +33,7 @@ def test_full_entity(): 'prices': {'type': 'nested_list', 'foreman_spec': { 'value': {'type': 'int'}, }}, - 'tenant': {'type': 'invisible'}, + 'tenant': {'invisible': True}, } assert foreman_spec == { 'name': {}, @@ -46,7 +46,7 @@ def test_full_entity(): 'houses': {'type': 'entity_list', 'flat_name': 'house_ids', 'resource_type': 'houses'}, 'house_ids': {'type': 'list'}, 'prices': {'type': 'nested_list', 'ensure': False}, - 'tenant': {'type': 'invisible'}, + 'tenant': {}, } assert argument_spec == { 'name': {}, diff --git a/tests/test_playbooks/content_view.yml b/tests/test_playbooks/content_view.yml index 4bbd2c53..fa36838c 100644 --- a/tests/test_playbooks/content_view.yml +++ b/tests/test_playbooks/content_view.yml @@ -199,6 +199,16 @@ composite: true auto_publish: true + # Remove the original CV again + - include: tasks/content_view.yml + vars: + content_view_state: absent + expected_change: true + - include: tasks/content_view.yml + vars: + content_view_state: absent + expected_change: false + - hosts: localhost collections: - redhat.satellite diff --git a/tests/test_playbooks/content_view_filter.yml b/tests/test_playbooks/content_view_filter.yml index f0384eea..30bb6615 100644 --- a/tests/test_playbooks/content_view_filter.yml +++ b/tests/test_playbooks/content_view_filter.yml @@ -18,6 +18,7 @@ - include: tasks/repository.yml vars: repository_state: present + repository_url: "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/" - include: tasks/repository.yml vars: repository_state: present diff --git a/tests/test_playbooks/fixtures/content_view-0.yml b/tests/test_playbooks/fixtures/content_view-0.yml index 918f6afa..278f2c6e 100644 --- a/tests/test_playbooks/fixtures/content_view-0.yml +++ b/tests/test_playbooks/fixtures/content_view-0.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:38 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=71e9074df2c4cff3cff61351b1527b14; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c0a9c7cc-efb8-47c9-b450-13cf1cdb3a13 - x-runtime: - - '0.127298' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=71e9074df2c4cff3cff61351b1527b14 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:38 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c82caf4b-c0ef-4481-8f53-9064f4cc68ca - x-runtime: - - '0.016117' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,71 +125,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=71e9074df2c4cff3cff61351b1527b14 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":14,"cp_id":"320303814264","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":21,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"sync_plan":null,"repository_count":1}]} + string: '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '616' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:38 GMT - etag: - - W/"97654e93af5b1a6725570193726a47b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ec45bb40-edc5-4fc9-b614-0813c1897293 - x-runtime: - - '0.038633' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '157' status: code: 200 message: OK @@ -232,72 +184,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=71e9074df2c4cff3cff61351b1527b14 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/14/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/organizations/14/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a653b13a-cdef-41ea-8f6a-6951a406459b","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":25,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":null,"content_view":{"id":17,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572611131162","major":null,"minor":null,"product":{"id":14,"cp_id":"320303814264","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":18,"cp_id":"956117903760","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":25,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-14 + 10:19:27 UTC","last_sync_words":"less than a minute","organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"sync_plan":null,"repository_count":1}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1236' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:38 GMT - etag: - - W/"1a2132a9bee2429f5ce1111452304952-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: + Foreman_current_location: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 63ef074f-337e-449b-91da-7c65b0410058 - x-runtime: - - '0.050014' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '653' status: code: 200 message: OK @@ -310,75 +246,63 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=71e9074df2c4cff3cff61351b1527b14 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/products/18/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"1819fd9f-8231-43ee-9132-a87a073ba3d7","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":30,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":null,"content_view":{"id":29,"name":"Default + Organization View"},"content_view_version":{"id":18,"name":"Default Organization + View 1.0","content_view_id":29},"kt_environment":{"id":13,"name":"Library"},"content_type":"yum","url":null,"arch":"noarch","content_id":"1600078766677","major":null,"minor":null,"product":{"id":18,"cp_id":"956117903760","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '157' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:38 GMT - etag: - - W/"14ccc756f2c9debc776972f428e30deb-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: + - ; ANY + Foreman_current_organization: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 50f2c962-8c54-48d1-b8a4-0bf2bc4727a5 - x-runtime: - - '0.016449' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1319' status: code: 200 message: OK - request: - body: !!python/unicode '{"composite": false, "repository_ids": [25], "auto_publish": - false, "name": "Test Content View"}' + body: '{"name": "Test Content View", "composite": false, "repository_ids": [30], + "auto_publish": false}' headers: Accept: - application/json;version=2 @@ -390,75 +314,55 @@ interactions: - '96' Content-Type: - application/json - Cookie: - - _session_id=71e9074df2c4cff3cff61351b1527b14 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views + uri: https://foreman.example.org/katello/api/organizations/14/content_views response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":18,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:38 UTC","updated_at":"2019-11-01 12:25:38 UTC","environments":[],"repositories":[{"id":25,"name":"Test + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":30,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:35 UTC","updated_at":"2020-09-14 10:19:35 UTC","environments":[],"repositories":[{"id":30,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '948' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:38 GMT - etag: - - W/"9549121490496dafdaedee372a7e22ae-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - dd8a586d-d60a-4add-ae05-41705813aea0 - x-runtime: - - '0.053113' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/content_view-1.yml b/tests/test_playbooks/fixtures/content_view-1.yml index 04058482..5994f536 100644 --- a/tests/test_playbooks/fixtures/content_view-1.yml +++ b/tests/test_playbooks/fixtures/content_view-1.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:38 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=d454c1bec18e5b2b6516364259731fc2; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9088740f-d7c7-4f95-8275-a6c88c97b343 - x-runtime: - - '0.124189' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d454c1bec18e5b2b6516364259731fc2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:38 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a757082b-12ce-4cd1-a9b0-6c4ca46bf107 - x-runtime: - - '0.015410' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,71 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d454c1bec18e5b2b6516364259731fc2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":14,"cp_id":"320303814264","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":21,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"sync_plan":null,"repository_count":1}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":30,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:35 UTC","updated_at":"2020-09-14 10:19:35 UTC","environments":[],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '616' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:38 GMT - etag: - - W/"97654e93af5b1a6725570193726a47b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 57edf0f5-adad-4d8c-bae9-18852a2a2fe7 - x-runtime: - - '0.045655' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1040' status: code: 200 message: OK @@ -232,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d454c1bec18e5b2b6516364259731fc2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/14/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/content_views/30 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a653b13a-cdef-41ea-8f6a-6951a406459b","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":25,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":null,"content_view":{"id":17,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572611131162","major":null,"minor":null,"product":{"id":14,"cp_id":"320303814264","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":30,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:35 UTC","updated_at":"2020-09-14 10:19:35 UTC","environments":[],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1236' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:39 GMT - etag: - - W/"1a2132a9bee2429f5ce1111452304952-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1db9b510-bc4f-4686-bebb-6ac79d3a109d - x-runtime: - - '0.057676' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '948' status: code: 200 message: OK @@ -310,73 +250,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d454c1bec18e5b2b6516364259731fc2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":18,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:38 UTC","updated_at":"2019-11-01 12:25:38 UTC","environments":[],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":18,"cp_id":"956117903760","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":25,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-14 + 10:19:27 UTC","last_sync_words":"less than a minute","organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"sync_plan":null,"repository_count":1}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:39 GMT - etag: - - W/"51dfd8c99ec05868c4f677823bafca44-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 201339c4-c00c-48f8-8a8c-8c5967efef94 - x-runtime: - - '0.029702' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '653' status: code: 200 message: OK @@ -389,72 +312,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d454c1bec18e5b2b6516364259731fc2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/18 + uri: https://foreman.example.org/katello/api/products/18/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":18,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:38 UTC","updated_at":"2019-11-01 12:25:38 UTC","environments":[],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"1819fd9f-8231-43ee-9132-a87a073ba3d7","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":30,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":null,"content_view":{"id":29,"name":"Default + Organization View"},"content_view_version":{"id":18,"name":"Default Organization + View 1.0","content_view_id":29},"kt_environment":{"id":13,"name":"Library"},"content_type":"yum","url":null,"arch":"noarch","content_id":"1600078766677","major":null,"minor":null,"product":{"id":18,"cp_id":"956117903760","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '948' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:39 GMT - etag: - - W/"9549121490496dafdaedee372a7e22ae-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4c01e793-64ef-4dc5-b136-82b429db1a83 - x-runtime: - - '0.025946' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1319' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-10.yml b/tests/test_playbooks/fixtures/content_view-10.yml index ba7be9bb..cde14858 100644 --- a/tests/test_playbooks/fixtures/content_view-10.yml +++ b/tests/test_playbooks/fixtures/content_view-10.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:59 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=6cd41c87b0cd5e8ff8355388bc71c847; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a69d0770-aaf6-49a5-9a99-ba94b90e2903 - x-runtime: - - '0.122003' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6cd41c87b0cd5e8ff8355388bc71c847 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:59 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c070db73-f02d-432b-883a-bacc59c8072d - x-runtime: - - '0.014974' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,82 +125,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6cd41c87b0cd5e8ff8355388bc71c847 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2296' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:59 GMT - etag: - - W/"8b72eb1b1155fbbfcf978b497ec96a66-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 94244d75-afca-4d32-9248-19ee602726c7 - x-runtime: - - '0.040349' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2248' status: code: 200 message: OK @@ -243,81 +197,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6cd41c87b0cd5e8ff8355388bc71c847 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: ' {"content_host_count":0,"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2194' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:59 GMT - etag: - - W/"382c3b5485caaedf69bd0b46ac627186-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 883b89b2-a2ee-495d-a60a-3acddd0c5e61 - x-runtime: - - '0.038626' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2146' status: code: 200 message: OK @@ -330,75 +268,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6cd41c87b0cd5e8ff8355388bc71c847 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1224' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:59 GMT - etag: - - W/"83c832e39072906becdcb0ff8ff4bfb2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 138073d2-c997-48d2-835d-6dd184a031a5 - x-runtime: - - '0.029029' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1224' status: code: 200 message: OK @@ -411,79 +333,63 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6cd41c87b0cd5e8ff8355388bc71c847 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/19 + uri: https://foreman.example.org/katello/api/content_views/31 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1132' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:59 GMT - etag: - - W/"a529b975e057775737a8a25f4c48a650-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a4f33d99-b123-4ff3-8b5f-a30da33dd24d - x-runtime: - - '0.040855' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1132' status: code: 200 message: OK - request: - body: !!python/unicode '{"latest": true}' + body: '{"latest": true}' headers: Accept: - application/json;version=2 @@ -495,76 +401,58 @@ interactions: - '16' Content-Type: - application/json - Cookie: - - _session_id=6cd41c87b0cd5e8ff8355388bc71c847 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20/content_view_components/2 + uri: https://foreman.example.org/katello/api/content_views/32/content_view_components/6 response: body: - string: !!python/unicode ' {"latest":true,"id":2,"created_at":"2019-11-01 12:25:56 - UTC","updated_at":"2019-11-01 12:25:59 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: ' {"latest":true,"id":6,"created_at":"2020-09-14 10:19:50 UTC","updated_at":"2020-09-14 + 10:19:55 UTC","composite_content_view":{"id":32,"name":"Test Composite Content + View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '829' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:59 GMT - etag: - - W/"f3d4304696dbb89131ac9a8d32c3399f-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 42c3321b-a5fd-4844-b6e5-fcad668fffef - x-runtime: - - '0.041106' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '805' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-11.yml b/tests/test_playbooks/fixtures/content_view-11.yml index 0f3fc574..feabbd1e 100644 --- a/tests/test_playbooks/fixtures/content_view-11.yml +++ b/tests/test_playbooks/fixtures/content_view-11.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:00 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=97e1bc698a4a3fb60a2b78712e42f8d5; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 3cb55a8c-4902-45c1-8c70-2feb18091f40 - x-runtime: - - '0.126379' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=97e1bc698a4a3fb60a2b78712e42f8d5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:00 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - dcf5bd87-8852-4df4-a9a4-7d7c73894c45 - x-runtime: - - '0.016312' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,82 +125,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=97e1bc698a4a3fb60a2b78712e42f8d5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:59 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:55 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2295' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:00 GMT - etag: - - W/"058c2246d1b4b809c76947462a7f92b8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 50719bc8-3f8e-4854-9eb0-f08a2ef4fef1 - x-runtime: - - '0.055156' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2247' status: code: 200 message: OK @@ -243,81 +197,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=97e1bc698a4a3fb60a2b78712e42f8d5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:59 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: ' {"content_host_count":0,"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:55 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2193' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:00 GMT - etag: - - W/"6fb14c0e761407b49a1438c9e4ffccc9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4c372868-0ff1-48b5-a9cf-87b2098012df - x-runtime: - - '0.049121' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2145' status: code: 200 message: OK @@ -330,75 +268,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=97e1bc698a4a3fb60a2b78712e42f8d5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1224' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:00 GMT - etag: - - W/"83c832e39072906becdcb0ff8ff4bfb2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - edd69fbd-6cb9-4896-bb32-94396a5af1ef - x-runtime: - - '0.032862' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1224' status: code: 200 message: OK @@ -411,74 +333,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=97e1bc698a4a3fb60a2b78712e42f8d5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/19 + uri: https://foreman.example.org/katello/api/content_views/31 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1132' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:00 GMT - etag: - - W/"a529b975e057775737a8a25f4c48a650-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 76784790-af4c-4873-92e7-261b65007561 - x-runtime: - - '0.030131' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1132' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-12.yml b/tests/test_playbooks/fixtures/content_view-12.yml index 66d5f7da..d1f500f1 100644 --- a/tests/test_playbooks/fixtures/content_view-12.yml +++ b/tests/test_playbooks/fixtures/content_view-12.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:00 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=ca41a79130629a87e68ea3865753c2ae; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 927f93bc-872d-450d-8221-bf9615f24024 - x-runtime: - - '0.124782' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ca41a79130629a87e68ea3865753c2ae User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:01 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 38f5fdcd-4bad-46a9-b115-21fe348e7591 - x-runtime: - - '0.016913' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,82 +125,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ca41a79130629a87e68ea3865753c2ae User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:59 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:55 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2295' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:01 GMT - etag: - - W/"058c2246d1b4b809c76947462a7f92b8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - fb48dbe5-8cd8-4e95-9655-aec3ec37c39d - x-runtime: - - '0.047696' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2247' status: code: 200 message: OK @@ -243,81 +197,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ca41a79130629a87e68ea3865753c2ae User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:59 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: ' {"content_host_count":0,"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:55 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2193' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:01 GMT - etag: - - W/"6fb14c0e761407b49a1438c9e4ffccc9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5a637d88-77f2-4c59-bd8c-930033b46826 - x-runtime: - - '0.045464' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2145' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-13.yml b/tests/test_playbooks/fixtures/content_view-13.yml index b5fad1ae..cffaea54 100644 --- a/tests/test_playbooks/fixtures/content_view-13.yml +++ b/tests/test_playbooks/fixtures/content_view-13.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:01 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=e3962daf332ab2f687012f4d06dd60f6; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e144ca71-c447-4fb7-b774-91896772e84e - x-runtime: - - '0.130846' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e3962daf332ab2f687012f4d06dd60f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:01 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - da51e2a9-4653-4044-9a05-ad5088963e3b - x-runtime: - - '0.017026' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,82 +125,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e3962daf332ab2f687012f4d06dd60f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:59 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:55 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2295' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:01 GMT - etag: - - W/"058c2246d1b4b809c76947462a7f92b8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c07c4b25-3555-48e9-b65c-508a9a6ed76f - x-runtime: - - '0.048498' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2247' status: code: 200 message: OK @@ -243,86 +197,70 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e3962daf332ab2f687012f4d06dd60f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:59 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: ' {"content_host_count":0,"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":true,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:55 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2193' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:01 GMT - etag: - - W/"6fb14c0e761407b49a1438c9e4ffccc9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - bdd60db6-a336-4c77-a8ed-896a8e3a6145 - x-runtime: - - '0.044885' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2145' status: code: 200 message: OK - request: - body: !!python/unicode '{"component_ids": [2]}' + body: '{"component_ids": [6]}' headers: Accept: - application/json;version=2 @@ -334,70 +272,52 @@ interactions: - '22' Content-Type: - application/json - Cookie: - - _session_id=e3962daf332ab2f687012f4d06dd60f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20/content_view_components/remove + uri: https://foreman.example.org/katello/api/content_views/32/content_view_components/remove response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":null,"per_page":null,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]} + string: '{"total":0,"subtotal":0,"page":null,"per_page":null,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '125' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:01 GMT - etag: - - W/"3a3575b9597261989986fb13f5a412af-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 826a4bf4-60cd-464c-a579-183199e9ddf0 - x-runtime: - - '0.035120' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '125' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-14.yml b/tests/test_playbooks/fixtures/content_view-14.yml index b2ff6725..b6e8a472 100644 --- a/tests/test_playbooks/fixtures/content_view-14.yml +++ b/tests/test_playbooks/fixtures/content_view-14.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:02 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=bb813501cf7eb8efe2ef92530d800e4e; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 096828e4-f0a9-46ba-9f79-b1ca1c489546 - x-runtime: - - '0.124632' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bb813501cf7eb8efe2ef92530d800e4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:02 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f24d8754-056d-4ce5-bdff-742ee3815585 - x-runtime: - - '0.016351' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,72 +125,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bb813501cf7eb8efe2ef92530d800e4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '985' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:02 GMT - etag: - - W/"01d3ba6f5a3d14d1ab8973af00742fdd-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7345e6e6-23fe-4a65-88df-5a67dccb8dfe - x-runtime: - - '0.027137' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '985' status: code: 200 message: OK @@ -233,71 +187,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bb813501cf7eb8efe2ef92530d800e4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: ' {"content_host_count":0,"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '883' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:02 GMT - etag: - - W/"33fdc5df9914068db57f73008d431d3b-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7a181d4c-67b2-4172-a31d-169f5e144d4f - x-runtime: - - '0.024147' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '883' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-15.yml b/tests/test_playbooks/fixtures/content_view-15.yml index e01d5dfc..b6e8a472 100644 --- a/tests/test_playbooks/fixtures/content_view-15.yml +++ b/tests/test_playbooks/fixtures/content_view-15.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:03 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=12da9ad14500b9cccea441e0b2c3a4a9; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 44382df3-b711-4ec8-9470-8d9f5bda93c8 - x-runtime: - - '0.123757' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12da9ad14500b9cccea441e0b2c3a4a9 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:03 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9cbb5644-9568-4d0c-8be3-eb24f38f6a08 - x-runtime: - - '0.015852' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,72 +125,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12da9ad14500b9cccea441e0b2c3a4a9 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '985' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:03 GMT - etag: - - W/"01d3ba6f5a3d14d1ab8973af00742fdd-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 544e4c4f-d5d0-4eb2-8342-3b2d78b2f4e9 - x-runtime: - - '0.027563' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '985' status: code: 200 message: OK @@ -233,71 +187,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12da9ad14500b9cccea441e0b2c3a4a9 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: ' {"content_host_count":0,"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '883' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:03 GMT - etag: - - W/"33fdc5df9914068db57f73008d431d3b-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 23906f68-f125-4055-b878-f531fc599b10 - x-runtime: - - '0.025228' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '883' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-16.yml b/tests/test_playbooks/fixtures/content_view-16.yml index fd68cd84..06cd3fdf 100644 --- a/tests/test_playbooks/fixtures/content_view-16.yml +++ b/tests/test_playbooks/fixtures/content_view-16.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:03 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=76ca6e6c260175887ef369cdea483e93; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f5c9958a-833f-45ce-b586-f1e8f37f954d - x-runtime: - - '0.122784' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=76ca6e6c260175887ef369cdea483e93 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:03 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - aff69a0a-ab8b-4b7c-8827-2c66cd067869 - x-runtime: - - '0.015198' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,72 +125,117 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=76ca6e6c260175887ef369cdea483e93 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block content-length: - '985' - content-security-policy: + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/32 + response: + body: + string: ' {"content_host_count":0,"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:03 GMT - etag: - - W/"01d3ba6f5a3d14d1ab8973af00742fdd-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 23a2e87e-44ad-4283-99f0-6a5638959680 - x-runtime: - - '0.027691' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '883' status: code: 200 message: OK @@ -235,71 +250,56 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=76ca6e6c260175887ef369cdea483e93 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"id":"296df574-71ce-4b59-8f92-7b893ce00fc4","label":"Actions::Katello::ContentView::Destroy","pending":true,"action":"Delete - content view ''Test Composite Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:26:03 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content - view ''Test Composite Content View''","link":"/content_views/20/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null} + string: ' {"id":"e0a55fcd-b41d-4a16-992e-02e62680b7cf","label":"Actions::Katello::ContentView::Destroy","pending":true,"action":"Delete + content view ''Test Composite Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:20:00 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content + view ''Test Composite Content View''","link":"/content_views/32/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:20:00 UTC","available_actions":{"cancellable":false,"resumable":false}} -' + ' headers: - cache-control: + Cache-Control: - no-cache - connection: + Connection: - Keep-Alive - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:03 GMT - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 202 Accepted - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - transfer-encoding: + Transfer-Encoding: - chunked - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 47a1eb2c-684e-4614-9c7d-11f476b88b88 - x-runtime: - - '0.075706' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: code: 202 @@ -313,75 +313,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - request_method=DELETE; _session_id=76ca6e6c260175887ef369cdea483e93 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/foreman_tasks/api/tasks/296df574-71ce-4b59-8f92-7b893ce00fc4 + uri: https://foreman.example.org/foreman_tasks/api/tasks/e0a55fcd-b41d-4a16-992e-02e62680b7cf response: body: - string: !!python/unicode '{"id":"296df574-71ce-4b59-8f92-7b893ce00fc4","label":"Actions::Katello::ContentView::Destroy","pending":false,"action":"Delete - content view ''Test Composite Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:26:03 UTC","ended_at":"2019-11-01 12:26:04 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content - view ''Test Composite Content View''","link":"/content_views/20/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null}' + string: '{"id":"e0a55fcd-b41d-4a16-992e-02e62680b7cf","label":"Actions::Katello::ContentView::Destroy","pending":false,"action":"Delete + content view ''Test Composite Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:20:00 UTC","ended_at":"2020-09-14 10:20:00 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content + view ''Test Composite Content View''","link":"/content_views/32/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:20:00 UTC","available_actions":{"cancellable":false,"resumable":false}}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1015' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:08 GMT - etag: - - W/"f7f7ed18ece6fd15fbc4b80b507a9c4d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 08fc2811-219a-4f22-be1e-3edfcda7f33f - x-runtime: - - '0.046689' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1141' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-17.yml b/tests/test_playbooks/fixtures/content_view-17.yml index 02fb9de9..68b746cd 100644 --- a/tests/test_playbooks/fixtures/content_view-17.yml +++ b/tests/test_playbooks/fixtures/content_view-17.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:08 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=b8699a08b56396f08e027da5ffa1a23f; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5c77ee29-6402-4fb6-8fde-34a8a5449789 - x-runtime: - - '0.126212' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b8699a08b56396f08e027da5ffa1a23f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:08 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 792fe22d-79a9-4579-b3d8-7a5ebc03c248 - x-runtime: - - '0.016375' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,69 +125,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b8699a08b56396f08e027da5ffa1a23f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '167' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:26:08 GMT - etag: - - W/"ca72da82579b213346aa33a7898841f6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ef53d0c3-b3cc-422e-84f4-538d1dca0f67 - x-runtime: - - '0.016477' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '167' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-18.yml b/tests/test_playbooks/fixtures/content_view-18.yml new file mode 100644 index 00000000..3cba689f --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view-18.yml @@ -0,0 +1,506 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '62' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '389' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '1224' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/31 + response: + body: + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '1132' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: DELETE + uri: https://foreman.example.org/katello/api/content_views/31/environments/13 + response: + body: + string: ' {"id":"c37fd5ef-a2ab-48e6-b832-9d857012b371","label":"Actions::Katello::ContentView::RemoveFromEnvironment","pending":true,"action":"Remove + from Environment content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:20:06 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":25,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Remove + from Environment","input":[["content_view",{"text":"content view ''Test Content + View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:20:06 UTC","available_actions":{"cancellable":false,"resumable":false}} + + ' + headers: + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/c37fd5ef-a2ab-48e6-b832-9d857012b371 + response: + body: + string: '{"id":"c37fd5ef-a2ab-48e6-b832-9d857012b371","label":"Actions::Katello::ContentView::RemoveFromEnvironment","pending":false,"action":"Remove + from Environment content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:20:06 UTC","ended_at":"2020-09-14 10:20:06 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":25,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Remove + from Environment","input":[["content_view",{"text":"content view ''Test Content + View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:20:06 UTC","available_actions":{"cancellable":false,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '1147' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: DELETE + uri: https://foreman.example.org/katello/api/content_views/31 + response: + body: + string: ' {"id":"8f3a3c07-2e46-48ff-9faa-75d2a0a70269","label":"Actions::Katello::ContentView::Destroy","pending":true,"action":"Delete + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:20:10 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","pulp","pulp_auth"],"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:20:10 UTC","available_actions":{"cancellable":false,"resumable":false}} + + ' + headers: + Cache-Control: + - no-cache + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/foreman_tasks/api/tasks/8f3a3c07-2e46-48ff-9faa-75d2a0a70269 + response: + body: + string: '{"id":"8f3a3c07-2e46-48ff-9faa-75d2a0a70269","label":"Actions::Katello::ContentView::Destroy","pending":false,"action":"Delete + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:20:10 UTC","ended_at":"2020-09-14 10:20:12 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3","pulp","pulp_auth"],"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:20:10 UTC","available_actions":{"cancellable":false,"resumable":false}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '1120' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view-19.yml b/tests/test_playbooks/fixtures/content_view-19.yml new file mode 100644 index 00000000..47cfe4ce --- /dev/null +++ b/tests/test_playbooks/fixtures/content_view-19.yml @@ -0,0 +1,178 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '62' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '389' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 + response: + body: + string: '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '157' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/content_view-2.yml b/tests/test_playbooks/fixtures/content_view-2.yml index fb471f05..e9d07166 100644 --- a/tests/test_playbooks/fixtures/content_view-2.yml +++ b/tests/test_playbooks/fixtures/content_view-2.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:39 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=98d18818ffcd58ec483b52bc61e88845; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c44bc6f5-226c-41a2-8634-b8924b1b0cf4 - x-runtime: - - '0.126712' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=98d18818ffcd58ec483b52bc61e88845 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:39 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f72788a1-bbb6-4703-a055-62b142944534 - x-runtime: - - '0.014969' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,73 +125,119 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=98d18818ffcd58ec483b52bc61e88845 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":18,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:38 UTC","updated_at":"2019-11-01 12:25:38 UTC","environments":[],"repositories":[{"id":25,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":30,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:35 UTC","updated_at":"2020-09-14 10:19:35 UTC","environments":[],"repositories":[{"id":30,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block content-length: - '1040' - content-security-policy: + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/katello/api/content_views/30 + response: + body: + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":30,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:35 UTC","updated_at":"2020-09-14 10:19:35 UTC","environments":[],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + + ' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:39 GMT - etag: - - W/"51dfd8c99ec05868c4f677823bafca44-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 87b52972-9fef-49ed-8bb5-212bc76cd41f - x-runtime: - - '0.028535' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '948' status: code: 200 message: OK @@ -236,71 +252,56 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=98d18818ffcd58ec483b52bc61e88845 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/18 + uri: https://foreman.example.org/katello/api/content_views/30 response: body: - string: !!python/unicode ' {"id":"f212c56e-1253-48c0-a391-4ca1030ead75","label":"Actions::Katello::ContentView::Destroy","pending":true,"action":"Delete - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:39 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":18,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/18/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null} + string: ' {"id":"78ac542c-da51-44e7-bdeb-673a6fad2dc0","label":"Actions::Katello::ContentView::Destroy","pending":true,"action":"Delete + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:19:37 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":30,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/30/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:19:37 UTC","available_actions":{"cancellable":false,"resumable":false}} -' + ' headers: - cache-control: + Cache-Control: - no-cache - connection: + Connection: - Keep-Alive - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:39 GMT - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 202 Accepted - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - transfer-encoding: + Transfer-Encoding: - chunked - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ce629056-5c0e-44d9-b5f5-0c07fa9b9f0c - x-runtime: - - '0.075785' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: code: 202 @@ -314,75 +315,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - request_method=DELETE; _session_id=98d18818ffcd58ec483b52bc61e88845 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/foreman_tasks/api/tasks/f212c56e-1253-48c0-a391-4ca1030ead75 + uri: https://foreman.example.org/foreman_tasks/api/tasks/78ac542c-da51-44e7-bdeb-673a6fad2dc0 response: body: - string: !!python/unicode '{"id":"f212c56e-1253-48c0-a391-4ca1030ead75","label":"Actions::Katello::ContentView::Destroy","pending":false,"action":"Delete - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:39 UTC","ended_at":"2019-11-01 12:25:39 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":18,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/18/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null}' + string: '{"id":"78ac542c-da51-44e7-bdeb-673a6fad2dc0","label":"Actions::Katello::ContentView::Destroy","pending":false,"action":"Delete + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:19:37 UTC","ended_at":"2020-09-14 10:19:37 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":30,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["pulp3"],"remote_user":"admin","remote_cp_user":"admin","current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/30/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:19:37 UTC","available_actions":{"cancellable":false,"resumable":false}}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '975' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:43 GMT - etag: - - W/"f7311c2ca97fca024136caba2ac8a4a1-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 64b33308-b263-4dec-b74a-5566ee898090 - x-runtime: - - '0.059553' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1101' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-3.yml b/tests/test_playbooks/fixtures/content_view-3.yml index 8db73102..47cfe4ce 100644 --- a/tests/test_playbooks/fixtures/content_view-3.yml +++ b/tests/test_playbooks/fixtures/content_view-3.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:44 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=316d3b3c28126b78a4b589b845524a41; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - bb809a18-cf17-46c9-9ab6-a968a29125fd - x-runtime: - - '0.148254' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=316d3b3c28126b78a4b589b845524a41 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:44 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 56fff1c9-5968-45ea-85f2-ef437c296368 - x-runtime: - - '0.022475' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,69 +125,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=316d3b3c28126b78a4b589b845524a41 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Content View\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '157' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:44 GMT - etag: - - W/"14ccc756f2c9debc776972f428e30deb-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 3aa383ba-a037-447e-ac08-97251872f5c1 - x-runtime: - - '0.019238' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '157' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-4.yml b/tests/test_playbooks/fixtures/content_view-4.yml index 72074239..35b6f557 100644 --- a/tests/test_playbooks/fixtures/content_view-4.yml +++ b/tests/test_playbooks/fixtures/content_view-4.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:45 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=b28245557bbe9bb8c9dd2e76fea9608f; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8f028f14-5946-404c-b68e-bd831face9d8 - x-runtime: - - '0.151301' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b28245557bbe9bb8c9dd2e76fea9608f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:45 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 115ce725-2f21-4596-b76e-89cbb761bc95 - x-runtime: - - '0.016251' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,71 +125,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b28245557bbe9bb8c9dd2e76fea9608f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":14,"cp_id":"320303814264","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":21,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"sync_plan":null,"repository_count":1}]} + string: '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '616' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:45 GMT - etag: - - W/"97654e93af5b1a6725570193726a47b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a131d0ab-f3f6-4471-8de4-a5aa7fce8fc4 - x-runtime: - - '0.038540' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '157' status: code: 200 message: OK @@ -232,72 +184,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b28245557bbe9bb8c9dd2e76fea9608f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/14/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/organizations/14/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a653b13a-cdef-41ea-8f6a-6951a406459b","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":25,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":null,"content_view":{"id":17,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572611131162","major":null,"minor":null,"product":{"id":14,"cp_id":"320303814264","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":18,"cp_id":"956117903760","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":25,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-14 + 10:19:27 UTC","last_sync_words":"less than a minute","organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"sync_plan":null,"repository_count":1}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1236' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:45 GMT - etag: - - W/"1a2132a9bee2429f5ce1111452304952-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: + Foreman_current_location: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e81f4bf8-a183-46f4-be37-9727f8d0278b - x-runtime: - - '0.077263' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '653' status: code: 200 message: OK @@ -310,75 +246,63 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b28245557bbe9bb8c9dd2e76fea9608f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/products/18/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"1819fd9f-8231-43ee-9132-a87a073ba3d7","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":30,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":null,"content_view":{"id":29,"name":"Default + Organization View"},"content_view_version":{"id":18,"name":"Default Organization + View 1.0","content_view_id":29},"kt_environment":{"id":13,"name":"Library"},"content_type":"yum","url":null,"arch":"noarch","content_id":"1600078766677","major":null,"minor":null,"product":{"id":18,"cp_id":"956117903760","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '157' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:45 GMT - etag: - - W/"14ccc756f2c9debc776972f428e30deb-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: + - ; ANY + Foreman_current_organization: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0f392d86-b102-403d-b670-74dfcc54bb56 - x-runtime: - - '0.017892' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1319' status: code: 200 message: OK - request: - body: !!python/unicode '{"composite": false, "repository_ids": [25], "auto_publish": - false, "name": "Test Content View"}' + body: '{"name": "Test Content View", "composite": false, "repository_ids": [30], + "auto_publish": false}' headers: Accept: - application/json;version=2 @@ -390,75 +314,55 @@ interactions: - '96' Content-Type: - application/json - Cookie: - - _session_id=b28245557bbe9bb8c9dd2e76fea9608f User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views + uri: https://foreman.example.org/katello/api/organizations/14/content_views response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:45 UTC","environments":[],"repositories":[{"id":25,"name":"Test + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:43 UTC","environments":[],"repositories":[{"id":30,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '948' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:45 GMT - etag: - - W/"8251b6559e811826fd90f5b763bf8a57-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f655623c-eaff-4a26-bb36-86b439594b94 - x-runtime: - - '0.063580' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/content_view-5.yml b/tests/test_playbooks/fixtures/content_view-5.yml index 6ae1edfd..66239b6b 100644 --- a/tests/test_playbooks/fixtures/content_view-5.yml +++ b/tests/test_playbooks/fixtures/content_view-5.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:46 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 86489a13-ddc2-46e3-9204-b9f6d153875c - x-runtime: - - '0.130730' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:46 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c71cbb64-f8d5-478c-8375-58cecf3230e9 - x-runtime: - - '0.016800' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:45 UTC","environments":[],"repositories":[{"id":25,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:43 UTC","environments":[],"repositories":[{"id":30,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:46 GMT - etag: - - W/"766c7aa000a7a60daa0a4a855e592ce1-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 793b5807-7ad8-4fe9-a3c5-d8a745ab0a9f - x-runtime: - - '0.028395' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1040' status: code: 200 message: OK @@ -234,72 +188,52 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/19 + uri: https://foreman.example.org/katello/api/content_view_versions?search=content_view_id%3D31%2Cversion%3D1.0&per_page=4294967296 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:45 UTC","environments":[],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: '{"total":3,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=31,version=1.0","sort":{"by":"version","order":"desc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '948' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:46 GMT - etag: - - W/"8251b6559e811826fd90f5b763bf8a57-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5bf428ce-8276-4cc9-9171-b824abd19cbb - x-runtime: - - '0.032165' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '165' status: code: 200 message: OK @@ -312,73 +246,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_versions?per_page=4294967296&search=content_view_id%3D19%2Cversion%3D1.0 + uri: https://foreman.example.org/katello/api/organizations/14/environments?search=name%3D%22Library%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=19,version=1.0","sort":{"by":"version","order":"desc"},"results":[]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":13,"name":"Library","label":"Library","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:22 UTC","updated_at":"2020-09-14 10:19:22 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":0,"packages":0,"puppet_modules":0,"module_streams":0,"errata":{"security":null,"bugfix":0,"enhancement":0,"total":null},"yum_repositories":2,"docker_repositories":0,"ostree_repositories":0,"products":2},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '165' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:46 GMT - etag: - - W/"eec1ddf5abc2c37b034332c489876d43-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a592bdf9-a463-43aa-b298-79d99825a731 - x-runtime: - - '0.028607' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '965' status: code: 200 message: OK - request: - body: !!python/unicode '{"major": 1, "minor": 0}' + body: '{"major": 1, "minor": 0}' headers: Accept: - application/json;version=2 @@ -390,72 +310,57 @@ interactions: - '24' Content-Type: - application/json - Cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/19/publish + uri: https://foreman.example.org/katello/api/content_views/31/publish response: body: - string: !!python/unicode ' {"id":"e0ea7ba4-f773-42b9-8086-7a8e436f3cab","label":"Actions::Katello::ContentView::Publish","pending":true,"action":"Publish - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:46 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp","pulp_auth"],"history_id":34,"content_view_id":19,"auto_publish_composite_ids":[],"content_view_version_name":"Test - Content View 1.0","content_view_version_id":20,"environment_id":20,"user_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/19/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null} + string: ' {"id":"dce95aeb-7d0d-49d1-829f-8c263c4bbc47","label":"Actions::Katello::ContentView::Publish","pending":true,"action":"Publish + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:19:44 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp3","pulp","pulp_auth"],"history_id":24,"content_view_id":31,"auto_publish_composite_ids":[],"content_view_version_name":"Test + Content View 1.0","content_view_version_id":19,"environment_id":13,"user_id":4,"skip_promotion":null,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:19:44 UTC","available_actions":{"cancellable":false,"resumable":false}} -' + ' headers: - cache-control: + Cache-Control: - no-cache - connection: + Connection: - Keep-Alive - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:46 GMT - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 202 Accepted - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - transfer-encoding: + Transfer-Encoding: - chunked - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a08070a9-f56c-4463-a2c5-03538025e304 - x-runtime: - - '0.552020' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: code: 202 @@ -469,240 +374,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - request_method=POST; _session_id=a0313441c50ffc3c11e9d920ee92aa81 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/foreman_tasks/api/tasks/e0ea7ba4-f773-42b9-8086-7a8e436f3cab + uri: https://foreman.example.org/foreman_tasks/api/tasks/dce95aeb-7d0d-49d1-829f-8c263c4bbc47 response: body: - string: !!python/unicode '{"id":"e0ea7ba4-f773-42b9-8086-7a8e436f3cab","label":"Actions::Katello::ContentView::Publish","pending":true,"action":"Publish - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:46 UTC","ended_at":null,"state":"running","result":"pending","progress":0.325,"input":{"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp","pulp_auth"],"history_id":34,"content_view_id":19,"auto_publish_composite_ids":[],"content_view_version_name":"Test - Content View 1.0","content_view_version_id":20,"environment_id":20,"user_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/19/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null}' + string: '{"id":"dce95aeb-7d0d-49d1-829f-8c263c4bbc47","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:19:44 UTC","ended_at":"2020-09-14 10:19:47 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp3","pulp","pulp_auth"],"history_id":24,"content_view_id":31,"auto_publish_composite_ids":[],"content_view_version_name":"Test + Content View 1.0","content_view_version_id":19,"environment_id":13,"user_id":4,"skip_promotion":null,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{"content_view_id":31,"content_view_version_id":19,"skip_promotion":null},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:19:44 UTC","available_actions":{"cancellable":false,"resumable":false}}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: - - Keep-Alive - content-length: - - '1161' - content-security-policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:50 GMT - etag: - - W/"82157f54b0714b71f9556f6b9f504f63-gzip" - foreman_api_version: - - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: - - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: - - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-frame-options: - - sameorigin - x-permitted-cross-domain-policies: - - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f6936d77-737b-4d67-83bf-a134e116c046 - x-runtime: - - '0.045726' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate Connection: - - keep-alive - Cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/foreman_tasks/api/tasks/e0ea7ba4-f773-42b9-8086-7a8e436f3cab - response: - body: - string: !!python/unicode '{"id":"e0ea7ba4-f773-42b9-8086-7a8e436f3cab","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:46 UTC","ended_at":"2019-11-01 12:25:53 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp","pulp_auth"],"history_id":34,"content_view_id":19,"auto_publish_composite_ids":[],"content_view_version_name":"Test - Content View 1.0","content_view_version_id":20,"environment_id":20,"user_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/19/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null}' - headers: - cache-control: - - max-age=0, private, must-revalidate - connection: - Keep-Alive - content-length: - - '1181' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"19e1cc0e1b623d1bfe25231c377e2789-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - febf674c-6540-45f6-bd78-a51711b825e1 - x-runtime: - - '0.034660' - x-xss-protection: + X-XSS-Protection: - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_versions/20 - response: - body: - string: !!python/unicode ' {"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":19,"default":false,"description":null,"package_count":0,"module_stream_count":0,"srpm_count":0,"file_count":0,"package_group_count":0,"puppet_module_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"ostree_branch_count":0,"deb_count":0,"id":20,"name":"Test - Content View 1.0","created_at":"2019-11-01 12:25:46 UTC","updated_at":"2019-11-01 - 12:25:46 UTC","content_view":{"id":19,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":20,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","library_instance_id":25}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2019-11-01 - 12:25:46 UTC","updated_at":"2019-11-01 12:25:52 UTC","environment":null,"task":{"id":"e0ea7ba4-f773-42b9-8086-7a8e436f3cab","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:46 UTC","ended_at":"2019-11-01 12:25:53 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp","pulp_auth"],"history_id":34,"content_view_id":19,"auto_publish_composite_ids":[],"content_view_version_name":"Test - Content View 1.0","content_view_version_id":20,"environment_id":20,"user_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/19/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null},"version":"1.0","publish":true,"version_id":20,"triggered_by":null,"triggered_by_id":null},"active_history":[],"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true},"puppet_modules":[]} - -' - headers: - cache-control: - - max-age=0, private, must-revalidate - connection: - - Keep-Alive content-length: - - '2696' - content-security-policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"c84707769f89cf855521aba819a5ae63-gzip" - foreman_api_version: - - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: - - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: - - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-frame-options: - - sameorigin - x-permitted-cross-domain-policies: - - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5986c7fe-228b-4b27-8049-4a87a7cd8606 - x-runtime: - - '0.069726' - x-xss-protection: - - 1; mode=block + - '1379' status: code: 200 message: OK @@ -715,146 +438,64 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/environments?per_page=4294967296&search=name%3D%22Library%22 + uri: https://foreman.example.org/katello/api/content_view_versions/19 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Library\"","sort":{"by":"name","order":"asc"},"results":[{"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":20,"name":"Library","label":"Library","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:26 UTC","updated_at":"2019-11-01 12:25:26 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"module_streams":0,"errata":{"security":null,"bugfix":0,"enhancement":0,"total":null},"yum_repositories":2,"docker_repositories":0,"ostree_repositories":0,"products":2},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}}]} + string: ' {"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":31,"default":false,"description":null,"id":19,"name":"Test + Content View 1.0","created_at":"2020-09-14 10:19:44 UTC","updated_at":"2020-09-14 + 10:19:47 UTC","content_view":{"id":31,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":13,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","library_instance_id":30}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2020-09-14 + 10:19:44 UTC","updated_at":"2020-09-14 10:19:47 UTC","environment":null,"task":{"id":"dce95aeb-7d0d-49d1-829f-8c263c4bbc47","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:19:44 UTC","ended_at":"2020-09-14 10:19:47 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp3","pulp","pulp_auth"],"history_id":24,"content_view_id":31,"auto_publish_composite_ids":[],"content_view_version_name":"Test + Content View 1.0","content_view_version_id":19,"environment_id":13,"user_id":4,"skip_promotion":null,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{"content_view_id":31,"content_view_version_id":19,"skip_promotion":null},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:19:44 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":19,"triggered_by":null,"triggered_by_id":null},"active_history":[],"deb_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"puppet_module_count":0,"rpm_count":0,"modulemd_count":0,"erratum_count":0,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":0,"ostree_branch_count":null,"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true},"puppet_modules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: - - Keep-Alive - content-length: - - '965' - content-security-policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"1323f29c0bacf645368e4d42ddd12b52-gzip" - foreman_api_version: - - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9991 - server: - - Apache - status: - - 200 OK - strict-transport-security: - - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-frame-options: - - sameorigin - x-permitted-cross-domain-policies: - - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0d5de185-3b89-4455-b543-d7bb3ab0618f - x-runtime: - - '0.042592' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate Connection: - - keep-alive - Cookie: - - _session_id=a0313441c50ffc3c11e9d920ee92aa81 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/environments/20?organization_id=12 - response: - body: - string: !!python/unicode ' {"library":true,"registry_name_pattern":null,"registry_unauthenticated_pull":false,"id":20,"name":"Library","label":"Library","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:26 UTC","updated_at":"2019-11-01 12:25:26 UTC","prior":null,"successor":null,"counts":{"content_hosts":0,"content_views":1,"packages":0,"puppet_modules":0,"module_streams":0,"errata":{"security":null,"bugfix":0,"enhancement":0,"total":null},"yum_repositories":2,"docker_repositories":0,"ostree_repositories":0,"products":2},"permissions":{"create_lifecycle_environments":true,"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}} - -' - headers: - cache-control: - - max-age=0, private, must-revalidate - connection: - Keep-Alive - content-length: - - '821' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"641972c9c989e992a80e3d3e0cd06c22-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9990 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f817fa26-6248-4ff7-84c4-3eca255150b9 - x-runtime: - - '0.039635' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2948' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-6.yml b/tests/test_playbooks/fixtures/content_view-6.yml index a9224b2c..ea3031f5 100644 --- a/tests/test_playbooks/fixtures/content_view-6.yml +++ b/tests/test_playbooks/fixtures/content_view-6.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=4eca381476051a273b404acd29915296; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 54ee133a-7a59-4b01-a5ef-29c6b2bb42de - x-runtime: - - '0.128685' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eca381476051a273b404acd29915296 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9ddbbb77-99ed-47f1-a888-842062324c7d - x-runtime: - - '0.015580' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,75 +125,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eca381476051a273b404acd29915296 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '167' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"ca72da82579b213346aa33a7898841f6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b8ef6301-ccb4-46f5-b91a-60febb29a196 - x-runtime: - - '0.015849' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '167' status: code: 200 message: OK - request: - body: !!python/unicode '{"composite": true, "name": "Test Composite Content View", - "auto_publish": false}' + body: '{"name": "Test Composite Content View", "composite": true, "auto_publish": + false}' headers: Accept: - application/json;version=2 @@ -235,76 +189,56 @@ interactions: - '81' Content-Type: - application/json - Cookie: - - _session_id=4eca381476051a273b404acd29915296 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views + uri: https://foreman.example.org/katello/api/organizations/14/content_views response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:55 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: ' {"content_host_count":0,"composite":true,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","environments":[],"repositories":[],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '884' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"2a8a824f026288db16e069cd7c97d7f0-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1b3f2043-ba14-4005-9e23-08f2168d9ba0 - x-runtime: - - '0.044005' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -314,78 +248,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - request_method=POST; _session_id=4eca381476051a273b404acd29915296 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1224' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"83c832e39072906becdcb0ff8ff4bfb2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0c8089d8-0f19-4d2c-af3f-103fa129ae0d - x-runtime: - - '0.030625' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1224' status: code: 200 message: OK @@ -398,74 +313,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eca381476051a273b404acd29915296 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/19 + uri: https://foreman.example.org/katello/api/content_views/31 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1132' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:55 GMT - etag: - - W/"a529b975e057775737a8a25f4c48a650-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 97bb2cb3-2635-4db2-9b19-db7d87c0989a - x-runtime: - - '0.029586' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1132' status: code: 200 message: OK @@ -478,85 +377,70 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eca381476051a273b404acd29915296 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_versions?per_page=4294967296&search=content_view_id%3D19%2Cversion%3D1.0 + uri: https://foreman.example.org/katello/api/content_view_versions?search=content_view_id%3D31%2Cversion%3D1.0&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=19,version=1.0","sort":{"by":"version","order":"desc"},"results":[{"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":19,"default":false,"description":null,"package_count":0,"module_stream_count":0,"srpm_count":0,"file_count":0,"package_group_count":0,"puppet_module_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"ostree_branch_count":0,"deb_count":0,"id":20,"name":"Test - Content View 1.0","created_at":"2019-11-01 12:25:46 UTC","updated_at":"2019-11-01 - 12:25:46 UTC","content_view":{"id":19,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":20,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","library_instance_id":25}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2019-11-01 - 12:25:46 UTC","updated_at":"2019-11-01 12:25:52 UTC","environment":null,"task":{"id":"e0ea7ba4-f773-42b9-8086-7a8e436f3cab","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:46 UTC","ended_at":"2019-11-01 12:25:53 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp","pulp_auth"],"history_id":34,"content_view_id":19,"auto_publish_composite_ids":[],"content_view_version_name":"Test - Content View 1.0","content_view_version_id":20,"environment_id":20,"user_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/19/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null},"version":"1.0","publish":true,"version_id":20,"triggered_by":null,"triggered_by_id":null},"active_history":[],"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}]} + string: '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=31,version=1.0","sort":{"by":"version","order":"desc"},"results":[{"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":31,"default":false,"description":null,"id":19,"name":"Test + Content View 1.0","created_at":"2020-09-14 10:19:44 UTC","updated_at":"2020-09-14 + 10:19:47 UTC","content_view":{"id":31,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":13,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","library_instance_id":30}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2020-09-14 + 10:19:44 UTC","updated_at":"2020-09-14 10:19:47 UTC","environment":null,"task":{"id":"dce95aeb-7d0d-49d1-829f-8c263c4bbc47","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:19:44 UTC","ended_at":"2020-09-14 10:19:47 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp3","pulp","pulp_auth"],"history_id":24,"content_view_id":31,"auto_publish_composite_ids":[],"content_view_version_name":"Test + Content View 1.0","content_view_version_id":19,"environment_id":13,"user_id":4,"skip_promotion":null,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{"content_view_id":31,"content_view_version_id":19,"skip_promotion":null},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:19:44 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":19,"triggered_by":null,"triggered_by_id":null},"active_history":[],"deb_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"puppet_module_count":0,"rpm_count":0,"modulemd_count":0,"erratum_count":0,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":0,"ostree_branch_count":null,"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2838' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:56 GMT - etag: - - W/"b421d9904a689268a0c45e23b94b3ff8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0d3fa261-a97f-4493-b265-1d1235852911 - x-runtime: - - '0.081249' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '3090' status: code: 200 message: OK - request: - body: !!python/unicode '{"components": [{"content_view_id": 19, "content_view_version_id": - 20, "latest": false}]}' + body: '{"components": [{"latest": false, "content_view_id": 31, "content_view_version_id": + 19}]}' headers: Accept: - application/json;version=2 @@ -568,76 +452,58 @@ interactions: - '89' Content-Type: - application/json - Cookie: - - _session_id=4eca381476051a273b404acd29915296 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20/content_view_components/add + uri: https://foreman.example.org/katello/api/content_views/32/content_view_components/add response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":null,"per_page":null,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: '{"total":1,"subtotal":1,"page":null,"per_page":null,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '952' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:56 GMT - etag: - - W/"e6e8de3551dfdf68325be0edc81f64f5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 75ed1ab2-755c-44e6-ac63-1953be215f1a - x-runtime: - - '0.056202' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '928' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-7.yml b/tests/test_playbooks/fixtures/content_view-7.yml index 026e7dca..106ec197 100644 --- a/tests/test_playbooks/fixtures/content_view-7.yml +++ b/tests/test_playbooks/fixtures/content_view-7.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:56 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=a28bf7ae2b530c88047584a2a850aa0e; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2b559b51-24cd-4d2f-a4f9-bb3ba36c6d98 - x-runtime: - - '0.132507' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a28bf7ae2b530c88047584a2a850aa0e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:56 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a264725f-7df5-4b27-8c50-ff23e47b0a98 - x-runtime: - - '0.017668' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,82 +125,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a28bf7ae2b530c88047584a2a850aa0e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:55 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2297' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:56 GMT - etag: - - W/"d946ec695c2630dcc89629af31110cdc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 3ac292ea-253a-4d2c-b73e-379ff62a4da3 - x-runtime: - - '0.042380' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2249' status: code: 200 message: OK @@ -243,81 +197,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a28bf7ae2b530c88047584a2a850aa0e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:55 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: ' {"content_host_count":0,"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2195' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:56 GMT - etag: - - W/"d8b5d0dc2d68e57290ec17784fa43a0b-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 228bcedb-5ed0-4740-895b-d201f3741625 - x-runtime: - - '0.042230' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2147' status: code: 200 message: OK @@ -330,75 +268,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a28bf7ae2b530c88047584a2a850aa0e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1224' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:56 GMT - etag: - - W/"83c832e39072906becdcb0ff8ff4bfb2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - abfd5e1f-5ad3-4837-9fd9-825e01032337 - x-runtime: - - '0.031161' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1224' status: code: 200 message: OK @@ -411,74 +333,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a28bf7ae2b530c88047584a2a850aa0e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/19 + uri: https://foreman.example.org/katello/api/content_views/31 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1132' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:56 GMT - etag: - - W/"a529b975e057775737a8a25f4c48a650-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7b0e88cf-30b0-433f-8990-2cff2b2f1e3e - x-runtime: - - '0.027619' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1132' status: code: 200 message: OK @@ -491,80 +397,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a28bf7ae2b530c88047584a2a850aa0e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_versions?per_page=4294967296&search=content_view_id%3D19%2Cversion%3D1.0 + uri: https://foreman.example.org/katello/api/content_view_versions?search=content_view_id%3D31%2Cversion%3D1.0&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=19,version=1.0","sort":{"by":"version","order":"desc"},"results":[{"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[20],"published_in_composite_content_view_ids":[],"content_view_id":19,"default":false,"description":null,"package_count":0,"module_stream_count":0,"srpm_count":0,"file_count":0,"package_group_count":0,"puppet_module_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"ostree_branch_count":0,"deb_count":0,"id":20,"name":"Test - Content View 1.0","created_at":"2019-11-01 12:25:46 UTC","updated_at":"2019-11-01 - 12:25:46 UTC","content_view":{"id":19,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View"}],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":20,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","library_instance_id":25}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2019-11-01 - 12:25:46 UTC","updated_at":"2019-11-01 12:25:52 UTC","environment":null,"task":{"id":"e0ea7ba4-f773-42b9-8086-7a8e436f3cab","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:46 UTC","ended_at":"2019-11-01 12:25:53 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp","pulp_auth"],"history_id":34,"content_view_id":19,"auto_publish_composite_ids":[],"content_view_version_name":"Test - Content View 1.0","content_view_version_id":20,"environment_id":20,"user_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/19/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null},"version":"1.0","publish":true,"version_id":20,"triggered_by":null,"triggered_by_id":null},"active_history":[],"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}]} + string: '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=31,version=1.0","sort":{"by":"version","order":"desc"},"results":[{"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[32],"published_in_composite_content_view_ids":[],"content_view_id":31,"default":false,"description":null,"id":19,"name":"Test + Content View 1.0","created_at":"2020-09-14 10:19:44 UTC","updated_at":"2020-09-14 + 10:19:47 UTC","content_view":{"id":31,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View"}],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":13,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","library_instance_id":30}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2020-09-14 + 10:19:44 UTC","updated_at":"2020-09-14 10:19:47 UTC","environment":null,"task":{"id":"dce95aeb-7d0d-49d1-829f-8c263c4bbc47","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:19:44 UTC","ended_at":"2020-09-14 10:19:47 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp3","pulp","pulp_auth"],"history_id":24,"content_view_id":31,"auto_publish_composite_ids":[],"content_view_version_name":"Test + Content View 1.0","content_view_version_id":19,"environment_id":13,"user_id":4,"skip_promotion":null,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{"content_view_id":31,"content_view_version_id":19,"skip_promotion":null},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:19:44 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":19,"triggered_by":null,"triggered_by_id":null},"active_history":[],"deb_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"puppet_module_count":0,"rpm_count":0,"modulemd_count":0,"erratum_count":0,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":0,"ostree_branch_count":null,"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2924' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:56 GMT - etag: - - W/"e1f1cd53b173418a213ada3e750df471-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f2659ff0-9fa7-4529-a3a8-0a8fe6e30cd8 - x-runtime: - - '0.066848' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '3176' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-8.yml b/tests/test_playbooks/fixtures/content_view-8.yml index c1aae959..84bca9ba 100644 --- a/tests/test_playbooks/fixtures/content_view-8.yml +++ b/tests/test_playbooks/fixtures/content_view-8.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:57 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=eacc4020a7fee88d3ba9d81e4e3ccf2f; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9a347ccb-f3f4-4ffe-99fd-c77f4fbfdf5e - x-runtime: - - '0.121306' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=eacc4020a7fee88d3ba9d81e4e3ccf2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:57 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 95644c0a-cb63-4934-96ff-a091239fac25 - x-runtime: - - '0.015198' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,82 +125,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=eacc4020a7fee88d3ba9d81e4e3ccf2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:55 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2297' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:57 GMT - etag: - - W/"d946ec695c2630dcc89629af31110cdc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6492c59f-a7ef-444c-a011-d9a25c954505 - x-runtime: - - '0.043356' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2249' status: code: 200 message: OK @@ -243,86 +197,70 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=eacc4020a7fee88d3ba9d81e4e3ccf2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:55 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: ' {"content_host_count":0,"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2195' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:57 GMT - etag: - - W/"d8b5d0dc2d68e57290ec17784fa43a0b-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 109bae33-d453-4434-86bb-1ecf1a25eb8b - x-runtime: - - '0.046409' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2147' status: code: 200 message: OK - request: - body: !!python/unicode '{"auto_publish": true}' + body: '{"auto_publish": true}' headers: Accept: - application/json;version=2 @@ -334,83 +272,65 @@ interactions: - '22' Content-Type: - application/json - Cookie: - - _session_id=eacc4020a7fee88d3ba9d81e4e3ccf2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: ' {"content_host_count":0,"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2194' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:57 GMT - etag: - - W/"382c3b5485caaedf69bd0b46ac627186-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - de94bf57-9a77-48bf-9acf-91dacbfb12f0 - x-runtime: - - '0.152565' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2146' status: code: 200 message: OK @@ -423,78 +343,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - request_method=PUT; _session_id=eacc4020a7fee88d3ba9d81e4e3ccf2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1224' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:57 GMT - etag: - - W/"83c832e39072906becdcb0ff8ff4bfb2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c22cc1a0-f30c-4b67-b500-f6b8cbefe992 - x-runtime: - - '0.029391' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1224' status: code: 200 message: OK @@ -507,74 +408,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=eacc4020a7fee88d3ba9d81e4e3ccf2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/19 + uri: https://foreman.example.org/katello/api/content_views/31 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1132' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:57 GMT - etag: - - W/"a529b975e057775737a8a25f4c48a650-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8a89362f-f92d-485b-ad30-36a71f8e87a3 - x-runtime: - - '0.028325' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1132' status: code: 200 message: OK @@ -587,80 +472,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=eacc4020a7fee88d3ba9d81e4e3ccf2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_versions?per_page=4294967296&search=content_view_id%3D19%2Cversion%3D1.0 + uri: https://foreman.example.org/katello/api/content_view_versions?search=content_view_id%3D31%2Cversion%3D1.0&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=19,version=1.0","sort":{"by":"version","order":"desc"},"results":[{"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[20],"published_in_composite_content_view_ids":[],"content_view_id":19,"default":false,"description":null,"package_count":0,"module_stream_count":0,"srpm_count":0,"file_count":0,"package_group_count":0,"puppet_module_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"ostree_branch_count":0,"deb_count":0,"id":20,"name":"Test - Content View 1.0","created_at":"2019-11-01 12:25:46 UTC","updated_at":"2019-11-01 - 12:25:46 UTC","content_view":{"id":19,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View"}],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":20,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","library_instance_id":25}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2019-11-01 - 12:25:46 UTC","updated_at":"2019-11-01 12:25:52 UTC","environment":null,"task":{"id":"e0ea7ba4-f773-42b9-8086-7a8e436f3cab","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:46 UTC","ended_at":"2019-11-01 12:25:53 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp","pulp_auth"],"history_id":34,"content_view_id":19,"auto_publish_composite_ids":[],"content_view_version_name":"Test - Content View 1.0","content_view_version_id":20,"environment_id":20,"user_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/19/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null},"version":"1.0","publish":true,"version_id":20,"triggered_by":null,"triggered_by_id":null},"active_history":[],"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}]} + string: '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=31,version=1.0","sort":{"by":"version","order":"desc"},"results":[{"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[32],"published_in_composite_content_view_ids":[],"content_view_id":31,"default":false,"description":null,"id":19,"name":"Test + Content View 1.0","created_at":"2020-09-14 10:19:44 UTC","updated_at":"2020-09-14 + 10:19:47 UTC","content_view":{"id":31,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View"}],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":13,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","library_instance_id":30}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2020-09-14 + 10:19:44 UTC","updated_at":"2020-09-14 10:19:47 UTC","environment":null,"task":{"id":"dce95aeb-7d0d-49d1-829f-8c263c4bbc47","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:19:44 UTC","ended_at":"2020-09-14 10:19:47 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp3","pulp","pulp_auth"],"history_id":24,"content_view_id":31,"auto_publish_composite_ids":[],"content_view_version_name":"Test + Content View 1.0","content_view_version_id":19,"environment_id":13,"user_id":4,"skip_promotion":null,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{"content_view_id":31,"content_view_version_id":19,"skip_promotion":null},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:19:44 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":19,"triggered_by":null,"triggered_by_id":null},"active_history":[],"deb_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"puppet_module_count":0,"rpm_count":0,"modulemd_count":0,"erratum_count":0,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":0,"ostree_branch_count":null,"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2924' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:57 GMT - etag: - - W/"e1f1cd53b173418a213ada3e750df471-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 20aa1607-56bc-468f-994d-c96cf77780fc - x-runtime: - - '0.069588' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '3176' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view-9.yml b/tests/test_playbooks/fixtures/content_view-9.yml index 4e714362..c5285153 100644 --- a/tests/test_playbooks/fixtures/content_view-9.yml +++ b/tests/test_playbooks/fixtures/content_view-9.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:58 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=e124d90601d8055ae5cd90717243612a; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6cc9b124-fbd0-45c9-b1ae-f55df53a8276 - x-runtime: - - '0.123422' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e124d90601d8055ae5cd90717243612a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:25:26 UTC\",\"updated_at\":\"2019-11-01 - 12:25:26 UTC\",\"id\":12,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-14 10:19:21 UTC\",\"updated_at\"\ + :\"2020-09-14 10:19:21 UTC\",\"id\":14,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:58 GMT - etag: - - W/"13592454c984d5b28bf4a8cd71c92646-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 329ec042-20e8-40d5-a93b-4cb100a9e4f1 - x-runtime: - - '0.015497' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '389' status: code: 200 message: OK @@ -155,82 +125,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e124d90601d8055ae5cd90717243612a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Composite+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Composite+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Composite Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2296' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:58 GMT - etag: - - W/"8b72eb1b1155fbbfcf978b497ec96a66-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a02eb5b6-9c6d-4e25-9bc5-e0985e8595c6 - x-runtime: - - '0.041835' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2248' status: code: 200 message: OK @@ -243,81 +197,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e124d90601d8055ae5cd90717243612a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/20 + uri: https://foreman.example.org/katello/api/content_views/32 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":true,"component_ids":[20],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[27],"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:55 UTC","updated_at":"2019-11-01 12:25:57 UTC","environments":[],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"environments":[{"id":20,"name":"Library","label":"Library"}],"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":2,"created_at":"2019-11-01 - 12:25:56 UTC","updated_at":"2019-11-01 12:25:56 UTC","composite_content_view":{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":20,"name":"Test - Content View 1.0","content_view_id":19,"version":"1.0","puppet_module_count":0,"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null},"environments":[{"id":20,"name":"Library","label":"Library"}],"repositories":[{"id":27,"name":"Test + string: ' {"content_host_count":0,"composite":true,"component_ids":[19],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":true,"solve_dependencies":false,"repository_ids":[32],"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:53 UTC","environments":[],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","environments":[{"id":13,"name":"Library","label":"Library"}],"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0"},"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","description":null}]}],"content_view_components":[{"latest":false,"id":6,"created_at":"2020-09-14 + 10:19:50 UTC","updated_at":"2020-09-14 10:19:50 UTC","composite_content_view":{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View","description":null,"next_version":1,"latest_version":null,"version_count":0},"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"next_version":2,"latest_version":"1.0","version_count":1},"content_view_version":{"id":19,"name":"Test + Content View 1.0","content_view_id":31,"version":"1.0","content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null},"environments":[{"id":13,"name":"Library","label":"Library"}],"repositories":[{"id":32,"name":"Test Repository","label":"Test_Repository","description":null}]}}],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2194' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:58 GMT - etag: - - W/"382c3b5485caaedf69bd0b46ac627186-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - daf2c81c-6826-4d54-86c4-a1d405a74835 - x-runtime: - - '0.040627' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2146' status: code: 200 message: OK @@ -330,75 +268,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e124d90601d8055ae5cd90717243612a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/12/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/14/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} + string: '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1224' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:58 GMT - etag: - - W/"83c832e39072906becdcb0ff8ff4bfb2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 12; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 14; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - bba86c17-de10-4360-a08c-aa810fa793e9 - x-runtime: - - '0.031574' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1224' status: code: 200 message: OK @@ -411,74 +333,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e124d90601d8055ae5cd90717243612a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/19 + uri: https://foreman.example.org/katello/api/content_views/31 response: body: - string: !!python/unicode ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[25],"id":19,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":12,"organization":{"name":"Test - Organization","label":"Test_Organization","id":12},"created_at":"2019-11-01 - 12:25:45 UTC","updated_at":"2019-11-01 12:25:46 UTC","environments":[{"id":20,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":25,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":20,"version":"1.0","published":"2019-11-01 - 12:25:46 UTC","environment_ids":[20]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2019-11-01 - 12:25:46 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} + string: ' {"content_host_count":0,"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"repository_ids":[30],"id":31,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":14,"organization":{"name":"Test + Organization","label":"Test_Organization","id":14},"created_at":"2020-09-14 + 10:19:43 UTC","updated_at":"2020-09-14 10:19:44 UTC","environments":[{"id":13,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[{"id":19,"version":"1.0","published":"2020-09-14 + 10:19:44 UTC","environment_ids":[13]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2020-09-14 + 10:19:44 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true},"duplicate_repositories_to_publish":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1132' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:58 GMT - etag: - - W/"a529b975e057775737a8a25f4c48a650-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - beff3572-2107-47e9-a668-46e522f747d6 - x-runtime: - - '0.027784' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1132' status: code: 200 message: OK @@ -491,80 +397,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e124d90601d8055ae5cd90717243612a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_versions?per_page=4294967296&search=content_view_id%3D19%2Cversion%3D1.0 + uri: https://foreman.example.org/katello/api/content_view_versions?search=content_view_id%3D31%2Cversion%3D1.0&per_page=4294967296 response: body: - string: !!python/unicode '{"total":3,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=19,version=1.0","sort":{"by":"version","order":"desc"},"results":[{"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[20],"published_in_composite_content_view_ids":[],"content_view_id":19,"default":false,"description":null,"package_count":0,"module_stream_count":0,"srpm_count":0,"file_count":0,"package_group_count":0,"puppet_module_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"ostree_branch_count":0,"deb_count":0,"id":20,"name":"Test - Content View 1.0","created_at":"2019-11-01 12:25:46 UTC","updated_at":"2019-11-01 - 12:25:46 UTC","content_view":{"id":19,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[{"id":20,"name":"Test - Composite Content View","label":"Test_Composite_Content_View"}],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":20,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":27,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","library_instance_id":25}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2019-11-01 - 12:25:46 UTC","updated_at":"2019-11-01 12:25:52 UTC","environment":null,"task":{"id":"e0ea7ba4-f773-42b9-8086-7a8e436f3cab","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish - content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2019-11-01 - 12:25:46 UTC","ended_at":"2019-11-01 12:25:53 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":19,"name":"Test - Content View","label":"Test_Content_View"},"organization":{"id":12,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp","pulp_auth"],"history_id":34,"content_view_id":19,"auto_publish_composite_ids":[],"content_view_version_name":"Test - Content View 1.0","content_view_version_id":20,"environment_id":20,"user_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content - view ''Test Content View''","link":"/content_views/19/versions"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/12/edit"}]],"output":"","errors":[]},"cli_example":null},"version":"1.0","publish":true,"version_id":20,"triggered_by":null,"triggered_by_id":null},"active_history":[],"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}]} + string: '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"content_view_id=31,version=1.0","sort":{"by":"version","order":"desc"},"results":[{"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[32],"published_in_composite_content_view_ids":[],"content_view_id":31,"default":false,"description":null,"id":19,"name":"Test + Content View 1.0","created_at":"2020-09-14 10:19:44 UTC","updated_at":"2020-09-14 + 10:19:47 UTC","content_view":{"id":31,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[{"id":32,"name":"Test + Composite Content View","label":"Test_Composite_Content_View"}],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":13,"name":"Library","label":"Library","puppet_environment_id":null,"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":32,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","library_instance_id":30}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2020-09-14 + 10:19:44 UTC","updated_at":"2020-09-14 10:19:47 UTC","environment":null,"task":{"id":"dce95aeb-7d0d-49d1-829f-8c263c4bbc47","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish + content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2020-09-14 + 10:19:44 UTC","ended_at":"2020-09-14 10:19:47 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":31,"name":"Test + Content View","label":"Test_Content_View"},"organization":{"id":14,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth","pulp3","pulp","pulp_auth"],"history_id":24,"content_view_id":31,"auto_publish_composite_ids":[],"content_view_version_name":"Test + Content View 1.0","content_view_version_id":19,"environment_id":13,"user_id":4,"skip_promotion":null,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{"content_view_id":31,"content_view_version_id":19,"skip_promotion":null},"humanized":{"action":"Publish","input":[["content_view",{"text":"content + view ''Test Content View''","link":"/content_views/31/versions"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/14/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-14 + 10:19:44 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":19,"triggered_by":null,"triggered_by_id":null},"active_history":[],"deb_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"puppet_module_count":0,"rpm_count":0,"modulemd_count":0,"erratum_count":0,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":0,"ostree_branch_count":null,"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2924' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:25:58 GMT - etag: - - W/"e1f1cd53b173418a213ada3e750df471-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f8fe1ee5-b60a-429d-818d-5cb4f863f72b - x-runtime: - - '0.065391' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '3176' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-0.yml b/tests/test_playbooks/fixtures/content_view_filter-0.yml index f594e51a..c8f15a9a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-0.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-0.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:41 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=15194163687038d17d9117bdc580031f; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - bf4904bc-3a32-4df8-aa2e-f49db2c6ad2d - x-runtime: - - '0.130313' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=15194163687038d17d9117bdc580031f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:42 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - fcd2edc1-b1b7-420d-a7a7-675868ddfa59 - x-runtime: - - '0.017791' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=15194163687038d17d9117bdc580031f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:42 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8255a670-00ec-429b-8612-75a766501b99 - x-runtime: - - '0.047449' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=15194163687038d17d9117bdc580031f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:42 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 59e2f5f7-9aa5-42f0-a7be-ce4861d4f8b5 - x-runtime: - - '0.069873' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=15194163687038d17d9117bdc580031f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:42 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b0f21452-27ee-469e-af13-63d31f5aa577 - x-runtime: - - '0.061355' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,75 +315,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=15194163687038d17d9117bdc580031f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '172' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:42 GMT - etag: - - W/"6e228cb8f2a1bdec771d54e31c0901b2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 920030ff-bafd-4eb9-af40-795ad4db5109 - x-runtime: - - '0.026926' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '172' status: code: 200 message: OK - request: - body: !!python/unicode '{"repository_ids": [43], "type": "rpm", "name": "Test - Package Content View Filter", "inclusion": false}' + body: '{"name": "Test Package Content View Filter", "type": "rpm", "inclusion": + false, "repository_ids": [6]}' headers: Accept: - application/json;version=2 @@ -469,167 +376,71 @@ interactions: Connection: - keep-alive Content-Length: - - '103' + - '102' Content-Type: - application/json - Cookie: - - _session_id=15194163687038d17d9117bdc580031f User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters + uri: https://foreman.example.org/katello/api/content_views/8/filters response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:42 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:14 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}],"type":"rpm","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: - - Keep-Alive - content-length: - - '2596' - content-security-policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:42 GMT - etag: - - W/"141c7b48da7d76e9490bb424b3d43b7c-gzip" - foreman_api_version: - - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: - - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: - - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-frame-options: - - sameorigin - x-permitted-cross-domain-policies: - - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5e1c0905-9ade-405d-a47a-d62ffe7e6692 - x-runtime: - - '0.127469' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate Connection: - - keep-alive - Cookie: - - request_method=POST; _session_id=15194163687038d17d9117bdc580031f - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 - response: - body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[]} - -' - headers: - cache-control: - - max-age=0, private, must-revalidate - connection: - Keep-Alive - content-length: - - '142' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:42 GMT - etag: - - W/"73b78b97974777a8832fd3a9fc1b3501-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - dfc000db-55ce-4f4f-a708-bd9712021a65 - x-runtime: - - '0.019014' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created - request: - body: !!python/unicode '{"name": "bear"}' + body: '{"name": "bear"}' headers: Accept: - application/json;version=2 @@ -641,72 +452,52 @@ interactions: - '16' Content-Type: - application/json - Cookie: - - _session_id=15194163687038d17d9117bdc580031f User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"} + string: ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '130' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:42 GMT - etag: - - W/"aec5b35016d25d4e19aebc72ff5ac28a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 12a73962-545f-40c6-a8dc-1758a5954ae7 - x-runtime: - - '0.034424' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter-1.yml b/tests/test_playbooks/fixtures/content_view_filter-1.yml index 83f263cd..93edd6bf 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-1.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-1.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:43 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=d79fd269e2062a17f96efef6904ca4af; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 957909f8-dd47-474a-b046-0c704784555c - x-runtime: - - '0.125904' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d79fd269e2062a17f96efef6904ca4af User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:43 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 787a2570-a3f6-49dd-bfa6-1a7aec822fdc - x-runtime: - - '0.017721' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d79fd269e2062a17f96efef6904ca4af User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:43 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f6e04ba3-2396-436c-bb30-bc6ff92945a2 - x-runtime: - - '0.030006' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d79fd269e2062a17f96efef6904ca4af User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:43 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d5855d2d-eb04-47d9-97a1-17c4e3170917 - x-runtime: - - '0.062509' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d79fd269e2062a17f96efef6904ca4af User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:43 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a726cadd-bec7-4d14-a717-82dd277626fa - x-runtime: - - '0.056911' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d79fd269e2062a17f96efef6904ca4af User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:42 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:14 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2682' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:43 GMT - etag: - - W/"ceece60bb5f67ff05efc2b2a40eceebc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 29cf5468-165b-423c-a689-fae4c7eb4b8d - x-runtime: - - '0.064241' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2809' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d79fd269e2062a17f96efef6904ca4af User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:42 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:14 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2723' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:43 GMT - etag: - - W/"160e229cab981dfdab895bd76d1eb0ce-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 3a2d8901-a85b-4058-9799-13e23da433cd - x-runtime: - - '0.074269' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2867' status: code: 200 message: OK @@ -566,69 +459,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d79fd269e2062a17f96efef6904ca4af User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '269' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:43 GMT - etag: - - W/"df0d105ace920656f3f9dbd2b38a36d8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 763f83d8-6fc0-4867-b51a-70e5c4a3ad71 - x-runtime: - - '0.018064' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '269' status: code: 200 message: OK @@ -641,69 +518,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d79fd269e2062a17f96efef6904ca4af User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"} + string: ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '130' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:43 GMT - etag: - - W/"aec5b35016d25d4e19aebc72ff5ac28a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - fc857ac7-6598-4783-9a0c-a57a23c51740 - x-runtime: - - '0.017351' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '130' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-10.yml b/tests/test_playbooks/fixtures/content_view_filter-10.yml index e9a49100..31dd3bd7 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-10.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-10.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:52 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c1613899-a817-4cfa-b24c-1c889d6f9bbd - x-runtime: - - '0.187632' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:53 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1892c9a2-8717-40de-800e-9619fe87d35d - x-runtime: - - '0.027770' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:53 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b743886e-d989-47f4-b6e9-f8bd6c249e4a - x-runtime: - - '0.042372' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:53 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c90dbb00-5097-41bd-b8b5-bb6f66152c2a - x-runtime: - - '0.068080' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:53 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1fe4b3a3-c521-48a0-b656-ff2fbdfa3b12 - x-runtime: - - '0.079794' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:51 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:23 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2700' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:53 GMT - etag: - - W/"80412f8e810d59370f06338e605fa68c-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6a497452-a7ae-40e9-9901-54b6d0ea1168 - x-runtime: - - '0.078739' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2827' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:51 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:23 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2741' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:53 GMT - etag: - - W/"87780af05eed73312ab0f0b876936b8d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8089bc31-4d60-4cb5-b536-bcb7e69d5c53 - x-runtime: - - '0.080046' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2885' status: code: 200 message: OK @@ -566,69 +459,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:51 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:23 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '287' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:53 GMT - etag: - - W/"e3c9f29f70a2f28685c2323e48814e68-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a8b86569-5f73-4da0-92b0-897f356a5926 - x-runtime: - - '0.034812' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '287' status: code: 200 message: OK @@ -641,74 +518,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:51 UTC"} + string: ' {"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:23 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '148' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:53 GMT - etag: - - W/"9262d3ea521e643df55e268e91577b20-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5971df78-e157-40ca-b686-110df1fb65a1 - x-runtime: - - '0.020166' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '148' status: code: 200 message: OK - request: - body: !!python/unicode '{"min_version": "1"}' + body: '{"min_version": "1"}' headers: Accept: - application/json;version=2 @@ -720,71 +581,53 @@ interactions: - '20' Content-Type: - application/json - Cookie: - - _session_id=4f32889956e2d29e1c5d76ac7953dd3d User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"} + string: ' {"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '148' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:53 GMT - etag: - - W/"ebdad158d5942c255cef4d13a01f76b3-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9991 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f60d8bee-c4ff-4e54-9454-b4187fe752d7 - x-runtime: - - '0.028390' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '148' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-11.yml b/tests/test_playbooks/fixtures/content_view_filter-11.yml index 0b5bb4cc..449721a3 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-11.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-11.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:54 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=341f9a79ad68160a5583841bd55c4fe6; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5ed5e015-19e8-4478-95f7-07ac96dd51cb - x-runtime: - - '0.144336' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=341f9a79ad68160a5583841bd55c4fe6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:54 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ada16cf1-ca59-496d-9b8f-be1e40de3611 - x-runtime: - - '0.016673' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=341f9a79ad68160a5583841bd55c4fe6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:54 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a7a4d205-8d24-4ee4-a2dc-420470015081 - x-runtime: - - '0.035486' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=341f9a79ad68160a5583841bd55c4fe6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:54 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a8b90533-0d24-4c66-abde-7a40149edcce - x-runtime: - - '0.061288' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=341f9a79ad68160a5583841bd55c4fe6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:54 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 860487a2-6971-4b9c-9cad-e27e85e2f5cc - x-runtime: - - '0.060112' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=341f9a79ad68160a5583841bd55c4fe6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2700' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:54 GMT - etag: - - W/"5679899710077ccd39d32464d14c4d21-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2e0869b2-5cac-4462-aae1-90864be4cfea - x-runtime: - - '0.071538' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2827' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=341f9a79ad68160a5583841bd55c4fe6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2741' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:54 GMT - etag: - - W/"8f853ccc8c16397bcb9265bae466481a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a35f2c16-fb21-42f7-be45-4593cd6baa51 - x-runtime: - - '0.077649' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2885' status: code: 200 message: OK @@ -566,69 +459,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=341f9a79ad68160a5583841bd55c4fe6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '287' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:54 GMT - etag: - - W/"707996e3f96572839c8e4a19d11addb6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 551b17bc-2ff4-4ff2-a0a6-45a2c2c5ac2d - x-runtime: - - '0.021511' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '287' status: code: 200 message: OK @@ -641,69 +518,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=341f9a79ad68160a5583841bd55c4fe6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"} + string: ' {"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '148' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:54 GMT - etag: - - W/"ebdad158d5942c255cef4d13a01f76b3-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 594be65e-28d4-42e6-bf61-1acd3120a240 - x-runtime: - - '0.018127' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '148' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-12.yml b/tests/test_playbooks/fixtures/content_view_filter-12.yml index 40c69ec6..b2f49f39 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-12.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-12.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:55 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=13480db8e1e957bde44be9fd7aae1950; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 284c09b5-1dee-4254-87ed-2f482606cb62 - x-runtime: - - '0.132169' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=13480db8e1e957bde44be9fd7aae1950 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:55 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6ff5fb5d-f1d4-49d7-988b-a2be04ba1917 - x-runtime: - - '0.016801' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=13480db8e1e957bde44be9fd7aae1950 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:55 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5cef886c-e014-4596-ac30-c66dcb586330 - x-runtime: - - '0.034940' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=13480db8e1e957bde44be9fd7aae1950 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:55 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 43b87b32-d8d1-4e20-a74b-636d8171d6e7 - x-runtime: - - '0.071026' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=13480db8e1e957bde44be9fd7aae1950 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:55 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 632bcc49-d701-40bc-b22f-156d01926374 - x-runtime: - - '0.058697' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=13480db8e1e957bde44be9fd7aae1950 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2700' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:55 GMT - etag: - - W/"5679899710077ccd39d32464d14c4d21-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 777f0005-ddf3-41ed-9cc0-df164db0c068 - x-runtime: - - '0.073143' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2827' status: code: 200 message: OK @@ -479,86 +387,71 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=13480db8e1e957bde44be9fd7aae1950 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2741' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:55 GMT - etag: - - W/"8f853ccc8c16397bcb9265bae466481a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b201d87f-938d-4ef0-95c1-ab88bb3f20c8 - x-runtime: - - '0.092351' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2885' status: code: 200 message: OK - request: - body: !!python/unicode '{"inclusion": true}' + body: '{"inclusion": true}' headers: Accept: - application/json;version=2 @@ -570,83 +463,66 @@ interactions: - '19' Content-Type: - application/json - Cookie: - - _session_id=13480db8e1e957bde44be9fd7aae1950 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":true,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:55 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"}]} + string: ' {"inclusion":true,"original_packages":false,"id":6,"name":"Test Package + Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:27 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2740' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:55 GMT - etag: - - W/"aeb9e5557bf91d522012005ef95853b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c59d1ba1-4ad4-476d-ad70-be013355faf0 - x-runtime: - - '0.096286' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2884' status: code: 200 message: OK @@ -659,72 +535,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - request_method=PUT; _session_id=13480db8e1e957bde44be9fd7aae1950 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '287' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:55 GMT - etag: - - W/"707996e3f96572839c8e4a19d11addb6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b3a8f71a-25fb-4307-9a23-04c3edeaa568 - x-runtime: - - '0.019983' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '287' status: code: 200 message: OK @@ -737,69 +594,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=13480db8e1e957bde44be9fd7aae1950 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"} + string: ' {"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '148' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:56 GMT - etag: - - W/"ebdad158d5942c255cef4d13a01f76b3-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9991 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 72dba879-e80d-4d4f-82f8-fabe3185081c - x-runtime: - - '0.015763' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '148' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-13.yml b/tests/test_playbooks/fixtures/content_view_filter-13.yml index e4160afd..c46d6073 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-13.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-13.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:56 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=bd49f9a99e424d3b609ce8522303c02a; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d7bcb44f-0628-4391-94b7-5134cdf74d57 - x-runtime: - - '0.131715' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bd49f9a99e424d3b609ce8522303c02a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:56 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - dcff5e5e-d460-4a7b-9733-df22c3d41e39 - x-runtime: - - '0.019137' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bd49f9a99e424d3b609ce8522303c02a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:56 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d72f822c-4eba-42e4-baaf-b07bdc50ffe6 - x-runtime: - - '0.036007' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bd49f9a99e424d3b609ce8522303c02a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:56 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ac4fb9f7-4474-40d3-b368-fc2dbbb178ae - x-runtime: - - '0.073109' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bd49f9a99e424d3b609ce8522303c02a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:56 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f570c59d-df69-403d-a02d-4d6351b2b62a - x-runtime: - - '0.064922' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bd49f9a99e424d3b609ce8522303c02a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":true,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:55 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:27 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2699' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:56 GMT - etag: - - W/"dbbf9eddcf17ba8c521b09967ef51b4a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6db6e08a-0fb0-49a7-9d45-de8729ebde39 - x-runtime: - - '0.072387' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2826' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bd49f9a99e424d3b609ce8522303c02a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":true,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:55 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:53 UTC"}]} + string: ' {"inclusion":true,"original_packages":false,"id":6,"name":"Test Package + Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:27 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"min_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:25 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2740' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:56 GMT - etag: - - W/"aeb9e5557bf91d522012005ef95853b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 67d91042-3b03-47f2-a04c-7455e1cb7fd8 - x-runtime: - - '0.081984' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2884' status: code: 200 message: OK @@ -568,77 +461,59 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=bd49f9a99e424d3b609ce8522303c02a User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":true,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:55 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"rpm","rules":[]} + string: ' {"inclusion":true,"original_packages":false,"id":6,"name":"Test Package + Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:27 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"rpm","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1318' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:57 GMT - etag: - - W/"4d73737b1b804ef7856c9f7c75068112-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7de0797f-1706-4326-ba8d-0bae4f7b4819 - x-runtime: - - '0.067404' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1330' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-14.yml b/tests/test_playbooks/fixtures/content_view_filter-14.yml index d6e673e6..24815d2a 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-14.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-14.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:57 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=e879123d5e87a9c2fcd42d5192d0141e; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - af8bf9a9-ea56-488c-b1ee-b3b15226f7c2 - x-runtime: - - '0.140450' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e879123d5e87a9c2fcd42d5192d0141e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:57 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6be98d59-06c0-4c9e-ac53-4c68d2fc7347 - x-runtime: - - '0.024730' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e879123d5e87a9c2fcd42d5192d0141e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:57 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a69659fa-1bee-49f6-a4bb-ee36707e121d - x-runtime: - - '0.052481' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,75 +188,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e879123d5e87a9c2fcd42d5192d0141e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Errata+id+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '174' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:57 GMT - etag: - - W/"3bd7df8d4b425f5604e17ff3f7ae8d0e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7b097a98-8aa7-4029-bc77-28abc1021021 - x-runtime: - - '0.026314' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '174' status: code: 200 message: OK - request: - body: !!python/unicode '{"repository_ids": [], "type": "erratum", "name": "Test - Errata id Content View Filter", "inclusion": false}' + body: '{"name": "Test Errata id Content View Filter", "type": "erratum", "inclusion": + false, "repository_ids": []}' headers: Accept: - application/json;version=2 @@ -314,159 +252,61 @@ interactions: - '107' Content-Type: - application/json - Cookie: - - _session_id=e879123d5e87a9c2fcd42d5192d0141e User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters + uri: https://foreman.example.org/katello/api/content_views/8/filters response: body: - string: !!python/unicode ' {"inclusion":false,"id":7,"name":"Test Errata id - Content View Filter","description":null,"created_at":"2019-11-07 08:55:57 - UTC","updated_at":"2019-11-07 08:55:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":7,"name":"Test Errata id Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: - - Keep-Alive - content-length: - - '1299' - content-security-policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:57 GMT - etag: - - W/"a974d198b7bc142fa0cc07ed21296fcf-gzip" - foreman_api_version: - - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: - - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: - - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-frame-options: - - sameorigin - x-permitted-cross-domain-policies: - - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5aab0294-489a-45bc-85f2-66395ed1600b - x-runtime: - - '0.074059' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate Connection: - - keep-alive - Cookie: - - request_method=POST; _session_id=e879123d5e87a9c2fcd42d5192d0141e - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/7/rules?per_page=4294967296&errata_id=RHEA-2012%3A0003 - response: - body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[]} - -' - headers: - cache-control: - - max-age=0, private, must-revalidate - connection: - Keep-Alive - content-length: - - '131' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:58 GMT - etag: - - W/"9cb681e2c8f8a3794f24a98aeccf245a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7173e002-5d86-4eda-89b5-34a2d3926b35 - x-runtime: - - '0.019672' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created - request: - body: !!python/unicode '{"date_type": "updated", "errata_id": "RHEA-2012:0003"}' + body: '{"errata_id": "RHEA-2012:0003", "date_type": "updated"}' headers: Accept: - application/json;version=2 @@ -478,72 +318,52 @@ interactions: - '55' Content-Type: - application/json - Cookie: - - _session_id=e879123d5e87a9c2fcd42d5192d0141e User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/7/rules + uri: https://foreman.example.org/katello/api/content_view_filters/7/rules response: body: - string: !!python/unicode ' {"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2019-11-07 - 08:55:58 UTC","updated_at":"2019-11-07 08:55:58 UTC"} + string: ' {"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '167' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:58 GMT - etag: - - W/"1bc3251674ff2dbe0f0e29fdc3e5147a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8184ab59-7bc6-4f69-89a3-70ab06204e95 - x-runtime: - - '0.044402' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter-15.yml b/tests/test_playbooks/fixtures/content_view_filter-15.yml index 90fba642..a3032e42 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-15.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-15.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:58 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=57c41e1a3829d92c251aed5705fe382c; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b30c13b5-09fe-48e7-bd7b-5d0477e6a706 - x-runtime: - - '0.133315' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=57c41e1a3829d92c251aed5705fe382c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:58 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9f1bd698-ead8-4769-98b3-4a28b5fd77b3 - x-runtime: - - '0.016268' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=57c41e1a3829d92c251aed5705fe382c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:58 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 04bb5242-8828-4e13-adc5-abaa66ce3edc - x-runtime: - - '0.030569' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,76 +188,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=57c41e1a3829d92c251aed5705fe382c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Errata+id+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":7,"name":"Test - Errata id Content View Filter","description":null,"created_at":"2019-11-07 - 08:55:57 UTC","updated_at":"2019-11-07 08:55:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2019-11-07 - 08:55:58 UTC","updated_at":"2019-11-07 08:55:58 UTC"}]}]} + Errata id Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1450' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:58 GMT - etag: - - W/"bf98400ec4300f4acb70466cdcc68479-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 85f90f00-7657-4eda-90f7-c05c187ad79a - x-runtime: - - '0.035123' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1445' status: code: 200 message: OK @@ -316,76 +254,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=57c41e1a3829d92c251aed5705fe382c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/7 + uri: https://foreman.example.org/katello/api/content_views/8/filters/7 response: body: - string: !!python/unicode ' {"inclusion":false,"id":7,"name":"Test Errata id - Content View Filter","description":null,"created_at":"2019-11-07 08:55:57 - UTC","updated_at":"2019-11-07 08:55:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2019-11-07 - 08:55:58 UTC","updated_at":"2019-11-07 08:55:58 UTC"}]} + string: ' {"inclusion":false,"id":7,"name":"Test Errata id Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1463' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:58 GMT - etag: - - W/"37eb5dee79b2da93253553b9c03ac51c-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c44b659a-d73b-449f-a1c5-b2b5853cd4ac - x-runtime: - - '0.051068' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1475' status: code: 200 message: OK @@ -398,69 +319,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=57c41e1a3829d92c251aed5705fe382c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/7/rules?per_page=4294967296&errata_id=RHEA-2012%3A0003 + uri: https://foreman.example.org/katello/api/content_view_filters/7/rules?errata_id=RHEA-2012%3A0003&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2019-11-07 - 08:55:58 UTC","updated_at":"2019-11-07 08:55:58 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '295' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:58 GMT - etag: - - W/"ec9f76c001b67e15e112449575fe60a3-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f196b53f-64f9-4142-9a06-a9ce9bb81814 - x-runtime: - - '0.017999' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '295' status: code: 200 message: OK @@ -473,69 +378,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=57c41e1a3829d92c251aed5705fe382c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/7/rules/3 + uri: https://foreman.example.org/katello/api/content_view_filters/7/rules/3 response: body: - string: !!python/unicode ' {"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2019-11-07 - 08:55:58 UTC","updated_at":"2019-11-07 08:55:58 UTC"} + string: ' {"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '167' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:58 GMT - etag: - - W/"1bc3251674ff2dbe0f0e29fdc3e5147a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b59fc7d2-09d7-4e72-8160-1475baa7ebfd - x-runtime: - - '0.015655' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '167' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-16.yml b/tests/test_playbooks/fixtures/content_view_filter-16.yml index 705bcb43..5b361c65 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-16.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-16.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:59 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=f343a731d08d721979004dd078a12c29; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6476205f-a1f7-4f0f-ab85-2183ba895817 - x-runtime: - - '0.129703' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f343a731d08d721979004dd078a12c29 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:59 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b657efc1-a293-4b4d-950c-99b49bc20e26 - x-runtime: - - '0.018177' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f343a731d08d721979004dd078a12c29 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:59 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 193a2f65-6804-496d-befd-7bdcb0752de9 - x-runtime: - - '0.030148' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,76 +188,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f343a731d08d721979004dd078a12c29 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Errata+id+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Errata+id+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Errata id Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":7,"name":"Test - Errata id Content View Filter","description":null,"created_at":"2019-11-07 - 08:55:57 UTC","updated_at":"2019-11-07 08:55:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2019-11-07 - 08:55:58 UTC","updated_at":"2019-11-07 08:55:58 UTC"}]}]} + Errata id Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1450' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:59 GMT - etag: - - W/"bf98400ec4300f4acb70466cdcc68479-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 93bac5bc-75d0-4578-9587-9d2e47aa8f27 - x-runtime: - - '0.038142' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1445' status: code: 200 message: OK @@ -316,76 +254,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f343a731d08d721979004dd078a12c29 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/7 + uri: https://foreman.example.org/katello/api/content_views/8/filters/7 response: body: - string: !!python/unicode ' {"inclusion":false,"id":7,"name":"Test Errata id - Content View Filter","description":null,"created_at":"2019-11-07 08:55:57 - UTC","updated_at":"2019-11-07 08:55:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2019-11-07 - 08:55:58 UTC","updated_at":"2019-11-07 08:55:58 UTC"}]} + string: ' {"inclusion":false,"id":7,"name":"Test Errata id Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[{"content_view_filter_id":7,"errata_id":"RHEA-2012:0003","date_type":"updated","id":3,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1463' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:59 GMT - etag: - - W/"37eb5dee79b2da93253553b9c03ac51c-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6a6d21be-fc02-4059-a328-242e7f31ed63 - x-runtime: - - '0.045373' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1475' status: code: 200 message: OK @@ -400,77 +321,58 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=f343a731d08d721979004dd078a12c29 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/7 + uri: https://foreman.example.org/katello/api/content_views/8/filters/7 response: body: - string: !!python/unicode ' {"inclusion":false,"id":7,"name":"Test Errata id - Content View Filter","description":null,"created_at":"2019-11-07 08:55:57 - UTC","updated_at":"2019-11-07 08:55:57 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":7,"name":"Test Errata id Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:29 UTC","updated_at":"2020-09-04 13:27:29 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1299' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:59 GMT - etag: - - W/"a974d198b7bc142fa0cc07ed21296fcf-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6b0ceb0f-093f-454d-8dea-50c720811198 - x-runtime: - - '0.058743' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1311' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-17.yml b/tests/test_playbooks/fixtures/content_view_filter-17.yml index 23afb368..6f20fcfb 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-17.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-17.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:00 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=b79333652660d9163e9bbb99fe5a1634; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 908e55d1-7641-410e-ae27-608bc3f9e455 - x-runtime: - - '0.137317' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b79333652660d9163e9bbb99fe5a1634 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:00 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 739685f8-2aad-4145-b339-e2ec0ab6e4d1 - x-runtime: - - '0.018331' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b79333652660d9163e9bbb99fe5a1634 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:00 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a101d844-6c8a-4851-92f0-cdd096016a41 - x-runtime: - - '0.033831' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b79333652660d9163e9bbb99fe5a1634 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:00 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 95661cf8-9011-4656-98e8-8a09ed454f66 - x-runtime: - - '0.070188' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b79333652660d9163e9bbb99fe5a1634 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:00 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4d04eab2-57fc-4ec2-9a83-a7160cd2b70f - x-runtime: - - '0.057147' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,75 +315,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b79333652660d9163e9bbb99fe5a1634 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Errata+date+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '176' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:00 GMT - etag: - - W/"049759956aa995088ecd87a0ad6f29bb-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2bd3385f-05f1-4993-89ec-f7f9d1fe9aa5 - x-runtime: - - '0.017621' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '176' status: code: 200 message: OK - request: - body: !!python/unicode '{"repository_ids": [43], "type": "erratum", "name": "Test - Errata date Content View Filter", "inclusion": false}' + body: '{"name": "Test Errata date Content View Filter", "type": "erratum", "inclusion": + false, "repository_ids": [6]}' headers: Accept: - application/json;version=2 @@ -469,168 +376,71 @@ interactions: Connection: - keep-alive Content-Length: - - '111' + - '110' Content-Type: - application/json - Cookie: - - _session_id=b79333652660d9163e9bbb99fe5a1634 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters + uri: https://foreman.example.org/katello/api/content_views/8/filters response: body: - string: !!python/unicode ' {"inclusion":false,"id":8,"name":"Test Errata date - Content View Filter","description":null,"created_at":"2019-11-07 08:56:00 - UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: ' {"inclusion":false,"id":8,"name":"Test Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}],"type":"erratum","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: - - Keep-Alive - content-length: - - '2578' - content-security-policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:00 GMT - etag: - - W/"1de439f66c3c1babada6077f66d44aa3-gzip" - foreman_api_version: - - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: - - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: - - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-frame-options: - - sameorigin - x-permitted-cross-domain-policies: - - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9e83cfd6-26f9-4bab-a083-4bd4623feb4e - x-runtime: - - '0.100058' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate Connection: - - keep-alive - Cookie: - - request_method=POST; _session_id=b79333652660d9163e9bbb99fe5a1634 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules?per_page=4294967296 - response: - body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[]} - -' - headers: - cache-control: - - max-age=0, private, must-revalidate - connection: - Keep-Alive - content-length: - - '131' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:00 GMT - etag: - - W/"9cb681e2c8f8a3794f24a98aeccf245a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 14eee800-7cd1-44bb-a2c6-34b418a1298e - x-runtime: - - '0.015227' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created - request: - body: !!python/unicode '{"date_type": "updated", "end_date": "2018-01-03", "start_date": - "2017-01-03", "types": ["bugfix", "enhancement", "security"]}' + body: '{"start_date": "2017-01-03", "end_date": "2018-01-03", "types": ["bugfix", + "enhancement", "security"], "date_type": "updated"}' headers: Accept: - application/json;version=2 @@ -642,72 +452,52 @@ interactions: - '126' Content-Type: - application/json - Cookie: - - _session_id=b79333652660d9163e9bbb99fe5a1634 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules + uri: https://foreman.example.org/katello/api/content_view_filters/8/rules response: body: - string: !!python/unicode ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"} + string: ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '232' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:00 GMT - etag: - - W/"11417f8a9c27cac5db8d859c08618e62-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 579025ea-c792-458d-9b29-4473892e06cc - x-runtime: - - '0.019432' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter-18.yml b/tests/test_playbooks/fixtures/content_view_filter-18.yml index 8c0efed0..df9e3ed2 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-18.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-18.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:01 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=719a0e0f823c4f9c4db42cf6b0300e47; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 40da2ab8-43cd-4f45-94cb-a5300e63f1e0 - x-runtime: - - '0.133075' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=719a0e0f823c4f9c4db42cf6b0300e47 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:01 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0a5246a1-f389-4aa6-962a-c4ba47c3cbfa - x-runtime: - - '0.019514' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=719a0e0f823c4f9c4db42cf6b0300e47 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:01 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8c4e8e67-4360-4451-ae9a-32d90d5eeeff - x-runtime: - - '0.031400' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=719a0e0f823c4f9c4db42cf6b0300e47 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:01 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 34b5b7ea-24f4-4a6e-8895-ff13db14ff65 - x-runtime: - - '0.064303' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=719a0e0f823c4f9c4db42cf6b0300e47 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:01 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2b8dd983-2ce4-4085-9d4a-ce2757881ef7 - x-runtime: - - '0.059465' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=719a0e0f823c4f9c4db42cf6b0300e47 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Errata+date+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Errata date Content View Filter","description":null,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"}]}]} + Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2796' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:01 GMT - etag: - - W/"7446944f0166b32244d9f0ec05f637c6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6ab56282-9e89-41b6-98b7-dd144e0b7565 - x-runtime: - - '0.074785' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2923' status: code: 200 message: OK @@ -479,81 +387,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=719a0e0f823c4f9c4db42cf6b0300e47 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/8 + uri: https://foreman.example.org/katello/api/content_views/8/filters/8 response: body: - string: !!python/unicode ' {"inclusion":false,"id":8,"name":"Test Errata date - Content View Filter","description":null,"created_at":"2019-11-07 08:56:00 - UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"}]} + string: ' {"inclusion":false,"id":8,"name":"Test Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2807' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:01 GMT - etag: - - W/"ace243747bcc0a130a3b2e18f9743ca8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7dcaf0e2-64f2-4598-a836-e049088a5ed0 - x-runtime: - - '0.086634' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2951' status: code: 200 message: OK @@ -566,69 +458,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=719a0e0f823c4f9c4db42cf6b0300e47 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/8/rules?per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '360' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:02 GMT - etag: - - W/"98a0d3bf2de173bddeb361ae47294257-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 458ac0b0-8e56-49d8-b7fe-c52ed16b6901 - x-runtime: - - '0.021068' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '360' status: code: 200 message: OK @@ -641,69 +517,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=719a0e0f823c4f9c4db42cf6b0300e47 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/8/rules/4 response: body: - string: !!python/unicode ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"} + string: ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '232' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:02 GMT - etag: - - W/"11417f8a9c27cac5db8d859c08618e62-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0d2cd320-5462-4344-b45a-e8ce79655e9b - x-runtime: - - '0.016965' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '232' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-19.yml b/tests/test_playbooks/fixtures/content_view_filter-19.yml index 2da9a399..5b993433 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-19.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-19.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:02 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 3453798b-52da-4d9c-a00d-c7e99017aef4 - x-runtime: - - '0.131227' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:02 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 529931ce-fec3-4b6f-b643-89c9fabc4abf - x-runtime: - - '0.016620' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:02 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1681ecbe-d257-493b-8d3e-0925e00dfda1 - x-runtime: - - '0.035614' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:02 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 30583020-02f0-49c4-8a49-7c6bc00ce8cf - x-runtime: - - '0.069943' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:02 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4e8d3370-2c63-409d-b6c9-df2f134b021a - x-runtime: - - '0.063381' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Errata+date+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Errata date Content View Filter","description":null,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"}]}]} + Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2796' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:02 GMT - etag: - - W/"7446944f0166b32244d9f0ec05f637c6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - bb554f39-2d62-4120-b513-e41bff492a33 - x-runtime: - - '0.086467' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2923' status: code: 200 message: OK @@ -479,81 +387,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/8 + uri: https://foreman.example.org/katello/api/content_views/8/filters/8 response: body: - string: !!python/unicode ' {"inclusion":false,"id":8,"name":"Test Errata date - Content View Filter","description":null,"created_at":"2019-11-07 08:56:00 - UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"}]} + string: ' {"inclusion":false,"id":8,"name":"Test Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2807' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:03 GMT - etag: - - W/"ace243747bcc0a130a3b2e18f9743ca8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7b77428a-4d4c-4e53-a490-d28b85970198 - x-runtime: - - '0.131169' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2951' status: code: 200 message: OK @@ -566,69 +458,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/8/rules?per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '360' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:03 GMT - etag: - - W/"98a0d3bf2de173bddeb361ae47294257-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1b6f6cc6-c8fc-4da5-b1c2-fff68b3ef387 - x-runtime: - - '0.024290' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '360' status: code: 200 message: OK @@ -641,74 +517,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/8/rules/4 response: body: - string: !!python/unicode ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"} + string: ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '232' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:03 GMT - etag: - - W/"11417f8a9c27cac5db8d859c08618e62-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6db70752-28f7-4840-b332-89e63addfde9 - x-runtime: - - '0.019307' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '232' status: code: 200 message: OK - request: - body: !!python/unicode '{}' + body: '{}' headers: Accept: - application/json;version=2 @@ -720,71 +580,53 @@ interactions: - '2' Content-Type: - application/json - Cookie: - - _session_id=af58c8e4f34bd29b5fe7a194c16cf851 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/8/rules/4 response: body: - string: !!python/unicode ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"} + string: ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '232' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:03 GMT - etag: - - W/"11417f8a9c27cac5db8d859c08618e62-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9991 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6f13e0df-4375-4b8f-9d90-0086ed591323 - x-runtime: - - '0.027746' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '232' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-2.yml b/tests/test_playbooks/fixtures/content_view_filter-2.yml index e78aac5d..a9a1292e 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-2.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-2.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=4eb4946ad896dfa077e2d51de8082aba; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d8a6a9ed-c9d2-4efb-aa04-5c7dd044dcb9 - x-runtime: - - '0.125839' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eb4946ad896dfa077e2d51de8082aba User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - bffe9559-7ba2-4f19-a529-11f2ff639191 - x-runtime: - - '0.019902' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eb4946ad896dfa077e2d51de8082aba User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0d26f3df-5f7a-46b3-aacd-bc5f3c3fd12f - x-runtime: - - '0.032232' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eb4946ad896dfa077e2d51de8082aba User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9de47841-f637-4d97-9d69-29065e15d4c5 - x-runtime: - - '0.065535' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eb4946ad896dfa077e2d51de8082aba User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 88985a43-c907-4869-909c-086d43fe05c0 - x-runtime: - - '0.057207' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eb4946ad896dfa077e2d51de8082aba User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:42 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:14 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2682' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"ceece60bb5f67ff05efc2b2a40eceebc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 3ece07bb-318e-4e87-a0c1-10e81d25ea0b - x-runtime: - - '0.066213' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2809' status: code: 200 message: OK @@ -479,86 +387,71 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eb4946ad896dfa077e2d51de8082aba User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:42 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:14 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2723' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"160e229cab981dfdab895bd76d1eb0ce-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 82a6e244-fb04-485f-aacb-de0cb18497b1 - x-runtime: - - '0.070551' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2867' status: code: 200 message: OK - request: - body: !!python/unicode '{"original_packages": true}' + body: '{"original_packages": true}' headers: Accept: - application/json;version=2 @@ -570,83 +463,66 @@ interactions: - '27' Content-Type: - application/json - Cookie: - - _session_id=4eb4946ad896dfa077e2d51de8082aba User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":true,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:44 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: ' {"inclusion":false,"original_packages":true,"id":6,"name":"Test Package + Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2722' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"ddcbb7e586ada2f2dcf3869795f5421c-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f07beaae-7e79-42e1-83a7-a559149f32f1 - x-runtime: - - '0.095985' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2866' status: code: 200 message: OK @@ -659,72 +535,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - request_method=PUT; _session_id=4eb4946ad896dfa077e2d51de8082aba User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '269' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"df0d105ace920656f3f9dbd2b38a36d8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - cbf9a6c0-e97d-4367-84ab-c10f9b503b03 - x-runtime: - - '0.019284' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '269' status: code: 200 message: OK @@ -737,69 +594,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4eb4946ad896dfa077e2d51de8082aba User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"} + string: ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '130' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:44 GMT - etag: - - W/"aec5b35016d25d4e19aebc72ff5ac28a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9991 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c82bfe40-34a3-4fbb-ac18-3b0c450c191f - x-runtime: - - '0.014568' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '130' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-20.yml b/tests/test_playbooks/fixtures/content_view_filter-20.yml index 6373c389..9b9d29e1 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-20.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-20.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:03 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 05de28bc-6530-4d93-9925-68b556aab76f - x-runtime: - - '0.130516' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:03 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f155dda3-4ef6-404b-9c95-7466b49f5638 - x-runtime: - - '0.017425' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:04 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - fb59349c-20cf-49b4-b567-83fd8a9b8b7e - x-runtime: - - '0.053777' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:04 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f79008d1-c13b-44b9-a293-d7b26ad5fede - x-runtime: - - '0.074422' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:04 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2fa47e56-2746-467c-8b54-0801fb5caef1 - x-runtime: - - '0.075144' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Errata+date+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Errata date Content View Filter","description":null,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"}]}]} + Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2796' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:04 GMT - etag: - - W/"7446944f0166b32244d9f0ec05f637c6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 57be6117-7af1-449a-abca-3e60cd094894 - x-runtime: - - '0.079306' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2923' status: code: 200 message: OK @@ -479,81 +387,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/8 + uri: https://foreman.example.org/katello/api/content_views/8/filters/8 response: body: - string: !!python/unicode ' {"inclusion":false,"id":8,"name":"Test Errata date - Content View Filter","description":null,"created_at":"2019-11-07 08:56:00 - UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"}]} + string: ' {"inclusion":false,"id":8,"name":"Test Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2807' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:04 GMT - etag: - - W/"ace243747bcc0a130a3b2e18f9743ca8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8ca8f6ce-08ed-48e1-a981-907f320a173e - x-runtime: - - '0.078140' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2951' status: code: 200 message: OK @@ -566,69 +458,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules?per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_view_filters/8/rules?per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":null,"sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '360' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:04 GMT - etag: - - W/"98a0d3bf2de173bddeb361ae47294257-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5ef4d288-eabb-45c6-a2d3-d27794f8143a - x-runtime: - - '0.021592' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '360' status: code: 200 message: OK @@ -641,74 +517,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/8/rules/4 response: body: - string: !!python/unicode ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC"} + string: ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["bugfix","enhancement","security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '232' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:04 GMT - etag: - - W/"11417f8a9c27cac5db8d859c08618e62-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e8b4872f-ad91-4de7-a3f7-6dc0eeb2d77e - x-runtime: - - '0.017232' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '232' status: code: 200 message: OK - request: - body: !!python/unicode '{"types": ["security"]}' + body: '{"types": ["security"]}' headers: Accept: - application/json;version=2 @@ -720,71 +580,53 @@ interactions: - '23' Content-Type: - application/json - Cookie: - - _session_id=137bd4421ca46cf769615d4c0e7b145e User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/8/rules/4 + uri: https://foreman.example.org/katello/api/content_view_filters/8/rules/4 response: body: - string: !!python/unicode ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:04 UTC"} + string: ' {"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:35 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '209' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:04 GMT - etag: - - W/"3f5dacb0b77619f4c5704447c0c23885-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9991 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1a0f8b0a-59e7-4e05-ad36-a1495daff291 - x-runtime: - - '0.028835' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '209' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-21.yml b/tests/test_playbooks/fixtures/content_view_filter-21.yml index 3ddfbd53..fd2834a8 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-21.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-21.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:05 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=d5c0b4359b5ac5a34441f2a4c748d655; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 528fa4d2-1b4b-45bd-9cd9-acad93a00c53 - x-runtime: - - '0.137259' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d5c0b4359b5ac5a34441f2a4c748d655 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:05 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - fd220d9f-eac4-44ae-9da8-581dc1b5bf11 - x-runtime: - - '0.018702' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d5c0b4359b5ac5a34441f2a4c748d655 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:05 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b59d01c0-6134-4bb2-87d4-af781388ba53 - x-runtime: - - '0.044376' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d5c0b4359b5ac5a34441f2a4c748d655 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:05 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1e3e6792-794b-4230-a663-acd91f968892 - x-runtime: - - '0.084014' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d5c0b4359b5ac5a34441f2a4c748d655 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:05 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 82d3605b-9cbf-4468-9c6e-19c03dfe6edd - x-runtime: - - '0.071799' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d5c0b4359b5ac5a34441f2a4c748d655 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Errata+date+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Errata+date+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Errata date Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":8,"name":"Test - Errata date Content View Filter","description":null,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:04 UTC"}]}]} + Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:35 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2773' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:05 GMT - etag: - - W/"084d3fce24f0be6284c584c12d9eefb6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2821cbc4-727f-4382-8213-6b6c122a2c0a - x-runtime: - - '0.075704' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2900' status: code: 200 message: OK @@ -479,81 +387,65 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d5c0b4359b5ac5a34441f2a4c748d655 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/8 + uri: https://foreman.example.org/katello/api/content_views/8/filters/8 response: body: - string: !!python/unicode ' {"inclusion":false,"id":8,"name":"Test Errata date - Content View Filter","description":null,"created_at":"2019-11-07 08:56:00 - UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["security"],"date_type":"updated","id":4,"created_at":"2019-11-07 - 08:56:00 UTC","updated_at":"2019-11-07 08:56:04 UTC"}]} + string: ' {"inclusion":false,"id":8,"name":"Test Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"erratum","rules":[{"content_view_filter_id":8,"start_date":"2017-01-03","end_date":"2018-01-03","types":["security"],"date_type":"updated","id":4,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:35 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2784' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:05 GMT - etag: - - W/"967b72d02c0f2dc8e8b9b60981595f14-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d2084fbf-95a4-439e-becb-721e200efa54 - x-runtime: - - '0.071001' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2928' status: code: 200 message: OK @@ -568,77 +460,58 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=d5c0b4359b5ac5a34441f2a4c748d655 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/8 + uri: https://foreman.example.org/katello/api/content_views/8/filters/8 response: body: - string: !!python/unicode ' {"inclusion":false,"id":8,"name":"Test Errata date - Content View Filter","description":null,"created_at":"2019-11-07 08:56:00 - UTC","updated_at":"2019-11-07 08:56:00 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[]} + string: ' {"inclusion":false,"id":8,"name":"Test Errata date Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:31 UTC","updated_at":"2020-09-04 13:27:31 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"erratum","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1301' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:05 GMT - etag: - - W/"7792ffc6cc0f6b8f8014601ea8e40aea-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e3c6b631-8660-459c-9140-ce0f1049a99c - x-runtime: - - '0.065253' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1313' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-22.yml b/tests/test_playbooks/fixtures/content_view_filter-22.yml index 2570114d..88a3b75f 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-22.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-22.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:06 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=95e9dd070dacecd707badc0e09f34b35; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 523bb501-2668-48f7-a7b7-369145e2fa36 - x-runtime: - - '0.134380' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=95e9dd070dacecd707badc0e09f34b35 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:06 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4e0ec6e6-a7ac-4a77-a66d-a84cb07e7ca7 - x-runtime: - - '0.017770' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=95e9dd070dacecd707badc0e09f34b35 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:06 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 158a00d5-2b40-4efa-ba51-579dc5d7126d - x-runtime: - - '0.030072' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,75 +188,64 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=95e9dd070dacecd707badc0e09f34b35 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Group+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":5,"name":"Test + Package Group Content View Filter","description":null,"created_at":"2020-09-04 + 13:20:39 UTC","updated_at":"2020-09-04 13:20:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '178' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:06 GMT - etag: - - W/"5434a12c11c9d8f4bfe08ae6fe410643-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7a6414c9-cdb6-4a58-9255-1a7e52d608ba - x-runtime: - - '0.017276' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1295' status: code: 200 message: OK - request: - body: !!python/unicode '{"repository_ids": [], "type": "package_group", "name": - "Test Package Group Content View Filter", "inclusion": false}' + body: null headers: Accept: - application/json;version=2 @@ -310,81 +253,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-Length: - - '117' - Content-Type: - - application/json - Cookie: - - _session_id=95e9dd070dacecd707badc0e09f34b35 User-Agent: - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters + method: GET + uri: https://foreman.example.org/katello/api/content_views/8/filters/5 response: body: - string: !!python/unicode ' {"inclusion":false,"id":9,"name":"Test Package Group - Content View Filter","description":null,"created_at":"2019-11-07 08:56:06 - UTC","updated_at":"2019-11-07 08:56:06 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[]} + string: ' {"inclusion":false,"id":5,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2020-09-04 13:20:39 UTC","updated_at":"2020-09-04 + 13:20:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1309' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:06 GMT - etag: - - W/"39cefd5d80ef58b660dcc65c7b379f49-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7d2599f1-a28d-486b-bbf8-c0003f57696e - x-runtime: - - '0.066510' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1321' status: code: 200 message: OK @@ -397,71 +318,52 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - request_method=POST; _session_id=95e9dd070dacecd707badc0e09f34b35 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/9/rules?per_page=4294967296&search=name%3D%22birds%22 + uri: https://foreman.example.org/katello/api/content_view_filters/5/rules?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[]} + string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '143' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:06 GMT - etag: - - W/"03fceaa121605fd17a0ad201a35ed446-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 14340a01-3462-465c-b9b1-1564f01d51e9 - x-runtime: - - '0.019192' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '143' status: code: 200 message: OK @@ -474,69 +376,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=95e9dd070dacecd707badc0e09f34b35 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/package_groups?organization_id=18&per_page=4294967296&search=name%3D%22birds%22 + uri: https://foreman.example.org/katello/api/package_groups?organization_id=7&search=name%3D%22birds%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"name":"birds","pulp_id":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","description":null,"repository":{"id":43,"name":"Test - Repository","product":{"id":20,"name":"Test Product"}}}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","description":"","repository":{"id":6,"name":"Test + Repository","product":{"id":7,"name":"Test Product"}}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '372' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:06 GMT - etag: - - W/"5af2398da7307496073fb422d7ae3e81-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7fd89264-2ba9-466b-88f4-0c2c9156c487 - x-runtime: - - '0.060433' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '448' status: code: 200 message: OK @@ -549,74 +435,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=95e9dd070dacecd707badc0e09f34b35 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/package_groups/3 + uri: https://foreman.example.org/katello/api/package_groups/2?organization_id=7 response: body: - string: !!python/unicode ' {"id":3,"name":"birds","pulp_id":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","description":null,"repository":{"id":43,"name":"Test - Repository","product":{"id":20,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["cockateel","duck","penguin","stork"],"conditional_package_names":[],"optional_package_names":[]} + string: ' {"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","description":"","repository":{"id":6,"name":"Test + Repository","product":{"id":7,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":[],"conditional_package_names":["cockateel","duck","penguin","stork"],"optional_package_names":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '381' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:06 GMT - etag: - - W/"9a43cbe9df34e59e3fb84703f3b67b92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: + Foreman_current_location: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d60f0d9f-6652-4af1-afc0-5c47f5ee4fdb - x-runtime: - - '0.042262' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '457' status: code: 200 message: OK - request: - body: !!python/unicode '{"name": "birds", "uuid": "4d6f49d0-cc63-40ee-981c-aafd4a36afce"}' + body: '{"name": "birds", "uuid": "/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/"}' headers: Accept: - application/json;version=2 @@ -625,75 +495,55 @@ interactions: Connection: - keep-alive Content-Length: - - '65' + - '105' Content-Type: - application/json - Cookie: - - _session_id=95e9dd070dacecd707badc0e09f34b35 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/9/rules + uri: https://foreman.example.org/katello/api/content_view_filters/5/rules response: body: - string: !!python/unicode ' {"content_view_filter_id":9,"uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","id":2,"name":"birds","created_at":"2019-11-07 - 08:56:06 UTC","updated_at":"2019-11-07 08:56:06 UTC"} + string: ' {"content_view_filter_id":5,"uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","id":1,"name":"birds","created_at":"2020-09-04 + 13:27:37 UTC","updated_at":"2020-09-04 13:27:37 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '177' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:06 GMT - etag: - - W/"900d393a1caad9c04fee661ff461aba6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 87ea5f0c-e9bd-478d-a287-5744271ef715 - x-runtime: - - '0.028098' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter-23.yml b/tests/test_playbooks/fixtures/content_view_filter-23.yml index c9d7bd67..2982793b 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-23.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-23.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:07 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=2bd3f5250b1fc3437b1f26a2a7e6af4f; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 34f7f2a4-1f69-488e-91e1-a62f21a7ae6f - x-runtime: - - '0.132964' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2bd3f5250b1fc3437b1f26a2a7e6af4f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:07 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 08f45dbd-c317-4398-ba0d-a7482121141f - x-runtime: - - '0.019080' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2bd3f5250b1fc3437b1f26a2a7e6af4f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:07 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5fdb1ef7-1af9-4380-a8fb-c1112ba9cf25 - x-runtime: - - '0.031263' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,76 +188,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2bd3f5250b1fc3437b1f26a2a7e6af4f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Group+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":9,"name":"Test - Package Group Content View Filter","description":null,"created_at":"2019-11-07 - 08:56:06 UTC","updated_at":"2019-11-07 08:56:06 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":9,"uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","id":2,"name":"birds","created_at":"2019-11-07 - 08:56:06 UTC","updated_at":"2019-11-07 08:56:06 UTC"}]}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":5,"name":"Test + Package Group Content View Filter","description":null,"created_at":"2020-09-04 + 13:20:39 UTC","updated_at":"2020-09-04 13:20:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":5,"uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","id":1,"name":"birds","created_at":"2020-09-04 + 13:27:37 UTC","updated_at":"2020-09-04 13:27:37 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1474' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:07 GMT - etag: - - W/"a0e30641df4b84f229ac4f1fd83390c2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - aff8e249-71cd-4dd4-983f-18a54bc98c10 - x-runtime: - - '0.045530' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1509' status: code: 200 message: OK @@ -316,76 +254,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2bd3f5250b1fc3437b1f26a2a7e6af4f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/9 + uri: https://foreman.example.org/katello/api/content_views/8/filters/5 response: body: - string: !!python/unicode ' {"inclusion":false,"id":9,"name":"Test Package Group - Content View Filter","description":null,"created_at":"2019-11-07 08:56:06 - UTC","updated_at":"2019-11-07 08:56:06 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":9,"uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","id":2,"name":"birds","created_at":"2019-11-07 - 08:56:06 UTC","updated_at":"2019-11-07 08:56:06 UTC"}]} + string: ' {"inclusion":false,"id":5,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2020-09-04 13:20:39 UTC","updated_at":"2020-09-04 + 13:20:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":5,"uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","id":1,"name":"birds","created_at":"2020-09-04 + 13:27:37 UTC","updated_at":"2020-09-04 13:27:37 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1483' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:07 GMT - etag: - - W/"85ba2a27c399de8c4f8fd58845162eda-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - dc937173-ba09-403a-b026-7e8d8a7caa8e - x-runtime: - - '0.060275' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1535' status: code: 200 message: OK @@ -398,69 +320,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2bd3f5250b1fc3437b1f26a2a7e6af4f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/9/rules?per_page=4294967296&search=name%3D%22birds%22 + uri: https://foreman.example.org/katello/api/content_view_filters/5/rules?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":9,"uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","id":2,"name":"birds","created_at":"2019-11-07 - 08:56:06 UTC","updated_at":"2019-11-07 08:56:06 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":5,"uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","id":1,"name":"birds","created_at":"2020-09-04 + 13:27:37 UTC","updated_at":"2020-09-04 13:27:37 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '317' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:07 GMT - etag: - - W/"b17f38b3e528489371edeb303916fed5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 97cc5f60-1c44-4b34-85e9-6b563249a3be - x-runtime: - - '0.025562' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '357' status: code: 200 message: OK @@ -473,69 +379,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2bd3f5250b1fc3437b1f26a2a7e6af4f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/9/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/5/rules/1 response: body: - string: !!python/unicode ' {"content_view_filter_id":9,"uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","id":2,"name":"birds","created_at":"2019-11-07 - 08:56:06 UTC","updated_at":"2019-11-07 08:56:06 UTC"} + string: ' {"content_view_filter_id":5,"uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","id":1,"name":"birds","created_at":"2020-09-04 + 13:27:37 UTC","updated_at":"2020-09-04 13:27:37 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '177' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:07 GMT - etag: - - W/"900d393a1caad9c04fee661ff461aba6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - efa2b73a-1c0a-4ace-a23d-fbad16a7ff06 - x-runtime: - - '0.020930' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '217' status: code: 200 message: OK @@ -548,69 +438,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2bd3f5250b1fc3437b1f26a2a7e6af4f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/package_groups?organization_id=18&per_page=4294967296&search=name%3D%22birds%22 + uri: https://foreman.example.org/katello/api/package_groups?organization_id=7&search=name%3D%22birds%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"name":"birds","pulp_id":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","description":null,"repository":{"id":43,"name":"Test - Repository","product":{"id":20,"name":"Test Product"}}}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","description":"","repository":{"id":6,"name":"Test + Repository","product":{"id":7,"name":"Test Product"}}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '372' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:07 GMT - etag: - - W/"5af2398da7307496073fb422d7ae3e81-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - be7f098d-7056-4cc1-8a96-85e9c66abf2e - x-runtime: - - '0.041437' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '448' status: code: 200 message: OK @@ -623,69 +497,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2bd3f5250b1fc3437b1f26a2a7e6af4f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/package_groups/3 + uri: https://foreman.example.org/katello/api/package_groups/2?organization_id=7 response: body: - string: !!python/unicode ' {"id":3,"name":"birds","pulp_id":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","description":null,"repository":{"id":43,"name":"Test - Repository","product":{"id":20,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":["cockateel","duck","penguin","stork"],"conditional_package_names":[],"optional_package_names":[]} + string: ' {"id":2,"name":"birds","pulp_id":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","description":"","repository":{"id":6,"name":"Test + Repository","product":{"id":7,"name":"Test Product"}},"default_package_names":[],"mandatory_package_names":[],"conditional_package_names":["cockateel","duck","penguin","stork"],"optional_package_names":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '381' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:07 GMT - etag: - - W/"9a43cbe9df34e59e3fb84703f3b67b92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: + Foreman_current_location: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 46dee488-e888-4254-96de-28a92cfefead - x-runtime: - - '0.038557' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '457' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-24.yml b/tests/test_playbooks/fixtures/content_view_filter-24.yml index 1bb9bf0a..a79c29cc 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-24.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-24.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:08 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=e77a0a1da40caeba052580fc8501ddad; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e4a72c99-3e6a-41e1-9f73-59b177ba6ef7 - x-runtime: - - '0.148701' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e77a0a1da40caeba052580fc8501ddad User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:08 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a8402d7a-a227-4238-b5c1-dae467f072f4 - x-runtime: - - '0.020971' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e77a0a1da40caeba052580fc8501ddad User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:08 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e3a7cccc-b1c4-4776-bb3d-91b8c934b410 - x-runtime: - - '0.033926' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,76 +188,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e77a0a1da40caeba052580fc8501ddad User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Group+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Group+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":9,"name":"Test - Package Group Content View Filter","description":null,"created_at":"2019-11-07 - 08:56:06 UTC","updated_at":"2019-11-07 08:56:06 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":9,"uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","id":2,"name":"birds","created_at":"2019-11-07 - 08:56:06 UTC","updated_at":"2019-11-07 08:56:06 UTC"}]}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Package Group Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":5,"name":"Test + Package Group Content View Filter","description":null,"created_at":"2020-09-04 + 13:20:39 UTC","updated_at":"2020-09-04 13:20:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":5,"uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","id":1,"name":"birds","created_at":"2020-09-04 + 13:27:37 UTC","updated_at":"2020-09-04 13:27:37 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1474' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:08 GMT - etag: - - W/"a0e30641df4b84f229ac4f1fd83390c2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - cee2077e-b678-46f8-9c8f-89d109a20ee1 - x-runtime: - - '0.035855' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1509' status: code: 200 message: OK @@ -316,76 +254,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e77a0a1da40caeba052580fc8501ddad User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/9 + uri: https://foreman.example.org/katello/api/content_views/8/filters/5 response: body: - string: !!python/unicode ' {"inclusion":false,"id":9,"name":"Test Package Group - Content View Filter","description":null,"created_at":"2019-11-07 08:56:06 - UTC","updated_at":"2019-11-07 08:56:06 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":9,"uuid":"4d6f49d0-cc63-40ee-981c-aafd4a36afce","id":2,"name":"birds","created_at":"2019-11-07 - 08:56:06 UTC","updated_at":"2019-11-07 08:56:06 UTC"}]} + string: ' {"inclusion":false,"id":5,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2020-09-04 13:20:39 UTC","updated_at":"2020-09-04 + 13:20:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[{"content_view_filter_id":5,"uuid":"/pulp/api/v3/content/rpm/packagegroups/91e2b24a-bb4a-4de9-b965-2ba63af0d2a4/","id":1,"name":"birds","created_at":"2020-09-04 + 13:27:37 UTC","updated_at":"2020-09-04 13:27:37 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1483' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:08 GMT - etag: - - W/"85ba2a27c399de8c4f8fd58845162eda-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 40061618-0fa8-41fa-a76c-1d743095e10e - x-runtime: - - '0.051951' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1535' status: code: 200 message: OK @@ -400,77 +322,59 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=e77a0a1da40caeba052580fc8501ddad User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/9 + uri: https://foreman.example.org/katello/api/content_views/8/filters/5 response: body: - string: !!python/unicode ' {"inclusion":false,"id":9,"name":"Test Package Group - Content View Filter","description":null,"created_at":"2019-11-07 08:56:06 - UTC","updated_at":"2019-11-07 08:56:06 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[]} + string: ' {"inclusion":false,"id":5,"name":"Test Package Group Content View + Filter","description":null,"created_at":"2020-09-04 13:20:39 UTC","updated_at":"2020-09-04 + 13:20:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"package_group","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1309' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:08 GMT - etag: - - W/"39cefd5d80ef58b660dcc65c7b379f49-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f9428d82-cbeb-4c4e-95b1-4c32cdbb08d6 - x-runtime: - - '0.067811' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1321' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-25.yml b/tests/test_playbooks/fixtures/content_view_filter-25.yml index b63344c5..163d5ced 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-25.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-25.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:09 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=4c12f3dc3494d832aeddace673d4ded8; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 62344eae-1518-4065-afca-f5e1fa19111b - x-runtime: - - '0.153574' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4c12f3dc3494d832aeddace673d4ded8 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:09 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0c649d29-042e-4c94-9286-7ae78f373fd1 - x-runtime: - - '0.018929' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4c12f3dc3494d832aeddace673d4ded8 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:09 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 680d5dea-b763-4ed5-88be-75d5bb5d257f - x-runtime: - - '0.032138' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,75 +188,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4c12f3dc3494d832aeddace673d4ded8 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Docker+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '171' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:09 GMT - etag: - - W/"a8ed6891791170cd51ffad5dc69566a8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d8e2e57c-ef14-4616-b9f6-470e4f2c1707 - x-runtime: - - '0.016116' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '171' status: code: 200 message: OK - request: - body: !!python/unicode '{"repository_ids": [], "type": "docker", "name": "Test - Docker Content View Filter", "inclusion": false}' + body: '{"name": "Test Docker Content View Filter", "type": "docker", "inclusion": + false, "repository_ids": []}' headers: Accept: - application/json;version=2 @@ -314,159 +252,61 @@ interactions: - '103' Content-Type: - application/json - Cookie: - - _session_id=4c12f3dc3494d832aeddace673d4ded8 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters + uri: https://foreman.example.org/katello/api/content_views/8/filters response: body: - string: !!python/unicode ' {"inclusion":false,"id":10,"name":"Test Docker Content - View Filter","description":null,"created_at":"2019-11-07 08:56:09 UTC","updated_at":"2019-11-07 - 08:56:09 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[]} + string: ' {"inclusion":false,"id":9,"name":"Test Docker Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: - - Keep-Alive - content-length: - - '1296' - content-security-policy: - - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:09 GMT - etag: - - W/"7651edf7ba3665142a94eb6fdb796c62-gzip" - foreman_api_version: - - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: - - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: - - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-frame-options: - - sameorigin - x-permitted-cross-domain-policies: - - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7e41e8df-91ce-483c-9752-59f46ab60fd1 - x-runtime: - - '0.073256' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate Connection: - - keep-alive - Cookie: - - request_method=POST; _session_id=4c12f3dc3494d832aeddace673d4ded8 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/10/rules?per_page=4294967296&search=name%3D%22birds%22 - response: - body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[]} - -' - headers: - cache-control: - - max-age=0, private, must-revalidate - connection: - Keep-Alive - content-length: - - '143' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:09 GMT - etag: - - W/"03fceaa121605fd17a0ad201a35ed446-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 92e3e500-c72b-4725-bfce-80f78bd646d4 - x-runtime: - - '0.019342' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created - request: - body: !!python/unicode '{"name": "birds"}' + body: '{"name": "birds"}' headers: Accept: - application/json;version=2 @@ -478,72 +318,52 @@ interactions: - '17' Content-Type: - application/json - Cookie: - - _session_id=4c12f3dc3494d832aeddace673d4ded8 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/10/rules + uri: https://foreman.example.org/katello/api/content_view_filters/9/rules response: body: - string: !!python/unicode ' {"content_view_filter_id":10,"id":2,"name":"birds","created_at":"2019-11-07 - 08:56:09 UTC","updated_at":"2019-11-07 08:56:09 UTC"} + string: ' {"content_view_filter_id":9,"id":1,"name":"birds","created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '132' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:09 GMT - etag: - - W/"028d41950fa7b34d544a600ec39cb73f-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f54983b5-7d03-4793-9199-1a81fb69e2ce - x-runtime: - - '0.030599' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/content_view_filter-26.yml b/tests/test_playbooks/fixtures/content_view_filter-26.yml index 5e6ac097..317e4d08 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-26.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-26.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:10 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=35cac942c4e44df1d22410a73f84b7c0; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - add6c39a-5069-4a8e-86b5-3095a122b15f - x-runtime: - - '0.148112' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=35cac942c4e44df1d22410a73f84b7c0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:10 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 89e48dc0-3dcc-4f24-9895-05b167dc2547 - x-runtime: - - '0.018879' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=35cac942c4e44df1d22410a73f84b7c0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:10 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9d053d8f-bcf1-43a4-9939-df01c2c72d28 - x-runtime: - - '0.040843' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,76 +188,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=35cac942c4e44df1d22410a73f84b7c0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Docker+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":10,"name":"Test - Docker Content View Filter","description":null,"created_at":"2019-11-07 08:56:09 - UTC","updated_at":"2019-11-07 08:56:09 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":10,"id":2,"name":"birds","created_at":"2019-11-07 - 08:56:09 UTC","updated_at":"2019-11-07 08:56:09 UTC"}]}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":9,"name":"Test + Docker Content View Filter","description":null,"created_at":"2020-09-04 13:27:39 + UTC","updated_at":"2020-09-04 13:27:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":9,"id":1,"name":"birds","created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1409' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:10 GMT - etag: - - W/"6850699c08f2705a1bfef6e8af73bda5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 36988242-5a53-4093-86ea-52a4517fd585 - x-runtime: - - '0.049998' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1402' status: code: 200 message: OK @@ -316,76 +254,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=35cac942c4e44df1d22410a73f84b7c0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/10 + uri: https://foreman.example.org/katello/api/content_views/8/filters/9 response: body: - string: !!python/unicode ' {"inclusion":false,"id":10,"name":"Test Docker Content - View Filter","description":null,"created_at":"2019-11-07 08:56:09 UTC","updated_at":"2019-11-07 - 08:56:09 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":10,"id":2,"name":"birds","created_at":"2019-11-07 - 08:56:09 UTC","updated_at":"2019-11-07 08:56:09 UTC"}]} + string: ' {"inclusion":false,"id":9,"name":"Test Docker Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":9,"id":1,"name":"birds","created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1425' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:10 GMT - etag: - - W/"bcd9380e0a76ed91d23564a398ac594e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9a6e83e0-c767-45f4-8deb-8cf6ad845b2c - x-runtime: - - '0.057945' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1435' status: code: 200 message: OK @@ -398,69 +319,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=35cac942c4e44df1d22410a73f84b7c0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/10/rules?per_page=4294967296&search=name%3D%22birds%22 + uri: https://foreman.example.org/katello/api/content_view_filters/9/rules?search=name%3D%22birds%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":10,"id":2,"name":"birds","created_at":"2019-11-07 - 08:56:09 UTC","updated_at":"2019-11-07 08:56:09 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"birds\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":9,"id":1,"name":"birds","created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '272' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:10 GMT - etag: - - W/"73350491d81f31c3f0184b22a331b0f9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 277913c7-7e4f-4cb9-b1a2-87242b2550a2 - x-runtime: - - '0.021334' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '271' status: code: 200 message: OK @@ -473,69 +378,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=35cac942c4e44df1d22410a73f84b7c0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/10/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/9/rules/1 response: body: - string: !!python/unicode ' {"content_view_filter_id":10,"id":2,"name":"birds","created_at":"2019-11-07 - 08:56:09 UTC","updated_at":"2019-11-07 08:56:09 UTC"} + string: ' {"content_view_filter_id":9,"id":1,"name":"birds","created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '132' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:10 GMT - etag: - - W/"028d41950fa7b34d544a600ec39cb73f-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - dc09eb63-d85c-4ec1-bf34-b7f86c8f19df - x-runtime: - - '0.015541' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '131' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-27.yml b/tests/test_playbooks/fixtures/content_view_filter-27.yml index b3ef9043..4443a93c 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-27.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-27.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:11 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=4aa80578ee6c48f3a486d5323c870d32; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6bf1c41e-7b0d-46f6-b61e-004f96332ac1 - x-runtime: - - '0.137097' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4aa80578ee6c48f3a486d5323c870d32 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:11 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9c368bde-e68b-4c18-b9a3-7d16cb1613d2 - x-runtime: - - '0.022724' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4aa80578ee6c48f3a486d5323c870d32 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:11 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8fbaef3c-43b2-4227-b00f-0350b1fa8626 - x-runtime: - - '0.038155' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,76 +188,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4aa80578ee6c48f3a486d5323c870d32 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Docker+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Docker+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":10,"name":"Test - Docker Content View Filter","description":null,"created_at":"2019-11-07 08:56:09 - UTC","updated_at":"2019-11-07 08:56:09 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":10,"id":2,"name":"birds","created_at":"2019-11-07 - 08:56:09 UTC","updated_at":"2019-11-07 08:56:09 UTC"}]}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Docker Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":9,"name":"Test + Docker Content View Filter","description":null,"created_at":"2020-09-04 13:27:39 + UTC","updated_at":"2020-09-04 13:27:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":9,"id":1,"name":"birds","created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1409' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:11 GMT - etag: - - W/"6850699c08f2705a1bfef6e8af73bda5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 98f319e9-108a-4834-bba2-733dfae7e6b3 - x-runtime: - - '0.039274' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1402' status: code: 200 message: OK @@ -316,76 +254,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4aa80578ee6c48f3a486d5323c870d32 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/10 + uri: https://foreman.example.org/katello/api/content_views/8/filters/9 response: body: - string: !!python/unicode ' {"inclusion":false,"id":10,"name":"Test Docker Content - View Filter","description":null,"created_at":"2019-11-07 08:56:09 UTC","updated_at":"2019-11-07 - 08:56:09 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":10,"id":2,"name":"birds","created_at":"2019-11-07 - 08:56:09 UTC","updated_at":"2019-11-07 08:56:09 UTC"}]} + string: ' {"inclusion":false,"id":9,"name":"Test Docker Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[{"content_view_filter_id":9,"id":1,"name":"birds","created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1425' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:11 GMT - etag: - - W/"bcd9380e0a76ed91d23564a398ac594e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0f238aa1-3f69-47c6-9ae6-3d7b382cf604 - x-runtime: - - '0.056555' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1435' status: code: 200 message: OK @@ -400,77 +321,58 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=4aa80578ee6c48f3a486d5323c870d32 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/10 + uri: https://foreman.example.org/katello/api/content_views/8/filters/9 response: body: - string: !!python/unicode ' {"inclusion":false,"id":10,"name":"Test Docker Content - View Filter","description":null,"created_at":"2019-11-07 08:56:09 UTC","updated_at":"2019-11-07 - 08:56:09 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[]} + string: ' {"inclusion":false,"id":9,"name":"Test Docker Content View Filter","description":null,"created_at":"2020-09-04 + 13:27:39 UTC","updated_at":"2020-09-04 13:27:39 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[],"type":"docker","rules":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1296' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:56:11 GMT - etag: - - W/"7651edf7ba3665142a94eb6fdb796c62-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 63dc6b61-16b2-4a05-a5ae-4fcf6ecebab2 - x-runtime: - - '0.059708' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1307' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-3.yml b/tests/test_playbooks/fixtures/content_view_filter-3.yml index 3a7a0d60..99fed259 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-3.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-3.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:45 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=680853b860e00d7a98229bb03868ba24; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f50c3b89-16b8-424a-96d2-b0a903994815 - x-runtime: - - '0.129879' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=680853b860e00d7a98229bb03868ba24 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:45 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 017b2cba-1f3e-4ff3-8070-20688fbd464d - x-runtime: - - '0.016576' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=680853b860e00d7a98229bb03868ba24 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:45 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 54252748-f8bf-4dca-b134-8709452b5092 - x-runtime: - - '0.028876' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=680853b860e00d7a98229bb03868ba24 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:45 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ed4a4e15-c7ef-4f38-8d05-ecdeebd30427 - x-runtime: - - '0.066182' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=680853b860e00d7a98229bb03868ba24 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:45 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0fe96296-e727-4e02-aaee-c48fcf3fe787 - x-runtime: - - '0.063608' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=680853b860e00d7a98229bb03868ba24 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:44 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2682' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:45 GMT - etag: - - W/"874aac9dc9ec74d21bf7f50d42005767-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e4ed7f13-de23-4fa1-b603-c7a3e391f49f - x-runtime: - - '0.065942' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2809' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=680853b860e00d7a98229bb03868ba24 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":true,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:44 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: ' {"inclusion":false,"original_packages":true,"id":6,"name":"Test Package + Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2722' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:45 GMT - etag: - - W/"ddcbb7e586ada2f2dcf3869795f5421c-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - fcacf10a-6946-4856-a58f-892e2cfab0e1 - x-runtime: - - '0.070820' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2866' status: code: 200 message: OK @@ -566,69 +459,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=680853b860e00d7a98229bb03868ba24 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '269' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:45 GMT - etag: - - W/"df0d105ace920656f3f9dbd2b38a36d8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4f67ee3a-67c7-4f5b-a457-b95ac4796686 - x-runtime: - - '0.020609' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '269' status: code: 200 message: OK @@ -641,69 +518,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=680853b860e00d7a98229bb03868ba24 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"} + string: ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '130' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:45 GMT - etag: - - W/"aec5b35016d25d4e19aebc72ff5ac28a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b0a7d302-3e24-4c34-a6c8-cf3ddc2b27ad - x-runtime: - - '0.014610' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '130' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-4.yml b/tests/test_playbooks/fixtures/content_view_filter-4.yml index e2c31330..b5fd8028 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-4.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-4.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=398a9a39dde4d55f1c78d574b1e4cf2e; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d80e44d2-b20e-4d36-908c-364cc9cf7dbb - x-runtime: - - '0.125649' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=398a9a39dde4d55f1c78d574b1e4cf2e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 809ec52f-5924-4c3a-ac8f-3be1802b7ca3 - x-runtime: - - '0.015857' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=398a9a39dde4d55f1c78d574b1e4cf2e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 92b4ed0f-2fce-48b2-9a94-bbd01d81cf07 - x-runtime: - - '0.031318' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=398a9a39dde4d55f1c78d574b1e4cf2e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a17b3a2b-ed35-4ef6-84de-9c892c92f8f6 - x-runtime: - - '0.065275' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=398a9a39dde4d55f1c78d574b1e4cf2e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 973df1a2-a0dd-41bf-a979-9cc4fd2e2282 - x-runtime: - - '0.065983' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=398a9a39dde4d55f1c78d574b1e4cf2e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:44 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2682' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"874aac9dc9ec74d21bf7f50d42005767-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 93db9889-67a0-4c3c-9bfc-0523290866f4 - x-runtime: - - '0.072062' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2809' status: code: 200 message: OK @@ -479,86 +387,71 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=398a9a39dde4d55f1c78d574b1e4cf2e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":true,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:44 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: ' {"inclusion":false,"original_packages":true,"id":6,"name":"Test Package + Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:16 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2722' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"ddcbb7e586ada2f2dcf3869795f5421c-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b5c16b85-85dc-468c-baef-7a4049e342e0 - x-runtime: - - '0.071369' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2866' status: code: 200 message: OK - request: - body: !!python/unicode '{"original_packages": false}' + body: '{"original_packages": false}' headers: Accept: - application/json;version=2 @@ -570,83 +463,66 @@ interactions: - '28' Content-Type: - application/json - Cookie: - - _session_id=398a9a39dde4d55f1c78d574b1e4cf2e User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2723' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"b7ea7fd0027023358197f54ec5cc656e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 16450d92-6ca2-4cc6-9452-2e41cd3d881d - x-runtime: - - '0.079840' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2867' status: code: 200 message: OK @@ -659,72 +535,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - request_method=PUT; _session_id=398a9a39dde4d55f1c78d574b1e4cf2e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '269' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"df0d105ace920656f3f9dbd2b38a36d8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - set-cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 73630499-0dc8-4027-ba23-62a935d42150 - x-runtime: - - '0.019066' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '269' status: code: 200 message: OK @@ -737,69 +594,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=398a9a39dde4d55f1c78d574b1e4cf2e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"} + string: ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '130' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:46 GMT - etag: - - W/"aec5b35016d25d4e19aebc72ff5ac28a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9991 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 972942d2-e8e4-4b70-a710-56a62e11b088 - x-runtime: - - '0.015361' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '130' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-5.yml b/tests/test_playbooks/fixtures/content_view_filter-5.yml index 6a26ebe7..d8d092bd 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-5.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-5.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:47 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=f0ca80cb983326f6abee9bc9b54bc8ea; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ce3690db-1fbf-4a2b-a385-2798e9460353 - x-runtime: - - '0.130795' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f0ca80cb983326f6abee9bc9b54bc8ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:47 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1b3daf3f-eba1-46a1-b79a-c0d8713d8734 - x-runtime: - - '0.015482' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f0ca80cb983326f6abee9bc9b54bc8ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:47 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1b62ee81-7572-44ea-b0e3-27e21cb2c838 - x-runtime: - - '0.035071' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f0ca80cb983326f6abee9bc9b54bc8ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:47 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9f7d4ac5-c692-42e4-956e-53f4654f4a03 - x-runtime: - - '0.071397' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f0ca80cb983326f6abee9bc9b54bc8ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:47 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 35b59d50-15fa-4f62-b996-d0bc95c63d9d - x-runtime: - - '0.060290' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f0ca80cb983326f6abee9bc9b54bc8ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2682' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:47 GMT - etag: - - W/"5503c9b6b978360f037fc44345c15380-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9f57adb2-776c-4871-8e8e-1428c534ed7f - x-runtime: - - '0.067649' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2809' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f0ca80cb983326f6abee9bc9b54bc8ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2723' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:47 GMT - etag: - - W/"b7ea7fd0027023358197f54ec5cc656e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9e23aea6-862a-40d8-ab56-11fa19c1e3ce - x-runtime: - - '0.068623' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2867' status: code: 200 message: OK @@ -566,69 +459,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f0ca80cb983326f6abee9bc9b54bc8ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '269' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:47 GMT - etag: - - W/"df0d105ace920656f3f9dbd2b38a36d8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f961c158-80ac-49c5-954c-bad213b364c3 - x-runtime: - - '0.018281' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '269' status: code: 200 message: OK @@ -641,69 +518,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f0ca80cb983326f6abee9bc9b54bc8ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"} + string: ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '130' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:47 GMT - etag: - - W/"aec5b35016d25d4e19aebc72ff5ac28a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e4ad095c-b8bc-4192-81fe-13bb1aa1c7e8 - x-runtime: - - '0.015101' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '130' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-6.yml b/tests/test_playbooks/fixtures/content_view_filter-6.yml index d919c243..03f16d0d 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-6.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-6.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:48 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9275e090-3028-407e-842f-65061f31c9e1 - x-runtime: - - '0.138744' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:48 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 238e3056-3f46-413d-bd7e-6393842a053d - x-runtime: - - '0.021340' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:48 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 74bc316b-9df5-4a63-83fd-88c32676c76f - x-runtime: - - '0.037788' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:48 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 76db3936-9780-40ee-adc4-296b8b3931c9 - x-runtime: - - '0.100079' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:48 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 3df9c4e3-123b-4f9b-916b-102c3d36ca73 - x-runtime: - - '0.096115' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2682' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:48 GMT - etag: - - W/"5503c9b6b978360f037fc44345c15380-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4dcde83a-9d14-49c9-8a27-1ab2bf621ab8 - x-runtime: - - '0.106091' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2809' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2723' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:48 GMT - etag: - - W/"b7ea7fd0027023358197f54ec5cc656e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 84741470-d419-4706-9c04-c6049207444b - x-runtime: - - '0.082612' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2867' status: code: 200 message: OK @@ -566,69 +459,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '269' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:49 GMT - etag: - - W/"df0d105ace920656f3f9dbd2b38a36d8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2c5fcc96-f061-4266-afa5-d9916a168894 - x-runtime: - - '0.021493' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '269' status: code: 200 message: OK @@ -641,74 +518,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:42 UTC"} + string: ' {"content_view_filter_id":6,"id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:14 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '130' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:49 GMT - etag: - - W/"aec5b35016d25d4e19aebc72ff5ac28a-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d56e68c3-b1d1-4229-a814-2ab3f582e585 - x-runtime: - - '0.015364' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '130' status: code: 200 message: OK - request: - body: !!python/unicode '{"version": "1"}' + body: '{"version": "1"}' headers: Accept: - application/json;version=2 @@ -720,71 +581,53 @@ interactions: - '16' Content-Type: - application/json - Cookie: - - _session_id=1ccdcec53d5960f6117e5494d6a19644 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:49 UTC"} + string: ' {"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:21 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '144' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:49 GMT - etag: - - W/"1f8a8ebda0b6a1ce3bcde112276a0043-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9991 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7314aaa8-3b22-4ee1-b477-b616589281a3 - x-runtime: - - '0.021109' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '144' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-7.yml b/tests/test_playbooks/fixtures/content_view_filter-7.yml index 4b1e75d1..26bf7e84 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-7.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-7.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:49 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=4427a77bf25718504d474550ce1ee71b; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 3ebddb84-d8ef-467e-b740-e28c79463c7a - x-runtime: - - '0.140196' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4427a77bf25718504d474550ce1ee71b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:49 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 904d65b0-f1c7-4811-b84b-9cf91a302e38 - x-runtime: - - '0.018374' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4427a77bf25718504d474550ce1ee71b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:49 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 64879211-62a1-4bbb-a020-ef933d02faf1 - x-runtime: - - '0.031833' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4427a77bf25718504d474550ce1ee71b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:49 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 688945ad-4050-4515-a7c1-4ae9040d7009 - x-runtime: - - '0.060673' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4427a77bf25718504d474550ce1ee71b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:49 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8271c57c-6067-4ed0-ba3e-fa3e0d7d8b93 - x-runtime: - - '0.061196' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4427a77bf25718504d474550ce1ee71b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:49 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:21 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2696' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:49 GMT - etag: - - W/"492e615f8d343142ea3e92570bfe6187-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 67a9a032-764f-4002-a245-aa1815e15172 - x-runtime: - - '0.069312' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2823' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4427a77bf25718504d474550ce1ee71b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:49 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:21 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2737' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:50 GMT - etag: - - W/"0c64970228bc72bbc9d793e479be2473-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 58b0796c-855d-4f3c-bdc3-c7bc2d9c508b - x-runtime: - - '0.075659' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2881' status: code: 200 message: OK @@ -566,69 +459,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4427a77bf25718504d474550ce1ee71b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:49 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:21 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '283' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:50 GMT - etag: - - W/"9a1b46898e284e58e2612ed71e897a6f-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8a8fefe7-d7ac-45d8-b463-e4b039b2cabd - x-runtime: - - '0.018180' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '283' status: code: 200 message: OK @@ -641,69 +518,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4427a77bf25718504d474550ce1ee71b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:49 UTC"} + string: ' {"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:21 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '144' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:50 GMT - etag: - - W/"1f8a8ebda0b6a1ce3bcde112276a0043-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0839fcbc-d5e0-4b97-bdd3-7b61bd6bba4b - x-runtime: - - '0.014430' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '144' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-8.yml b/tests/test_playbooks/fixtures/content_view_filter-8.yml index 91c61819..ac3419ae 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-8.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-8.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:50 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 57f1434c-597e-43a7-a550-ea8ec1d1734c - x-runtime: - - '0.129161' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:50 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 46eda1e0-7106-4e7f-bfa4-7509d38b3f12 - x-runtime: - - '0.016363' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:50 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e36eadb4-fdd7-4f6f-97a3-ebc183803f42 - x-runtime: - - '0.033845' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:50 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 84ddb544-9112-4640-a370-e710721549ee - x-runtime: - - '0.059653' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:50 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1e3ecce7-d965-4715-8ad3-c5cecef85f3e - x-runtime: - - '0.060593' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:49 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:21 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2696' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:50 GMT - etag: - - W/"492e615f8d343142ea3e92570bfe6187-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 00a3ace7-2ee6-4430-9f21-e3a93c68e12b - x-runtime: - - '0.075782' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2823' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:49 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:21 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2737' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:51 GMT - etag: - - W/"0c64970228bc72bbc9d793e479be2473-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f046516a-d5ed-4117-935f-bdd41dd612ac - x-runtime: - - '0.085906' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2881' status: code: 200 message: OK @@ -566,69 +459,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:49 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:21 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '283' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:51 GMT - etag: - - W/"9a1b46898e284e58e2612ed71e897a6f-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - cac16052-27c5-4232-9bd1-7f3a180fd494 - x-runtime: - - '0.019685' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '283' status: code: 200 message: OK @@ -641,74 +518,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:49 UTC"} + string: ' {"content_view_filter_id":6,"version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:21 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '144' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:51 GMT - etag: - - W/"1f8a8ebda0b6a1ce3bcde112276a0043-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ac455e4a-0a26-4571-a67a-a05eecca2f16 - x-runtime: - - '0.015967' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '144' status: code: 200 message: OK - request: - body: !!python/unicode '{"max_version": "1"}' + body: '{"max_version": "1"}' headers: Accept: - application/json;version=2 @@ -720,71 +581,53 @@ interactions: - '20' Content-Type: - application/json - Cookie: - - _session_id=bed916c0c68c0d127906b542b4bba185 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:51 UTC"} + string: ' {"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:23 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '148' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:51 GMT - etag: - - W/"9262d3ea521e643df55e268e91577b20-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9991 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=91 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - cbcccb3d-c46e-4a0b-9a83-daaba8be8d66 - x-runtime: - - '0.020235' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '148' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/content_view_filter-9.yml b/tests/test_playbooks/fixtures/content_view_filter-9.yml index e3e87e1d..e66b9de9 100644 --- a/tests/test_playbooks/fixtures/content_view_filter-9.yml +++ b/tests/test_playbooks/fixtures/content_view_filter-9.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:51 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=e72796820904adc6d9a805ba2d775d85; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6994274e-5873-4a90-bb41-a84924466584 - x-runtime: - - '0.123897' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e72796820904adc6d9a805ba2d775d85 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:40:06 UTC\",\"updated_at\":\"2019-11-01 - 12:40:06 UTC\",\"id\":18,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:07:35 UTC\",\"updated_at\"\ + :\"2020-09-04 13:07:35 UTC\",\"id\":7,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:51 GMT - etag: - - W/"c62e167f7a3759e3d6a254d144a329b6-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e6330b4c-a9c6-4bcf-8880-7fbf3aac993e - x-runtime: - - '0.016266' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e72796820904adc6d9a805ba2d775d85 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/content_views?per_page=4294967296&search=name%3D%22Test+Content+View%22 + uri: https://foreman.example.org/katello/api/organizations/7/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:51 GMT - etag: - - W/"d54c3a1825d83dd0bf6336748b9e97fc-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a9851d1f-33f2-4ade-9100-edb24f52cc29 - x-runtime: - - '0.029669' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1035' status: code: 200 message: OK @@ -234,72 +188,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e72796820904adc6d9a805ba2d775d85 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/18/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":20,"cp_id":"37962395983","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":33,"sync_plan_id":null,"sync_summary":{"success":1},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing - Complete.","last_sync":"2019-11-07 08:52:40 UTC","last_sync_words":"3 minutes","organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"sync_plan":null,"repository_count":4}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":7,"cp_id":"294839225927","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{"success":2},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":"Syncing + Complete.","last_sync":"2020-09-04 13:26:23 UTC","last_sync_words":"1 minute","organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":2}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '669' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:51 GMT - etag: - - W/"b54729814020deb0c6995ef314fd21a5-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 18; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 7; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 65234b75-db20-417c-8fc4-6f70a1742ce9 - x-runtime: - - '0.064816' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '666' status: code: 200 message: OK @@ -312,74 +250,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e72796820904adc6d9a805ba2d775d85 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/20/repositories?per_page=4294967296&search=name%3D%22Test+Repository%22 + uri: https://foreman.example.org/katello/api/products/7/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":4,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 minutes"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:51 GMT - etag: - - W/"13033a466c0220cea0c72413b673ce92-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f316fad2-9ce3-4e1a-b101-ecf341a1b8e1 - x-runtime: - - '0.066092' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1564' status: code: 200 message: OK @@ -392,81 +315,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e72796820904adc6d9a805ba2d775d85 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters?per_page=4294967296&search=name%3D%22Test+Package+Content+View+Filter%22 + uri: https://foreman.example.org/katello/api/content_views/8/filters?search=name%3D%22Test+Package+Content+View+Filter%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Package Content View Filter\"","sort":{"by":"name","order":"asc"},"results":[{"inclusion":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:51 UTC"}]}]} + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum"}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:23 UTC"}]}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2700' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:52 GMT - etag: - - W/"80412f8e810d59370f06338e605fa68c-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e42e720f-352f-49ba-86be-b3a35a9f9d6c - x-runtime: - - '0.065974' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2827' status: code: 200 message: OK @@ -479,81 +387,66 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e72796820904adc6d9a805ba2d775d85 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_views/29/filters/6 + uri: https://foreman.example.org/katello/api/content_views/8/filters/6 response: body: - string: !!python/unicode ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test - Package Content View Filter","description":null,"created_at":"2019-11-07 08:55:42 - UTC","updated_at":"2019-11-07 08:55:46 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[43],"id":29,"name":"Test - Content View","label":"Test_Content_View","description":null,"organization_id":18,"organization":{"name":"Test - Organization","label":"Test_Organization","id":18},"created_at":"2019-11-07 - 08:55:41 UTC","updated_at":"2019-11-07 08:55:41 UTC","environments":[],"repositories":[{"id":43,"name":"Test - Repository","label":"Test_Repository","content_type":"yum","product":{"id":20,"name":"Test - Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"f3aed8d8-9e1b-4393-be9f-fbb5b93224b2","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-13.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":43,"name":"Test - Repository","label":"Test_Repository","description":null,"last_sync":{"id":"6a53efe8-4628-4ef9-87f1-f2733c683998","username":"admin","started_at":"2019-11-07 - 08:48:51 UTC","ended_at":"2019-11-07 08:49:05 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":28,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1572682967200","major":null,"minor":null,"product":{"id":20,"cp_id":"37962395983","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"7 - minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:51 UTC"}]} + string: ' {"inclusion":false,"original_packages":false,"id":6,"name":"Test + Package Content View Filter","description":null,"created_at":"2020-09-04 13:27:14 + UTC","updated_at":"2020-09-04 13:27:19 UTC","content_view":{"composite":false,"component_ids":[],"default":false,"force_puppet_environment":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"repository_ids":[6],"id":8,"name":"Test + Content View","label":"Test_Content_View","description":null,"organization_id":7,"organization":{"name":"Test + Organization","label":"Test_Organization","id":7},"created_at":"2020-09-04 + 13:20:15 UTC","updated_at":"2020-09-04 13:20:15 UTC","environments":[],"repositories":[{"id":6,"name":"Test + Repository","label":"Test_Repository","content_type":"yum","product":{"id":7,"name":"Test + Product"},"content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_tag":0,"rpm":32,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"module_stream":0}}],"puppet_modules":[],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},"repositories":[{"backend_identifier":"c6f2aae9-05c5-449a-abc3-455f63c0d704","relative_path":"Test_Organization/Library/custom/Test_Product/Test_Repository","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/Test_Repository/","library_instance_id":null,"id":6,"name":"Test + Repository","label":"Test_Repository","description":null,"last_sync":{"id":"b0ebc37a-7c6d-4616-ad08-a061ad53f4c2","username":"admin","started_at":"2020-09-04 + 13:25:33 UTC","ended_at":"2020-09-04 13:25:44 UTC","state":"stopped","result":"success","progress":1.0},"content_view":{"id":7,"name":"Default + Organization View"},"content_view_version":{"id":6,"name":"Default Organization + View 1.0","content_view_id":7},"kt_environment":{"id":6,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224860734","major":null,"minor":null,"product":{"id":7,"cp_id":"294839225927","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_Test_Repository","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":32,"srpm":0,"package":32,"package_group":2,"erratum":4,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":"2 + minutes"}],"type":"rpm","rules":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:23 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '2741' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:52 GMT - etag: - - W/"87780af05eed73312ab0f0b876936b8d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9994 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=94 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - bac29c5e-d7c4-4fee-8e96-0f093c3bd3f8 - x-runtime: - - '0.070688' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '2885' status: code: 200 message: OK @@ -566,69 +459,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e72796820904adc6d9a805ba2d775d85 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules?per_page=4294967296&search=name%3D%22bear%22 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules?search=name%3D%22bear%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:51 UTC"}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"bear\"","sort":{"by":"id","order":"asc"},"results":[{"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:23 UTC"}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '287' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:52 GMT - etag: - - W/"e3c9f29f70a2f28685c2323e48814e68-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9993 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=93 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d792d264-359b-4cd1-8421-52db3cc7314e - x-runtime: - - '0.018008' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '287' status: code: 200 message: OK @@ -641,69 +518,53 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e72796820904adc6d9a805ba2d775d85 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/content_view_filters/6/rules/2 + uri: https://foreman.example.org/katello/api/content_view_filters/6/rules/2 response: body: - string: !!python/unicode ' {"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2019-11-07 - 08:55:42 UTC","updated_at":"2019-11-07 08:55:51 UTC"} + string: ' {"content_view_filter_id":6,"max_version":"1","id":2,"name":"bear","created_at":"2020-09-04 + 13:27:14 UTC","updated_at":"2020-09-04 13:27:23 UTC"} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '148' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Thu, 07 Nov 2019 08:55:52 GMT - etag: - - W/"9262d3ea521e643df55e268e91577b20-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9992 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=92 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 171c047e-a59b-4516-93b2-4a45c9d87a8a - x-runtime: - - '0.013967' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '148' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/host_collection-0.yml b/tests/test_playbooks/fixtures/host_collection-0.yml index c41c18cb..39381b76 100644 --- a/tests/test_playbooks/fixtures/host_collection-0.yml +++ b/tests/test_playbooks/fixtures/host_collection-0.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:18 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=e5f647aa1bbb7c68238d74d35803157c; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 639b9c0a-00a6-4cc9-b688-67353804bb35 - x-runtime: - - '0.134049' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e5f647aa1bbb7c68238d74d35803157c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:37:15 UTC\",\"updated_at\":\"2019-11-01 - 12:37:15 UTC\",\"id\":15,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:00:49 UTC\",\"updated_at\"\ + :\"2020-09-04 13:00:49 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:18 GMT - etag: - - W/"4b37897dbc10b780068c5584139e56b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - bf607eda-2651-4c56-9087-86dff0e902e5 - x-runtime: - - '0.016885' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,74 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e5f647aa1bbb7c68238d74d35803157c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections?per_page=4294967296&search=name%3D%22TheAnswer%22 + uri: https://foreman.example.org/katello/api/organizations/4/host_collections?search=name%3D%22TheAnswer%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"TheAnswer\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"TheAnswer\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '149' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:19 GMT - etag: - - W/"045be37d79516983797ae69ba0cb182d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d85cfb82-190d-40bf-aaf2-119abd7c040b - x-runtime: - - '0.019236' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '149' status: code: 200 message: OK - request: - body: !!python/unicode '{"name": "TheAnswer", "description": "Foo host collection - for Foo servers"}' + body: '{"name": "TheAnswer", "description": "Foo host collection for Foo servers"}' headers: Accept: - application/json;version=2 @@ -234,73 +187,53 @@ interactions: - '75' Content-Type: - application/json - Cookie: - - _session_id=e5f647aa1bbb7c68238d74d35803157c User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections + uri: https://foreman.example.org/katello/api/organizations/4/host_collections response: body: - string: !!python/unicode ' {"host_ids":[],"name":"TheAnswer","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:19 UTC","updated_at":"2019-11-01 12:37:19 UTC","id":2,"permissions":{"deletable":true,"editable":true}} + string: ' {"host_ids":[],"name":"TheAnswer","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:52 UTC","updated_at":"2020-09-04 13:00:52 UTC","id":1,"permissions":{"deletable":true,"editable":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '300' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:19 GMT - etag: - - W/"88b42c5978b09be3ce8932018dc88903-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 135aefa6-01b3-4dde-b27c-be6bc3b3d1d4 - x-runtime: - - '0.057339' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/host_collection-1.yml b/tests/test_playbooks/fixtures/host_collection-1.yml index 74945f17..3aa79433 100644 --- a/tests/test_playbooks/fixtures/host_collection-1.yml +++ b/tests/test_playbooks/fixtures/host_collection-1.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:19 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=d2d8b4af46e7793efce675e90810718f; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5d3d347e-31a9-4948-ba69-e4b0354c832c - x-runtime: - - '0.127423' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d2d8b4af46e7793efce675e90810718f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:37:15 UTC\",\"updated_at\":\"2019-11-01 - 12:37:15 UTC\",\"id\":15,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:00:49 UTC\",\"updated_at\"\ + :\"2020-09-04 13:00:49 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:19 GMT - etag: - - W/"4b37897dbc10b780068c5584139e56b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d19b7f5f-4769-40b2-bcc4-b3d0e67e1358 - x-runtime: - - '0.020006' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,70 +125,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d2d8b4af46e7793efce675e90810718f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections?per_page=4294967296&search=name%3D%22TheAnswer%22 + uri: https://foreman.example.org/katello/api/organizations/4/host_collections?search=name%3D%22TheAnswer%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"TheAnswer\"","sort":{"by":"name","order":"asc"},"results":[{"name":"TheAnswer","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:19 UTC","updated_at":"2019-11-01 12:37:19 UTC","id":2,"permissions":{"deletable":true,"editable":true}}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"TheAnswer\"","sort":{"by":"name","order":"asc"},"results":[{"name":"TheAnswer","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:52 UTC","updated_at":"2020-09-04 13:00:52 UTC","id":1,"permissions":{"deletable":true,"editable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:19 GMT - etag: - - W/"2ac18edc3e734b4d467368ef3618ee18-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - c1c46e53-203c-4d3c-9d93-332d66f441a1 - x-runtime: - - '0.027371' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '431' status: code: 200 message: OK @@ -231,70 +185,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d2d8b4af46e7793efce675e90810718f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/host_collections/2 + uri: https://foreman.example.org/katello/api/host_collections/1?organization_id=4 response: body: - string: !!python/unicode ' {"host_ids":[],"name":"TheAnswer","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:19 UTC","updated_at":"2019-11-01 12:37:19 UTC","id":2,"permissions":{"deletable":true,"editable":true}} + string: ' {"host_ids":[],"name":"TheAnswer","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:52 UTC","updated_at":"2020-09-04 13:00:52 UTC","id":1,"permissions":{"deletable":true,"editable":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '300' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:19 GMT - etag: - - W/"88b42c5978b09be3ce8932018dc88903-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: + Foreman_current_location: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e5bffd05-d546-4289-8a29-f93723fbe3d0 - x-runtime: - - '0.028150' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '299' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/host_collection-2.yml b/tests/test_playbooks/fixtures/host_collection-2.yml index e7ce3bad..d9d6e96f 100644 --- a/tests/test_playbooks/fixtures/host_collection-2.yml +++ b/tests/test_playbooks/fixtures/host_collection-2.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:20 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=01aa119f396500c1aef4cddc4b22a57c; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - fc8a6fd0-f1fa-4682-8302-d840faa8cc13 - x-runtime: - - '0.129672' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=01aa119f396500c1aef4cddc4b22a57c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:37:15 UTC\",\"updated_at\":\"2019-11-01 - 12:37:15 UTC\",\"id\":15,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:00:49 UTC\",\"updated_at\"\ + :\"2020-09-04 13:00:49 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:20 GMT - etag: - - W/"4b37897dbc10b780068c5584139e56b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f8ae0929-4106-4929-b685-6a51ed07ee02 - x-runtime: - - '0.018534' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,74 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=01aa119f396500c1aef4cddc4b22a57c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections?per_page=4294967296&search=name%3D%22mycollection%22 + uri: https://foreman.example.org/katello/api/organizations/4/host_collections?search=name%3D%22mycollection%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":1,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '152' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:20 GMT - etag: - - W/"36d4bcf30eac69610165223e30fd2daa-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 60831e55-d566-4d97-b131-6cf0c68d5caa - x-runtime: - - '0.021065' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '152' status: code: 200 message: OK - request: - body: !!python/unicode '{"name": "mycollection", "description": "Foo host collection - for Foo servers"}' + body: '{"name": "mycollection", "description": "Foo host collection for Foo servers"}' headers: Accept: - application/json;version=2 @@ -234,73 +187,53 @@ interactions: - '78' Content-Type: - application/json - Cookie: - - _session_id=01aa119f396500c1aef4cddc4b22a57c User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections + uri: https://foreman.example.org/katello/api/organizations/4/host_collections response: body: - string: !!python/unicode ' {"host_ids":[],"name":"mycollection","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:20 UTC","updated_at":"2019-11-01 12:37:20 UTC","id":3,"permissions":{"deletable":true,"editable":true}} + string: ' {"host_ids":[],"name":"mycollection","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:54 UTC","updated_at":"2020-09-04 13:00:54 UTC","id":2,"permissions":{"deletable":true,"editable":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '303' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:20 GMT - etag: - - W/"976ef8ac97e475adfabdcbd78b78bfa9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 897dff04-a8aa-4e71-b78c-8f31584c8ee7 - x-runtime: - - '0.051272' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/host_collection-3.yml b/tests/test_playbooks/fixtures/host_collection-3.yml index 018c427d..35e85f9e 100644 --- a/tests/test_playbooks/fixtures/host_collection-3.yml +++ b/tests/test_playbooks/fixtures/host_collection-3.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:21 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=110d18b73eea5af8565f081eb6aa27ea; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 40449c5f-ffc0-4cf2-8ddd-c5a09b350900 - x-runtime: - - '0.126397' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=110d18b73eea5af8565f081eb6aa27ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:37:15 UTC\",\"updated_at\":\"2019-11-01 - 12:37:15 UTC\",\"id\":15,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:00:49 UTC\",\"updated_at\"\ + :\"2020-09-04 13:00:49 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:21 GMT - etag: - - W/"4b37897dbc10b780068c5584139e56b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 867ec335-e3f2-4349-97b4-b39601d648e9 - x-runtime: - - '0.022847' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,70 +125,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=110d18b73eea5af8565f081eb6aa27ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections?per_page=4294967296&search=name%3D%22mycollection%22 + uri: https://foreman.example.org/katello/api/organizations/4/host_collections?search=name%3D%22mycollection%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection\"","sort":{"by":"name","order":"asc"},"results":[{"name":"mycollection","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:20 UTC","updated_at":"2019-11-01 12:37:20 UTC","id":3,"permissions":{"deletable":true,"editable":true}}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection\"","sort":{"by":"name","order":"asc"},"results":[{"name":"mycollection","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:54 UTC","updated_at":"2020-09-04 13:00:54 UTC","id":2,"permissions":{"deletable":true,"editable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '438' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:21 GMT - etag: - - W/"f3faeb7d24a9b44378596c9e113a1cc8-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 135c407f-1679-4cf5-86cd-4a61f9aba14d - x-runtime: - - '0.032686' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '437' status: code: 200 message: OK @@ -231,75 +185,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=110d18b73eea5af8565f081eb6aa27ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/host_collections/3 + uri: https://foreman.example.org/katello/api/host_collections/2?organization_id=4 response: body: - string: !!python/unicode ' {"host_ids":[],"name":"mycollection","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:20 UTC","updated_at":"2019-11-01 12:37:20 UTC","id":3,"permissions":{"deletable":true,"editable":true}} + string: ' {"host_ids":[],"name":"mycollection","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:54 UTC","updated_at":"2020-09-04 13:00:54 UTC","id":2,"permissions":{"deletable":true,"editable":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '303' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:21 GMT - etag: - - W/"976ef8ac97e475adfabdcbd78b78bfa9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: + Foreman_current_location: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ce6a1702-f806-4bcb-92ab-77f7eaee2011 - x-runtime: - - '0.027730' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '302' status: code: 200 message: OK - request: - body: !!python/unicode '{"name": "mycollection2"}' + body: '{"name": "mycollection2"}' headers: Accept: - application/json;version=2 @@ -311,72 +249,54 @@ interactions: - '25' Content-Type: - application/json - Cookie: - - _session_id=110d18b73eea5af8565f081eb6aa27ea User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/host_collections/3 + uri: https://foreman.example.org/katello/api/host_collections/2 response: body: - string: !!python/unicode ' {"host_ids":[],"name":"mycollection2","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:20 UTC","updated_at":"2019-11-01 12:37:21 UTC","id":3,"permissions":{"deletable":true,"editable":true}} + string: ' {"host_ids":[],"name":"mycollection2","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:54 UTC","updated_at":"2020-09-04 13:00:55 UTC","id":2,"permissions":{"deletable":true,"editable":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '304' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:21 GMT - etag: - - W/"d47a86c4b96e74200ab66613b1c0e93e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ffcb43ab-f37d-4591-b018-98a1081f620c - x-runtime: - - '0.051552' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '303' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/host_collection-4.yml b/tests/test_playbooks/fixtures/host_collection-4.yml index caa93537..939573f1 100644 --- a/tests/test_playbooks/fixtures/host_collection-4.yml +++ b/tests/test_playbooks/fixtures/host_collection-4.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:21 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=c0a1df3bec8e5575460195b9f6ecd208; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - bef81705-3cbd-450b-a4d7-7ebaecb2d0e8 - x-runtime: - - '0.137032' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a1df3bec8e5575460195b9f6ecd208 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:37:15 UTC\",\"updated_at\":\"2019-11-01 - 12:37:15 UTC\",\"id\":15,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:00:49 UTC\",\"updated_at\"\ + :\"2020-09-04 13:00:49 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:22 GMT - etag: - - W/"4b37897dbc10b780068c5584139e56b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8ba74eda-7dec-4bf0-8535-8dc66f5b0caf - x-runtime: - - '0.024408' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,70 +125,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a1df3bec8e5575460195b9f6ecd208 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections?per_page=4294967296&search=name%3D%22mycollection2%22 + uri: https://foreman.example.org/katello/api/organizations/4/host_collections?search=name%3D%22mycollection2%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection2\"","sort":{"by":"name","order":"asc"},"results":[{"name":"mycollection2","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:20 UTC","updated_at":"2019-11-01 12:37:21 UTC","id":3,"permissions":{"deletable":true,"editable":true}}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection2\"","sort":{"by":"name","order":"asc"},"results":[{"name":"mycollection2","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:54 UTC","updated_at":"2020-09-04 13:00:55 UTC","id":2,"permissions":{"deletable":true,"editable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '440' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:22 GMT - etag: - - W/"7228f55ed02c8879baa8844ed4562476-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d3c94fc3-f789-4cef-b3de-c1c27fe20932 - x-runtime: - - '0.033151' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '439' status: code: 200 message: OK @@ -231,70 +185,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a1df3bec8e5575460195b9f6ecd208 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/host_collections/3 + uri: https://foreman.example.org/katello/api/host_collections/2?organization_id=4 response: body: - string: !!python/unicode ' {"host_ids":[],"name":"mycollection2","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:20 UTC","updated_at":"2019-11-01 12:37:21 UTC","id":3,"permissions":{"deletable":true,"editable":true}} + string: ' {"host_ids":[],"name":"mycollection2","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:54 UTC","updated_at":"2020-09-04 13:00:55 UTC","id":2,"permissions":{"deletable":true,"editable":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '304' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:22 GMT - etag: - - W/"d47a86c4b96e74200ab66613b1c0e93e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: + Foreman_current_location: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0756751a-2460-4d65-b27f-c1c51b0c5e0e - x-runtime: - - '0.023507' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '303' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/host_collection-5.yml b/tests/test_playbooks/fixtures/host_collection-5.yml index 37dc6c41..939573f1 100644 --- a/tests/test_playbooks/fixtures/host_collection-5.yml +++ b/tests/test_playbooks/fixtures/host_collection-5.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:22 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=03f8cb6ecfdfad81981e83e2034727c4; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7a0059bc-e4be-4617-b4f1-190478ba8443 - x-runtime: - - '0.138886' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03f8cb6ecfdfad81981e83e2034727c4 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:37:15 UTC\",\"updated_at\":\"2019-11-01 - 12:37:15 UTC\",\"id\":15,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:00:49 UTC\",\"updated_at\"\ + :\"2020-09-04 13:00:49 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:22 GMT - etag: - - W/"4b37897dbc10b780068c5584139e56b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 15702d4c-aed6-4962-9a93-cbdcaaf28f69 - x-runtime: - - '0.028281' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,70 +125,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03f8cb6ecfdfad81981e83e2034727c4 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections?per_page=4294967296&search=name%3D%22mycollection2%22 + uri: https://foreman.example.org/katello/api/organizations/4/host_collections?search=name%3D%22mycollection2%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection2\"","sort":{"by":"name","order":"asc"},"results":[{"name":"mycollection2","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:20 UTC","updated_at":"2019-11-01 12:37:21 UTC","id":3,"permissions":{"deletable":true,"editable":true}}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection2\"","sort":{"by":"name","order":"asc"},"results":[{"name":"mycollection2","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:54 UTC","updated_at":"2020-09-04 13:00:55 UTC","id":2,"permissions":{"deletable":true,"editable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '440' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:23 GMT - etag: - - W/"7228f55ed02c8879baa8844ed4562476-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 26212391-dea9-4cea-b900-92d0a6e047f5 - x-runtime: - - '0.040996' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '439' status: code: 200 message: OK @@ -231,70 +185,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03f8cb6ecfdfad81981e83e2034727c4 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/host_collections/3 + uri: https://foreman.example.org/katello/api/host_collections/2?organization_id=4 response: body: - string: !!python/unicode ' {"host_ids":[],"name":"mycollection2","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:20 UTC","updated_at":"2019-11-01 12:37:21 UTC","id":3,"permissions":{"deletable":true,"editable":true}} + string: ' {"host_ids":[],"name":"mycollection2","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:54 UTC","updated_at":"2020-09-04 13:00:55 UTC","id":2,"permissions":{"deletable":true,"editable":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '304' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:23 GMT - etag: - - W/"d47a86c4b96e74200ab66613b1c0e93e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: + Foreman_current_location: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 9692b846-3147-4e15-bce4-081394daf7c8 - x-runtime: - - '0.025944' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '303' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/host_collection-6.yml b/tests/test_playbooks/fixtures/host_collection-6.yml index 210206a7..00737ace 100644 --- a/tests/test_playbooks/fixtures/host_collection-6.yml +++ b/tests/test_playbooks/fixtures/host_collection-6.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:23 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=e1908b93ddb148c7bfa3a871fb59ea1f; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 63dfc6d9-ad98-4a87-93eb-c230a2d4bf85 - x-runtime: - - '0.142286' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e1908b93ddb148c7bfa3a871fb59ea1f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:37:15 UTC\",\"updated_at\":\"2019-11-01 - 12:37:15 UTC\",\"id\":15,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:00:49 UTC\",\"updated_at\"\ + :\"2020-09-04 13:00:49 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:23 GMT - etag: - - W/"4b37897dbc10b780068c5584139e56b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 83446d7d-c78c-4779-90f6-da80be6f9315 - x-runtime: - - '0.023106' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,70 +125,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e1908b93ddb148c7bfa3a871fb59ea1f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections?per_page=4294967296&search=name%3D%22mycollection2%22 + uri: https://foreman.example.org/katello/api/organizations/4/host_collections?search=name%3D%22mycollection2%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection2\"","sort":{"by":"name","order":"asc"},"results":[{"name":"mycollection2","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:20 UTC","updated_at":"2019-11-01 12:37:21 UTC","id":3,"permissions":{"deletable":true,"editable":true}}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"mycollection2\"","sort":{"by":"name","order":"asc"},"results":[{"name":"mycollection2","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:54 UTC","updated_at":"2020-09-04 13:00:55 UTC","id":2,"permissions":{"deletable":true,"editable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '440' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:23 GMT - etag: - - W/"7228f55ed02c8879baa8844ed4562476-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 033e3db4-949a-4b85-b889-282959163877 - x-runtime: - - '0.039147' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '439' status: code: 200 message: OK @@ -233,68 +187,52 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=e1908b93ddb148c7bfa3a871fb59ea1f User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/host_collections/3 + uri: https://foreman.example.org/katello/api/host_collections/2 response: body: - string: !!python/unicode ' {} + string: ' {} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '5' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:23 GMT - etag: - - W/"a3a266c31b4c8f6ee28635870aaeb2b1" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - b3b206c2-1220-4f63-a463-a331b872accc - x-runtime: - - '0.044219' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '5' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/host_collection-7.yml b/tests/test_playbooks/fixtures/host_collection-7.yml index 1c699e6b..84bfe533 100644 --- a/tests/test_playbooks/fixtures/host_collection-7.yml +++ b/tests/test_playbooks/fixtures/host_collection-7.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:24 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=fbc86eb535ed00b76bdab1b7c366834c; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f385947e-8f5a-4cc1-ac89-6531a8fa6859 - x-runtime: - - '0.132158' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fbc86eb535ed00b76bdab1b7c366834c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:37:15 UTC\",\"updated_at\":\"2019-11-01 - 12:37:15 UTC\",\"id\":15,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:00:49 UTC\",\"updated_at\"\ + :\"2020-09-04 13:00:49 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:24 GMT - etag: - - W/"4b37897dbc10b780068c5584139e56b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 754cc3b1-9245-4afa-ac8e-abf0511f8b85 - x-runtime: - - '0.022661' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,70 +125,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fbc86eb535ed00b76bdab1b7c366834c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections?per_page=4294967296&search=name%3D%22TheAnswer%22 + uri: https://foreman.example.org/katello/api/organizations/4/host_collections?search=name%3D%22TheAnswer%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"TheAnswer\"","sort":{"by":"name","order":"asc"},"results":[{"name":"TheAnswer","organization_id":15,"max_hosts":null,"description":"Foo - host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2019-11-01 - 12:37:19 UTC","updated_at":"2019-11-01 12:37:19 UTC","id":2,"permissions":{"deletable":true,"editable":true}}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"TheAnswer\"","sort":{"by":"name","order":"asc"},"results":[{"name":"TheAnswer","organization_id":4,"max_hosts":null,"description":"Foo + host collection for Foo servers","total_hosts":0,"unlimited_hosts":true,"created_at":"2020-09-04 + 13:00:52 UTC","updated_at":"2020-09-04 13:00:52 UTC","id":1,"permissions":{"deletable":true,"editable":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '432' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:24 GMT - etag: - - W/"2ac18edc3e734b4d467368ef3618ee18-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 64ea3ab8-1d15-4169-920d-6cb6fcd3550b - x-runtime: - - '0.033279' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '431' status: code: 200 message: OK @@ -233,68 +187,52 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=fbc86eb535ed00b76bdab1b7c366834c User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/host_collections/2 + uri: https://foreman.example.org/katello/api/host_collections/1 response: body: - string: !!python/unicode ' {} + string: ' {} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '5' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:24 GMT - etag: - - W/"a3a266c31b4c8f6ee28635870aaeb2b1" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - fb915964-6906-4de4-a0c9-b01b288f8fa9 - x-runtime: - - '0.033666' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '5' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/host_collection-8.yml b/tests/test_playbooks/fixtures/host_collection-8.yml index c135e129..37180061 100644 --- a/tests/test_playbooks/fixtures/host_collection-8.yml +++ b/tests/test_playbooks/fixtures/host_collection-8.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:25 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=9fdf8b9b745d1c1638b90935d1264ef1; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - de097878-426b-4f81-8d68-c9356b4fab49 - x-runtime: - - '0.139366' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=9fdf8b9b745d1c1638b90935d1264ef1 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:37:15 UTC\",\"updated_at\":\"2019-11-01 - 12:37:15 UTC\",\"id\":15,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:00:49 UTC\",\"updated_at\"\ + :\"2020-09-04 13:00:49 UTC\",\"id\":4,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:25 GMT - etag: - - W/"4b37897dbc10b780068c5584139e56b9-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2d23a94d-2944-4a24-9f35-90ea0f28481d - x-runtime: - - '0.018275' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,68 +125,52 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=9fdf8b9b745d1c1638b90935d1264ef1 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/15/host_collections?per_page=4294967296&search=name%3D%22TheAnswer%22 + uri: https://foreman.example.org/katello/api/organizations/4/host_collections?search=name%3D%22TheAnswer%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"TheAnswer\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"TheAnswer\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '149' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:37:25 GMT - etag: - - W/"045be37d79516983797ae69ba0cb182d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 15; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 4; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 99481e52-2841-4113-8bc0-8f7447aa4340 - x-runtime: - - '0.029979' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '149' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/product-0.yml b/tests/test_playbooks/fixtures/product-0.yml index 34132cbd..1344126e 100644 --- a/tests/test_playbooks/fixtures/product-0.yml +++ b/tests/test_playbooks/fixtures/product-0.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:29 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=64476df845e2da1df9db446196336d88; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f4be272c-869c-41eb-bef8-512a0f17a294 - X-Runtime: - - '0.069298' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=64476df845e2da1df9db446196336d88 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:29 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - dd778e43-f5d4-48f1-b470-b4b19c5763f8 - X-Runtime: - - '0.013729' X-XSS-Protection: - 1; mode=block content-length: @@ -154,12 +125,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=64476df845e2da1df9db446196336d88 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -173,28 +142,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:29 GMT - ETag: - - W/"779af0631e7209158cdad7b50370f608-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -207,12 +168,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cecccebb-cb80-4fd5-ba94-3bcbc70d3a72 - X-Runtime: - - '0.011929' X-XSS-Protection: - 1; mode=block content-length: @@ -221,7 +176,7 @@ interactions: code: 200 message: OK - request: - body: '{"organization_id": 6, "description": "A happy little test product", "name": + body: '{"organization_id": 3, "description": "A happy little test product", "name": "Test Product"}' headers: Accept: @@ -234,18 +189,16 @@ interactions: - '92' Content-Type: - application/json - Cookie: - - _session_id=64476df845e2da1df9db446196336d88 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://127.0.0.1:4433/katello/api/products + uri: https://foreman.example.org/katello/api/products response: body: - string: ' {"redhat":false,"id":9,"cp_id":"629477517971","name":"Test Product","label":"Test_Product","description":"A - happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0,"created_at":"2020-01-10 - 09:16:29 UTC","updated_at":"2020-01-10 09:16:29 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":2,"cp_id":"412578979589","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0,"created_at":"2020-09-04 + 12:59:21 UTC","updated_at":"2020-09-04 12:59:21 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} ' headers: @@ -255,34 +208,24 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:29 GMT - ETag: - - W/"7810b9056c91362d47753327006a74c7-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding + Transfer-Encoding: + - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -291,17 +234,9 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a3df5052-be57-4f9c-9f55-57190f02c2df - X-Runtime: - - '0.430751' X-XSS-Protection: - 1; mode=block - content-length: - - '1036' status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/product-1.yml b/tests/test_playbooks/fixtures/product-1.yml index 572e8e6a..3a3d10e5 100644 --- a/tests/test_playbooks/fixtures/product-1.yml +++ b/tests/test_playbooks/fixtures/product-1.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:30 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=5364c49f2f1813bf9cb38f29cddd689f; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a365bee9-5f98-499e-9dfc-bb7421fb626f - X-Runtime: - - '0.073943' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5364c49f2f1813bf9cb38f29cddd689f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:30 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7229221e-8df9-42e5-b121-6a84f263630b - X-Runtime: - - '0.015613' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5364c49f2f1813bf9cb38f29cddd689f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"629477517971","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"cp_id":"412578979589","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:30 GMT - ETag: - - W/"a0889891e539470a408a179b2735bf87-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,12 +170,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4c9b0e1c-6128-4029-8b85-0c88fc642db6 - X-Runtime: - - '0.092516' X-XSS-Protection: - 1; mode=block content-length: @@ -231,18 +186,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5364c49f2f1813bf9cb38f29cddd689f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/products/9 + uri: https://foreman.example.org/katello/api/products/2?organization_id=3 response: body: - string: ' {"redhat":false,"id":9,"cp_id":"629477517971","name":"Test Product","label":"Test_Product","description":"A - happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0,"created_at":"2020-01-10 - 09:16:29 UTC","updated_at":"2020-01-10 09:16:29 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":2,"cp_id":"412578979589","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0,"created_at":"2020-09-04 + 12:59:21 UTC","updated_at":"2020-09-04 12:59:21 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} ' headers: @@ -252,28 +205,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:31 GMT - ETag: - - W/"7810b9056c91362d47753327006a74c7-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -286,16 +231,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 584d5832-286c-4e84-abf8-b19a92ed53fa - X-Runtime: - - '0.039418' X-XSS-Protection: - 1; mode=block content-length: - - '1036' + - '1065' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/product-10.yml b/tests/test_playbooks/fixtures/product-10.yml index 66382f43..55eb1d05 100644 --- a/tests/test_playbooks/fixtures/product-10.yml +++ b/tests/test_playbooks/fixtures/product-10.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:46 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=cdaea4f30d7d5e14b501c78c96bbc113; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1379c2ca-4ce7-4768-9467-36cd2dad7d0b - X-Runtime: - - '1.118247' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cdaea4f30d7d5e14b501c78c96bbc113 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:47 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7e6117d4-0ad9-4a13-b47a-baaa45418dd2 - X-Runtime: - - '0.026841' X-XSS-Protection: - 1; mode=block content-length: @@ -154,19 +125,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cdaea4f30d7d5e14b501c78c96bbc113 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product+3%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product 3\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"cp_id":"251389715576","name":"Test - Product 3","label":"Test_Product_3","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test - Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0}]} + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"organization_id":3,"name":"Test + Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 12:59:20 UTC","updated_at":"2020-09-04 + 12:59:20 UTC","enabled":false,"foreman_tasks_recurring_logic_id":1,"cron_expression":null,"products":[{"id":4,"cp_id":"665743430616","name":"Test + Product 3","label":"Test_Product_3","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' headers: @@ -176,28 +146,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:47 GMT - ETag: - - W/"ec0d7f942a9df2c1a6a9da454c273e45-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -210,16 +172,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ad2d91e3-e84c-4f91-b3fe-0cd8a4d3a4a3 - X-Runtime: - - '0.035750' X-XSS-Protection: - 1; mode=block content-length: - - '761' + - '759' status: code: 200 message: OK @@ -232,19 +188,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cdaea4f30d7d5e14b501c78c96bbc113 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/products/11 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product+3%22&per_page=4294967296 response: body: - string: ' {"redhat":false,"id":11,"cp_id":"251389715576","name":"Test Product - 3","label":"Test_Product_3","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test - Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0,"created_at":"2020-01-10 - 09:16:45 UTC","updated_at":"2020-01-10 09:16:45 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product 3\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"cp_id":"665743430616","name":"Test + Product 3","label":"Test_Product_3","description":"A happy little test product","provider_id":3,"sync_plan_id":1,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":{"id":1,"name":"Test + Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0}]} ' headers: @@ -254,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:47 GMT - ETag: - - W/"4d51984261966653cc8a91bb17e1a867-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -288,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a9e9d82b-e029-49ab-bb96-193809776449 - X-Runtime: - - '0.041658' X-XSS-Protection: - 1; mode=block content-length: - - '1183' + - '760' status: code: 200 message: OK @@ -310,20 +250,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cdaea4f30d7d5e14b501c78c96bbc113 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/4?organization_id=3 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test - Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-01-10 09:16:28 UTC","updated_at":"2020-01-10 - 09:16:28 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":11,"cp_id":"251389715576","name":"Test - Product 3","label":"Test_Product_3","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":4,"cp_id":"665743430616","name":"Test + Product 3","label":"Test_Product_3","description":"A happy little test product","provider_id":3,"sync_plan_id":1,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":{"id":1,"name":"Test + Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0,"created_at":"2020-09-04 + 12:59:38 UTC","updated_at":"2020-09-04 12:59:38 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} ' headers: @@ -333,28 +270,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:47 GMT - ETag: - - W/"c64df3ee9552e5143ceaae76552e9ea1-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -367,16 +296,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c61d290b-484d-430c-8042-d9632df9fece - X-Runtime: - - '0.031965' X-XSS-Protection: - 1; mode=block content-length: - - '760' + - '1211' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/product-11.yml b/tests/test_playbooks/fixtures/product-11.yml index acabccd5..03b19587 100644 --- a/tests/test_playbooks/fixtures/product-11.yml +++ b/tests/test_playbooks/fixtures/product-11.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:48 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=ace5ba1fc6ccbc4fbd7fb4ddc9cc88df; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d2043864-6c3d-47bb-9baa-34bfebf25940 - X-Runtime: - - '0.067556' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ace5ba1fc6ccbc4fbd7fb4ddc9cc88df User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:48 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c0a6b3ca-c9c4-4541-ba49-4b0aabeefc25 - X-Runtime: - - '0.013894' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ace5ba1fc6ccbc4fbd7fb4ddc9cc88df User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product+3%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product+3%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product 3\"","sort":{"by":"name","order":"asc"},"results":[{"id":11,"cp_id":"251389715576","name":"Test - Product 3","label":"Test_Product_3","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test + Product 3\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"cp_id":"665743430616","name":"Test + Product 3","label":"Test_Product_3","description":"A happy little test product","provider_id":3,"sync_plan_id":1,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":{"id":1,"name":"Test Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0}]} ' @@ -176,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:48 GMT - ETag: - - W/"ec0d7f942a9df2c1a6a9da454c273e45-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -210,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 77ad2a0c-e81f-48af-ac1c-37c3ffd449e1 - X-Runtime: - - '0.032889' X-XSS-Protection: - 1; mode=block content-length: - - '761' + - '760' status: code: 200 message: OK @@ -234,21 +189,20 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=ace5ba1fc6ccbc4fbd7fb4ddc9cc88df User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://127.0.0.1:4433/katello/api/products/11 + uri: https://foreman.example.org/katello/api/products/4 response: body: - string: ' {"id":"00e1f225-26bb-4847-a9ac-45838c53371b","label":"Actions::Katello::Product::Destroy","pending":true,"action":"Delete - Product product ''Test Product 3''; organization ''Test Organization''","username":"admin","started_at":"2020-01-10 - 09:16:48 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"product":{"id":11,"name":"Test - Product 3","label":"Test_Product_3","cp_id":"251389715576"},"provider":{"id":9,"name":"Anonymous"},"organization":{"id":6,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":11,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete - Product","input":[["product",{"text":"product ''Test Product 3''","link":"/products/11/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/6/edit"}]],"output":"","errors":[]},"cli_example":null,"available_actions":{"cancellable":false,"resumable":false}} + string: ' {"id":"0323e834-f5b4-4a61-b07b-9c3bb9a0fb21","label":"Actions::Katello::Product::Destroy","pending":true,"action":"Delete + Product product ''Test Product 3''; organization ''Test Organization''","username":"admin","started_at":"2020-09-04 + 12:59:40 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"product":{"id":4,"name":"Test + Product 3","label":"Test_Product_3","cp_id":"665743430616"},"provider":{"id":3,"name":"Anonymous"},"organization":{"id":3,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete + Product","input":[["product",{"text":"product ''Test Product 3''","link":"/products/4/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/3/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-04 + 12:59:40 UTC","available_actions":{"cancellable":false,"resumable":false}} ' headers: @@ -258,12 +212,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:48 GMT Foreman_api_version: - '2' Foreman_current_location: @@ -271,15 +223,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 202 Accepted + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -292,12 +238,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 07725770-de7c-455c-b8ba-f640b1de9c8d - X-Runtime: - - '0.108764' X-XSS-Protection: - 1; mode=block status: @@ -312,21 +252,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ace5ba1fc6ccbc4fbd7fb4ddc9cc88df; request_method=DELETE User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/foreman_tasks/api/tasks/00e1f225-26bb-4847-a9ac-45838c53371b + uri: https://foreman.example.org/foreman_tasks/api/tasks/0323e834-f5b4-4a61-b07b-9c3bb9a0fb21 response: body: - string: '{"id":"00e1f225-26bb-4847-a9ac-45838c53371b","label":"Actions::Katello::Product::Destroy","pending":false,"action":"Delete - Product product ''Test Product 3''; organization ''Test Organization''","username":"admin","started_at":"2020-01-10 - 09:16:48 UTC","ended_at":"2020-01-10 09:16:48 UTC","state":"stopped","result":"success","progress":1.0,"input":{"product":{"id":11,"name":"Test - Product 3","label":"Test_Product_3","cp_id":"251389715576"},"provider":{"id":9,"name":"Anonymous"},"organization":{"id":6,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":11,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete - Product","input":[["product",{"text":"product ''Test Product 3''","link":"/products/11/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/6/edit"}]],"output":"","errors":[]},"cli_example":null,"available_actions":{"cancellable":false,"resumable":false}}' + string: '{"id":"0323e834-f5b4-4a61-b07b-9c3bb9a0fb21","label":"Actions::Katello::Product::Destroy","pending":false,"action":"Delete + Product product ''Test Product 3''; organization ''Test Organization''","username":"admin","started_at":"2020-09-04 + 12:59:40 UTC","ended_at":"2020-09-04 12:59:41 UTC","state":"stopped","result":"success","progress":1.0,"input":{"product":{"id":4,"name":"Test + Product 3","label":"Test_Product_3","cp_id":"665743430616"},"provider":{"id":3,"name":"Anonymous"},"organization":{"id":3,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":4,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete + Product","input":[["product",{"text":"product ''Test Product 3''","link":"/products/4/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/3/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-04 + 12:59:40 UTC","available_actions":{"cancellable":false,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -334,14 +273,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:52 GMT - ETag: - - W/"39ae993f4b55a2722796fc8eaf446af7-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -349,16 +284,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -371,16 +299,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 39ac14fb-b5f9-4463-8a68-85c246dd5336 - X-Runtime: - - '0.056720' X-XSS-Protection: - 1; mode=block content-length: - - '1081' + - '1115' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/product-12.yml b/tests/test_playbooks/fixtures/product-12.yml index ef8fc802..92f5bcfa 100644 --- a/tests/test_playbooks/fixtures/product-12.yml +++ b/tests/test_playbooks/fixtures/product-12.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:52 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=ca7cdea2d349264c4a41030d5cfd5f95; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8563ef8e-bddb-4487-856c-04e8bc974f9c - X-Runtime: - - '0.069184' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ca7cdea2d349264c4a41030d5cfd5f95 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:52 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7178494b-bdff-4b9f-b9fd-af6dfcf2e60e - X-Runtime: - - '0.014381' X-XSS-Protection: - 1; mode=block content-length: @@ -154,12 +125,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ca7cdea2d349264c4a41030d5cfd5f95 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product+3%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product+3%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -173,28 +142,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:52 GMT - ETag: - - W/"a8b7e0065f7c49e0d8cbcf19d7e3cf36-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -207,12 +168,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - be1bb464-391b-4831-8aef-e0787affa112 - X-Runtime: - - '0.012356' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/product-2.yml b/tests/test_playbooks/fixtures/product-2.yml index 0d904230..1c2d7643 100644 --- a/tests/test_playbooks/fixtures/product-2.yml +++ b/tests/test_playbooks/fixtures/product-2.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:31 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=c609a6aca6722a4b5a76229f7a8bdc54; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4e9c805d-ec9f-4d89-971b-503dfabb9492 - X-Runtime: - - '0.073698' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c609a6aca6722a4b5a76229f7a8bdc54 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:32 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6ed99186-d8e1-4e84-9ef7-57b77d7cdb34 - X-Runtime: - - '0.014806' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c609a6aca6722a4b5a76229f7a8bdc54 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"629477517971","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"cp_id":"412578979589","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:32 GMT - ETag: - - W/"a0889891e539470a408a179b2735bf87-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,12 +170,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8c95bee8-f5d6-4c1a-934f-299c151b2494 - X-Runtime: - - '0.032981' X-XSS-Protection: - 1; mode=block content-length: @@ -231,18 +186,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c609a6aca6722a4b5a76229f7a8bdc54 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/products/9 + uri: https://foreman.example.org/katello/api/products/2?organization_id=3 response: body: - string: ' {"redhat":false,"id":9,"cp_id":"629477517971","name":"Test Product","label":"Test_Product","description":"A - happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0,"created_at":"2020-01-10 - 09:16:29 UTC","updated_at":"2020-01-10 09:16:29 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":2,"cp_id":"412578979589","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0,"created_at":"2020-09-04 + 12:59:21 UTC","updated_at":"2020-09-04 12:59:21 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} ' headers: @@ -252,28 +205,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:32 GMT - ETag: - - W/"7810b9056c91362d47753327006a74c7-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -286,16 +231,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - adee1281-e606-4b02-8ac4-61bb38d540ae - X-Runtime: - - '0.043657' X-XSS-Protection: - 1; mode=block content-length: - - '1036' + - '1065' status: code: 200 message: OK @@ -312,18 +251,16 @@ interactions: - '56' Content-Type: - application/json - Cookie: - - _session_id=c609a6aca6722a4b5a76229f7a8bdc54 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://127.0.0.1:4433/katello/api/products/9 + uri: https://foreman.example.org/katello/api/products/2 response: body: - string: ' {"redhat":false,"id":9,"cp_id":"629477517971","name":"Test Product","label":"Test_Product","description":"A - product with an updated description","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0,"created_at":"2020-01-10 - 09:16:29 UTC","updated_at":"2020-01-10 09:16:32 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":2,"cp_id":"412578979589","name":"Test + Product","label":"Test_Product","description":"A product with an updated description","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0,"created_at":"2020-09-04 + 12:59:21 UTC","updated_at":"2020-09-04 12:59:23 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} ' headers: @@ -333,14 +270,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:32 GMT - ETag: - - W/"1aadb2a3cde43927b413917030a84666-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -348,15 +281,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -369,16 +296,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2675110b-cbd8-4eb2-942c-40309098fce6 - X-Runtime: - - '0.134901' X-XSS-Protection: - 1; mode=block content-length: - - '1046' + - '1075' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/product-3.yml b/tests/test_playbooks/fixtures/product-3.yml index f4675473..48f9e5c6 100644 --- a/tests/test_playbooks/fixtures/product-3.yml +++ b/tests/test_playbooks/fixtures/product-3.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:32 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=b9586d3a6d97fd3baf3edd69528b8c49; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c414e99d-65a4-4527-8321-1d10d856505a - X-Runtime: - - '0.068349' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b9586d3a6d97fd3baf3edd69528b8c49 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:32 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9d2e0fcb-009e-475a-a347-50890212ef8e - X-Runtime: - - '0.018121' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b9586d3a6d97fd3baf3edd69528b8c49 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":9,"cp_id":"629477517971","name":"Test - Product","label":"Test_Product","description":"A product with an updated description","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"cp_id":"412578979589","name":"Test + Product","label":"Test_Product","description":"A product with an updated description","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:32 GMT - ETag: - - W/"1a1993c7fc799dba1d0ae741cfeb4870-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,12 +170,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 99b285ec-1c13-445a-bcdc-bde9d03a8798 - X-Runtime: - - '0.033172' X-XSS-Protection: - 1; mode=block content-length: @@ -233,21 +188,20 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=b9586d3a6d97fd3baf3edd69528b8c49 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://127.0.0.1:4433/katello/api/products/9 + uri: https://foreman.example.org/katello/api/products/2 response: body: - string: ' {"id":"d70e79bc-e198-410c-82ac-d95085156e30","label":"Actions::Katello::Product::Destroy","pending":true,"action":"Delete - Product product ''Test Product''; organization ''Test Organization''","username":"admin","started_at":"2020-01-10 - 09:16:32 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"product":{"id":9,"name":"Test - Product","label":"Test_Product","cp_id":"629477517971"},"provider":{"id":9,"name":"Anonymous"},"organization":{"id":6,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":9,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete - Product","input":[["product",{"text":"product ''Test Product''","link":"/products/9/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/6/edit"}]],"output":"","errors":[]},"cli_example":null,"available_actions":{"cancellable":false,"resumable":false}} + string: ' {"id":"723a85ba-138e-4903-acb4-d4b4b31e16f2","label":"Actions::Katello::Product::Destroy","pending":true,"action":"Delete + Product product ''Test Product''; organization ''Test Organization''","username":"admin","started_at":"2020-09-04 + 12:59:24 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"product":{"id":2,"name":"Test + Product","label":"Test_Product","cp_id":"412578979589"},"provider":{"id":3,"name":"Anonymous"},"organization":{"id":3,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":2,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete + Product","input":[["product",{"text":"product ''Test Product''","link":"/products/2/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/3/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-04 + 12:59:24 UTC","available_actions":{"cancellable":false,"resumable":false}} ' headers: @@ -257,12 +211,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:32 GMT Foreman_api_version: - '2' Foreman_current_location: @@ -270,15 +222,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 202 Accepted + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -291,12 +237,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 070cf924-d6be-47c4-bd0c-f1ccf1fec466 - X-Runtime: - - '0.114056' X-XSS-Protection: - 1; mode=block status: @@ -311,21 +251,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b9586d3a6d97fd3baf3edd69528b8c49; request_method=DELETE User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/foreman_tasks/api/tasks/d70e79bc-e198-410c-82ac-d95085156e30 + uri: https://foreman.example.org/foreman_tasks/api/tasks/723a85ba-138e-4903-acb4-d4b4b31e16f2 response: body: - string: '{"id":"d70e79bc-e198-410c-82ac-d95085156e30","label":"Actions::Katello::Product::Destroy","pending":false,"action":"Delete - Product product ''Test Product''; organization ''Test Organization''","username":"admin","started_at":"2020-01-10 - 09:16:32 UTC","ended_at":"2020-01-10 09:16:33 UTC","state":"stopped","result":"success","progress":1.0,"input":{"product":{"id":9,"name":"Test - Product","label":"Test_Product","cp_id":"629477517971"},"provider":{"id":9,"name":"Anonymous"},"organization":{"id":6,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":9,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete - Product","input":[["product",{"text":"product ''Test Product''","link":"/products/9/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/6/edit"}]],"output":"","errors":[]},"cli_example":null,"available_actions":{"cancellable":false,"resumable":false}}' + string: '{"id":"723a85ba-138e-4903-acb4-d4b4b31e16f2","label":"Actions::Katello::Product::Destroy","pending":false,"action":"Delete + Product product ''Test Product''; organization ''Test Organization''","username":"admin","started_at":"2020-09-04 + 12:59:24 UTC","ended_at":"2020-09-04 12:59:25 UTC","state":"stopped","result":"success","progress":1.0,"input":{"product":{"id":2,"name":"Test + Product","label":"Test_Product","cp_id":"412578979589"},"provider":{"id":3,"name":"Anonymous"},"organization":{"id":3,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":2,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete + Product","input":[["product",{"text":"product ''Test Product''","link":"/products/2/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/3/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-04 + 12:59:24 UTC","available_actions":{"cancellable":false,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -333,14 +272,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:36 GMT - ETag: - - W/"2956ffc53cd767eb7c531d5286de342e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -348,16 +283,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -370,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 390fcca6-7f53-4d16-9d20-a6f7e64b02a7 - X-Runtime: - - '0.018626' X-XSS-Protection: - 1; mode=block content-length: - - '1070' + - '1107' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/product-4.yml b/tests/test_playbooks/fixtures/product-4.yml index a81d3db5..babec825 100644 --- a/tests/test_playbooks/fixtures/product-4.yml +++ b/tests/test_playbooks/fixtures/product-4.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=9ec430116f1d98a8c8ae90e48a29d1bd; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5609f55e-bb5d-4848-a10f-0207e86dbcf6 - X-Runtime: - - '0.068231' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=9ec430116f1d98a8c8ae90e48a29d1bd User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0fa4a824-3cca-4c8b-87a5-167721ae5f4b - X-Runtime: - - '0.014488' X-XSS-Protection: - 1; mode=block content-length: @@ -154,12 +125,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=9ec430116f1d98a8c8ae90e48a29d1bd User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -173,28 +142,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"779af0631e7209158cdad7b50370f608-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -207,12 +168,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f97aecfd-d65c-46de-ba62-98a301d3771a - X-Runtime: - - '0.012642' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/product-5.yml b/tests/test_playbooks/fixtures/product-5.yml index 27e2f0d5..c1fac7ad 100644 --- a/tests/test_playbooks/fixtures/product-5.yml +++ b/tests/test_playbooks/fixtures/product-5.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=d24ab8f5ff09093c5be7675b15373074; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 86139154-c234-4cd6-af06-7504c0031775 - X-Runtime: - - '0.070564' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d24ab8f5ff09093c5be7675b15373074 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c964d54d-db1b-4427-a958-6e8b8c5a7a74 - X-Runtime: - - '0.013927' X-XSS-Protection: - 1; mode=block content-length: @@ -154,16 +125,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d24ab8f5ff09093c5be7675b15373074 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+GPG+key%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product 2\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + GPG key\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test GPG + key","content_type":"gpg_key","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: + GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END + PGP PUBLIC KEY BLOCK-----","id":1,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"created_at":"2020-09-04 + 12:59:18 UTC","updated_at":"2020-09-04 12:59:18 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -173,28 +147,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"f98cc61f147a2c519efcf84e03870751-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -207,16 +173,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 43530df9-0f9b-4255-b674-da573ebd3d93 - X-Runtime: - - '0.012333' X-XSS-Protection: - 1; mode=block content-length: - - '154' + - '1680' status: code: 200 message: OK @@ -229,21 +189,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d24ab8f5ff09093c5be7675b15373074 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=6&search=name%3D%22Test+GPG+key%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - GPG key\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test GPG - key","content_type":"gpg_key","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: + SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL + Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":10,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"created_at":"2020-01-10 - 09:16:27 UTC","updated_at":"2020-01-10 09:16:27 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"created_at":"2020-09-04 + 12:59:19 UTC","updated_at":"2020-09-04 12:59:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -253,14 +211,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"def50f11dae83b7fb8dbdb4f3aa006cd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -268,13 +222,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +237,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bcb9443a-509d-4c68-b703-941aa6e9fe79 - X-Runtime: - - '0.019787' X-XSS-Protection: - 1; mode=block content-length: - - '1681' + - '1679' status: code: 200 message: OK @@ -309,21 +253,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d24ab8f5ff09093c5be7675b15373074 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=6&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":11,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"created_at":"2020-01-10 - 09:16:28 UTC","updated_at":"2020-01-10 09:16:28 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"created_at":"2020-09-04 + 12:59:19 UTC","updated_at":"2020-09-04 12:59:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -333,14 +275,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"d70532960ad7e395d468d80b48785fa0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -348,13 +286,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -367,16 +301,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9e6b7638-8ab3-4c2a-af86-3eef8c005ac4 - X-Runtime: - - '0.022296' X-XSS-Protection: - 1; mode=block content-length: - - '1680' + - '1679' status: code: 200 message: OK @@ -389,21 +317,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d24ab8f5ff09093c5be7675b15373074 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=6&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":11,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"created_at":"2020-01-10 - 09:16:28 UTC","updated_at":"2020-01-10 09:16:28 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"created_at":"2020-09-04 + 12:59:19 UTC","updated_at":"2020-09-04 12:59:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -413,14 +339,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"d70532960ad7e395d468d80b48785fa0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -428,13 +350,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9995 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -447,16 +365,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 04913c2f-1186-4e55-a5f9-789748bcbe60 - X-Runtime: - - '0.019663' X-XSS-Protection: - 1; mode=block content-length: - - '1680' + - '1679' status: code: 200 message: OK @@ -469,21 +381,14 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d24ab8f5ff09093c5be7675b15373074 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=6&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product+2%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL - Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: - GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":11,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"created_at":"2020-01-10 - 09:16:28 UTC","updated_at":"2020-01-10 09:16:28 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product 2\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -493,28 +398,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"d70532960ad7e395d468d80b48785fa0-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9994 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -527,23 +424,17 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4b722cf6-35cc-449f-ac64-b1f7a3e1a189 - X-Runtime: - - '0.019427' X-XSS-Protection: - 1; mode=block content-length: - - '1680' + - '154' status: code: 200 message: OK - request: - body: '{"organization_id": 6, "description": "A happy little test product", "gpg_key_id": - 10, "ssl_ca_cert_id": 11, "ssl_client_cert_id": 11, "ssl_client_key_id": 11, - "name": "Test Product 2"}' + body: '{"organization_id": 3, "description": "A happy little test product", "gpg_key_id": + 1, "ssl_ca_cert_id": 2, "ssl_client_cert_id": 2, "ssl_client_key_id": 2, "name": + "Test Product 2"}' headers: Accept: - application/json;version=2 @@ -552,23 +443,21 @@ interactions: Connection: - keep-alive Content-Length: - - '185' + - '181' Content-Type: - application/json - Cookie: - - _session_id=d24ab8f5ff09093c5be7675b15373074 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://127.0.0.1:4433/katello/api/products + uri: https://foreman.example.org/katello/api/products response: body: - string: ' {"redhat":false,"id":10,"cp_id":"840948063688","name":"Test Product - 2","label":"Test_Product_2","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":10,"ssl_ca_cert_id":11,"ssl_client_cert_id":11,"ssl_client_key_id":11,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0,"created_at":"2020-01-10 - 09:16:37 UTC","updated_at":"2020-01-10 09:16:37 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"gpg_key":{"id":10,"name":"Test - GPG key"},"ssl_ca_cert":{"id":11,"name":"Test SSL Cert"},"ssl_client_cert":{"id":11,"name":"Test - SSL Cert"},"ssl_client_key":{"id":11,"name":"Test SSL Cert"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":3,"cp_id":"370017746416","name":"Test + Product 2","label":"Test_Product_2","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0,"created_at":"2020-09-04 + 12:59:30 UTC","updated_at":"2020-09-04 12:59:30 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"gpg_key":{"id":1,"name":"Test + GPG key"},"ssl_ca_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test + SSL Cert"},"ssl_client_key":{"id":2,"name":"Test SSL Cert"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} ' headers: @@ -578,34 +467,24 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:37 GMT - ETag: - - W/"75cc40297a7f3adf3fabaed033e94225-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9993 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding + Transfer-Encoding: + - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -614,17 +493,9 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 23f0c5c6-4064-4061-b2ed-c45700ca663c - X-Runtime: - - '0.378762' X-XSS-Protection: - 1; mode=block - content-length: - - '1223' status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/product-6.yml b/tests/test_playbooks/fixtures/product-6.yml index 9eeacda1..9698a86e 100644 --- a/tests/test_playbooks/fixtures/product-6.yml +++ b/tests/test_playbooks/fixtures/product-6.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:38 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=5ddc255ca054f99a0db7ce6e4bf0a723; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3eb03a04-360b-4c93-bed8-94b5ff8a2f9e - X-Runtime: - - '0.099377' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ddc255ca054f99a0db7ce6e4bf0a723 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:39 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 84eb0b96-fd7d-4430-86f3-c961913ddc53 - X-Runtime: - - '0.013739' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ddc255ca054f99a0db7ce6e4bf0a723 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+GPG+key%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product 2\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","label":"Test_Product_2","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":10,"ssl_ca_cert_id":11,"ssl_client_cert_id":11,"ssl_client_key_id":11,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + GPG key\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test GPG + key","content_type":"gpg_key","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: + GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END + PGP PUBLIC KEY BLOCK-----","id":1,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"created_at":"2020-09-04 + 12:59:18 UTC","updated_at":"2020-09-04 12:59:18 UTC","gpg_key_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -175,28 +148,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:39 GMT - ETag: - - W/"de4cbc2bb833422b91f57d77c157195f-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +174,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b85a6a86-5087-4d30-8f20-d69b040f687b - X-Runtime: - - '0.034991' X-XSS-Protection: - 1; mode=block content-length: - - '611' + - '1795' status: code: 200 message: OK @@ -231,20 +190,22 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ddc255ca054f99a0db7ce6e4bf0a723 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/products/10 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 response: body: - string: ' {"redhat":false,"id":10,"cp_id":"840948063688","name":"Test Product - 2","label":"Test_Product_2","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":10,"ssl_ca_cert_id":11,"ssl_client_cert_id":11,"ssl_client_key_id":11,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0,"created_at":"2020-01-10 - 09:16:37 UTC","updated_at":"2020-01-10 09:16:37 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"gpg_key":{"id":10,"name":"Test - GPG key"},"ssl_ca_cert":{"id":11,"name":"Test SSL Cert"},"ssl_client_cert":{"id":11,"name":"Test - SSL Cert"},"ssl_client_key":{"id":11,"name":"Test SSL Cert"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL + Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: + GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END + PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"created_at":"2020-09-04 + 12:59:19 UTC","updated_at":"2020-09-04 12:59:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"ssl_ca_root_repos":[],"ssl_client_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"ssl_client_root_repos":[],"ssl_key_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -254,14 +215,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:39 GMT - ETag: - - W/"75cc40297a7f3adf3fabaed033e94225-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -269,13 +226,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -288,16 +241,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2932a1c6-679e-4d08-a1b7-d7125524f824 - X-Runtime: - - '0.043815' X-XSS-Protection: - 1; mode=block content-length: - - '1223' + - '2024' status: code: 200 message: OK @@ -310,22 +257,22 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ddc255ca054f99a0db7ce6e4bf0a723 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=6&search=name%3D%22Test+GPG+key%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - GPG key\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test GPG - key","content_type":"gpg_key","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: + SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL + Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":10,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"created_at":"2020-01-10 - 09:16:27 UTC","updated_at":"2020-01-10 09:16:27 UTC","gpg_key_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"created_at":"2020-09-04 + 12:59:19 UTC","updated_at":"2020-09-04 12:59:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"ssl_ca_root_repos":[],"ssl_client_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"ssl_client_root_repos":[],"ssl_key_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -335,14 +282,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:39 GMT - ETag: - - W/"ac028f8485a8d9b5c57449af5564c8ab-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -350,13 +293,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -369,16 +308,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 51037c25-bea3-4cde-9ef1-08dd205a4057 - X-Runtime: - - '0.022311' X-XSS-Protection: - 1; mode=block content-length: - - '1797' + - '2024' status: code: 200 message: OK @@ -391,24 +324,22 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ddc255ca054f99a0db7ce6e4bf0a723 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=6&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":11,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"created_at":"2020-01-10 - 09:16:28 UTC","updated_at":"2020-01-10 09:16:28 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"ssl_ca_root_repos":[],"ssl_client_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"ssl_client_root_repos":[],"ssl_key_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"created_at":"2020-09-04 + 12:59:19 UTC","updated_at":"2020-09-04 12:59:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"ssl_ca_root_repos":[],"ssl_client_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"ssl_client_root_repos":[],"ssl_key_products":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","provider":{"name":"Anonymous","id":3},"repository_count":0}],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -418,14 +349,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:39 GMT - ETag: - - W/"4f3bfbc8871d982ddbf5d473a4c93de4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -433,13 +360,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9995 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -452,16 +375,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b4d68124-0c54-4fa2-bce6-e3a79e6db2c3 - X-Runtime: - - '0.023779' X-XSS-Protection: - 1; mode=block content-length: - - '2028' + - '2024' status: code: 200 message: OK @@ -474,24 +391,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ddc255ca054f99a0db7ce6e4bf0a723 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=6&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product+2%22&per_page=4294967296 response: body: - string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL - Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: - GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":11,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"created_at":"2020-01-10 - 09:16:28 UTC","updated_at":"2020-01-10 09:16:28 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"ssl_ca_root_repos":[],"ssl_client_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"ssl_client_root_repos":[],"ssl_key_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product 2\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","label":"Test_Product_2","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]} ' headers: @@ -501,28 +410,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:39 GMT - ETag: - - W/"4f3bfbc8871d982ddbf5d473a4c93de4-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9994 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -535,16 +436,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f6e76b06-1721-4625-a7d7-331e2eb189d5 - X-Runtime: - - '0.023343' X-XSS-Protection: - 1; mode=block content-length: - - '2028' + - '606' status: code: 200 message: OK @@ -557,24 +452,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ddc255ca054f99a0db7ce6e4bf0a723 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=6&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/products/3?organization_id=3 response: body: - string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL - Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: - GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":11,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"created_at":"2020-01-10 - 09:16:28 UTC","updated_at":"2020-01-10 09:16:28 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"ssl_ca_root_repos":[],"ssl_client_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"ssl_client_root_repos":[],"ssl_key_products":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","provider":{"name":"Anonymous","id":9},"repository_count":0}],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":3,"cp_id":"370017746416","name":"Test + Product 2","label":"Test_Product_2","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0,"created_at":"2020-09-04 + 12:59:30 UTC","updated_at":"2020-09-04 12:59:30 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"gpg_key":{"id":1,"name":"Test + GPG key"},"ssl_ca_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test + SSL Cert"},"ssl_client_key":{"id":2,"name":"Test SSL Cert"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} ' headers: @@ -584,28 +473,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:39 GMT - ETag: - - W/"4f3bfbc8871d982ddbf5d473a4c93de4-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9993 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -618,16 +499,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bafb6f6e-919d-42da-a775-228cf24f4734 - X-Runtime: - - '0.025097' X-XSS-Protection: - 1; mode=block content-length: - - '2028' + - '1243' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/product-7.yml b/tests/test_playbooks/fixtures/product-7.yml index 358d757c..a3c6fc8f 100644 --- a/tests/test_playbooks/fixtures/product-7.yml +++ b/tests/test_playbooks/fixtures/product-7.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:40 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=5ef6b1e81ed7816b3fef5bb432c6a5cf; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8378c3ad-6c3a-4908-b2d0-a8c316a0b25c - X-Runtime: - - '0.068816' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ef6b1e81ed7816b3fef5bb432c6a5cf User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:40 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 84de4cfc-7a49-41d7-9ecf-96b52aac149e - X-Runtime: - - '0.013966' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ef6b1e81ed7816b3fef5bb432c6a5cf User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product+2%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product 2\"","sort":{"by":"name","order":"asc"},"results":[{"id":10,"cp_id":"840948063688","name":"Test - Product 2","label":"Test_Product_2","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":10,"ssl_ca_cert_id":11,"ssl_client_cert_id":11,"ssl_client_key_id":11,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} + Product 2\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"370017746416","name":"Test + Product 2","label":"Test_Product_2","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:40 GMT - ETag: - - W/"de4cbc2bb833422b91f57d77c157195f-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +170,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6659090c-cbf8-4fd7-a343-e6f1fb29e050 - X-Runtime: - - '0.031742' X-XSS-Protection: - 1; mode=block content-length: - - '611' + - '606' status: code: 200 message: OK @@ -233,21 +188,20 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=5ef6b1e81ed7816b3fef5bb432c6a5cf User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://127.0.0.1:4433/katello/api/products/10 + uri: https://foreman.example.org/katello/api/products/3 response: body: - string: ' {"id":"7d987008-a95c-4a07-aa74-b1be9c6d6449","label":"Actions::Katello::Product::Destroy","pending":true,"action":"Delete - Product product ''Test Product 2''; organization ''Test Organization''","username":"admin","started_at":"2020-01-10 - 09:16:40 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"product":{"id":10,"name":"Test - Product 2","label":"Test_Product_2","cp_id":"840948063688"},"provider":{"id":9,"name":"Anonymous"},"organization":{"id":6,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":10,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete - Product","input":[["product",{"text":"product ''Test Product 2''","link":"/products/10/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/6/edit"}]],"output":"","errors":[]},"cli_example":null,"available_actions":{"cancellable":false,"resumable":false}} + string: ' {"id":"bb68e280-7c21-4eae-a620-c22e46b23eca","label":"Actions::Katello::Product::Destroy","pending":true,"action":"Delete + Product product ''Test Product 2''; organization ''Test Organization''","username":"admin","started_at":"2020-09-04 + 12:59:32 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"product":{"id":3,"name":"Test + Product 2","label":"Test_Product_2","cp_id":"370017746416"},"provider":{"id":3,"name":"Anonymous"},"organization":{"id":3,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":3,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete + Product","input":[["product",{"text":"product ''Test Product 2''","link":"/products/3/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/3/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-04 + 12:59:32 UTC","available_actions":{"cancellable":false,"resumable":false}} ' headers: @@ -257,12 +211,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:40 GMT Foreman_api_version: - '2' Foreman_current_location: @@ -270,15 +222,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 202 Accepted + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -291,12 +237,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7c2830b0-cb95-4b4c-bd52-462fafaabdb9 - X-Runtime: - - '0.113111' X-XSS-Protection: - 1; mode=block status: @@ -311,21 +251,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5ef6b1e81ed7816b3fef5bb432c6a5cf; request_method=DELETE User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/foreman_tasks/api/tasks/7d987008-a95c-4a07-aa74-b1be9c6d6449 + uri: https://foreman.example.org/foreman_tasks/api/tasks/bb68e280-7c21-4eae-a620-c22e46b23eca response: body: - string: '{"id":"7d987008-a95c-4a07-aa74-b1be9c6d6449","label":"Actions::Katello::Product::Destroy","pending":false,"action":"Delete - Product product ''Test Product 2''; organization ''Test Organization''","username":"admin","started_at":"2020-01-10 - 09:16:40 UTC","ended_at":"2020-01-10 09:16:40 UTC","state":"stopped","result":"success","progress":1.0,"input":{"product":{"id":10,"name":"Test - Product 2","label":"Test_Product_2","cp_id":"840948063688"},"provider":{"id":9,"name":"Anonymous"},"organization":{"id":6,"name":"Test - Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":10,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete - Product","input":[["product",{"text":"product ''Test Product 2''","link":"/products/10/"}],["organization",{"text":"organization - ''Test Organization''","link":"/organizations/6/edit"}]],"output":"","errors":[]},"cli_example":null,"available_actions":{"cancellable":false,"resumable":false}}' + string: '{"id":"bb68e280-7c21-4eae-a620-c22e46b23eca","label":"Actions::Katello::Product::Destroy","pending":false,"action":"Delete + Product product ''Test Product 2''; organization ''Test Organization''","username":"admin","started_at":"2020-09-04 + 12:59:32 UTC","ended_at":"2020-09-04 12:59:33 UTC","state":"stopped","result":"success","progress":1.0,"input":{"product":{"id":3,"name":"Test + Product 2","label":"Test_Product_2","cp_id":"370017746416"},"provider":{"id":3,"name":"Anonymous"},"organization":{"id":3,"name":"Test + Organization","label":"Test_Organization"},"services_checked":["candlepin","candlepin_auth"],"product_id":3,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Delete + Product","input":[["product",{"text":"product ''Test Product 2''","link":"/products/3/"}],["organization",{"text":"organization + ''Test Organization''","link":"/organizations/3/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2020-09-04 + 12:59:32 UTC","available_actions":{"cancellable":false,"resumable":false}}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -333,14 +272,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:44 GMT - ETag: - - W/"4570a0b0a767a7bf54dcb7934ad3598f-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -348,16 +283,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000; - secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -370,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cd98cf7c-1b0e-422a-8300-d31e64062db8 - X-Runtime: - - '0.019923' X-XSS-Protection: - 1; mode=block content-length: - - '1081' + - '1115' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/product-8.yml b/tests/test_playbooks/fixtures/product-8.yml index aae4ec50..902e0064 100644 --- a/tests/test_playbooks/fixtures/product-8.yml +++ b/tests/test_playbooks/fixtures/product-8.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:44 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=cc02dbf468fab33b58df006854fc83f2; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 543d85da-5f6a-48d3-a304-85d0c7c034c0 - X-Runtime: - - '0.068950' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cc02dbf468fab33b58df006854fc83f2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:44 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - fff69980-110c-47ab-9a57-59c62213b43b - X-Runtime: - - '0.013868' X-XSS-Protection: - 1; mode=block content-length: @@ -154,12 +125,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cc02dbf468fab33b58df006854fc83f2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product+2%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -173,28 +142,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:44 GMT - ETag: - - W/"f98cc61f147a2c519efcf84e03870751-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -207,12 +168,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d7999851-18b4-42d5-80c5-42879e73a42f - X-Runtime: - - '0.012095' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/product-9.yml b/tests/test_playbooks/fixtures/product-9.yml index 16c5ac48..ea26bb94 100644 --- a/tests/test_playbooks/fixtures/product-9.yml +++ b/tests/test_playbooks/fixtures/product-9.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:45 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=17d4b075b8125e0c0ad2804390c96b16; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ebc8e69e-b54c-4404-8e38-aaa9e3ebbeba - X-Runtime: - - '0.068660' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=17d4b075b8125e0c0ad2804390c96b16 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:16:23 UTC\",\"updated_at\":\"2020-01-10 09:16:23 UTC\",\"id\":6,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 12:59:16 UTC\",\"updated_at\"\ + :\"2020-09-04 12:59:16 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:45 GMT - ETag: - - W/"681e0aa090293bc5c8b8e80d2cd24d19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bb24deae-6ef6-4778-bcf9-24c5b9baced9 - X-Runtime: - - '0.013285' X-XSS-Protection: - 1; mode=block content-length: @@ -154,16 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=17d4b075b8125e0c0ad2804390c96b16 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/products?search=name%3D%22Test+Product+3%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product 3\"","sort":{"by":"name","order":"asc"},"results":[]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"organization_id":3,"name":"Test + Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 12:59:20 UTC","updated_at":"2020-09-04 + 12:59:20 UTC","enabled":false,"foreman_tasks_recurring_logic_id":1,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} ' headers: @@ -173,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:45 GMT - ETag: - - W/"a8b7e0065f7c49e0d8cbcf19d7e3cf36-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -207,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 67cecf07-70f2-41da-beab-1eeca01846f2 - X-Runtime: - - '0.012734' X-XSS-Protection: - 1; mode=block content-length: - - '154' + - '556' status: code: 200 message: OK @@ -229,19 +187,14 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=17d4b075b8125e0c0ad2804390c96b16 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product+3%22&per_page=4294967296 response: body: - string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test - Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2020-01-10 09:16:28 UTC","updated_at":"2020-01-10 - 09:16:28 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product 3\"","sort":{"by":"name","order":"asc"},"results":[]} ' headers: @@ -251,28 +204,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:45 GMT - ETag: - - W/"f084c84025f9bfc1a799e7e4c2f9c853-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -285,22 +230,16 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 80174183-d3e2-4096-bdaa-0504d997e192 - X-Runtime: - - '0.015339' X-XSS-Protection: - 1; mode=block content-length: - - '556' + - '154' status: code: 200 message: OK - request: - body: '{"organization_id": 6, "description": "A happy little test product", "sync_plan_id": - 2, "name": "Test Product 3"}' + body: '{"organization_id": 3, "description": "A happy little test product", "sync_plan_id": + 1, "name": "Test Product 3"}' headers: Accept: - application/json;version=2 @@ -312,19 +251,17 @@ interactions: - '113' Content-Type: - application/json - Cookie: - - _session_id=17d4b075b8125e0c0ad2804390c96b16 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://127.0.0.1:4433/katello/api/products + uri: https://foreman.example.org/katello/api/products response: body: - string: ' {"redhat":false,"id":11,"cp_id":"251389715576","name":"Test Product - 3","label":"Test_Product_3","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test - Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test - Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0,"created_at":"2020-01-10 - 09:16:45 UTC","updated_at":"2020-01-10 09:16:45 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":4,"cp_id":"665743430616","name":"Test + Product 3","label":"Test_Product_3","description":"A happy little test product","provider_id":3,"sync_plan_id":1,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test + Organization","label":"Test_Organization","id":3},"sync_plan":{"id":1,"name":"Test + Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0,"created_at":"2020-09-04 + 12:59:38 UTC","updated_at":"2020-09-04 12:59:38 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} ' headers: @@ -334,34 +271,24 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:16:45 GMT - ETag: - - W/"4d51984261966653cc8a91bb17e1a867-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 6; Test Organization + - 3; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding + Transfer-Encoding: + - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -370,17 +297,9 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 81dc92be-975b-49f5-8769-643ca197c613 - X-Runtime: - - '0.861254' X-XSS-Protection: - 1; mode=block - content-length: - - '1183' status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/repository-0.yml b/tests/test_playbooks/fixtures/repository-0.yml index 9e93a061..4d2b32f0 100644 --- a/tests/test_playbooks/fixtures/repository-0.yml +++ b/tests/test_playbooks/fixtures/repository-0.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:51 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=575a0af74a51a078c5900d91827f0907; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1ec289a5-d847-45b5-a33e-c01877025502 - X-Runtime: - - '0.102456' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=575a0af74a51a078c5900d91827f0907 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:52 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4b4bcfd0-a9ec-4ba9-906b-a62ea260c8ed - X-Runtime: - - '0.014028' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=575a0af74a51a078c5900d91827f0907 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":0}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:52 GMT - ETag: - - W/"f978a8165d9ef46cb65ef07d68882964-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +170,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b060f63e-9583-4487-9956-cfb80869b6ff - X-Runtime: - - '0.032080' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '612' status: code: 200 message: OK @@ -231,12 +186,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=575a0af74a51a078c5900d91827f0907 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -250,28 +203,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:52 GMT - ETag: - - W/"ff28926aefcef10f09b190a81070f063-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -284,12 +229,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7cc941b5-70fe-4b62-8ed0-11677c6efb7a - X-Runtime: - - '0.017688' X-XSS-Protection: - 1; mode=block content-length: @@ -299,7 +238,7 @@ interactions: message: OK - request: body: '{"name": "Test Repository", "label": "just_a_test_repo", "product_id": - 12, "content_type": "yum", "url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/", + 5, "content_type": "yum", "url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/", "mirror_on_sync": false}' headers: Accept: @@ -309,23 +248,22 @@ interactions: Connection: - keep-alive Content-Length: - - '189' + - '188' Content-Type: - application/json - Cookie: - - _session_id=575a0af74a51a078c5900d91827f0907 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://127.0.0.1:4433/katello/api/repositories + uri: https://foreman.example.org/katello/api/repositories response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:52 UTC","updated_at":"2020-01-10 09:23:53 UTC","backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:22 UTC","updated_at":"2020-09-04 13:02:23 UTC","backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} ' headers: @@ -335,14 +273,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:52 GMT - ETag: - - W/"f5eae77e78a846cb270301180124e218-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -350,19 +284,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding + Transfer-Encoding: + - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -371,17 +299,9 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 52d7b711-3cf6-4080-9e30-f07a7a542b0a - X-Runtime: - - '0.622359' X-XSS-Protection: - 1; mode=block - content-length: - - '2271' status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/repository-1.yml b/tests/test_playbooks/fixtures/repository-1.yml index 123e0325..e2e15c97 100644 --- a/tests/test_playbooks/fixtures/repository-1.yml +++ b/tests/test_playbooks/fixtures/repository-1.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:53 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=fa575f14146450f0525a7e5461d8c6be; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3b21c63d-5b6b-4875-9be1-bbc49b6bfefa - X-Runtime: - - '0.072042' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa575f14146450f0525a7e5461d8c6be User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:53 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9245b404-1974-470e-8ef0-23898dbfd57c - X-Runtime: - - '0.014892' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa575f14146450f0525a7e5461d8c6be User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:23 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:53 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 529eb808-2197-4bf0-a63a-e32389acfe43 - X-Runtime: - - '0.034849' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa575f14146450f0525a7e5461d8c6be User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:53 GMT - ETag: - - W/"08045ae776ef54cff3ab1737e1cf5c97-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b0624915-4364-45ab-91eb-a39507f044f6 - X-Runtime: - - '0.039697' X-XSS-Protection: - 1; mode=block content-length: - - '1239' + - '1371' status: code: 200 message: OK @@ -309,20 +250,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa575f14146450f0525a7e5461d8c6be User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/10 + uri: https://foreman.example.org/katello/api/repositories/2?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:52 UTC","updated_at":"2020-01-10 09:23:53 UTC","backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:22 UTC","updated_at":"2020-09-04 13:02:23 UTC","backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -332,28 +272,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:53 GMT - ETag: - - W/"e8560b31f2e252797bafa09f2a93ba7d-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a32895da-43ec-4a2c-b940-34cc548b2205 - X-Runtime: - - '0.034620' X-XSS-Protection: - 1; mode=block content-length: - - '2240' + - '2452' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-10.yml b/tests/test_playbooks/fixtures/repository-10.yml index fb8b10f0..a093cc4d 100644 --- a/tests/test_playbooks/fixtures/repository-10.yml +++ b/tests/test_playbooks/fixtures/repository-10.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:06 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=c408a843cb14386ba29ff543943bce83; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - fa490407-8abe-4827-8210-efd49491aedf - X-Runtime: - - '0.070956' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c408a843cb14386ba29ff543943bce83 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:07 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e91ef577-defb-491f-9ad3-0f60af12384f - X-Runtime: - - '0.013529' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c408a843cb14386ba29ff543943bce83 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:40 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:07 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5301995d-04e2-4bd9-b177-f4d58829c1d0 - X-Runtime: - - '0.032466' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c408a843cb14386ba29ff543943bce83 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository+2%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"5f52a4c3-f346-472e-a483-a9ed4342098c","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":11,"name":"Test - Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648243023","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"bc2a023f-9df2-4512-a373-bc84e9b032aa","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":3,"name":"Test + Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224556557","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:07 GMT - ETag: - - W/"224aafcf5d7fa5a75cf4d88d218973ad-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - fdeca9f6-f718-4ab4-9625-4791e1f9cb3d - X-Runtime: - - '0.042574' X-XSS-Protection: - 1; mode=block content-length: - - '1247' + - '1379' status: code: 200 message: OK @@ -309,22 +250,21 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c408a843cb14386ba29ff543943bce83 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/11 + uri: https://foreman.example.org/katello/api/repositories/3?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:02 UTC","updated_at":"2020-01-10 09:24:05 UTC","backend_identifier":"5f52a4c3-f346-472e-a483-a9ed4342098c","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":11,"name":"Test - Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648243023","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":12,"ssl_ca_cert_id":13,"ssl_client_cert_id":13,"ssl_client_key_id":13,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":{"id":12,"name":"Test - GPG key"},"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":13,"name":"Test - SSL Cert"},"ssl_client_cert":{"id":13,"name":"Test SSL Cert"},"ssl_client_key":{"id":13,"name":"Test + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:35 UTC","updated_at":"2020-09-04 13:02:39 UTC","backend_identifier":"bc2a023f-9df2-4512-a373-bc84e9b032aa","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":3,"name":"Test + Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224556557","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":3,"ssl_ca_cert_id":4,"ssl_client_cert_id":4,"ssl_client_key_id":4,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":3,"name":"Test + GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":4,"name":"Test + SSL Cert"},"ssl_client_cert":{"id":4,"name":"Test SSL Cert"},"ssl_client_key":{"id":4,"name":"Test SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' @@ -335,28 +275,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:07 GMT - ETag: - - W/"8a5aa7b168599d9a255f12a469355a73-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -369,16 +301,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7d92ce8c-5215-4612-9ac2-c4cac81b3fc0 - X-Runtime: - - '0.037099' X-XSS-Protection: - 1; mode=block content-length: - - '2291' + - '2495' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-11.yml b/tests/test_playbooks/fixtures/repository-11.yml index f688f8ef..24698cbf 100644 --- a/tests/test_playbooks/fixtures/repository-11.yml +++ b/tests/test_playbooks/fixtures/repository-11.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:07 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=3fcbe888afa6d4082b62b478b9abc3d5; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cf48559e-42a3-4735-8973-38e6fe24a799 - X-Runtime: - - '0.074271' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=3fcbe888afa6d4082b62b478b9abc3d5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:08 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b77e955f-5952-4e3c-9165-68e677c4598f - X-Runtime: - - '0.014548' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=3fcbe888afa6d4082b62b478b9abc3d5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:40 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:08 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f42cbb26-7e62-4eec-b08f-6a32208e89de - X-Runtime: - - '0.034012' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=3fcbe888afa6d4082b62b478b9abc3d5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository+2%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"5f52a4c3-f346-472e-a483-a9ed4342098c","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":11,"name":"Test - Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648243023","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"bc2a023f-9df2-4512-a373-bc84e9b032aa","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":3,"name":"Test + Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224556557","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:08 GMT - ETag: - - W/"224aafcf5d7fa5a75cf4d88d218973ad-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3f8aa455-c140-44e3-b6f1-a4a54e17761d - X-Runtime: - - '0.047057' X-XSS-Protection: - 1; mode=block content-length: - - '1247' + - '1379' status: code: 200 message: OK @@ -311,12 +252,10 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=3fcbe888afa6d4082b62b478b9abc3d5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://127.0.0.1:4433/katello/api/repositories/11 + uri: https://foreman.example.org/katello/api/repositories/3 response: body: string: ' {} @@ -327,18 +266,12 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '5' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:08 GMT - ETag: - - W/"a3a266c31b4c8f6ee28635870aaeb2b1" Foreman_api_version: - '2' Foreman_current_location: @@ -346,17 +279,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -365,14 +294,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 77e05cef-f0c8-44a4-b0d5-c43ab8fe5739 - X-Runtime: - - '0.867511' X-XSS-Protection: - 1; mode=block + content-length: + - '5' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-12.yml b/tests/test_playbooks/fixtures/repository-12.yml index 15d57c04..d92d0477 100644 --- a/tests/test_playbooks/fixtures/repository-12.yml +++ b/tests/test_playbooks/fixtures/repository-12.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:09 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=a45eafd3570b8a371d27929f4f6e7819; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - df231680-b46f-4504-aa2d-3cb709e7f30c - X-Runtime: - - '0.076990' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a45eafd3570b8a371d27929f4f6e7819 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:10 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cf49f81f-fa09-44b8-b05b-a24ac453fbbb - X-Runtime: - - '0.025691' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a45eafd3570b8a371d27929f4f6e7819 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":0}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:10 GMT - ETag: - - W/"f978a8165d9ef46cb65ef07d68882964-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +170,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 16762a57-3f8f-49b0-a739-fac0cecae5d2 - X-Runtime: - - '0.032627' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '612' status: code: 200 message: OK @@ -231,12 +186,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a45eafd3570b8a371d27929f4f6e7819 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository+2%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -250,28 +203,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:10 GMT - ETag: - - W/"ad798adce07c02028f367787d2116ef0-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -284,12 +229,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1ddb48a2-f4bb-4c5d-afeb-566bbed66aff - X-Runtime: - - '0.017729' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/repository-13.yml b/tests/test_playbooks/fixtures/repository-13.yml index 4e141a77..2da49689 100644 --- a/tests/test_playbooks/fixtures/repository-13.yml +++ b/tests/test_playbooks/fixtures/repository-13.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:10 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=303769f8878146bd64fc258d57cff9b8; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3ca0a5f3-b583-4eb0-a6ff-6f19213cf74b - X-Runtime: - - '0.074703' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=303769f8878146bd64fc258d57cff9b8 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:10 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cb664ef4-851f-425b-9076-e54c1bce971a - X-Runtime: - - '0.014330' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=303769f8878146bd64fc258d57cff9b8 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":0}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:10 GMT - ETag: - - W/"f978a8165d9ef46cb65ef07d68882964-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +170,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e0bd3964-b92c-4026-89e3-515752b59a7f - X-Runtime: - - '0.032572' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '612' status: code: 200 message: OK @@ -231,12 +186,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=303769f8878146bd64fc258d57cff9b8 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -250,28 +203,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:10 GMT - ETag: - - W/"548570f478cd13da886941096397194f-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -284,12 +229,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c8e88728-e2d1-4d25-b5e5-60ece8c9b749 - X-Runtime: - - '0.018316' X-XSS-Protection: - 1; mode=block content-length: @@ -299,7 +238,7 @@ interactions: message: OK - request: body: '{"name": "Test Debian Repository", "label": "just_a_test_repo3", "product_id": - 12, "content_type": "deb", "url": "https://ftp.debian.org", "mirror_on_sync": + 5, "content_type": "deb", "url": "https://ftp.debian.org", "mirror_on_sync": true, "deb_releases": "buster", "deb_architectures": "i386"}' headers: Accept: @@ -309,23 +248,22 @@ interactions: Connection: - keep-alive Content-Length: - - '217' + - '216' Content-Type: - application/json - Cookie: - - _session_id=303769f8878146bd64fc258d57cff9b8 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://127.0.0.1:4433/katello/api/repositories + uri: https://foreman.example.org/katello/api/repositories response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:10 UTC","updated_at":"2020-01-10 09:24:11 UTC","backend_identifier":"a2d81de6-49aa-41c4-9eba-4944201b3fa6","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","id":12,"name":"Test - Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1578648250869","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":"buster","deb_components":null,"deb_architectures":"i386","http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:45 UTC","updated_at":"2020-09-04 13:02:47 UTC","backend_identifier":"780ee2d2-bb5e-4edd-bbee-105d2b6762ab","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","id":4,"name":"Test + Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1599224567099","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":"buster","deb_components":null,"deb_architectures":"i386","http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} ' headers: @@ -335,14 +273,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:10 GMT - ETag: - - W/"2cc8a3e679268dc570c47b9508335a87-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -350,19 +284,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding + Transfer-Encoding: + - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -371,17 +299,9 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d8556196-68cd-44ba-9dfe-928726d64f2a - X-Runtime: - - '0.625858' X-XSS-Protection: - 1; mode=block - content-length: - - '2244' status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/repository-14.yml b/tests/test_playbooks/fixtures/repository-14.yml index de1a7dfd..c5e228b2 100644 --- a/tests/test_playbooks/fixtures/repository-14.yml +++ b/tests/test_playbooks/fixtures/repository-14.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:11 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=901917669ad003372dbebc36b3a4349e; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7a5819c4-9be5-4ad4-97a5-6912aba571cf - X-Runtime: - - '0.106610' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=901917669ad003372dbebc36b3a4349e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:12 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7640a0af-9fcc-475b-9573-b85d96fea70a - X-Runtime: - - '0.014934' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=901917669ad003372dbebc36b3a4349e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:45 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:12 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3d2a9893-0ed3-41f4-b92c-809736895d91 - X-Runtime: - - '0.038561' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=901917669ad003372dbebc36b3a4349e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a2d81de6-49aa-41c4-9eba-4944201b3fa6","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","library_instance_id":null,"id":12,"name":"Test - Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1578648250869","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"780ee2d2-bb5e-4edd-bbee-105d2b6762ab","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","library_instance_id":null,"id":4,"name":"Test + Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1599224567099","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:12 GMT - ETag: - - W/"d5ff4e2a2886241f15d8b3e94ae9ab40-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - db1801a8-9447-472e-b36e-1e5c7c898fea - X-Runtime: - - '0.040550' X-XSS-Protection: - 1; mode=block content-length: - - '1221' + - '1353' status: code: 200 message: OK @@ -309,20 +250,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=901917669ad003372dbebc36b3a4349e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/12 + uri: https://foreman.example.org/katello/api/repositories/4?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:10 UTC","updated_at":"2020-01-10 09:24:11 UTC","backend_identifier":"a2d81de6-49aa-41c4-9eba-4944201b3fa6","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","id":12,"name":"Test - Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1578648250869","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":"buster","deb_components":null,"deb_architectures":"i386","http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:45 UTC","updated_at":"2020-09-04 13:02:47 UTC","backend_identifier":"780ee2d2-bb5e-4edd-bbee-105d2b6762ab","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","id":4,"name":"Test + Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1599224567099","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":"buster","deb_components":null,"deb_architectures":"i386","http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -332,28 +272,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:12 GMT - ETag: - - W/"86932a1b3532889f4fc5e63d32a47075-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6a77f942-903c-465b-affc-d095356c1ae8 - X-Runtime: - - '0.033340' X-XSS-Protection: - 1; mode=block content-length: - - '2213' + - '2425' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-15.yml b/tests/test_playbooks/fixtures/repository-15.yml index e84cdfaa..c7603b2c 100644 --- a/tests/test_playbooks/fixtures/repository-15.yml +++ b/tests/test_playbooks/fixtures/repository-15.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:13 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=6f3c2bdecb2a86d318ff7e8730384adc; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6cff9bcd-ca57-4cf4-bfb1-4ace7ad3b476 - X-Runtime: - - '0.071798' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6f3c2bdecb2a86d318ff7e8730384adc User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:13 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b8d8fe8f-a585-45e4-b1af-a598864ee205 - X-Runtime: - - '0.015381' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6f3c2bdecb2a86d318ff7e8730384adc User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:45 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:13 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4dd33ba3-5af0-49bb-aef5-20616596207f - X-Runtime: - - '0.034198' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6f3c2bdecb2a86d318ff7e8730384adc User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a2d81de6-49aa-41c4-9eba-4944201b3fa6","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","library_instance_id":null,"id":12,"name":"Test - Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1578648250869","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"780ee2d2-bb5e-4edd-bbee-105d2b6762ab","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","library_instance_id":null,"id":4,"name":"Test + Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1599224567099","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:13 GMT - ETag: - - W/"d5ff4e2a2886241f15d8b3e94ae9ab40-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1b90488a-5684-4067-886d-5752ec6e2eab - X-Runtime: - - '0.041015' X-XSS-Protection: - 1; mode=block content-length: - - '1221' + - '1353' status: code: 200 message: OK @@ -309,20 +250,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6f3c2bdecb2a86d318ff7e8730384adc User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/12 + uri: https://foreman.example.org/katello/api/repositories/4?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:10 UTC","updated_at":"2020-01-10 09:24:11 UTC","backend_identifier":"a2d81de6-49aa-41c4-9eba-4944201b3fa6","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","id":12,"name":"Test - Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1578648250869","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":"buster","deb_components":null,"deb_architectures":"i386","http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:45 UTC","updated_at":"2020-09-04 13:02:47 UTC","backend_identifier":"780ee2d2-bb5e-4edd-bbee-105d2b6762ab","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","id":4,"name":"Test + Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1599224567099","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":"buster","deb_components":null,"deb_architectures":"i386","http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -332,28 +272,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:13 GMT - ETag: - - W/"86932a1b3532889f4fc5e63d32a47075-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 41b65702-492e-4c1b-8f92-37fcad73d327 - X-Runtime: - - '0.036864' X-XSS-Protection: - 1; mode=block content-length: - - '2213' + - '2425' status: code: 200 message: OK @@ -392,20 +318,19 @@ interactions: - '30' Content-Type: - application/json - Cookie: - - _session_id=6f3c2bdecb2a86d318ff7e8730384adc User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://127.0.0.1:4433/katello/api/repositories/12 + uri: https://foreman.example.org/katello/api/repositories/4 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:10 UTC","updated_at":"2020-01-10 09:24:13 UTC","backend_identifier":"a2d81de6-49aa-41c4-9eba-4944201b3fa6","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","id":12,"name":"Test - Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1578648250869","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":"buster","deb_components":null,"deb_architectures":"amd64","http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:45 UTC","updated_at":"2020-09-04 13:02:49 UTC","backend_identifier":"780ee2d2-bb5e-4edd-bbee-105d2b6762ab","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","id":4,"name":"Test + Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1599224567099","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":"buster","deb_components":null,"deb_architectures":"amd64","http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -415,14 +340,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:13 GMT - ETag: - - W/"f25375717c45ffd0f68ba3411bfa167d-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -430,15 +351,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9995 - Server: - - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -451,16 +366,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b8e1a192-f549-4f6a-8339-aa502008f3a6 - X-Runtime: - - '1.019497' X-XSS-Protection: - 1; mode=block content-length: - - '2214' + - '2426' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-16.yml b/tests/test_playbooks/fixtures/repository-16.yml index f1528900..aaf4add8 100644 --- a/tests/test_playbooks/fixtures/repository-16.yml +++ b/tests/test_playbooks/fixtures/repository-16.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:14 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=f29d3939a9183e79f63c7f5ae3cd1661; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0a4bbfbc-c70e-48c3-b826-f1e8a2451e6a - X-Runtime: - - '0.070233' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f29d3939a9183e79f63c7f5ae3cd1661 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:14 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f40de054-0ee9-4a8f-8407-47e94bd526c3 - X-Runtime: - - '0.014160' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f29d3939a9183e79f63c7f5ae3cd1661 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:45 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:14 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d5f891a5-1b7a-49e1-8afc-6a7dc89af1ca - X-Runtime: - - '0.032026' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f29d3939a9183e79f63c7f5ae3cd1661 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Debian+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a2d81de6-49aa-41c4-9eba-4944201b3fa6","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","library_instance_id":null,"id":12,"name":"Test - Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1578648250869","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Debian Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"780ee2d2-bb5e-4edd-bbee-105d2b6762ab","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo3","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/deb/Test_Organization/Library/custom/Test_Product/just_a_test_repo3/","library_instance_id":null,"id":4,"name":"Test + Debian Repository","label":"just_a_test_repo3","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"deb","url":"https://ftp.debian.org","arch":"noarch","content_id":"1599224567099","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo3","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:14 GMT - ETag: - - W/"d5ff4e2a2886241f15d8b3e94ae9ab40-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 73187721-fa8d-461c-b1b9-db5c0fc53999 - X-Runtime: - - '0.041321' X-XSS-Protection: - 1; mode=block content-length: - - '1221' + - '1353' status: code: 200 message: OK @@ -311,12 +252,10 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=f29d3939a9183e79f63c7f5ae3cd1661 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://127.0.0.1:4433/katello/api/repositories/12 + uri: https://foreman.example.org/katello/api/repositories/4 response: body: string: ' {} @@ -327,18 +266,12 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '5' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:14 GMT - ETag: - - W/"a3a266c31b4c8f6ee28635870aaeb2b1" Foreman_api_version: - '2' Foreman_current_location: @@ -346,17 +279,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -365,14 +294,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - acfe3638-cef9-4463-97d2-bd81c5800ef3 - X-Runtime: - - '1.688711' X-XSS-Protection: - 1; mode=block + content-length: + - '5' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-17.yml b/tests/test_playbooks/fixtures/repository-17.yml index a21a6b1a..7274c770 100644 --- a/tests/test_playbooks/fixtures/repository-17.yml +++ b/tests/test_playbooks/fixtures/repository-17.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:16 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=8828f2b78e21a7a05c2838fd159146b2; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ba1adf60-e4e7-4d9f-bae0-b300ce732240 - X-Runtime: - - '0.073262' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8828f2b78e21a7a05c2838fd159146b2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:16 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b98004c4-1aa8-432a-8dfe-9658bd9b2ba2 - X-Runtime: - - '0.016240' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8828f2b78e21a7a05c2838fd159146b2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":0}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:16 GMT - ETag: - - W/"f978a8165d9ef46cb65ef07d68882964-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +170,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c2042991-d979-4f1a-a1cf-ff2dad4b7009 - X-Runtime: - - '0.037751' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '612' status: code: 200 message: OK @@ -231,12 +186,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8828f2b78e21a7a05c2838fd159146b2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Docker+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Docker+Repository%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -250,28 +203,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:17 GMT - ETag: - - W/"514f58a38daa2eea21113a654c3e5275-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -284,12 +229,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2ee381dd-726b-4130-915c-c7a128eec809 - X-Runtime: - - '0.019062' X-XSS-Protection: - 1; mode=block content-length: @@ -299,7 +238,7 @@ interactions: message: OK - request: body: '{"name": "Test Docker Repository", "label": "just_a_test_repo", "product_id": - 12, "content_type": "docker", "url": "https://docker.io", "docker_upstream_name": + 5, "content_type": "docker", "url": "https://docker.io", "docker_upstream_name": "busybox", "docker_tags_whitelist": ["latest"], "mirror_on_sync": true}' headers: Accept: @@ -309,23 +248,22 @@ interactions: Connection: - keep-alive Content-Length: - - '231' + - '230' Content-Type: - application/json - Cookie: - - _session_id=8828f2b78e21a7a05c2838fd159146b2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://127.0.0.1:4433/katello/api/repositories + uri: https://foreman.example.org/katello/api/repositories response: body: - string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:17 UTC","updated_at":"2020-01-10 09:24:17 UTC","backend_identifier":"8d94a673-7a2b-4f60-a87f-09b53120c869","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-14.tux17.example.com:5000/test_organization-test_product-just_a_test_repo","id":13,"name":"Test - Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1578648257352","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} + string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:54 UTC","updated_at":"2020-09-04 13:02:55 UTC","backend_identifier":"e9b73a70-90d7-4074-ae0a-be6ef18f6f40","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-16.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","id":5,"name":"Test + Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1599224575351","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} ' headers: @@ -335,14 +273,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:17 GMT - ETag: - - W/"9861771b91b9a000143c7ca11edd6e92-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -350,19 +284,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding + Transfer-Encoding: + - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -371,17 +299,9 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9130122c-8e9c-4196-8e53-d49d97614a41 - X-Runtime: - - '0.630707' X-XSS-Protection: - 1; mode=block - content-length: - - '2246' status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/repository-18.yml b/tests/test_playbooks/fixtures/repository-18.yml index cc419c02..365aeaee 100644 --- a/tests/test_playbooks/fixtures/repository-18.yml +++ b/tests/test_playbooks/fixtures/repository-18.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=c9d93c16e37d1446372020764d56643b; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 61651134-9f57-4953-af22-b78f3cfecfb1 - X-Runtime: - - '0.069609' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c9d93c16e37d1446372020764d56643b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 12005d3f-dd90-4583-b33f-75e0599c1885 - X-Runtime: - - '0.014199' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c9d93c16e37d1446372020764d56643b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:55 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e5fa5d0c-1060-4f9d-ab83-54956cc80277 - X-Runtime: - - '0.033958' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c9d93c16e37d1446372020764d56643b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Docker+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Docker+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"8d94a673-7a2b-4f60-a87f-09b53120c869","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-14.tux17.example.com:5000/test_organization-test_product-just_a_test_repo","library_instance_id":null,"id":13,"name":"Test - Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1578648257352","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"e9b73a70-90d7-4074-ae0a-be6ef18f6f40","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-16.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","library_instance_id":null,"id":5,"name":"Test + Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1599224575351","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"dcaca3bf7faae7deda1c8d15c8274093-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1f839cc4-257a-4a79-b9a0-ba8d07885e12 - X-Runtime: - - '0.049848' X-XSS-Protection: - 1; mode=block content-length: - - '1218' + - '1350' status: code: 200 message: OK @@ -309,20 +250,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c9d93c16e37d1446372020764d56643b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/13 + uri: https://foreman.example.org/katello/api/repositories/5?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:17 UTC","updated_at":"2020-01-10 09:24:17 UTC","backend_identifier":"8d94a673-7a2b-4f60-a87f-09b53120c869","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-14.tux17.example.com:5000/test_organization-test_product-just_a_test_repo","id":13,"name":"Test - Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1578648257352","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:54 UTC","updated_at":"2020-09-04 13:02:55 UTC","backend_identifier":"e9b73a70-90d7-4074-ae0a-be6ef18f6f40","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-16.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","id":5,"name":"Test + Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1599224575351","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -332,28 +272,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"ea8c4673c6ca4f816510c3a73a026c83-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - fb86ac8e-aec7-4cd9-b31b-3559335fef33 - X-Runtime: - - '0.038570' X-XSS-Protection: - 1; mode=block content-length: - - '2215' + - '2427' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-19.yml b/tests/test_playbooks/fixtures/repository-19.yml index aff429f8..308c4a12 100644 --- a/tests/test_playbooks/fixtures/repository-19.yml +++ b/tests/test_playbooks/fixtures/repository-19.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=c00aafa63ce332db89cf1a204866259c; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c5425a09-1730-491b-bcff-b0db070c27aa - X-Runtime: - - '0.070372' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c00aafa63ce332db89cf1a204866259c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bd6c4cf0-980f-4018-8c79-2054c19e6e7a - X-Runtime: - - '0.015841' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c00aafa63ce332db89cf1a204866259c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:55 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2e5a2919-0bec-4926-bda0-5a32e007e4b5 - X-Runtime: - - '0.035679' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c00aafa63ce332db89cf1a204866259c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Docker+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Docker+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"8d94a673-7a2b-4f60-a87f-09b53120c869","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-14.tux17.example.com:5000/test_organization-test_product-just_a_test_repo","library_instance_id":null,"id":13,"name":"Test - Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1578648257352","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"e9b73a70-90d7-4074-ae0a-be6ef18f6f40","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-16.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","library_instance_id":null,"id":5,"name":"Test + Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1599224575351","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"dcaca3bf7faae7deda1c8d15c8274093-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ca46541d-42bf-4991-b7a1-4d556a841345 - X-Runtime: - - '0.042222' X-XSS-Protection: - 1; mode=block content-length: - - '1218' + - '1350' status: code: 200 message: OK @@ -309,20 +250,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c00aafa63ce332db89cf1a204866259c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/13 + uri: https://foreman.example.org/katello/api/repositories/5?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:17 UTC","updated_at":"2020-01-10 09:24:17 UTC","backend_identifier":"8d94a673-7a2b-4f60-a87f-09b53120c869","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-14.tux17.example.com:5000/test_organization-test_product-just_a_test_repo","id":13,"name":"Test - Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1578648257352","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:54 UTC","updated_at":"2020-09-04 13:02:55 UTC","backend_identifier":"e9b73a70-90d7-4074-ae0a-be6ef18f6f40","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-16.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","id":5,"name":"Test + Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1599224575351","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -332,28 +272,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"ea8c4673c6ca4f816510c3a73a026c83-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2a65ac02-367b-413d-b17f-7226f6b966a7 - X-Runtime: - - '0.036260' X-XSS-Protection: - 1; mode=block content-length: - - '2215' + - '2427' status: code: 200 message: OK @@ -392,20 +318,19 @@ interactions: - '70' Content-Type: - application/json - Cookie: - - _session_id=c00aafa63ce332db89cf1a204866259c User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://127.0.0.1:4433/katello/api/repositories/13 + uri: https://foreman.example.org/katello/api/repositories/5 response: body: - string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:17 UTC","updated_at":"2020-01-10 09:24:18 UTC","backend_identifier":"8d94a673-7a2b-4f60-a87f-09b53120c869","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-14.tux17.example.com:5000/test_organization-test_product-just_a_test_repo","id":13,"name":"Test - Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1578648257352","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":"dockeruser","ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":true,"upstream_auth_exists":true} + string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:54 UTC","updated_at":"2020-09-04 13:02:57 UTC","backend_identifier":"e9b73a70-90d7-4074-ae0a-be6ef18f6f40","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-16.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","id":5,"name":"Test + Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1599224575351","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":"dockeruser","ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":true,"upstream_auth_exists":true} ' headers: @@ -415,14 +340,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:18 GMT - ETag: - - W/"1c8145a737f2d45bf3e3ee7b7805a9bc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -430,15 +351,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9995 - Server: - - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -451,16 +366,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3b6f2ee4-3ba7-485f-8471-12ec05691dc7 - X-Runtime: - - '1.755827' X-XSS-Protection: - 1; mode=block content-length: - - '2221' + - '2433' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-2.yml b/tests/test_playbooks/fixtures/repository-2.yml index c751c161..236e7dd4 100644 --- a/tests/test_playbooks/fixtures/repository-2.yml +++ b/tests/test_playbooks/fixtures/repository-2.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:54 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=e507131304f4582397d351c1dfe65868; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9aaf3f5b-6576-430d-9cdc-6a584dda4ad2 - X-Runtime: - - '0.068134' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e507131304f4582397d351c1dfe65868 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:54 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5a8655c0-ba01-44ef-8be3-74d85d7a842f - X-Runtime: - - '0.013661' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e507131304f4582397d351c1dfe65868 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:23 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:54 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0704279b-1a85-4767-993d-14d7c6a55cda - X-Runtime: - - '0.033189' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e507131304f4582397d351c1dfe65868 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:54 GMT - ETag: - - W/"08045ae776ef54cff3ab1737e1cf5c97-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c825937c-77f5-4c89-b20f-7f7fefba9d04 - X-Runtime: - - '0.039703' X-XSS-Protection: - 1; mode=block content-length: - - '1239' + - '1371' status: code: 200 message: OK @@ -309,20 +250,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e507131304f4582397d351c1dfe65868 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/10 + uri: https://foreman.example.org/katello/api/repositories/2?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:52 UTC","updated_at":"2020-01-10 09:23:53 UTC","backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:22 UTC","updated_at":"2020-09-04 13:02:23 UTC","backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -332,28 +272,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:54 GMT - ETag: - - W/"e8560b31f2e252797bafa09f2a93ba7d-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 331f339a-5e2b-4950-8463-0ef1ece174d8 - X-Runtime: - - '0.032798' X-XSS-Protection: - 1; mode=block content-length: - - '2240' + - '2452' status: code: 200 message: OK @@ -392,20 +318,19 @@ interactions: - '24' Content-Type: - application/json - Cookie: - - _session_id=e507131304f4582397d351c1dfe65868 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://127.0.0.1:4433/katello/api/repositories/10 + uri: https://foreman.example.org/katello/api/repositories/2 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:52 UTC","updated_at":"2020-01-10 09:23:54 UTC","backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:22 UTC","updated_at":"2020-09-04 13:02:25 UTC","backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -415,14 +340,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:54 GMT - ETag: - - W/"3b7abdf00acc8eae9dd0fbafc1cb6205-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -430,15 +351,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9995 - Server: - - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -451,16 +366,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3e7de4c4-eb58-44a2-851e-00f071b5eee9 - X-Runtime: - - '2.167390' X-XSS-Protection: - 1; mode=block content-length: - - '2239' + - '2451' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-20.yml b/tests/test_playbooks/fixtures/repository-20.yml index 5d1e3e40..9ba0fac8 100644 --- a/tests/test_playbooks/fixtures/repository-20.yml +++ b/tests/test_playbooks/fixtures/repository-20.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:20 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=6a59d0ff558887d48c0c7ed97e3af993; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 81903793-1c5d-4c8a-b6a3-75dd1028342a - X-Runtime: - - '0.072614' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6a59d0ff558887d48c0c7ed97e3af993 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:20 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 551b2672-db03-4df0-a8d9-8dec22672dd7 - X-Runtime: - - '0.014038' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6a59d0ff558887d48c0c7ed97e3af993 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:55 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:21 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 51029c24-5b38-483f-bae4-c42b60cd9f07 - X-Runtime: - - '0.032968' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6a59d0ff558887d48c0c7ed97e3af993 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Docker+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Docker+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"8d94a673-7a2b-4f60-a87f-09b53120c869","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-14.tux17.example.com:5000/test_organization-test_product-just_a_test_repo","library_instance_id":null,"id":13,"name":"Test - Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1578648257352","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"e9b73a70-90d7-4074-ae0a-be6ef18f6f40","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-16.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","library_instance_id":null,"id":5,"name":"Test + Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1599224575351","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:21 GMT - ETag: - - W/"dcaca3bf7faae7deda1c8d15c8274093-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e80aa8e8-b0fc-4292-88c3-265a3e708a32 - X-Runtime: - - '0.041777' X-XSS-Protection: - 1; mode=block content-length: - - '1218' + - '1350' status: code: 200 message: OK @@ -311,12 +252,10 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=6a59d0ff558887d48c0c7ed97e3af993 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://127.0.0.1:4433/katello/api/repositories/13 + uri: https://foreman.example.org/katello/api/repositories/5 response: body: string: ' {} @@ -327,18 +266,12 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '5' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:21 GMT - ETag: - - W/"a3a266c31b4c8f6ee28635870aaeb2b1" Foreman_api_version: - '2' Foreman_current_location: @@ -346,17 +279,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -365,14 +294,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ab0457ca-3e84-4278-bb0c-b07eaf671f48 - X-Runtime: - - '0.948361' X-XSS-Protection: - 1; mode=block + content-length: + - '5' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-3.yml b/tests/test_playbooks/fixtures/repository-3.yml index ef85f67b..700fe1ab 100644 --- a/tests/test_playbooks/fixtures/repository-3.yml +++ b/tests/test_playbooks/fixtures/repository-3.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:56 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=33dadba7b9e3e9740c36bbb4a6400e2f; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9dcc6652-b5ad-4e0f-be8e-cd08e10d902f - X-Runtime: - - '0.070214' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=33dadba7b9e3e9740c36bbb4a6400e2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:56 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 249e02c5-95e4-4de8-86d5-f1d0246ab9fb - X-Runtime: - - '0.013893' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=33dadba7b9e3e9740c36bbb4a6400e2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:26 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:56 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3007cd67-2384-496a-b059-98f6b357e345 - X-Runtime: - - '0.033648' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=33dadba7b9e3e9740c36bbb4a6400e2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:57 GMT - ETag: - - W/"08045ae776ef54cff3ab1737e1cf5c97-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a6eb52c3-ded2-4a78-b835-18c659fcabc7 - X-Runtime: - - '0.040398' X-XSS-Protection: - 1; mode=block content-length: - - '1239' + - '1371' status: code: 200 message: OK @@ -309,20 +250,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=33dadba7b9e3e9740c36bbb4a6400e2f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/10 + uri: https://foreman.example.org/katello/api/repositories/2?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:52 UTC","updated_at":"2020-01-10 09:23:54 UTC","backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:22 UTC","updated_at":"2020-09-04 13:02:25 UTC","backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -332,28 +272,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:57 GMT - ETag: - - W/"3b7abdf00acc8eae9dd0fbafc1cb6205-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7a4d5bc3-6830-4644-9414-433abef0e34b - X-Runtime: - - '0.034737' X-XSS-Protection: - 1; mode=block content-length: - - '2239' + - '2451' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-4.yml b/tests/test_playbooks/fixtures/repository-4.yml index bd70636b..677c2dd1 100644 --- a/tests/test_playbooks/fixtures/repository-4.yml +++ b/tests/test_playbooks/fixtures/repository-4.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:57 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=2c52e28d58d97dd313546a1a0e1af632; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e0b01fa1-ab14-431a-9530-07399e78eac7 - X-Runtime: - - '0.071649' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2c52e28d58d97dd313546a1a0e1af632 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:57 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 48ca5c01-de11-4b7c-a431-63ba7f013c14 - X-Runtime: - - '0.014428' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2c52e28d58d97dd313546a1a0e1af632 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:26 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:57 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2b1eeb7e-7767-432a-8476-6fa48ffbbce1 - X-Runtime: - - '0.032071' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2c52e28d58d97dd313546a1a0e1af632 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:57 GMT - ETag: - - W/"08045ae776ef54cff3ab1737e1cf5c97-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 97a58081-dbbf-44ec-ad67-4a5224e9910e - X-Runtime: - - '0.039399' X-XSS-Protection: - 1; mode=block content-length: - - '1239' + - '1371' status: code: 200 message: OK @@ -309,20 +250,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2c52e28d58d97dd313546a1a0e1af632 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/10 + uri: https://foreman.example.org/katello/api/repositories/2?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:52 UTC","updated_at":"2020-01-10 09:23:54 UTC","backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:22 UTC","updated_at":"2020-09-04 13:02:25 UTC","backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -332,28 +272,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:57 GMT - ETag: - - W/"3b7abdf00acc8eae9dd0fbafc1cb6205-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a84e94a3-5b90-4794-b719-6c7140246ecf - X-Runtime: - - '0.032899' X-XSS-Protection: - 1; mode=block content-length: - - '2239' + - '2451' status: code: 200 message: OK @@ -392,20 +318,19 @@ interactions: - '54' Content-Type: - application/json - Cookie: - - _session_id=2c52e28d58d97dd313546a1a0e1af632 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://127.0.0.1:4433/katello/api/repositories/10 + uri: https://foreman.example.org/katello/api/repositories/2 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:52 UTC","updated_at":"2020-01-10 09:23:57 UTC","backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:22 UTC","updated_at":"2020-09-04 13:02:29 UTC","backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' headers: @@ -415,14 +340,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:57 GMT - ETag: - - W/"a19199af99c713be01c9df03a6ce255d-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -430,15 +351,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9995 - Server: - - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -451,16 +366,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 72da9c8e-a05c-4d39-9a9a-b076f9b6ddda - X-Runtime: - - '1.294960' X-XSS-Protection: - 1; mode=block content-length: - - '2226' + - '2438' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-5.yml b/tests/test_playbooks/fixtures/repository-5.yml index ffd0fa7e..a8eca08e 100644 --- a/tests/test_playbooks/fixtures/repository-5.yml +++ b/tests/test_playbooks/fixtures/repository-5.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:59 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=cdce032c6f75b34fa75ac4a241bab23b; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0ac876c2-6fcc-40c8-b99b-a5ed7c88983c - X-Runtime: - - '0.071631' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cdce032c6f75b34fa75ac4a241bab23b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:59 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b885c96c-5856-482b-9ed5-2d79f528ebc9 - X-Runtime: - - '0.014860' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cdce032c6f75b34fa75ac4a241bab23b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:30 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:59 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7c6023c5-5347-4983-bc9f-a8969c9d65e9 - X-Runtime: - - '0.033623' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cdce032c6f75b34fa75ac4a241bab23b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"23fc7219-8164-46aa-a2c6-7dcb501bd618","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":10,"name":"Test - Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","content_id":"1578648232957","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"c9779fca-03d8-46c5-a1da-4eeb9b5b5266","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":2,"name":"Test + Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","content_id":"1599224542667","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:59 GMT - ETag: - - W/"4d3fb67e4b6bc23bbc1f8d84c608cbad-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d253167f-883e-448f-9d35-3953175dcbd3 - X-Runtime: - - '0.045389' X-XSS-Protection: - 1; mode=block content-length: - - '1226' + - '1358' status: code: 200 message: OK @@ -311,12 +252,10 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=cdce032c6f75b34fa75ac4a241bab23b User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://127.0.0.1:4433/katello/api/repositories/10 + uri: https://foreman.example.org/katello/api/repositories/2 response: body: string: ' {} @@ -327,18 +266,12 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '5' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:23:59 GMT - ETag: - - W/"a3a266c31b4c8f6ee28635870aaeb2b1" Foreman_api_version: - '2' Foreman_current_location: @@ -346,17 +279,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -365,14 +294,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 97a34578-f1e5-4e40-a855-1aadb15e8996 - X-Runtime: - - '2.112345' X-XSS-Protection: - 1; mode=block + content-length: + - '5' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-6.yml b/tests/test_playbooks/fixtures/repository-6.yml index 794f2cd9..bee8bbf6 100644 --- a/tests/test_playbooks/fixtures/repository-6.yml +++ b/tests/test_playbooks/fixtures/repository-6.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:01 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=f8dcd56b47fe607228fc22f7bd721946; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ebd39b98-9269-4b85-997a-e5e3701561ee - X-Runtime: - - '0.072140' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f8dcd56b47fe607228fc22f7bd721946 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 02a0c501-3665-461a-8446-b24a04a0b3cd - X-Runtime: - - '0.013841' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f8dcd56b47fe607228fc22f7bd721946 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":0}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"f978a8165d9ef46cb65ef07d68882964-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +170,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 955db324-6a20-419d-98a0-3992481fde30 - X-Runtime: - - '0.031644' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '612' status: code: 200 message: OK @@ -231,12 +186,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f8dcd56b47fe607228fc22f7bd721946 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -250,28 +203,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"ff28926aefcef10f09b190a81070f063-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -284,12 +229,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1ad07d5f-7e69-4693-a2a8-6d5d50e30e5b - X-Runtime: - - '0.018412' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/repository-7.yml b/tests/test_playbooks/fixtures/repository-7.yml index 0500c85d..2a3f1653 100644 --- a/tests/test_playbooks/fixtures/repository-7.yml +++ b/tests/test_playbooks/fixtures/repository-7.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=8e412daab8764b0a7a047a85f5e3088b; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 37f66e51-e969-4198-b3a6-e39d5579ec86 - X-Runtime: - - '0.078686' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8e412daab8764b0a7a047a85f5e3088b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f1af37ba-0ed2-4e0f-bae4-bef1ce879a15 - X-Runtime: - - '0.014950' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8e412daab8764b0a7a047a85f5e3088b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":0}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":0}]} ' headers: @@ -175,28 +144,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"f978a8165d9ef46cb65ef07d68882964-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +170,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9c069900-90fb-45dd-b618-89148b5ee2b3 - X-Runtime: - - '0.036966' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '612' status: code: 200 message: OK @@ -231,21 +186,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8e412daab8764b0a7a047a85f5e3088b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=7&search=name%3D%22Test+GPG+key%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=5&search=name%3D%22Test+GPG+key%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test GPG key\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test GPG key","content_type":"gpg_key","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":12,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:19:40 UTC","updated_at":"2020-01-10 09:19:40 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + PGP PUBLIC KEY BLOCK-----","id":3,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:19 UTC","updated_at":"2020-09-04 13:02:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -255,14 +208,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"d21a7e1546c2239be2138b1f5e90802c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +219,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d216dd10-361f-4104-9ef3-caf45633b154 - X-Runtime: - - '0.022854' X-XSS-Protection: - 1; mode=block content-length: - - '1681' + - '1680' status: code: 200 message: OK @@ -311,21 +250,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8e412daab8764b0a7a047a85f5e3088b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=7&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=5&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":13,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:50 UTC","updated_at":"2020-01-10 09:23:50 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + PGP PUBLIC KEY BLOCK-----","id":4,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:19 UTC","updated_at":"2020-09-04 13:02:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -335,14 +272,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"6f4f56c1eb3ba45c6422520920098c41-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -350,13 +283,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -369,16 +298,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0adc7450-1481-4b84-922d-c0bfb07dba42 - X-Runtime: - - '0.021213' X-XSS-Protection: - 1; mode=block content-length: - - '1680' + - '1679' status: code: 200 message: OK @@ -391,21 +314,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8e412daab8764b0a7a047a85f5e3088b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=7&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=5&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":13,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:50 UTC","updated_at":"2020-01-10 09:23:50 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + PGP PUBLIC KEY BLOCK-----","id":4,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:19 UTC","updated_at":"2020-09-04 13:02:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -415,14 +336,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"6f4f56c1eb3ba45c6422520920098c41-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -430,13 +347,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9995 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -449,16 +362,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 02ceaec6-875b-440b-956a-916dec1b4e01 - X-Runtime: - - '0.021678' X-XSS-Protection: - 1; mode=block content-length: - - '1680' + - '1679' status: code: 200 message: OK @@ -471,21 +378,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8e412daab8764b0a7a047a85f5e3088b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/content_credentials?organization_id=7&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/content_credentials?organization_id=5&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296 response: body: string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END - PGP PUBLIC KEY BLOCK-----","id":13,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:23:50 UTC","updated_at":"2020-01-10 09:23:50 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} + PGP PUBLIC KEY BLOCK-----","id":4,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:19 UTC","updated_at":"2020-09-04 13:02:19 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]} ' headers: @@ -495,14 +400,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"6f4f56c1eb3ba45c6422520920098c41-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -510,13 +411,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9994 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -529,16 +426,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d1f14883-9142-4b9e-8793-36e1a6790248 - X-Runtime: - - '0.023873' X-XSS-Protection: - 1; mode=block content-length: - - '1680' + - '1679' status: code: 200 message: OK @@ -551,12 +442,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=8e412daab8764b0a7a047a85f5e3088b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository+2%22&per_page=4294967296 response: body: string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test @@ -570,28 +459,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"ad798adce07c02028f367787d2116ef0-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9993 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -604,12 +485,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 11f00af9-9653-4b89-bf71-ea0ee45ad2e7 - X-Runtime: - - '0.019381' X-XSS-Protection: - 1; mode=block content-length: @@ -619,9 +494,9 @@ interactions: message: OK - request: body: '{"name": "Test Repository 2", "label": "just_a_test_repo2", "product_id": - 12, "content_type": "yum", "url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/", - "gpg_key_id": 12, "ssl_ca_cert_id": 13, "ssl_client_cert_id": 13, "ssl_client_key_id": - 13, "mirror_on_sync": false}' + 5, "content_type": "yum", "url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/", + "gpg_key_id": 3, "ssl_ca_cert_id": 4, "ssl_client_cert_id": 4, "ssl_client_key_id": + 4, "mirror_on_sync": false}' headers: Accept: - application/json;version=2 @@ -630,25 +505,24 @@ interactions: Connection: - keep-alive Content-Length: - - '283' + - '278' Content-Type: - application/json - Cookie: - - _session_id=8e412daab8764b0a7a047a85f5e3088b User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://127.0.0.1:4433/katello/api/repositories + uri: https://foreman.example.org/katello/api/repositories response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:02 UTC","updated_at":"2020-01-10 09:24:03 UTC","backend_identifier":"5f52a4c3-f346-472e-a483-a9ed4342098c","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":11,"name":"Test - Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648243023","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":12,"ssl_ca_cert_id":13,"ssl_client_cert_id":13,"ssl_client_key_id":13,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":{"id":12,"name":"Test - GPG key"},"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":13,"name":"Test - SSL Cert"},"ssl_client_cert":{"id":13,"name":"Test SSL Cert"},"ssl_client_key":{"id":13,"name":"Test + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:35 UTC","updated_at":"2020-09-04 13:02:37 UTC","backend_identifier":"bc2a023f-9df2-4512-a373-bc84e9b032aa","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":3,"name":"Test + Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224556557","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":3,"ssl_ca_cert_id":4,"ssl_client_cert_id":4,"ssl_client_key_id":4,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":3,"name":"Test + GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":4,"name":"Test + SSL Cert"},"ssl_client_cert":{"id":4,"name":"Test SSL Cert"},"ssl_client_key":{"id":4,"name":"Test SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]} ' @@ -659,14 +533,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:02 GMT - ETag: - - W/"7090f99224b9966661f165a20865cc54-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -674,19 +544,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9992 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding + Transfer-Encoding: + - chunked X-Content-Type-Options: - nosniff X-Download-Options: @@ -695,17 +559,9 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 702cc158-cc82-4ae6-90ab-fa19aa0ac09b - X-Runtime: - - '0.661604' X-XSS-Protection: - 1; mode=block - content-length: - - '2323' status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/repository-8.yml b/tests/test_playbooks/fixtures/repository-8.yml index cfd889f8..ecff7bcc 100644 --- a/tests/test_playbooks/fixtures/repository-8.yml +++ b/tests/test_playbooks/fixtures/repository-8.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:03 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=39fcecc48c89b21dab6cfc3336b2b885; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e9efb8b6-8b06-481d-8f8a-28bb8d6cd5b5 - X-Runtime: - - '0.099310' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=39fcecc48c89b21dab6cfc3336b2b885 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:04 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 92c611ab-eef6-464f-bc09-8e3e970126cc - X-Runtime: - - '0.015124' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=39fcecc48c89b21dab6cfc3336b2b885 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:37 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:04 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 06820601-baa4-451e-b9a5-c3faab4f2057 - X-Runtime: - - '0.039556' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=39fcecc48c89b21dab6cfc3336b2b885 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository+2%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"5f52a4c3-f346-472e-a483-a9ed4342098c","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":11,"name":"Test - Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648243023","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"bc2a023f-9df2-4512-a373-bc84e9b032aa","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":3,"name":"Test + Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224556557","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:04 GMT - ETag: - - W/"224aafcf5d7fa5a75cf4d88d218973ad-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7cbda076-9942-42c6-90f1-a827c9bbb7f3 - X-Runtime: - - '0.046614' X-XSS-Protection: - 1; mode=block content-length: - - '1247' + - '1379' status: code: 200 message: OK @@ -309,22 +250,21 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=39fcecc48c89b21dab6cfc3336b2b885 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/11 + uri: https://foreman.example.org/katello/api/repositories/3?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:02 UTC","updated_at":"2020-01-10 09:24:03 UTC","backend_identifier":"5f52a4c3-f346-472e-a483-a9ed4342098c","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":11,"name":"Test - Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648243023","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":12,"ssl_ca_cert_id":13,"ssl_client_cert_id":13,"ssl_client_key_id":13,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":{"id":12,"name":"Test - GPG key"},"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":13,"name":"Test - SSL Cert"},"ssl_client_cert":{"id":13,"name":"Test SSL Cert"},"ssl_client_key":{"id":13,"name":"Test + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:35 UTC","updated_at":"2020-09-04 13:02:37 UTC","backend_identifier":"bc2a023f-9df2-4512-a373-bc84e9b032aa","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":3,"name":"Test + Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224556557","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":3,"ssl_ca_cert_id":4,"ssl_client_cert_id":4,"ssl_client_key_id":4,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":3,"name":"Test + GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":4,"name":"Test + SSL Cert"},"ssl_client_cert":{"id":4,"name":"Test SSL Cert"},"ssl_client_key":{"id":4,"name":"Test SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' @@ -335,28 +275,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:04 GMT - ETag: - - W/"f3cd786982cbcc92a2d958fba599e5df-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -369,16 +301,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ba7f7434-bbb0-435d-8a2c-a2ed13dc5f33 - X-Runtime: - - '0.048236' X-XSS-Protection: - 1; mode=block content-length: - - '2292' + - '2496' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/repository-9.yml b/tests/test_playbooks/fixtures/repository-9.yml index fe2fa051..a2d9563c 100644 --- a/tests/test_playbooks/fixtures/repository-9.yml +++ b/tests/test_playbooks/fixtures/repository-9.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.24.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '63' Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:05 GMT - ETag: - - W/"53b0d6d0bf9fce118840f03bbd316797" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=10000 - Server: - - Apache - Set-Cookie: - - _session_id=771c220780cc654d20a4b7c543c7fa11; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3afd2d28-cf69-42aa-b5a0-689b3a53fe81 - X-Runtime: - - '0.069031' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=771c220780cc654d20a4b7c543c7fa11 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2020-01-10 - 09:19:36 UTC\",\"updated_at\":\"2020-01-10 09:19:36 UTC\",\"id\":7,\"name\":\"Test - Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:02:16 UTC\",\"updated_at\"\ + :\"2020-09-04 13:02:16 UTC\",\"id\":5,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +83,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:05 GMT - ETag: - - W/"a496c7d1c057a6d0bdb998c65703f1a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9999 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,12 +109,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 50d6f4f1-40f8-47b2-862e-610df5742931 - X-Runtime: - - '0.016528' X-XSS-Protection: - 1; mode=block content-length: @@ -154,18 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=771c220780cc654d20a4b7c543c7fa11 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/products?search=name%3D%22Test+Product%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":12,"cp_id":"418023532283","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":11,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":7,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"sync_plan":null,"repository_count":1}]} + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":5,"cp_id":"561991890036","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":7,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-09-04 + 13:02:37 UTC","last_sync_words":"less than a minute","organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"sync_plan":null,"repository_count":1}]} ' headers: @@ -175,28 +145,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:05 GMT - ETag: - - W/"55e2b08c9fa77afa49f7b10c4a69487e-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9998 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -209,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - de1bef49-c193-4c42-a3df-93fc7e0a306c - X-Runtime: - - '0.033373' X-XSS-Protection: - 1; mode=block content-length: - - '614' + - '649' status: code: 200 message: OK @@ -231,18 +187,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=771c220780cc654d20a4b7c543c7fa11 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/organizations/7/repositories?product_id=12&search=name%3D%22Test+Repository+2%22&per_page=4294967296 + uri: https://foreman.example.org/katello/api/organizations/5/repositories?product_id=5&search=name%3D%22Test+Repository+2%22&per_page=4294967296 response: body: string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"5f52a4c3-f346-472e-a483-a9ed4342098c","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":11,"name":"Test - Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648243023","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test + Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"bc2a023f-9df2-4512-a373-bc84e9b032aa","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":3,"name":"Test + Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224556557","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]} ' @@ -253,28 +208,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:05 GMT - ETag: - - W/"224aafcf5d7fa5a75cf4d88d218973ad-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - 7; Test Organization + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9997 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +234,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4c25b98e-9d61-4bc3-9ca0-900d584fdd6b - X-Runtime: - - '0.041372' X-XSS-Protection: - 1; mode=block content-length: - - '1247' + - '1379' status: code: 200 message: OK @@ -309,22 +250,21 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=771c220780cc654d20a4b7c543c7fa11 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://127.0.0.1:4433/katello/api/repositories/11 + uri: https://foreman.example.org/katello/api/repositories/3?organization_id=5 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:02 UTC","updated_at":"2020-01-10 09:24:03 UTC","backend_identifier":"5f52a4c3-f346-472e-a483-a9ed4342098c","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":11,"name":"Test - Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648243023","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":12,"ssl_ca_cert_id":13,"ssl_client_cert_id":13,"ssl_client_key_id":13,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":{"id":12,"name":"Test - GPG key"},"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":13,"name":"Test - SSL Cert"},"ssl_client_cert":{"id":13,"name":"Test SSL Cert"},"ssl_client_key":{"id":13,"name":"Test + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:35 UTC","updated_at":"2020-09-04 13:02:37 UTC","backend_identifier":"bc2a023f-9df2-4512-a373-bc84e9b032aa","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":3,"name":"Test + Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224556557","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":3,"ssl_ca_cert_id":4,"ssl_client_cert_id":4,"ssl_client_key_id":4,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":3,"name":"Test + GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":4,"name":"Test + SSL Cert"},"ssl_client_cert":{"id":4,"name":"Test SSL Cert"},"ssl_client_key":{"id":4,"name":"Test SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' @@ -335,28 +275,20 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:05 GMT - ETag: - - W/"f3cd786982cbcc92a2d958fba599e5df-gzip" Foreman_api_version: - '2' Foreman_current_location: - ; ANY Foreman_current_organization: - - ; ANY + - 5; Test Organization Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9996 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -369,16 +301,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5c9c871d-afb4-42c8-85fa-b0971803d60d - X-Runtime: - - '0.038480' X-XSS-Protection: - 1; mode=block content-length: - - '2292' + - '2496' status: code: 200 message: OK @@ -395,22 +321,21 @@ interactions: - '24' Content-Type: - application/json - Cookie: - - _session_id=771c220780cc654d20a4b7c543c7fa11 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://127.0.0.1:4433/katello/api/repositories/11 + uri: https://foreman.example.org/katello/api/repositories/3 response: body: - string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":6,"library_instance_id":null,"organization":{"name":"Test - Organization","label":"Test_Organization","id":7},"created_at":"2020-01-10 - 09:24:02 UTC","updated_at":"2020-01-10 09:24:05 UTC","backend_identifier":"5f52a4c3-f346-472e-a483-a9ed4342098c","container_repository_name":null,"full_path":"http://centos7-katello-3-14.tux17.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":11,"name":"Test - Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":6,"name":"Default - Organization View"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1578648243023","major":null,"minor":null,"product":{"id":12,"cp_id":"418023532283","name":"Test - Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":6,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":12,"ssl_ca_cert_id":13,"ssl_client_cert_id":13,"ssl_client_key_id":13,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"ignorable_content":null,"gpg_key":{"id":12,"name":"Test - GPG key"},"http_proxy":{"id":null,"name":null},"ssl_ca_cert":{"id":13,"name":"Test - SSL Cert"},"ssl_client_cert":{"id":13,"name":"Test SSL Cert"},"ssl_client_key":{"id":13,"name":"Test + string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":4,"library_instance_id":null,"organization_id":5,"organization":{"name":"Test + Organization","label":"Test_Organization","id":5},"created_at":"2020-09-04 + 13:02:35 UTC","updated_at":"2020-09-04 13:02:39 UTC","backend_identifier":"bc2a023f-9df2-4512-a373-bc84e9b032aa","container_repository_name":null,"full_path":"http://centos7-katello-3-16.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":3,"name":"Test + Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":5,"name":"Default + Organization View"},"content_view_version":{"id":4,"name":"Default Organization + View 1.0","content_view_id":5},"kt_environment":{"id":4,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1599224556557","major":null,"minor":null,"product":{"id":5,"cp_id":"561991890036","name":"Test + Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":4,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":3,"ssl_ca_cert_id":4,"ssl_client_cert_id":4,"ssl_client_key_id":4,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":3,"name":"Test + GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":4,"name":"Test + SSL Cert"},"ssl_client_cert":{"id":4,"name":"Test SSL Cert"},"ssl_client_key":{"id":4,"name":"Test SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false} ' @@ -421,14 +346,10 @@ interactions: - Keep-Alive Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 10 Jan 2020 09:24:05 GMT - ETag: - - W/"8a5aa7b168599d9a255f12a469355a73-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -436,15 +357,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.24.0 + - 2.1.2 Keep-Alive: - - timeout=5, max=9995 - Server: - - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -457,16 +372,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2f05454d-6174-4c4d-b6a9-77bfd50d439e - X-Runtime: - - '1.283656' X-XSS-Protection: - 1; mode=block content-length: - - '2291' + - '2495' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/status_info-0.yml b/tests/test_playbooks/fixtures/status_info-0.yml new file mode 100644 index 00000000..131f1138 --- /dev/null +++ b/tests/test_playbooks/fixtures/status_info-0.yml @@ -0,0 +1,170 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '62' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/status + response: + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '62' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/ping + response: + body: + string: '{"results":{"foreman":{"database":{"active":true,"duration_ms":"0"}}}}' + headers: + Cache-Control: + - max-age=0, private, must-revalidate + Connection: + - Keep-Alive + Content-Security-Policy: + - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: + - application/json; charset=utf-8 + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-XSS-Protection: + - 1; mode=block + content-length: + - '70' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/sync_plan-0.yml b/tests/test_playbooks/fixtures/sync_plan-0.yml index f519a79a..0af0d895 100644 --- a/tests/test_playbooks/fixtures/sync_plan-0.yml +++ b/tests/test_playbooks/fixtures/sync_plan-0.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:25 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=4221727b35c84662a5b7c8a947994de0; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 5dbee6ad-eb13-4586-adad-b92e85b00844 - x-runtime: - - '0.124314' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4221727b35c84662a5b7c8a947994de0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:39:19 UTC\",\"updated_at\":\"2019-11-01 - 12:39:19 UTC\",\"id\":17,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ + :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:25 GMT - etag: - - W/"11fae8342a92fce668b8c62444d18190-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 7d5a0abc-89bf-4259-8452-49b383ff31cc - x-runtime: - - '0.016893' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,75 +125,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4221727b35c84662a5b7c8a947994de0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans?per_page=4294967296&search=name%3D%22Test+Sync+Plan%22 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '154' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:25 GMT - etag: - - W/"5ff3aa2c0085d32b065a3f01742d9571-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d6cef5fe-f484-44ea-a65f-ca37d498491f - x-runtime: - - '0.016592' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '154' status: code: 200 message: OK - request: - body: !!python/unicode '{"sync_date": "2017-01-01 00:00:00 UTC", "interval": "weekly", - "enabled": false, "name": "Test Sync Plan"}' + body: '{"name": "Test Sync Plan", "interval": "weekly", "sync_date": "2017-01-01 + 00:00:00 UTC", "enabled": false}' headers: Accept: - application/json;version=2 @@ -235,73 +189,53 @@ interactions: - '106' Content-Type: - application/json - Cookie: - - _session_id=4221727b35c84662a5b7c8a947994de0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '406' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:25 GMT - etag: - - W/"0c85cf1aaee15eda385318bc330f686d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - set-cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: - - Accept-Encoding - x-content-type-options: + Transfer-Encoding: + - chunked + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 63391241-d0a6-4223-88ab-4f39b8e2679c - x-runtime: - - '0.096589' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: - code: 200 - message: OK + code: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/sync_plan-1.yml b/tests/test_playbooks/fixtures/sync_plan-1.yml index b050e269..b1a6a64e 100644 --- a/tests/test_playbooks/fixtures/sync_plan-1.yml +++ b/tests/test_playbooks/fixtures/sync_plan-1.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:26 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=4edfef47d951288041124202f0c16576; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2ef16679-8ca4-4aac-92e6-b59c2dac2631 - x-runtime: - - '0.126657' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4edfef47d951288041124202f0c16576 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:39:19 UTC\",\"updated_at\":\"2019-11-01 - 12:39:19 UTC\",\"id\":17,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ + :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:26 GMT - etag: - - W/"11fae8342a92fce668b8c62444d18190-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2a5e4bde-b076-4680-9a6f-010c223bcec4 - x-runtime: - - '0.016434' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,72 +125,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4edfef47d951288041124202f0c16576 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans?per_page=4294967296&search=name%3D%22Test+Sync+Plan%22 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"organization_id":17,"name":"Test + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '557' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:26 GMT - etag: - - W/"d274d8796204037724b1753ab06e6873-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e02c5325-9533-4415-be4a-a2d9d079537d - x-runtime: - - '0.018965' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '556' status: code: 200 message: OK @@ -233,70 +187,54 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4edfef47d951288041124202f0c16576 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '406' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:26 GMT - etag: - - W/"0c85cf1aaee15eda385318bc330f686d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 81b39716-b583-4bb7-94ef-e6a461ac3410 - x-runtime: - - '0.016350' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '405' status: code: 200 message: OK @@ -309,76 +247,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4edfef47d951288041124202f0c16576 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":19,"cp_id":"606064688533","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":31,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":17,"organization":{"name":"Test - Organization","label":"Test_Organization","id":17},"sync_plan":null,"repository_count":0}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"679719757090","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test + Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '616' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:26 GMT - etag: - - W/"51ab8001fdfe4f16ee401cccbd440993-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 47bfe65a-9351-4e81-b0aa-00d9f5a43d09 - x-runtime: - - '0.038928' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '612' status: code: 200 message: OK - request: - body: !!python/unicode '{"product_ids": [19]}' + body: '{"product_ids": [6]}' headers: Accept: - application/json;version=2 @@ -387,76 +309,58 @@ interactions: Connection: - keep-alive Content-Length: - - '21' + - '20' Content-Type: - application/json - Cookie: - - _session_id=4edfef47d951288041124202f0c16576 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4/add_products + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2/add_products response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[{"id":19,"cp_id":"606064688533","name":"Test + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '606' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:26 GMT - etag: - - W/"b16728af6c3e76902deaf6e7a7febae0-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e1649c6e-036c-42f6-a8e0-d608ce64df65 - x-runtime: - - '0.072375' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '604' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-2.yml b/tests/test_playbooks/fixtures/sync_plan-2.yml index cefda756..89a08bc6 100644 --- a/tests/test_playbooks/fixtures/sync_plan-2.yml +++ b/tests/test_playbooks/fixtures/sync_plan-2.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:26 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=f2d3e3cc13fd071360959045e7775eb7; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 35bd5195-648f-4ec7-9a9a-8e25e331e545 - x-runtime: - - '0.129423' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f2d3e3cc13fd071360959045e7775eb7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:39:19 UTC\",\"updated_at\":\"2019-11-01 - 12:39:19 UTC\",\"id\":17,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ + :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:27 GMT - etag: - - W/"11fae8342a92fce668b8c62444d18190-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ebfddd44-7b3d-49d4-bab4-1c11a2f9a5d4 - x-runtime: - - '0.018489' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f2d3e3cc13fd071360959045e7775eb7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans?per_page=4294967296&search=name%3D%22Test+Sync+Plan%22 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"organization_id":17,"name":"Test + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[{"id":19,"cp_id":"606064688533","name":"Test + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '757' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:27 GMT - etag: - - W/"a81ddd85438d615e07b9ef00bcb650da-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 98bd17d2-b072-4170-b353-84632291e595 - x-runtime: - - '0.037722' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '755' status: code: 200 message: OK @@ -234,71 +188,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f2d3e3cc13fd071360959045e7775eb7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[{"id":19,"cp_id":"606064688533","name":"Test + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '606' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:27 GMT - etag: - - W/"b16728af6c3e76902deaf6e7a7febae0-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4aca35fd-8194-483d-a3e1-4d941216f3a2 - x-runtime: - - '0.034296' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '604' status: code: 200 message: OK @@ -311,72 +249,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f2d3e3cc13fd071360959045e7775eb7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":19,"cp_id":"606064688533","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":31,"sync_plan_id":4,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":17,"organization":{"name":"Test - Organization","label":"Test_Organization","id":17},"sync_plan":{"id":4,"name":"Test + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"679719757090","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test + Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test Sync Plan","description":null,"sync_date":"2017-01-01 00:00:00 UTC","interval":"weekly","next_sync":null,"cron_expression":null},"repository_count":0}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '758' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:27 GMT - etag: - - W/"44555199594e120be51643ad64ff00ff-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a40f13b4-2bfb-47fc-99b4-13dbdcd12354 - x-runtime: - - '0.040219' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '754' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-3.yml b/tests/test_playbooks/fixtures/sync_plan-3.yml index 13c9d425..d78b9645 100644 --- a/tests/test_playbooks/fixtures/sync_plan-3.yml +++ b/tests/test_playbooks/fixtures/sync_plan-3.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:27 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=7f0dc7e47fb6c0e76e35b4310990b23d; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 2fddc9b3-a37f-445c-bbb8-a56bf380a11c - x-runtime: - - '0.124363' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7f0dc7e47fb6c0e76e35b4310990b23d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:39:19 UTC\",\"updated_at\":\"2019-11-01 - 12:39:19 UTC\",\"id\":17,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ + :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:27 GMT - etag: - - W/"11fae8342a92fce668b8c62444d18190-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 6db77449-2192-4f42-94b8-fc3d706fed41 - x-runtime: - - '0.016425' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,73 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7f0dc7e47fb6c0e76e35b4310990b23d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans?per_page=4294967296&search=name%3D%22Test+Sync+Plan%22 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"organization_id":17,"name":"Test + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[{"id":19,"cp_id":"606064688533","name":"Test + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '757' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:27 GMT - etag: - - W/"a81ddd85438d615e07b9ef00bcb650da-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - aeebc56b-2acb-470f-8d0f-9302fcfc1d55 - x-runtime: - - '0.037684' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '755' status: code: 200 message: OK @@ -234,76 +188,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7f0dc7e47fb6c0e76e35b4310990b23d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[{"id":19,"cp_id":"606064688533","name":"Test + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '606' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:27 GMT - etag: - - W/"b16728af6c3e76902deaf6e7a7febae0-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 47cd820d-855e-4169-8a62-2ddee678ddd0 - x-runtime: - - '0.034292' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '604' status: code: 200 message: OK - request: - body: !!python/unicode '{"product_ids": [19]}' + body: '{"product_ids": [6]}' headers: Accept: - application/json;version=2 @@ -312,75 +250,57 @@ interactions: Connection: - keep-alive Content-Length: - - '21' + - '20' Content-Type: - application/json - Cookie: - - _session_id=7f0dc7e47fb6c0e76e35b4310990b23d User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4/remove_products + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2/remove_products response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '406' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:27 GMT - etag: - - W/"0c85cf1aaee15eda385318bc330f686d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ce83669b-5fe7-4be3-a485-f9a7ebaaa4e8 - x-runtime: - - '0.033804' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '405' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-4.yml b/tests/test_playbooks/fixtures/sync_plan-4.yml index fa48dd6d..e0216ae7 100644 --- a/tests/test_playbooks/fixtures/sync_plan-4.yml +++ b/tests/test_playbooks/fixtures/sync_plan-4.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:28 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=98d33a2ec8d4a24ab0c5daf7c272f03d; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 77d518b5-fe92-4486-9569-cefc18faf45f - x-runtime: - - '0.123325' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=98d33a2ec8d4a24ab0c5daf7c272f03d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:39:19 UTC\",\"updated_at\":\"2019-11-01 - 12:39:19 UTC\",\"id\":17,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ + :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:28 GMT - etag: - - W/"11fae8342a92fce668b8c62444d18190-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - fd8e821f-e982-4292-992a-313d34427ec3 - x-runtime: - - '0.015263' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,72 +125,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=98d33a2ec8d4a24ab0c5daf7c272f03d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans?per_page=4294967296&search=name%3D%22Test+Sync+Plan%22 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"organization_id":17,"name":"Test + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '557' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:28 GMT - etag: - - W/"d274d8796204037724b1753ab06e6873-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - cc8bbd54-b06f-431a-b18a-fe0daf2d21ce - x-runtime: - - '0.018825' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '556' status: code: 200 message: OK @@ -233,76 +187,59 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=98d33a2ec8d4a24ab0c5daf7c272f03d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:25 UTC","enabled":false,"foreman_tasks_recurring_logic_id":6,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":null,"interval":"weekly","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:03:57 UTC","enabled":false,"foreman_tasks_recurring_logic_id":2,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '406' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:28 GMT - etag: - - W/"0c85cf1aaee15eda385318bc330f686d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d03e09d3-ebcf-47f7-a3f2-188fd7ee6dcd - x-runtime: - - '0.016352' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '405' status: code: 200 message: OK - request: - body: !!python/unicode '{"interval": "daily", "description": "Sync daily, not - weekly"}' + body: '{"interval": "daily", "description": "Sync daily, not weekly"}' headers: Accept: - application/json;version=2 @@ -314,73 +251,55 @@ interactions: - '62' Content-Type: - application/json - Cookie: - - _session_id=98d33a2ec8d4a24ab0c5daf7c272f03d User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":"Sync - daily, not weekly","interval":"daily","next_sync":"2019-11-02 00:00:00 UTC","sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:28 UTC","enabled":true,"foreman_tasks_recurring_logic_id":7,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync + daily, not weekly","interval":"daily","next_sync":"2020-09-05 00:00:00 UTC","sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:04:00 UTC","enabled":true,"foreman_tasks_recurring_logic_id":3,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '445' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:28 GMT - etag: - - W/"5f5f2397351b63494f1cc01046bd0add-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 8112aa65-c848-4c9b-9d84-99fbbf2150ad - x-runtime: - - '0.122137' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '444' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-5.yml b/tests/test_playbooks/fixtures/sync_plan-5.yml index de037a3e..075dd069 100644 --- a/tests/test_playbooks/fixtures/sync_plan-5.yml +++ b/tests/test_playbooks/fixtures/sync_plan-5.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:29 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=a3e77e199a7d5721a5cdc1f40909a7cf; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 815fa06e-3db4-463b-8c61-a0930b6b8322 - x-runtime: - - '0.121672' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a3e77e199a7d5721a5cdc1f40909a7cf User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:39:19 UTC\",\"updated_at\":\"2019-11-01 - 12:39:19 UTC\",\"id\":17,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ + :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:29 GMT - etag: - - W/"11fae8342a92fce668b8c62444d18190-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f6d7ea9e-3e90-4cb1-a70b-3dfa6844c6a0 - x-runtime: - - '0.015636' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,72 +125,56 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a3e77e199a7d5721a5cdc1f40909a7cf User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans?per_page=4294967296&search=name%3D%22Test+Sync+Plan%22 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"organization_id":17,"name":"Test - Sync Plan","description":"Sync daily, not weekly","interval":"daily","next_sync":"2019-11-02 - 00:00:00 UTC","sync_date":"2017-01-01 00:00:00 UTC","created_at":"2019-11-01 - 12:39:25 UTC","updated_at":"2019-11-01 12:39:28 UTC","enabled":true,"foreman_tasks_recurring_logic_id":7,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + Sync Plan","description":"Sync daily, not weekly","interval":"daily","next_sync":"2020-09-05 + 00:00:00 UTC","sync_date":"2017-01-01 00:00:00 UTC","created_at":"2020-09-04 + 13:03:57 UTC","updated_at":"2020-09-04 13:04:00 UTC","enabled":true,"foreman_tasks_recurring_logic_id":3,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '596' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:29 GMT - etag: - - W/"f7586beba381bed6479356a1201ed1f2-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - dbbd90ae-e065-4841-8dcd-3f0dc70522cd - x-runtime: - - '0.022566' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '595' status: code: 200 message: OK @@ -233,77 +187,61 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a3e77e199a7d5721a5cdc1f40909a7cf User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":"Sync - daily, not weekly","interval":"daily","next_sync":"2019-11-02 00:00:00 UTC","sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:28 UTC","enabled":true,"foreman_tasks_recurring_logic_id":7,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync + daily, not weekly","interval":"daily","next_sync":"2020-09-05 00:00:00 UTC","sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:04:00 UTC","enabled":true,"foreman_tasks_recurring_logic_id":3,"cron_expression":null,"products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '445' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:29 GMT - etag: - - W/"5f5f2397351b63494f1cc01046bd0add-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - d82d04c8-da67-4783-9cc7-6dd32acd5796 - x-runtime: - - '0.017857' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '444' status: code: 200 message: OK - request: - body: !!python/unicode '{"cron_expression": "* * * * */5", "interval": "custom - cron", "enabled": false}' + body: '{"interval": "custom cron", "enabled": false, "cron_expression": "* * * + * */5"}' headers: Accept: - application/json;version=2 @@ -315,74 +253,56 @@ interactions: - '79' Content-Type: - application/json - Cookie: - - _session_id=a3e77e199a7d5721a5cdc1f40909a7cf User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":"Sync + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:29 UTC","enabled":false,"foreman_tasks_recurring_logic_id":8,"cron_expression":"* + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* * * * */5","products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '440' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:29 GMT - etag: - - W/"1c586cbba4d629e2adcd42e9e1e3f334-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - f0098b70-6e59-46d8-b634-3a4b6abcdd9e - x-runtime: - - '0.126725' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '439' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-6.yml b/tests/test_playbooks/fixtures/sync_plan-6.yml index df4c0609..de6365b0 100644 --- a/tests/test_playbooks/fixtures/sync_plan-6.yml +++ b/tests/test_playbooks/fixtures/sync_plan-6.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:29 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=c0698641530fd1629dffd9133430dad2; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 990412c2-b1ed-4b93-9e5d-50fb6c1fdff8 - x-runtime: - - '0.119946' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0698641530fd1629dffd9133430dad2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:39:19 UTC\",\"updated_at\":\"2019-11-01 - 12:39:19 UTC\",\"id\":17,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ + :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:29 GMT - etag: - - W/"11fae8342a92fce668b8c62444d18190-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 0e871cc3-5513-41a3-ab26-9d9ea88e5515 - x-runtime: - - '0.015258' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,71 +125,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0698641530fd1629dffd9133430dad2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/products?per_page=4294967296&search=name%3D%22Test+Product%22 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":19,"cp_id":"606064688533","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":31,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":17,"organization":{"name":"Test - Organization","label":"Test_Organization","id":17},"sync_plan":null,"repository_count":0}]} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test + Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* + * * * */5","products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '616' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:29 GMT - etag: - - W/"51ab8001fdfe4f16ee401cccbd440993-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - dd5a112e-4151-4244-9ed7-e5e8a82eaa7e - x-runtime: - - '0.054440' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '590' status: code: 200 message: OK @@ -232,71 +188,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0698641530fd1629dffd9133430dad2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/19 + uri: https://foreman.example.org/katello/api/organizations/6/products?search=name%3D%22Test+Product%22&per_page=4294967296 response: body: - string: !!python/unicode ' {"redhat":false,"id":19,"cp_id":"606064688533","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":31,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":17,"organization":{"name":"Test - Organization","label":"Test_Organization","id":17},"sync_plan":null,"repository_count":0,"created_at":"2019-11-01 - 12:39:23 UTC","updated_at":"2019-11-01 12:39:26 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":6,"cp_id":"679719757090","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test + Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1040' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:30 GMT - etag: - - W/"e4391f0ac756bd35c1bcb8433e78b8db-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: - - ; ANY - foreman_current_organization: + Foreman_current_location: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4312810d-eb69-429f-accf-90dd279e614b - x-runtime: - - '0.047819' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '612' status: code: 200 message: OK @@ -309,78 +249,60 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0698641530fd1629dffd9133430dad2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans?per_page=4294967296&search=name%3D%22Test+Sync+Plan%22 + uri: https://foreman.example.org/katello/api/products/6?organization_id=6 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"organization_id":17,"name":"Test - Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:29 UTC","enabled":false,"foreman_tasks_recurring_logic_id":8,"cron_expression":"* - * * * */5","products":[],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} + string: ' {"sync_state_aggregated":null,"redhat":false,"id":6,"cp_id":"679719757090","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test + Organization","label":"Test_Organization","id":6},"sync_plan":null,"repository_count":0,"created_at":"2020-09-04 + 13:03:55 UTC","updated_at":"2020-09-04 13:03:57 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '591' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:30 GMT - etag: - - W/"959b699fc852686274361b65486de24e-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9996 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=96 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 1218d01f-ee75-4564-8658-1149610f867c - x-runtime: - - '0.018257' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1065' status: code: 200 message: OK - request: - body: !!python/unicode '{"sync_plan_id": 4}' + body: '{"sync_plan_id": 2}' headers: Accept: - application/json;version=2 @@ -392,76 +314,58 @@ interactions: - '19' Content-Type: - application/json - Cookie: - - _session_id=c0698641530fd1629dffd9133430dad2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/products/19 + uri: https://foreman.example.org/katello/api/products/6 response: body: - string: !!python/unicode ' {"redhat":false,"id":19,"cp_id":"606064688533","name":"Test - Product","label":"Test_Product","description":"A happy little test product","provider_id":31,"sync_plan_id":4,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":17,"organization":{"name":"Test - Organization","label":"Test_Organization","id":17},"sync_plan":{"id":4,"name":"Test + string: ' {"sync_state_aggregated":null,"redhat":false,"id":6,"cp_id":"679719757090","name":"Test + Product","label":"Test_Product","description":"A happy little test product","provider_id":9,"sync_plan_id":2,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":6,"organization":{"name":"Test + Organization","label":"Test_Organization","id":6},"sync_plan":{"id":2,"name":"Test Sync Plan","description":"Sync daily, not weekly","sync_date":"2017-01-01 00:00:00 UTC","interval":"custom cron","next_sync":null,"cron_expression":"* - * * * */5"},"repository_count":0,"created_at":"2019-11-01 12:39:23 UTC","updated_at":"2019-11-01 - 12:39:30 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} + * * * */5"},"repository_count":0,"created_at":"2020-09-04 13:03:55 UTC","updated_at":"2020-09-04 + 13:04:02 UTC","product_content":[],"available_content":[],"repositories":[],"provider":{"name":"Anonymous"},"sync_status":{"id":null,"product_id":null,"progress":null,"sync_id":null,"state":null,"raw_state":null,"start_time":null,"finish_time":null,"duration":null,"display_size":null,"size":null,"is_running":null,"error_details":null},"permissions":{"view_products":true,"edit_products":true,"destroy_products":true,"sync_products":true},"published_content_view_ids":[],"active_task_count":0} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '1216' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:30 GMT - etag: - - W/"7d261e35f286d26ba8f53e62529130cb-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9995 - server: - - Apache - set-cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=95 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 76a7597e-d965-4122-acbf-c17a01761333 - x-runtime: - - '0.162358' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '1241' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-7.yml b/tests/test_playbooks/fixtures/sync_plan-7.yml index e571fa81..7b8360ad 100644 --- a/tests/test_playbooks/fixtures/sync_plan-7.yml +++ b/tests/test_playbooks/fixtures/sync_plan-7.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:30 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=54eefe434bf876db76d19fcb9e6abcf0; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4891219f-22e6-44b5-90e3-ad9eb7fb0631 - x-runtime: - - '0.121844' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=54eefe434bf876db76d19fcb9e6abcf0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:39:19 UTC\",\"updated_at\":\"2019-11-01 - 12:39:19 UTC\",\"id\":17,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ + :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:30 GMT - etag: - - W/"11fae8342a92fce668b8c62444d18190-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 71e253ca-55ed-4da2-bc31-c2793496f3c6 - x-runtime: - - '0.015631' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,74 +125,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=54eefe434bf876db76d19fcb9e6abcf0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans?per_page=4294967296&search=name%3D%22Test+Sync+Plan%22 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"organization_id":17,"name":"Test + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:29 UTC","enabled":false,"foreman_tasks_recurring_logic_id":8,"cron_expression":"* - * * * */5","products":[{"id":19,"cp_id":"606064688533","name":"Test Product","label":"Test_Product","description":"A + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* + * * * */5","products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '791' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:30 GMT - etag: - - W/"074443cca1d96d7719f3b4bd957ae43d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 04356acc-0fa1-49d0-b10b-e89cf1bebcc4 - x-runtime: - - '0.038069' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '789' status: code: 200 message: OK @@ -235,73 +189,57 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=54eefe434bf876db76d19fcb9e6abcf0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 response: body: - string: !!python/unicode ' {"id":4,"organization_id":17,"name":"Test Sync Plan","description":"Sync + string: ' {"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:29 UTC","enabled":false,"foreman_tasks_recurring_logic_id":8,"cron_expression":"* - * * * */5","products":[{"id":19,"cp_id":"606064688533","name":"Test Product","label":"Test_Product","description":"A + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* + * * * */5","products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '640' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:30 GMT - etag: - - W/"a344d47c51ac7cc6f69732b210f61fef-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 51ccb903-dd80-4a5c-a570-5c63ac7d9e20 - x-runtime: - - '0.034536' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '638' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/sync_plan-8.yml b/tests/test_playbooks/fixtures/sync_plan-8.yml index eeb9a88c..aff1ebfc 100644 --- a/tests/test_playbooks/fixtures/sync_plan-8.yml +++ b/tests/test_playbooks/fixtures/sync_plan-8.yml @@ -11,61 +11,47 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: !!python/unicode '{"result":"ok","status":200,"version":"1.23.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '63' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:31 GMT - etag: - - W/"e155d3039d3e53c9bd4f09acfe48e637" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=10000 - server: - - Apache - set-cookie: - - _session_id=cfdca9ea1d66b85dc8009ba978399984; path=/; secure; HttpOnly; SameSite=Lax - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=100 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + Vary: + - Accept-Encoding + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - a75fc64f-19c0-4b5b-86a4-d36b7ca6f733 - x-runtime: - - '0.120940' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,71 +64,55 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cfdca9ea1d66b85dc8009ba978399984 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations?per_page=4294967296&search=name%3D%22Test+Organization%22 + uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"label\":\"Test_Organization\",\"created_at\":\"2019-11-01 12:39:19 UTC\",\"updated_at\":\"2019-11-01 - 12:39:19 UTC\",\"id\":17,\"name\":\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"A - test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\ + :\"Test_Organization\",\"created_at\":\"2020-09-04 13:03:52 UTC\",\"updated_at\"\ + :\"2020-09-04 13:03:52 UTC\",\"id\":6,\"name\":\"Test Organization\",\"title\"\ + :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n" headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '389' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:31 GMT - etag: - - W/"11fae8342a92fce668b8c62444d18190-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: + Foreman_current_organization: - ; ANY - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9999 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=99 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - 4ec77163-e9ac-4290-8875-690f1134820a - x-runtime: - - '0.015363' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '388' status: code: 200 message: OK @@ -155,74 +125,58 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=cfdca9ea1d66b85dc8009ba978399984 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans?per_page=4294967296&search=name%3D%22Test+Sync+Plan%22 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans?search=name%3D%22Test+Sync+Plan%22&per_page=4294967296 response: body: - string: !!python/unicode '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test - Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":4,"organization_id":17,"name":"Test + string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test + Sync Plan\"","sort":{"by":"name","order":"asc"},"results":[{"id":2,"organization_id":6,"name":"Test Sync Plan","description":"Sync daily, not weekly","interval":"custom cron","next_sync":null,"sync_date":"2017-01-01 - 00:00:00 UTC","created_at":"2019-11-01 12:39:25 UTC","updated_at":"2019-11-01 - 12:39:29 UTC","enabled":false,"foreman_tasks_recurring_logic_id":8,"cron_expression":"* - * * * */5","products":[{"id":19,"cp_id":"606064688533","name":"Test Product","label":"Test_Product","description":"A + 00:00:00 UTC","created_at":"2020-09-04 13:03:57 UTC","updated_at":"2020-09-04 + 13:04:01 UTC","enabled":false,"foreman_tasks_recurring_logic_id":4,"cron_expression":"* + * * * */5","products":[{"id":6,"cp_id":"679719757090","name":"Test Product","label":"Test_Product","description":"A happy little test product","sync_state":null,"last_sync":null,"last_sync_words":null,"repository_count":0}],"permissions":{"view_sync_plans":true,"edit_sync_plans":true,"destroy_sync_plans":true}}]} -' + ' headers: - cache-control: + Cache-Control: - max-age=0, private, must-revalidate - connection: + Connection: - Keep-Alive - content-length: - - '791' - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - content-type: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Content-Type: - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 12:39:31 GMT - etag: - - W/"074443cca1d96d7719f3b4bd957ae43d-gzip" - foreman_api_version: + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9998 - server: - - Apache - status: - - 200 OK - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=98 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - vary: + Vary: - Accept-Encoding - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - ba5f9d29-25d4-4229-94fd-e6a3531e928d - x-runtime: - - '0.036596' - x-xss-protection: + X-XSS-Protection: - 1; mode=block + content-length: + - '789' status: code: 200 message: OK @@ -237,59 +191,43 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=cfdca9ea1d66b85dc8009ba978399984 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://centos7-katello-3-13.yatsu.example.com/katello/api/organizations/17/sync_plans/4 + uri: https://foreman.example.org/katello/api/organizations/6/sync_plans/2 response: body: - string: !!python/unicode + string: '' headers: - cache-control: + Cache-Control: - no-cache - connection: + Connection: - Keep-Alive - content-security-policy: + Content-Security-Policy: - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:; - img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - date: - - Fri, 01 Nov 2019 12:39:31 GMT - foreman_api_version: + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' + Foreman_api_version: - '2' - foreman_current_location: + Foreman_current_location: - ; ANY - foreman_current_organization: - - 17; Test Organization - foreman_version: - - 1.23.0 - keep-alive: - - timeout=5, max=9997 - server: - - Apache - set-cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - status: - - 204 No Content - strict-transport-security: + Foreman_current_organization: + - 6; Test Organization + Foreman_version: + - 2.1.2 + Keep-Alive: + - timeout=15, max=97 + Strict-Transport-Security: - max-age=631139040; includeSubdomains - x-content-type-options: + X-Content-Type-Options: - nosniff - x-download-options: + X-Download-Options: - noopen - x-frame-options: + X-Frame-Options: - sameorigin - x-permitted-cross-domain-policies: + X-Permitted-Cross-Domain-Policies: - none - x-powered-by: - - Phusion Passenger 4.0.53 - x-request-id: - - e0c8269c-0c9d-49ee-8512-4cb8e9151f03 - x-runtime: - - '0.056445' - x-xss-protection: + X-XSS-Protection: - 1; mode=block status: code: 204 diff --git a/tests/test_playbooks/inventory_plugin.yml b/tests/test_playbooks/inventory_plugin.yml index d134e0d9..907e770b 100644 --- a/tests/test_playbooks/inventory_plugin.yml +++ b/tests/test_playbooks/inventory_plugin.yml @@ -2,11 +2,14 @@ - hosts: container vars: foreman_groups: - - group_a - - group_b + - name: group_a + - name: group_b + - name: group_c + label: group_b/group_c + parent: group_b foreman_hosts: testhost1.example.com: group_a - testhost2.example.com: group_b + testhost2.example.com: group_b/group_c collections: - community.general - redhat.satellite @@ -64,7 +67,8 @@ username: admin password: changeme server_url: http://127.0.0.1:3000/ - name: "{{ item }}" + name: "{{ item.name }}" + parent: "{{ item.parent | default(omit) }}" organizations: - Default Organization locations: @@ -116,7 +120,7 @@ - name: test that all groups are present assert: that: > - 'foreman_{{ item }}' in groups + 'foreman_{{ item.label | default(item.name) | regex_replace('/', '_') }}' in groups with_items: "{{ foreman_groups }}" - name: test that all hosts are in the "all" group @@ -128,7 +132,7 @@ - name: test that all hosts are in the correct hostgroup assert: that: > - '{{ item.key }}' in groups['foreman_{{ item.value }}'] + '{{ item.key }}' in groups['foreman_{{ item.value | regex_replace('/', '_') }}'] with_dict: "{{ foreman_hosts }}" - name: test that all hosts have the domain fact set diff --git a/tests/test_playbooks/status_info.yml b/tests/test_playbooks/status_info.yml new file mode 100644 index 00000000..a81a8b89 --- /dev/null +++ b/tests/test_playbooks/status_info.yml @@ -0,0 +1,20 @@ +--- +- hosts: localhost + collections: + - redhat.satellite + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: fetch status + include_tasks: tasks/status_info.yml + +- hosts: tests + collections: + - redhat.satellite + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: fetch status + include_tasks: tasks/status_info.yml diff --git a/tests/test_playbooks/tasks/status_info.yml b/tests/test_playbooks/tasks/status_info.yml new file mode 100644 index 00000000..5fcd35dd --- /dev/null +++ b/tests/test_playbooks/tasks/status_info.yml @@ -0,0 +1,7 @@ +--- +- name: fetch status + status_info: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + validate_certs: "{{ foreman_validate_certs }}"