From 2835909323ef9f90768542594d4a7d71d68817f3 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg <2500@gmx.de> Date: Mon, 29 Jun 2020 14:22:02 +0200 Subject: [PATCH 01/88] Remove 'entity_resolve' --- plugins/module_utils/foreman_helper.py | 2 -- plugins/modules/bookmark.py | 1 - plugins/modules/compute_attribute.py | 1 - plugins/modules/content_view_version.py | 1 - plugins/modules/external_usergroup.py | 1 - plugins/modules/global_parameter.py | 1 - plugins/modules/image.py | 1 - 7 files changed, 8 deletions(-) mode change 100644 => 100755 plugins/modules/image.py diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index 2ec65e35..29412d49 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -876,14 +876,12 @@ class ForemanMyEntityModule(ForemanEntityAnsibleModule): * entity_name (str): name of the current entity. By default deduce the entity name from the class name (eg: 'ForemanProvisioningTemplateModule' class will produce 'provisioning_template'). * entity_scope (list): List of the entity used to build search scope. Defaults to None. - * entity_resolve (boolean): Set it to False to disable base entity resolution. * entity_opts (dict): Dict of options for base entity. Same options can be provided for subentities described in foreman_spec. """ def __init__(self, **kwargs): self.entity_key = kwargs.pop('entity_key', 'name') self.entity_scope = kwargs.pop('entity_scope', None) - self.entity_resolve = kwargs.pop('entity_resolve', True) self.entity_opts = kwargs.pop('entity_opts', {}) self.entity_name = kwargs.pop('entity_name', self.entity_name_from_class) diff --git a/plugins/modules/bookmark.py b/plugins/modules/bookmark.py index 3a1a5ec5..bf072937 100644 --- a/plugins/modules/bookmark.py +++ b/plugins/modules/bookmark.py @@ -109,7 +109,6 @@ def main(): ['state', 'present', ['query']], ['state', 'present_with_defaults', ['query']], ), - entity_resolve=False, ) with module.api_connection(): diff --git a/plugins/modules/compute_attribute.py b/plugins/modules/compute_attribute.py index 3de1811e..72d9f037 100644 --- a/plugins/modules/compute_attribute.py +++ b/plugins/modules/compute_attribute.py @@ -94,7 +94,6 @@ def main(): vm_attrs=dict(type='dict', aliases=['vm_attributes']), ), entity_opts=dict(resolve=False), - entity_resolve=False, ) with module.api_connection(): diff --git a/plugins/modules/content_view_version.py b/plugins/modules/content_view_version.py index 550afb5d..b57ac982 100644 --- a/plugins/modules/content_view_version.py +++ b/plugins/modules/content_view_version.py @@ -166,7 +166,6 @@ def main(): current_lifecycle_environment=dict(type='entity', resource_type='lifecycle_environments', scope=['organization']), ), mutually_exclusive=[['current_lifecycle_environment', 'version']], - entity_resolve=False, ) module.task_timeout = 60 * 60 diff --git a/plugins/modules/external_usergroup.py b/plugins/modules/external_usergroup.py index 1ced8d4c..0aad297d 100644 --- a/plugins/modules/external_usergroup.py +++ b/plugins/modules/external_usergroup.py @@ -73,7 +73,6 @@ def main(): usergroup=dict(required=True), auth_source_ldap=dict(required=True, type='entity', flat_name='auth_source_id', resource_type='auth_sources'), ), - entity_resolve=False, ) params = {"usergroup_id": module.foreman_params.pop('usergroup')} diff --git a/plugins/modules/global_parameter.py b/plugins/modules/global_parameter.py index 1738149c..7aef7929 100644 --- a/plugins/modules/global_parameter.py +++ b/plugins/modules/global_parameter.py @@ -118,7 +118,6 @@ def main(): ['state', 'present_with_defaults', ['value']], ['state', 'present', ['value']], ), - entity_resolve=False, ) with module.api_connection(): diff --git a/plugins/modules/image.py b/plugins/modules/image.py old mode 100644 new mode 100755 index 948f5ba4..70bf7be9 --- a/plugins/modules/image.py +++ b/plugins/modules/image.py @@ -104,7 +104,6 @@ def main(): user_data=dict(type='bool') ), entity_scope=['compute_resource'], - entity_resolve=False, ) module.foreman_params['username'] = module.foreman_params.pop('image_username') From 29aa70e03046b93956b828827ce9e898622ddad1 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg <2500@gmx.de> Date: Mon, 29 Jun 2020 15:16:18 +0200 Subject: [PATCH 02/88] Remove the possibility to pass entity scope in the wrong way --- plugins/module_utils/foreman_helper.py | 29 ++++++++++++-------------- plugins/modules/image.py | 2 +- plugins/modules/os_default_template.py | 2 +- plugins/modules/repository.py | 2 +- plugins/modules/snapshot.py | 2 +- 5 files changed, 17 insertions(+), 20 deletions(-) mode change 100755 => 100644 plugins/modules/image.py diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index 29412d49..699ea638 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -489,10 +489,10 @@ def find_resources_by_title(self, resource, titles, **kwargs): def find_resources_by_id(self, resource, obj_ids, **kwargs): return [self.find_resource_by_id(resource, obj_id, **kwargs) for obj_id in obj_ids] - def find_operatingsystem(self, name, params=None, failsafe=False, thin=None): - result = self.find_resource_by_title('operatingsystems', name, params=params, failsafe=True, thin=thin) + def find_operatingsystem(self, name, failsafe=False, **kwargs): + result = self.find_resource_by_title('operatingsystems', name, failsafe=True, **kwargs) if not result: - result = self.find_resource_by('operatingsystems', 'title', name, search_operator='~', params=params, failsafe=failsafe, thin=thin) + result = self.find_resource_by('operatingsystems', 'title', name, search_operator='~', failsafe=failsafe, **kwargs) return result def find_operatingsystems(self, names, **kwargs): @@ -871,19 +871,16 @@ class ForemanMyEntityModule(ForemanEntityAnsibleModule): * resolve (boolean): Defaults to 'True'. If set to false, the sub entity will not be resolved automatically * ensure (boolean): Defaults to 'True'. If set to false, it will be removed before sending data to the foreman server. It add following attributes: - * entity_search (str): Defautls to None. If provided, the base entity resolver will use this search query instead to try to build it. * entity_key (str): field used to search current entity. Defaults to value provided by `ENTITY_KEYS` or 'name' if no value found. * entity_name (str): name of the current entity. By default deduce the entity name from the class name (eg: 'ForemanProvisioningTemplateModule' class will produce 'provisioning_template'). - * entity_scope (list): List of the entity used to build search scope. Defaults to None. * entity_opts (dict): Dict of options for base entity. Same options can be provided for subentities described in foreman_spec. """ def __init__(self, **kwargs): self.entity_key = kwargs.pop('entity_key', 'name') - self.entity_scope = kwargs.pop('entity_scope', None) - self.entity_opts = kwargs.pop('entity_opts', {}) self.entity_name = kwargs.pop('entity_name', self.entity_name_from_class) + self.entity_opts = kwargs.pop('entity_opts', {}) argument_spec = dict( state=dict(choices=['present', 'absent'], default='present'), @@ -906,8 +903,6 @@ def __init__(self, **kwargs): self.entity_opts['search_operator'] = '=' if 'search_by' not in self.entity_opts: self.entity_opts['search_by'] = ENTITY_KEYS.get(self._entity_resource_name, 'name') - if self.entity_scope: - self.entity_opts['scope'] = self.entity_scope self.foreman_spec.update(_foreman_spec_helper(dict( entity=dict( @@ -953,7 +948,6 @@ def entity_name_from_class(self): def run(self, **kwargs): """ lookup entities, ensure entity, remove sensitive data, manage parameters. - Like 'run', just faster and more convenient... """ if ('parent' in self.foreman_spec and self.foreman_spec['parent'].get('type') == 'entity' and self.desired_absent and 'parent' in self.foreman_params and self.lookup_entity('parent') is None): @@ -969,8 +963,9 @@ def run(self, **kwargs): self.foreman_params[self.entity_key] = self.foreman_params.pop(updated_key) params = kwargs.get('params', {}) - if self.entity_scope: - for scope in self.entity_scope: + entity_scope = self.foreman_spec['entity'].get('scope') + if entity_scope: + for scope in entity_scope: params.update(self.scope_for(scope)) new_entity = self.ensure_entity(self._entity_resource_name, self.foreman_params, entity, params=params) new_entity = self.remove_sensitive_fields(new_entity) @@ -1044,10 +1039,12 @@ class KatelloAnsibleModule(KatelloMixin, ForemanAnsibleModule): class KatelloEntityAnsibleModule(KatelloMixin, ForemanEntityAnsibleModule): def __init__(self, **kwargs): - entity_scope = kwargs.pop('entity_scope', []) - if 'organization' not in entity_scope: - entity_scope.append('organization') - super(KatelloEntityAnsibleModule, self).__init__(entity_scope=entity_scope, **kwargs) + entity_opts = kwargs.pop('entity_opts', {}) + if 'scope' not in entity_opts: + entity_opts['scope'] = ['organization'] + elif 'organization' not in entity_opts['scope']: + entity_opts['scope'].append('organization') + super(KatelloEntityAnsibleModule, self).__init__(entity_opts=entity_opts, **kwargs) def _foreman_spec_helper(spec): diff --git a/plugins/modules/image.py b/plugins/modules/image.py old mode 100755 new mode 100644 index 70bf7be9..7b2b1a28 --- a/plugins/modules/image.py +++ b/plugins/modules/image.py @@ -103,7 +103,7 @@ def main(): operatingsystem=dict(type='entity', required=True), user_data=dict(type='bool') ), - entity_scope=['compute_resource'], + entity_opts={'scope': ['compute_resource']}, ) module.foreman_params['username'] = module.foreman_params.pop('image_username') diff --git a/plugins/modules/os_default_template.py b/plugins/modules/os_default_template.py index bc67d73b..6e72ca7b 100644 --- a/plugins/modules/os_default_template.py +++ b/plugins/modules/os_default_template.py @@ -93,7 +93,7 @@ def main(): ['state', 'present', ['provisioning_template']], ['state', 'present_with_defaults', ['provisioning_template']], ), - entity_scope=['operatingsystem'], + entity_opts={'scope': ['operatingsystem']}, ) if 'provisioning_template' in module.foreman_params and module.desired_absent: diff --git a/plugins/modules/repository.py b/plugins/modules/repository.py index 10b4d6c4..31696d7b 100644 --- a/plugins/modules/repository.py +++ b/plugins/modules/repository.py @@ -232,7 +232,7 @@ def main(): argument_spec=dict( state=dict(default='present', choices=['present_with_defaults', 'present', 'absent']), ), - entity_scope=['product'], + entity_opts={'scope': ['product']}, ) if module.foreman_params['content_type'] != 'docker': diff --git a/plugins/modules/snapshot.py b/plugins/modules/snapshot.py index fa590fd3..12c30b2e 100644 --- a/plugins/modules/snapshot.py +++ b/plugins/modules/snapshot.py @@ -116,7 +116,7 @@ def main(): description=dict(), ), required_plugins=[('snapshot_management', ['*'])], - entity_scope=['host'], + entity_opts={'scope': ['host']}, ) with module.api_connection(): From 024254b9a86f475760479f2a417728b56991a7b8 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg <2500@gmx.de> Date: Mon, 29 Jun 2020 23:03:40 +0200 Subject: [PATCH 03/88] Repair scc_account synced state --- plugins/module_utils/foreman_helper.py | 27 +++++++++++++------------- plugins/modules/scc_account.py | 2 +- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index 699ea638..f7d9ac7c 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -880,7 +880,7 @@ class ForemanMyEntityModule(ForemanEntityAnsibleModule): def __init__(self, **kwargs): self.entity_key = kwargs.pop('entity_key', 'name') self.entity_name = kwargs.pop('entity_name', self.entity_name_from_class) - self.entity_opts = kwargs.pop('entity_opts', {}) + entity_opts = kwargs.pop('entity_opts', {}) argument_spec = dict( state=dict(choices=['present', 'absent'], default='present'), @@ -888,28 +888,27 @@ def __init__(self, **kwargs): argument_spec.update(kwargs.pop('argument_spec', {})) super(ForemanEntityAnsibleModule, self).__init__(argument_spec=argument_spec, **kwargs) - self._entity_resource_name = inflector.pluralize(self.entity_name) self.state = self.foreman_params.pop('state') self.desired_absent = self.state == 'absent' self._thin_default = self.desired_absent - if 'resource_type' not in self.entity_opts: - self.entity_opts['resource_type'] = inflector.pluralize(self.entity_name) - if 'thin' not in self.entity_opts: - self.entity_opts['thin'] = self._thin_default - if 'failsafe' not in self.entity_opts: - self.entity_opts['failsafe'] = True - if 'search_operator' not in self.entity_opts: - self.entity_opts['search_operator'] = '=' - if 'search_by' not in self.entity_opts: - self.entity_opts['search_by'] = ENTITY_KEYS.get(self._entity_resource_name, 'name') + if 'resource_type' not in entity_opts: + entity_opts['resource_type'] = inflector.pluralize(self.entity_name) + if 'thin' not in entity_opts: + entity_opts['thin'] = self._thin_default + if 'failsafe' not in entity_opts: + entity_opts['failsafe'] = True + if 'search_operator' not in entity_opts: + entity_opts['search_operator'] = '=' + if 'search_by' not in entity_opts: + entity_opts['search_by'] = ENTITY_KEYS.get(entity_opts['resource_type'], 'name') self.foreman_spec.update(_foreman_spec_helper(dict( entity=dict( type='entity', flat_name='id', ensure=False, - **self.entity_opts + **entity_opts ), ))[0]) @@ -967,7 +966,7 @@ def run(self, **kwargs): if entity_scope: for scope in entity_scope: params.update(self.scope_for(scope)) - new_entity = self.ensure_entity(self._entity_resource_name, self.foreman_params, entity, params=params) + new_entity = self.ensure_entity(self.foreman_spec['entity']['resource_type'], self.foreman_params, entity, params=params) new_entity = self.remove_sensitive_fields(new_entity) return new_entity diff --git a/plugins/modules/scc_account.py b/plugins/modules/scc_account.py index ae53dc0e..c174217d 100644 --- a/plugins/modules/scc_account.py +++ b/plugins/modules/scc_account.py @@ -137,7 +137,7 @@ def main(): module.task_timeout = 4 * 60 with module.api_connection(): - module.entity_opts['failsafe'] = (module.state != 'synced') + module.foreman_spec['entity']['failsafe'] = (module.state != 'synced') entity = module.lookup_entity('entity') if not module.desired_absent: From 251ecbde3ce41e0de213ce57bdc751816ad05acc Mon Sep 17 00:00:00 2001 From: Matthias Dellweg <2500@gmx.de> Date: Mon, 29 Jun 2020 14:16:57 +0200 Subject: [PATCH 04/88] Add ForemanStatelessEntityAnsibleModule to the hierarchy Fixes #764 --- plugins/module_utils/foreman_helper.py | 81 +++++++++++++++++++------- plugins/modules/content_view_filter.py | 14 +---- plugins/modules/setting.py | 10 +--- 3 files changed, 65 insertions(+), 40 deletions(-) diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index f7d9ac7c..4a36f60d 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -255,6 +255,16 @@ def __init__(self, **kwargs): class ForemanAnsibleModule(AnsibleModule): + """ Baseclass for all foreman related Ansible modules. + It handles connection parameters and adds the concept of the `foreman_spec`. + This adds automatic entities resolution based on provided attributes/ sub entities options. + It add following options to foreman_spec 'entity' and 'entity_list' types: + * search_by (str): Field used to search the sub entity. Defaults to 'name' unless `parent` was set, in which case it defaults to `title`. + * search_operator (str): Operator used to search the sub entity. Defaults to '='. For fuzzy search use '~'. + * resource_type (str): Resource type used to build API resource PATH. Defaults to pluralized entity key. + * resolve (boolean): Defaults to 'True'. If set to false, the sub entity will not be resolved automatically + * ensure (boolean): Defaults to 'True'. If set to false, it will be removed before sending data to the foreman server. + """ def __init__(self, **kwargs): # State recording for changed and diff reporting @@ -499,10 +509,14 @@ def find_operatingsystems(self, names, **kwargs): return [self.find_operatingsystem(name, **kwargs) for name in names] def find_puppetclass(self, name, environment=None, params=None, failsafe=False, thin=None): + if thin is None: + thin = self._thin_default if environment: scope = {'environment_id': environment} else: - scope = None + scope = {} + if params is not None: + scope.update(params) search = 'name="{0}"'.format(name) results = self.list_resource('puppetclasses', search, params=scope) @@ -841,12 +855,12 @@ def check_required_plugins(self): self.fail_json(msg=missing_msg) -class ForemanEntityAnsibleModule(ForemanAnsibleModule): - """ Base class for Foreman entities. To use it, subclass it with the following convention: +class ForemanStatelessEntityAnsibleModule(ForemanAnsibleModule): + """ Base class for Foreman entities without a state. To use it, subclass it with the following convention: To manage my_entity entity, create the following sub class: ``` - class ForemanMyEntityModule(ForemanEntityAnsibleModule): + class ForemanMyEntityModule(ForemanStatelessEntityAnsibleModule): pass ``` @@ -863,18 +877,12 @@ class ForemanMyEntityModule(ForemanEntityAnsibleModule): ) ``` - This add automatic entities resolution based on provided attributes/ sub entities options. - It add following options to foreman_spec 'entity' and 'entity_list' types: - * search_by (str): Field used to search the sub entity. Defaults to 'name' unless `parent` was set, in which case it defaults to `title`. - * search_operator (str): Operator used to search the sub entity. Defaults to '='. For fuzzy search use '~'. - * resource_type (str): Resource type used to build API resource PATH. Defaults to pluralized entity key. - * resolve (boolean): Defaults to 'True'. If set to false, the sub entity will not be resolved automatically - * ensure (boolean): Defaults to 'True'. If set to false, it will be removed before sending data to the foreman server. It add following attributes: * entity_key (str): field used to search current entity. Defaults to value provided by `ENTITY_KEYS` or 'name' if no value found. * entity_name (str): name of the current entity. By default deduce the entity name from the class name (eg: 'ForemanProvisioningTemplateModule' class will produce 'provisioning_template'). * entity_opts (dict): Dict of options for base entity. Same options can be provided for subentities described in foreman_spec. + The main entity is referenced with the key `entity` in the `foreman_spec`. """ def __init__(self, **kwargs): @@ -882,20 +890,13 @@ def __init__(self, **kwargs): self.entity_name = kwargs.pop('entity_name', self.entity_name_from_class) entity_opts = kwargs.pop('entity_opts', {}) - argument_spec = dict( - state=dict(choices=['present', 'absent'], default='present'), - ) - argument_spec.update(kwargs.pop('argument_spec', {})) - super(ForemanEntityAnsibleModule, self).__init__(argument_spec=argument_spec, **kwargs) - - self.state = self.foreman_params.pop('state') - self.desired_absent = self.state == 'absent' - self._thin_default = self.desired_absent + super(ForemanStatelessEntityAnsibleModule, self).__init__(**kwargs) if 'resource_type' not in entity_opts: entity_opts['resource_type'] = inflector.pluralize(self.entity_name) if 'thin' not in entity_opts: - entity_opts['thin'] = self._thin_default + # Explicit None to trigger the _thin_default mechanism lazily + entity_opts['thin'] = None if 'failsafe' not in entity_opts: entity_opts['failsafe'] = True if 'search_operator' not in entity_opts: @@ -945,6 +946,44 @@ def entity_name_from_class(self): # Get entity name from snake case class name return '_'.join(class_name.split('_')[1:-1]) + +class ForemanEntityAnsibleModule(ForemanStatelessEntityAnsibleModule): + """ Base class for Foreman entities. To use it, subclass it with the following convention: + To manage my_entity entity, create the following sub class: + + ``` + class ForemanMyEntityModule(ForemanEntityAnsibleModule): + pass + ``` + + and use that class to instanciate module: + + ``` + module = ForemanMyEntityModule( + argument_spec=dict( + [...] + ), + foreman_spec=dict( + [...] + ), + ) + ``` + + This adds a `state` parameter to the module and provides the `run` method for the most + common usecases. + """ + + def __init__(self, **kwargs): + argument_spec = dict( + state=dict(choices=['present', 'absent'], default='present'), + ) + argument_spec.update(kwargs.pop('argument_spec', {})) + super(ForemanEntityAnsibleModule, self).__init__(argument_spec=argument_spec, **kwargs) + + self.state = self.foreman_params.pop('state') + self.desired_absent = self.state == 'absent' + self._thin_default = self.desired_absent + def run(self, **kwargs): """ lookup entities, ensure entity, remove sensitive data, manage parameters. """ diff --git a/plugins/modules/content_view_filter.py b/plugins/modules/content_view_filter.py index e9a807a6..9ab51c43 100644 --- a/plugins/modules/content_view_filter.py +++ b/plugins/modules/content_view_filter.py @@ -168,7 +168,7 @@ RETURN = ''' # ''' -from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloAnsibleModule, _foreman_spec_helper +from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloMixin, ForemanStatelessEntityAnsibleModule content_filter_spec = { 'id': {}, @@ -217,7 +217,7 @@ } -class KatelloContentViewFilterModule(KatelloAnsibleModule): +class KatelloContentViewFilterModule(KatelloMixin, ForemanStatelessEntityAnsibleModule): pass @@ -244,17 +244,9 @@ def main(): version=dict(), architecture=dict(), ), + entity_opts=dict(scope=['content_view']), ) - # TODO Maybe refactor this into a EntityMixin - module.foreman_spec.update(_foreman_spec_helper(dict( - entity=dict( - type='entity', flat_name='id', resource_type='content_view_filters', scope=['content_view'], - failsafe=True, thin=False, ensure=False, - ), - ))[0]) - module.foreman_params['entity'] = module.foreman_params['name'] - filter_state = module.foreman_params.pop('filter_state') rule_state = module.foreman_params.pop('rule_state') diff --git a/plugins/modules/setting.py b/plugins/modules/setting.py index 9ad76aef..cfc6a513 100644 --- a/plugins/modules/setting.py +++ b/plugins/modules/setting.py @@ -68,10 +68,10 @@ ''' -from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanAnsibleModule, parameter_value_to_str, _foreman_spec_helper +from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanStatelessEntityAnsibleModule, parameter_value_to_str -class ForemanSettingModule(ForemanAnsibleModule): +class ForemanSettingModule(ForemanStatelessEntityAnsibleModule): pass @@ -83,12 +83,6 @@ def main(): ), ) - # TODO Maybe refactor this into a EntityMixin - module.foreman_spec.update(_foreman_spec_helper(dict( - entity=dict(type='entity', flat_name='id', resource_type='settings', failsafe=False, thin=False, ensure=False), - ))[0]) - module.foreman_params['entity'] = module.foreman_params['name'] - with module.api_connection(): entity = module.lookup_entity('entity') From 8ebda3f5dcafeea277e38c58d903614659f5b776 Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Thu, 2 Jul 2020 10:21:22 +0200 Subject: [PATCH 05/88] add > adds in docstring just a nitpick --- plugins/module_utils/foreman_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index 4a36f60d..71c948ff 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -258,7 +258,7 @@ class ForemanAnsibleModule(AnsibleModule): """ Baseclass for all foreman related Ansible modules. It handles connection parameters and adds the concept of the `foreman_spec`. This adds automatic entities resolution based on provided attributes/ sub entities options. - It add following options to foreman_spec 'entity' and 'entity_list' types: + It adds the following options to foreman_spec 'entity' and 'entity_list' types: * search_by (str): Field used to search the sub entity. Defaults to 'name' unless `parent` was set, in which case it defaults to `title`. * search_operator (str): Operator used to search the sub entity. Defaults to '='. For fuzzy search use '~'. * resource_type (str): Resource type used to build API resource PATH. Defaults to pluralized entity key. @@ -877,7 +877,7 @@ class ForemanMyEntityModule(ForemanStatelessEntityAnsibleModule): ) ``` - It add following attributes: + It adds the following attributes: * entity_key (str): field used to search current entity. Defaults to value provided by `ENTITY_KEYS` or 'name' if no value found. * entity_name (str): name of the current entity. By default deduce the entity name from the class name (eg: 'ForemanProvisioningTemplateModule' class will produce 'provisioning_template'). From 33cb6a2f888f72515320870d17e31ec39be2dbc8 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 15 Jul 2020 12:49:02 +0200 Subject: [PATCH 06/88] add requirements to dist Fixes #872 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 90994182..8633e96b 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VERSION := $(shell python -c 'import yaml; print(yaml.safe_load(open("galaxy.yml MANIFEST := build/collections/ansible_collections/$(NAMESPACE)/$(NAME)/MANIFEST.json PLUGIN_TYPES := $(filter-out __%,$(notdir $(wildcard plugins/*))) -METADATA := galaxy.yml LICENSE README.md meta/runtime.yml +METADATA := galaxy.yml LICENSE README.md meta/runtime.yml requirements.txt requirements-common.txt $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(eval _$(PLUGIN_TYPE) := $(filter-out %__init__.py,$(wildcard plugins/$(PLUGIN_TYPE)/*.py)))) DEPENDENCIES := $(METADATA) $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(_$(PLUGIN_TYPE))) From be9efff488cc557337fc374bfa20d78c62e2cfb8 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 16 Jul 2020 13:25:32 +0200 Subject: [PATCH 07/88] don't pass egg name when installing ansible ansible devel is now called ansible-base and that seems to confuse some pythons --- .github/workflows/main.yml | 2 +- Makefile | 2 +- requirements-common.txt | 1 - tests/test_crud.py | 5 ++++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eec271e9..f9b68fc4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: with: python-version: ${{ matrix.python }} - name: Install Ansible - run: pip install git+https://github.com/ansible/ansible.git@${{ matrix.ansible }}#egg=ansible + run: pip install git+https://github.com/ansible/ansible.git@${{ matrix.ansible }} - name: Set Environment to use mazer run: | echo "::set-env name=COLLECTION_COMMAND::mazer" diff --git a/Makefile b/Makefile index 8633e96b..5bf58335 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ build/src/%: % | build/src cp $< $@ build/src: - -mkdir build build/src build/src/meta build/src/plugins $(addprefix build/src/plugins/,$(PLUGIN_TYPES)) + -mkdir -p build build/src build/src/meta build/src/plugins $(addprefix build/src/plugins/,$(PLUGIN_TYPES)) $(NAMESPACE)-$(NAME)-$(VERSION).tar.gz: $(addprefix build/src/,$(DEPENDENCIES)) | build/src ifeq ($(COLLECTION_COMMAND),mazer) diff --git a/requirements-common.txt b/requirements-common.txt index 87e0543d..3191e4cf 100644 --- a/requirements-common.txt +++ b/requirements-common.txt @@ -1,4 +1,3 @@ -ansible>=2.3 requests ipaddress; python_version < '3.3' PyYAML diff --git a/tests/test_crud.py b/tests/test_crud.py index 80df3ad5..c66dd765 100644 --- a/tests/test_crud.py +++ b/tests/test_crud.py @@ -80,7 +80,10 @@ def run_playbook(module, extra_vars=None, limit=None, check_mode=False): @pytest.mark.parametrize('module', TEST_PLAYBOOKS) def test_crud(tmpdir, module, record): if module == 'inventory_plugin': - ansible_version = pkg_resources.get_distribution('ansible').version + try: + ansible_version = pkg_resources.get_distribution('ansible').version + except pkg_resources.DistributionNotFound: + ansible_version = pkg_resources.get_distribution('ansible-base').version if distutils.version.LooseVersion(ansible_version) < distutils.version.LooseVersion('2.9'): pytest.skip("This module should not be tested on Ansible before 2.9") run = run_playbook_vcr(tmpdir, module, record=record) From f7a69204bb36f012794fd57a5632a1115863ee9e Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 16 Jul 2020 17:04:14 +0200 Subject: [PATCH 08/88] drop deprecation test -- we don't have any metadata anymore --- tests/test_module_state.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/tests/test_module_state.py b/tests/test_module_state.py index c410dd63..a3c818c3 100644 --- a/tests/test_module_state.py +++ b/tests/test_module_state.py @@ -4,8 +4,6 @@ import pytest import six -from ansible.parsing.metadata import extract_metadata - from .conftest import TEST_PLAYBOOKS if six.PY2: @@ -55,16 +53,6 @@ def _module_framework_from_body(body): return framework -def _module_is_deprecated(module): - module_file_path = _module_file_path(module) - with module_file_path.open() as module_file: - metadata = extract_metadata(module_data=module_file.read()) - if metadata[0]: - return 'deprecated' in metadata[0].get('status', []) - else: - return False - - def generate_tested_report(): print("# tested modules") for module in ALL_MODULES: @@ -109,10 +97,7 @@ def test_module_framework(module): @pytest.mark.parametrize('module', ALL_MODULES) def test_module_state(module): - if _module_is_deprecated(module): - warnings.warn("{} is deprecated".format(module)) - else: - assert _module_is_tested(module) + assert _module_is_tested(module) if __name__ == '__main__': From d48d87bc4f9f8b7dc62645f72924ab64d3c9d1fd Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 16 Jul 2020 17:04:45 +0200 Subject: [PATCH 09/88] drop reports from tests -- we didn't use them in a looong time --- tests/test_module_state.py | 42 -------------------------------------- 1 file changed, 42 deletions(-) diff --git a/tests/test_module_state.py b/tests/test_module_state.py index a3c818c3..965e546f 100644 --- a/tests/test_module_state.py +++ b/tests/test_module_state.py @@ -1,5 +1,4 @@ import ast -import warnings import py.path import pytest import six @@ -53,42 +52,6 @@ def _module_framework_from_body(body): return framework -def generate_tested_report(): - print("# tested modules") - for module in ALL_MODULES: - if _module_is_tested(module): - x = 'x' - else: - x = ' ' - extra = [] - if _module_is_deprecated(module): - extra.append('deprecated') - if extra: - extra = ' ({})'.format(','.join(extra)) - else: - extra = '' - print("- [{}] {}{}".format(x, module, extra)) - print("") - - -def generate_apypie_report(): - print("# modules migrated to apypie") - for module in ALL_MODULES: - if _module_framework(module) == 'apypie' or module == 'redhat_manifest': - x = 'x' - else: - x = ' ' - extra = [] - if _module_is_deprecated(module): - extra.append('deprecated') - if extra: - extra = ' ({})'.format(','.join(extra)) - else: - extra = '' - print("- [{}] {}{}".format(x, module, extra)) - print("") - - @pytest.mark.parametrize('module', ALL_MODULES) def test_module_framework(module): module_framework = _module_framework(module) @@ -98,8 +61,3 @@ def test_module_framework(module): @pytest.mark.parametrize('module', ALL_MODULES) def test_module_state(module): assert _module_is_tested(module) - - -if __name__ == '__main__': - generate_tested_report() - generate_apypie_report() From a7b4b851c431985a0ba444220632c67b8ab58474 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 15 Jul 2020 16:15:02 +0200 Subject: [PATCH 10/88] add http_proxy module Fixes: #867 --- plugins/modules/http_proxy.py | 107 +++++ tests/conftest.py | 1 + tests/fixtures/apidoc/http_proxy.json | 1 + .../test_playbooks/fixtures/http_proxy-0.yml | 218 +++++++++ .../test_playbooks/fixtures/http_proxy-1.yml | 216 +++++++++ .../test_playbooks/fixtures/http_proxy-2.yml | 218 +++++++++ .../test_playbooks/fixtures/http_proxy-3.yml | 144 ++++++ .../test_playbooks/fixtures/http_proxy-4.yml | 219 +++++++++ .../test_playbooks/fixtures/http_proxy-5.yml | 216 +++++++++ .../test_playbooks/fixtures/http_proxy-6.yml | 441 ++++++++++++++++++ .../test_playbooks/fixtures/http_proxy-7.yml | 369 +++++++++++++++ .../test_playbooks/fixtures/http_proxy-8.yml | 218 +++++++++ .../test_playbooks/fixtures/http_proxy-9.yml | 144 ++++++ tests/test_playbooks/http_proxy.yml | 118 +++++ tests/test_playbooks/tasks/http_proxy.yml | 23 + 15 files changed, 2653 insertions(+) create mode 100644 plugins/modules/http_proxy.py create mode 120000 tests/fixtures/apidoc/http_proxy.json create mode 100644 tests/test_playbooks/fixtures/http_proxy-0.yml create mode 100644 tests/test_playbooks/fixtures/http_proxy-1.yml create mode 100644 tests/test_playbooks/fixtures/http_proxy-2.yml create mode 100644 tests/test_playbooks/fixtures/http_proxy-3.yml create mode 100644 tests/test_playbooks/fixtures/http_proxy-4.yml create mode 100644 tests/test_playbooks/fixtures/http_proxy-5.yml create mode 100644 tests/test_playbooks/fixtures/http_proxy-6.yml create mode 100644 tests/test_playbooks/fixtures/http_proxy-7.yml create mode 100644 tests/test_playbooks/fixtures/http_proxy-8.yml create mode 100644 tests/test_playbooks/fixtures/http_proxy-9.yml create mode 100644 tests/test_playbooks/http_proxy.yml create mode 100644 tests/test_playbooks/tasks/http_proxy.yml diff --git a/plugins/modules/http_proxy.py b/plugins/modules/http_proxy.py new file mode 100644 index 00000000..c34cbc59 --- /dev/null +++ b/plugins/modules/http_proxy.py @@ -0,0 +1,107 @@ +#!/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: http_proxy +short_description: Manage HTTP Proxies +description: + - Create, update, and delete HTTP Proxies +author: + - "Evgeni Golov (@evgeni)" +options: + name: + description: + - The HTTP Proxy name + required: true + type: str + url: + description: + - URL of the HTTP Proxy + - Required when creating a new HTTP Proxy. + required: False + type: str + proxy_username: + description: + - Username used to authenticate with the HTTP Proxy + required: False + type: str + proxy_password: + description: + - Password used to authenticate with the HTTP Proxy + - When this parameter is set, the module will not be idempotent. + required: False + type: str +extends_documentation_fragment: + - theforeman.foreman.foreman + - theforeman.foreman.foreman.entity_state + - theforeman.foreman.foreman.taxonomy +''' + +EXAMPLES = ''' +- name: create example.org proxy + http_proxy: + name: "example.org" + url: "http://example.org:3128" + locations: + - "Munich" + organizations: + - "ACME" + server_url: "https://foreman.example.com" + username: "admin" + password: "secret" + state: present +''' + +RETURN = ''' # ''' + +from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicEntityAnsibleModule + + +class ForemanHttpProxyModule(ForemanTaxonomicEntityAnsibleModule): + pass + + +def main(): + module = ForemanHttpProxyModule( + foreman_spec=dict( + name=dict(required=True), + url=dict(), + proxy_username=dict(flat_name='username'), + proxy_password=dict(no_log=True, flat_name='password'), + ), + ) + + with module.api_connection(): + entity = module.lookup_entity('entity') + + if not module.desired_absent: + if 'url' not in module.foreman_params: + if not entity: + module.fail_json(msg="The 'url' parameter is required when creating a new HTTP Proxy.") + else: + module.foreman_params['url'] = entity['url'] + + module.run() + + +if __name__ == '__main__': + main() diff --git a/tests/conftest.py b/tests/conftest.py index 60cdc7f2..cb8bcda5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -22,6 +22,7 @@ 'host', 'host_power', 'hostgroup', + 'http_proxy', 'image', 'inventory_plugin', 'katello_hostgroup', diff --git a/tests/fixtures/apidoc/http_proxy.json b/tests/fixtures/apidoc/http_proxy.json new file mode 120000 index 00000000..f9e40151 --- /dev/null +++ b/tests/fixtures/apidoc/http_proxy.json @@ -0,0 +1 @@ +foreman.json \ No newline at end of file diff --git a/tests/test_playbooks/fixtures/http_proxy-0.yml b/tests/test_playbooks/fixtures/http_proxy-0.yml new file mode 100644 index 00000000..86ce8003 --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-0.yml @@ -0,0 +1,218 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:44 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=3de57cd3f77cc66bf4202602fcac42a9; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 7b80e1f1-a36a-4201-8fd6-e27b3b99a6d8 + X-Runtime: + - '0.136901' + 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 + Cookie: + - _session_id=3de57cd3f77cc66bf4202602fcac42a9 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\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 + Date: + - Wed, 15 Jul 2020 18:52:44 GMT + ETag: + - W/"89a1ec9e31d0f3ae1cce43a9541d1d81-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - abda4c75-6b1e-4eb0-837e-55adc57bf687 + X-Runtime: + - '0.014877' + X-XSS-Protection: + - 1; mode=block + content-length: + - '183' + status: + code: 200 + message: OK +- request: + body: '{"http_proxy": {"name": "example.org Proxy", "url": "http://example.org:3128"}}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '79' + Content-Type: + - application/json + Cookie: + - _session_id=3de57cd3f77cc66bf4202602fcac42a9 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: POST + uri: https://foreman.example.org/api/http_proxies + response: + body: + string: '{"id":13,"name":"example.org Proxy","url":"http://example.org:3128","username":null,"password":null}' + 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 + Date: + - Wed, 15 Jul 2020 18:52:45 GMT + ETag: + - W/"b5796828828b985c94f52eb0037225af" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=98 + Location: + - https://centos7-foreman-2-1.yatsu.example.com/http_proxies/13-example-org%20Proxy + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Transfer-Encoding: + - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - bb6d9934-3308-49ef-a5d3-fbaf561bb92a + X-Runtime: + - '0.030049' + X-XSS-Protection: + - 1; mode=block + status: + code: 201 + message: Created +version: 1 diff --git a/tests/test_playbooks/fixtures/http_proxy-1.yml b/tests/test_playbooks/fixtures/http_proxy-1.yml new file mode 100644 index 00000000..a32d5ab2 --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-1.yml @@ -0,0 +1,216 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:45 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=b866a220acae0b78de73cb7c85e8ff01; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 42aaca3b-4fbe-4529-b930-532825c56a27 + X-Runtime: + - '0.136333' + 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 + Cookie: + - _session_id=b866a220acae0b78de73cb7c85e8ff01 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"id\"\ + :13,\"name\":\"example.org Proxy\",\"url\":\"http://example.org:3128\",\"\ + username\":null}]\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 + Date: + - Wed, 15 Jul 2020 18:52:45 GMT + ETag: + - W/"3890063192d1915198ddc00cb9a8ebba-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - d35a064a-1fe2-4b74-a725-61358cabbcfd + X-Runtime: + - '0.015578' + X-XSS-Protection: + - 1; mode=block + content-length: + - '267' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - _session_id=b866a220acae0b78de73cb7c85e8ff01 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies/13 + response: + body: + string: '{"id":13,"name":"example.org Proxy","url":"http://example.org:3128","username":null,"locations":[],"organizations":[]}' + 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 + Date: + - Wed, 15 Jul 2020 18:52:45 GMT + ETag: + - W/"b334f03067d13c76077ff1ee13ce72cb-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=98 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 59af895e-96b8-4185-bfed-b73540286118 + X-Runtime: + - '0.017009' + X-XSS-Protection: + - 1; mode=block + content-length: + - '118' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/http_proxy-2.yml b/tests/test_playbooks/fixtures/http_proxy-2.yml new file mode 100644 index 00000000..be5edd44 --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-2.yml @@ -0,0 +1,218 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:46 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=a5eb76536b070a56c1531cbdb7129985; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 81ce7055-f818-4dd9-bfcc-30d280c00f3c + X-Runtime: + - '0.152051' + 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 + Cookie: + - _session_id=a5eb76536b070a56c1531cbdb7129985 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"id\"\ + :13,\"name\":\"example.org Proxy\",\"url\":\"http://example.org:3128\",\"\ + username\":null}]\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 + Date: + - Wed, 15 Jul 2020 18:52:46 GMT + ETag: + - W/"3890063192d1915198ddc00cb9a8ebba-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 603c4899-6fd9-45b0-b9f6-d84ca36c0d84 + X-Runtime: + - '0.014679' + X-XSS-Protection: + - 1; mode=block + content-length: + - '267' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Cookie: + - _session_id=a5eb76536b070a56c1531cbdb7129985 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: DELETE + uri: https://foreman.example.org/api/http_proxies/13 + response: + body: + string: '{"id":13,"name":"example.org Proxy","url":"http://example.org:3128","username":null,"password":null}' + 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 + Date: + - Wed, 15 Jul 2020 18:52:46 GMT + ETag: + - W/"b5796828828b985c94f52eb0037225af-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=98 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - c7bf84e9-f01f-45e6-bb3a-ab4b3d68eddc + X-Runtime: + - '0.026143' + X-XSS-Protection: + - 1; mode=block + content-length: + - '100' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/http_proxy-3.yml b/tests/test_playbooks/fixtures/http_proxy-3.yml new file mode 100644 index 00000000..3704ca46 --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-3.yml @@ -0,0 +1,144 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:46 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=39148a942cf2dfcb8876807bb59e5b71; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 27f1d7a7-1af3-4bd2-b3c0-336d27aa5ef7 + X-Runtime: + - '0.133342' + 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 + Cookie: + - _session_id=39148a942cf2dfcb8876807bb59e5b71 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\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 + Date: + - Wed, 15 Jul 2020 18:52:46 GMT + ETag: + - W/"89a1ec9e31d0f3ae1cce43a9541d1d81-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 0fa62572-571d-4488-a097-164ac9eb97fd + X-Runtime: + - '0.017764' + X-XSS-Protection: + - 1; mode=block + content-length: + - '183' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/http_proxy-4.yml b/tests/test_playbooks/fixtures/http_proxy-4.yml new file mode 100644 index 00000000..21a6c323 --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-4.yml @@ -0,0 +1,219 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:47 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=3b9ac00404f9da69774d31bcbaea7f70; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - fc9808eb-844f-4900-97e7-c8ff47717402 + X-Runtime: + - '0.136483' + 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 + Cookie: + - _session_id=3b9ac00404f9da69774d31bcbaea7f70 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\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 + Date: + - Wed, 15 Jul 2020 18:52:47 GMT + ETag: + - W/"89a1ec9e31d0f3ae1cce43a9541d1d81-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 6d85cd9a-8ba9-47aa-8b75-de08b5c13251 + X-Runtime: + - '0.014242' + X-XSS-Protection: + - 1; mode=block + content-length: + - '183' + status: + code: 200 + message: OK +- request: + body: '{"http_proxy": {"name": "example.org Proxy", "url": "http://example.org:3128", + "username": "proxyuser", "password": "proxypass"}}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '129' + Content-Type: + - application/json + Cookie: + - _session_id=3b9ac00404f9da69774d31bcbaea7f70 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: POST + uri: https://foreman.example.org/api/http_proxies + response: + body: + string: '{"id":14,"name":"example.org Proxy","url":"http://example.org:3128","username":"proxyuser","password":"proxypass"}' + 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 + Date: + - Wed, 15 Jul 2020 18:52:47 GMT + ETag: + - W/"9e47049a1316da4c4ac38a727b24158c" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=98 + Location: + - https://centos7-foreman-2-1.yatsu.example.com/http_proxies/14-example-org%20Proxy + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Transfer-Encoding: + - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 75817d96-35ae-45a1-b930-347179c624f4 + X-Runtime: + - '0.028721' + X-XSS-Protection: + - 1; mode=block + status: + code: 201 + message: Created +version: 1 diff --git a/tests/test_playbooks/fixtures/http_proxy-5.yml b/tests/test_playbooks/fixtures/http_proxy-5.yml new file mode 100644 index 00000000..a4b770ed --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-5.yml @@ -0,0 +1,216 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:47 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=d87e1e9fbb70e33391aa35e34eb27b9c; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 03236c0a-451a-49e9-85f3-38c97ddedcdd + X-Runtime: + - '0.130011' + 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 + Cookie: + - _session_id=d87e1e9fbb70e33391aa35e34eb27b9c + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"id\"\ + :14,\"name\":\"example.org Proxy\",\"url\":\"http://example.org:3128\",\"\ + username\":\"proxyuser\"}]\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 + Date: + - Wed, 15 Jul 2020 18:52:47 GMT + ETag: + - W/"b8af2bf997b0dd3e092b58e0d1d70ca8-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - ac9a0cb5-8fe2-45b5-b7af-ac5f0b1f0b51 + X-Runtime: + - '0.014713' + X-XSS-Protection: + - 1; mode=block + content-length: + - '274' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - _session_id=d87e1e9fbb70e33391aa35e34eb27b9c + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies/14 + response: + body: + string: '{"id":14,"name":"example.org Proxy","url":"http://example.org:3128","username":"proxyuser","locations":[],"organizations":[]}' + 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 + Date: + - Wed, 15 Jul 2020 18:52:47 GMT + ETag: + - W/"367902ba78065722e7f2243e708d42f7-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=98 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - c24993f8-7ef3-4826-8d89-e32e1b5d1a3e + X-Runtime: + - '0.016318' + X-XSS-Protection: + - 1; mode=block + content-length: + - '125' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/http_proxy-6.yml b/tests/test_playbooks/fixtures/http_proxy-6.yml new file mode 100644 index 00000000..089135ef --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-6.yml @@ -0,0 +1,441 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:48 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=15b146f9964d9c34c1f02576b5376309; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - e0925fe0-e2b0-4ab3-b085-6aa062a862e1 + X-Runtime: + - '0.133101' + 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 + Cookie: + - _session_id=15b146f9964d9c34c1f02576b5376309 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"id\"\ + :14,\"name\":\"example.org Proxy\",\"url\":\"http://example.org:3128\",\"\ + username\":\"proxyuser\"}]\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 + Date: + - Wed, 15 Jul 2020 18:52:48 GMT + ETag: + - W/"b8af2bf997b0dd3e092b58e0d1d70ca8-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 50dcfe3d-d2f0-4e1b-ab56-845d7d94b6db + X-Runtime: + - '0.014864' + X-XSS-Protection: + - 1; mode=block + content-length: + - '274' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - _session_id=15b146f9964d9c34c1f02576b5376309 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies/14 + response: + body: + string: '{"id":14,"name":"example.org Proxy","url":"http://example.org:3128","username":"proxyuser","locations":[],"organizations":[]}' + 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 + Date: + - Wed, 15 Jul 2020 18:52:48 GMT + ETag: + - W/"367902ba78065722e7f2243e708d42f7-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=98 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 7382e1e6-3774-4a22-b097-e74f7594a837 + X-Runtime: + - '0.016373' + X-XSS-Protection: + - 1; mode=block + content-length: + - '125' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - _session_id=15b146f9964d9c34c1f02576b5376309 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-15\ + \ 18:51:51 UTC\",\"updated_at\":\"2020-07-15 18:51:51 UTC\",\"id\":12,\"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 + Date: + - Wed, 15 Jul 2020 18:52:48 GMT + ETag: + - W/"aa2f952189eedd996dc16ed2877cc1eb-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=97 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 6a1df3f1-dfea-4af5-91df-18fe737635e9 + X-Runtime: + - '0.014440' + X-XSS-Protection: + - 1; mode=block + content-length: + - '413' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - _session_id=15b146f9964d9c34c1f02576b5376309 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-15\ + \ 18:51:50 UTC\",\"updated_at\":\"2020-07-15 18:51:50 UTC\",\"id\":11,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\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 + Date: + - Wed, 15 Jul 2020 18:52:48 GMT + ETag: + - W/"bfeb7ca2f34124cd102405c7436fcb00-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=96 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 7a5058f6-df6e-4d09-ac8c-d8e3e1a73662 + X-Runtime: + - '0.014499' + X-XSS-Protection: + - 1; mode=block + content-length: + - '385' + status: + code: 200 + message: OK +- request: + body: '{"http_proxy": {"location_ids": [11], "organization_ids": [12]}}' + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '64' + Content-Type: + - application/json + Cookie: + - _session_id=15b146f9964d9c34c1f02576b5376309 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: PUT + uri: https://foreman.example.org/api/http_proxies/14 + response: + body: + string: '{"id":14,"name":"example.org Proxy","url":"http://example.org:3128","username":"proxyuser","password":"proxypass"}' + 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 + Date: + - Wed, 15 Jul 2020 18:52:48 GMT + ETag: + - W/"9e47049a1316da4c4ac38a727b24158c-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=95 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 1781a3f4-0ff0-44e2-a469-a8720c5ba165 + X-Runtime: + - '0.044276' + X-XSS-Protection: + - 1; mode=block + content-length: + - '114' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/http_proxy-7.yml b/tests/test_playbooks/fixtures/http_proxy-7.yml new file mode 100644 index 00000000..32a70d1a --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-7.yml @@ -0,0 +1,369 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:49 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=934cc87cc6f669e1becfce53e4a4b1b3; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 909143fa-91ea-4a92-b01a-2938b6ff8141 + X-Runtime: + - '0.135012' + 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 + Cookie: + - _session_id=934cc87cc6f669e1becfce53e4a4b1b3 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"id\"\ + :14,\"name\":\"example.org Proxy\",\"url\":\"http://example.org:3128\",\"\ + username\":\"proxyuser\"}]\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 + Date: + - Wed, 15 Jul 2020 18:52:49 GMT + ETag: + - W/"b8af2bf997b0dd3e092b58e0d1d70ca8-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 701a8052-1884-4805-b0c8-34b5f084bde8 + X-Runtime: + - '0.014816' + X-XSS-Protection: + - 1; mode=block + content-length: + - '274' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - _session_id=934cc87cc6f669e1becfce53e4a4b1b3 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies/14 + response: + body: + string: '{"id":14,"name":"example.org Proxy","url":"http://example.org:3128","username":"proxyuser","locations":[{"id":11,"name":"Test + Location","title":"Test Location"}],"organizations":[{"id":12,"name":"Test + Organization","title":"Test Organization"}]}' + 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 + Date: + - Wed, 15 Jul 2020 18:52:49 GMT + ETag: + - W/"3069c6cc28cc235056549c65516799f5-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=98 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 5582e39f-f5a4-4389-a151-adbfae81e302 + X-Runtime: + - '0.016880' + X-XSS-Protection: + - 1; mode=block + content-length: + - '245' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - _session_id=934cc87cc6f669e1becfce53e4a4b1b3 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-15\ + \ 18:51:51 UTC\",\"updated_at\":\"2020-07-15 18:51:51 UTC\",\"id\":12,\"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 + Date: + - Wed, 15 Jul 2020 18:52:49 GMT + ETag: + - W/"aa2f952189eedd996dc16ed2877cc1eb-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=97 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 537b788e-2230-4c2c-8525-aba50ecc7d5f + X-Runtime: + - '0.014215' + X-XSS-Protection: + - 1; mode=block + content-length: + - '413' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Cookie: + - _session_id=934cc87cc6f669e1becfce53e4a4b1b3 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-15\ + \ 18:51:50 UTC\",\"updated_at\":\"2020-07-15 18:51:50 UTC\",\"id\":11,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\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 + Date: + - Wed, 15 Jul 2020 18:52:49 GMT + ETag: + - W/"bfeb7ca2f34124cd102405c7436fcb00-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=96 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 3783ef96-334b-47f0-95e6-86ab155c5050 + X-Runtime: + - '0.014415' + X-XSS-Protection: + - 1; mode=block + content-length: + - '385' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/http_proxy-8.yml b/tests/test_playbooks/fixtures/http_proxy-8.yml new file mode 100644 index 00000000..78b973b6 --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-8.yml @@ -0,0 +1,218 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:49 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=f47db0b63b3a219120af38c113ace343; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 26b3a3e4-56a8-4d47-9798-d6f2cff18739 + X-Runtime: + - '0.136307' + 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 + Cookie: + - _session_id=f47db0b63b3a219120af38c113ace343 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"id\"\ + :14,\"name\":\"example.org Proxy\",\"url\":\"http://example.org:3128\",\"\ + username\":\"proxyuser\"}]\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 + Date: + - Wed, 15 Jul 2020 18:52:49 GMT + ETag: + - W/"b8af2bf997b0dd3e092b58e0d1d70ca8-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 285b4a85-a9c5-4e77-8180-75752b18f27a + X-Runtime: + - '0.015519' + X-XSS-Protection: + - 1; mode=block + content-length: + - '274' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Cookie: + - _session_id=f47db0b63b3a219120af38c113ace343 + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: DELETE + uri: https://foreman.example.org/api/http_proxies/14 + response: + body: + string: '{"id":14,"name":"example.org Proxy","url":"http://example.org:3128","username":"proxyuser","password":"proxypass"}' + 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 + Date: + - Wed, 15 Jul 2020 18:52:49 GMT + ETag: + - W/"9e47049a1316da4c4ac38a727b24158c-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=98 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - c9ae5952-ce93-4993-92f0-be5d1e1cfb35 + X-Runtime: + - '0.032882' + X-XSS-Protection: + - 1; mode=block + content-length: + - '114' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/fixtures/http_proxy-9.yml b/tests/test_playbooks/fixtures/http_proxy-9.yml new file mode 100644 index 00000000..056a5d46 --- /dev/null +++ b/tests/test_playbooks/fixtures/http_proxy-9.yml @@ -0,0 +1,144 @@ +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.0","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 + Date: + - Wed, 15 Jul 2020 18:52:50 GMT + ETag: + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=100 + Server: + - Apache + Set-Cookie: + - _session_id=e7839c2e9360e4452c149070d3f8febe; path=/; secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 5ac27790-1ec2-4c6c-8eaf-6cccb346e803 + X-Runtime: + - '0.140063' + 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 + Cookie: + - _session_id=e7839c2e9360e4452c149070d3f8febe + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: GET + uri: https://foreman.example.org/api/http_proxies?search=name%3D%22example.org+Proxy%22&per_page=4294967296 + response: + body: + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.org Proxy\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\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 + Date: + - Wed, 15 Jul 2020 18:52:50 GMT + ETag: + - W/"89a1ec9e31d0f3ae1cce43a9541d1d81-gzip" + Foreman_api_version: + - '2' + Foreman_current_location: + - ; ANY + Foreman_current_organization: + - ; ANY + Foreman_version: + - 2.1.0 + Keep-Alive: + - timeout=15, max=99 + Server: + - Apache + Strict-Transport-Security: + - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - sameorigin + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - 9b5c0422-56e1-4821-8398-d6158f3b4e80 + X-Runtime: + - '0.014258' + X-XSS-Protection: + - 1; mode=block + content-length: + - '183' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_playbooks/http_proxy.yml b/tests/test_playbooks/http_proxy.yml new file mode 100644 index 00000000..20ca7d5e --- /dev/null +++ b/tests/test_playbooks/http_proxy.yml @@ -0,0 +1,118 @@ +--- +- hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - include_tasks: tasks/location.yml + vars: + location_name: "Test Location" + location_state: "present" + - include_tasks: tasks/organization.yml + vars: + organization_name: "Test Organization" + organization_state: "present" + +- hosts: tests + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - name: create http_proxy + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "present" + http_proxy_name: "example.org Proxy" + http_proxy_url: "http://example.org:3128" + expected_change: true + - name: create http_proxy again, no change + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "present" + http_proxy_name: "example.org Proxy" + http_proxy_url: "http://example.org:3128" + expected_change: false + - name: delete http_proxy + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "absent" + http_proxy_name: "example.org Proxy" + expected_change: true + - name: delete http_proxy again, no change + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "absent" + http_proxy_name: "example.org Proxy" + expected_change: false + + - name: create http_proxy with user/pass + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "present" + http_proxy_name: "example.org Proxy" + http_proxy_url: "http://example.org:3128" + http_proxy_username: "proxyuser" + http_proxy_password: "proxypass" + expected_change: true + - name: create http_proxy with user again, no change + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "present" + http_proxy_name: "example.org Proxy" + http_proxy_url: "http://example.org:3128" + http_proxy_username: "proxyuser" + # don't set http_proxy_password here + expected_change: false + - name: update http_proxy with org/loc + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "present" + http_proxy_name: "example.org Proxy" + http_proxy_organizations: + - "Test Organization" + http_proxy_locations: + - "Test Location" + expected_change: true + - name: update http_proxy with org/loc, no change + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "present" + http_proxy_name: "example.org Proxy" + http_proxy_organizations: + - "Test Organization" + http_proxy_locations: + - "Test Location" + expected_change: false + - name: delete http_proxy + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "absent" + http_proxy_name: "example.org Proxy" + expected_change: true + - name: delete http_proxy again, no change + include_tasks: tasks/http_proxy.yml + vars: + http_proxy_state: "absent" + http_proxy_name: "example.org Proxy" + expected_change: false + +- hosts: localhost + collections: + - theforeman.foreman + gather_facts: false + vars_files: + - vars/server.yml + tasks: + - include_tasks: tasks/location.yml + vars: + location_name: "Test Location" + location_state: "absent" + - include_tasks: tasks/organization.yml + vars: + organization_name: "Test Organization" + organization_state: "absent" +... diff --git a/tests/test_playbooks/tasks/http_proxy.yml b/tests/test_playbooks/tasks/http_proxy.yml new file mode 100644 index 00000000..ac494017 --- /dev/null +++ b/tests/test_playbooks/tasks/http_proxy.yml @@ -0,0 +1,23 @@ +--- +- name: "Create/Update/Delete HTTP Proxy" + vars: + http_proxy_state: "present" + http_proxy: + username: "{{ foreman_username }}" + password: "{{ foreman_password }}" + server_url: "{{ foreman_server_url }}" + validate_certs: "{{ foreman_validate_certs }}" + name: "{{ http_proxy_name }}" + url: "{{ http_proxy_url | default(omit) }}" + proxy_username: "{{ http_proxy_username | default(omit) }}" + proxy_password: "{{ http_proxy_password | default(omit) }}" + locations: "{{ http_proxy_locations | default(omit) }}" + organizations: "{{ http_proxy_organizations | default(omit) }}" + state: "{{ http_proxy_state }}" + register: result +- assert: + fail_msg: "Ensuring http_proxy is {{ http_proxy_state }} failed! (expected_change: {{ expected_change | default('unknown') }})" + that: + - result.changed == expected_change + when: expected_change is defined +... From 696245f44d893e7275a273111771cbc3ff6f9251 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 17 Jul 2020 08:41:17 +0200 Subject: [PATCH 11/88] update foreman apidoc to 2.1 --- tests/fixtures/apidoc/foreman.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/apidoc/foreman.json b/tests/fixtures/apidoc/foreman.json index 68d84de0..afac6a5c 100644 --- a/tests/fixtures/apidoc/foreman.json +++ b/tests/fixtures/apidoc/foreman.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":{"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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\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\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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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\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\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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":["operatingsystem","role","ptable","provisioning_template","user","auth_source","compute_resource","host","interface","location","organization","os","override_value","parameter","partition_table","setting","smart_class_parameter","smart_variable","subnet"]},{"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup","full_name":"usergroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"usergroup","full_name":"usergroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"user","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"user","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"bookmark","full_name":"bookmark","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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_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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass","full_name":"puppetclass","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass","full_name":"puppetclass","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm","full_name":"realm","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"domain","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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":[],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment","full_name":"environment","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"filter","full_name":"filter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"filter","full_name":"filter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"environment","type":"string"},{"name":"host","type":"string"},{"name":"id","type":"integer"},{"name":"label","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup","full_name":"hostgroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":[]}]}],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":[]}]}],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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":[]},{"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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"boot_time","type":"datetime"},{"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":"created_at","type":"datetime"},{"name":"domain","type":"string"},{"name":"domain_id","type":"integer"},{"name":"environment","type":"string"},{"name":"facts","type":"string"},{"name":"global_status","values":["ok","warning","error"]},{"name":"has_ip","type":"string"},{"name":"has_mac","type":"string"},{"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":"image","type":"string"},{"name":"installed_at","type":"datetime"},{"name":"ip","type":"string"},{"name":"last_report","type":"datetime"},{"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":"realm","type":"string"},{"name":"realm_id","type":"integer"},{"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":"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"host","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Hash","expected_type":"hash","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Hash","expected_type":"hash","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a String","expected_type":"string","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"location","full_name":"location","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"location","full_name":"location","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"setting","full_name":"setting","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"model","full_name":"model","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"model","full_name":"model","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem","full_name":"operatingsystem","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem","full_name":"operatingsystem","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/organizations/index","name":"index","apis":[{"api_url":"/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"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":"/api/organizations/:id","http_method":"GET","short_description":"Show 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/organizations/create","name":"create","apis":[{"api_url":"/api/organizations","http_method":"POST","short_description":"Create 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization","full_name":"organization","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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/update","name":"update","apis":[{"api_url":"/api/organizations/:id","http_method":"PUT","short_description":"Update 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization","full_name":"organization","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":[]}]},{"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, 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/organizations/destroy","name":"destroy","apis":[{"api_url":"/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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 an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter","full_name":"parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter","full_name":"parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":[]}]}],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":[]}]}],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet","full_name":"subnet","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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}},"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":{"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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\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\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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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\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\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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":["operatingsystem","role","ptable","provisioning_template","user","auth_source","compute_resource","host","interface","location","organization","os","override_value","parameter","partition_table","setting","smart_class_parameter","subnet"]},{"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"usergroup","full_name":"usergroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"usergroup","full_name":"usergroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"user","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"user","full_name":"user","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"bookmark","full_name":"bookmark","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"ptable","full_name":"ptable","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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_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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"puppetclass","full_name":"puppetclass","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"puppetclass","full_name":"puppetclass","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"realm","full_name":"realm","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"domain","full_name":"domain","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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":[],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"environment","full_name":"environment","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"filter","full_name":"filter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"filter","full_name":"filter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"role","full_name":"role","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"environment","type":"string"},{"name":"host","type":"string"},{"name":"id","type":"integer"},{"name":"label","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"hostgroup","full_name":"hostgroup","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":[]}]}],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":[]}]}],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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":[]},{"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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"boot_time","type":"datetime"},{"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":"created_at","type":"datetime"},{"name":"domain","type":"string"},{"name":"domain_id","type":"integer"},{"name":"environment","type":"string"},{"name":"facts","type":"string"},{"name":"global_status","values":["ok","warning","error"]},{"name":"has_ip","type":"string"},{"name":"has_mac","type":"string"},{"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":"image","type":"string"},{"name":"installed_at","type":"datetime"},{"name":"ip","type":"string"},{"name":"last_report","type":"datetime"},{"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":"realm","type":"string"},{"name":"realm_id","type":"integer"},{"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":"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"host","full_name":"host","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Hash","expected_type":"hash","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Hash","expected_type":"hash","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a String","expected_type":"string","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"location","full_name":"location","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"location","full_name":"location","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"setting","full_name":"setting","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"model","full_name":"model","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"model","full_name":"model","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"name","full_name":"name","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem","full_name":"operatingsystem","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"operatingsystem","full_name":"operatingsystem","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"medium","full_name":"medium","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"architecture","full_name":"architecture","description":"","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":null,"version":"v2","formats":null,"metadata":null,"methods":[{"doc_url":"../apidoc/v2/organizations/index","name":"index","apis":[{"api_url":"/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"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":"/api/organizations/:id","http_method":"GET","short_description":"Show 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/organizations/create","name":"create","apis":[{"api_url":"/api/organizations","http_method":"POST","short_description":"Create 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization","full_name":"organization","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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/update","name":"update","apis":[{"api_url":"/api/organizations/:id","http_method":"PUT","short_description":"Update 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization","full_name":"organization","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":[]}]},{"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, 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/organizations/destroy","name":"destroy","apis":[{"api_url":"/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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 an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, 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},"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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter","full_name":"parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a String","expected_type":"string","metadata":null,"show":true,"validations":[]},{"name":"parameter","full_name":"parameter","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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},"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":[]}]}],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a 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":"Must be a 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":[]}]}],"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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a String","expected_type":"string","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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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 a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, 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/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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"subnet","full_name":"subnet","description":"","required":true,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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":"Must be a Integer","expected_type":"numeric","metadata":null,"show":true,"validations":[]},{"name":"organization_id","full_name":"organization_id","description":"\n\u003cp\u003eSet the current organization context for the request\u003c/p\u003e\n","required":false,"allow_nil":false,"allow_blank":false,"validator":"Must be a 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, space, underscore(_), hypen(-) 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":"Must be a 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}},"link_extension":".html"}} \ No newline at end of file From 764532f8147fc8ddd0266e2b937a72e750870059 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 17 Jul 2020 09:21:15 +0200 Subject: [PATCH 12/88] re-record subnet tests for 2.1 --- tests/test_playbooks/fixtures/subnet-0.yml | 241 ++++-------- tests/test_playbooks/fixtures/subnet-1.yml | 159 ++++---- tests/test_playbooks/fixtures/subnet-10.yml | 114 +++--- tests/test_playbooks/fixtures/subnet-11.yml | 64 ++-- tests/test_playbooks/fixtures/subnet-12.yml | 240 ++++++------ tests/test_playbooks/fixtures/subnet-13.yml | 252 +++++++------ tests/test_playbooks/fixtures/subnet-14.yml | 120 +++--- tests/test_playbooks/fixtures/subnet-15.yml | 64 ++-- tests/test_playbooks/fixtures/subnet-16.yml | 103 +++--- tests/test_playbooks/fixtures/subnet-17.yml | 150 ++++---- tests/test_playbooks/fixtures/subnet-18.yml | 114 +++--- tests/test_playbooks/fixtures/subnet-19.yml | 114 +++--- tests/test_playbooks/fixtures/subnet-2.yml | 118 +++--- tests/test_playbooks/fixtures/subnet-20.yml | 384 ++++++++++---------- tests/test_playbooks/fixtures/subnet-21.yml | 346 +++++++++--------- tests/test_playbooks/fixtures/subnet-22.yml | 308 ++++++++-------- tests/test_playbooks/fixtures/subnet-23.yml | 118 +++--- tests/test_playbooks/fixtures/subnet-24.yml | 64 ++-- tests/test_playbooks/fixtures/subnet-3.yml | 257 +++++++------ tests/test_playbooks/fixtures/subnet-4.yml | 159 ++++---- tests/test_playbooks/fixtures/subnet-5.yml | 221 ++++++----- tests/test_playbooks/fixtures/subnet-6.yml | 114 +++--- tests/test_playbooks/fixtures/subnet-7.yml | 64 ++-- tests/test_playbooks/fixtures/subnet-8.yml | 102 +++--- tests/test_playbooks/fixtures/subnet-9.yml | 114 +++--- 25 files changed, 2027 insertions(+), 2077 deletions(-) diff --git a/tests/test_playbooks/fixtures/subnet-0.yml b/tests/test_playbooks/fixtures/subnet-0.yml index 5a59b846..09895268 100644 --- a/tests/test_playbooks/fixtures/subnet-0.yml +++ b/tests/test_playbooks/fixtures/subnet-0.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:47 GMT + - Fri, 17 Jul 2020 07:19:09 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=7cc1bbc5645f719a0e4bece41652c84b; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=52106e5e8d03dde888c8002c41afdeef; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 11558856-4389-4790-ba18-415fc82f974e + - e49f49a3-dcca-4a98-8a68-506292756f57 X-Runtime: - - '0.076709' + - '0.137823' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,16 +79,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=7cc1bbc5645f719a0e4bece41652c84b + - _session_id=52106e5e8d03dde888c8002c41afdeef User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,12 +96,12 @@ 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: - - Wed, 04 Dec 2019 10:07:47 GMT + - Fri, 17 Jul 2020 07:19:09 GMT ETag: - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: @@ -111,17 +111,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,12 +130,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 4a20b287-384e-4955-9cea-4344f8a842f6 + - c960739d-6989-41bc-8149-adf8da2861c4 X-Runtime: - - '0.015904' + - '0.015413' X-XSS-Protection: - 1; mode=block content-length: @@ -145,7 +143,7 @@ interactions: message: OK - request: body: '{"subnet": {"name": "Test Subnet", "network_type": "IPv4", "network": "192.168.200.0", - "mask": "255.255.255.224", "ipam": "DHCP", "boot_mode": "DHCP"}}' + "cidr": 27, "mask": "255.255.255.224", "ipam": "DHCP", "boot_mode": "DHCP"}}' headers: Accept: - application/json;version=2 @@ -154,20 +152,20 @@ interactions: Connection: - keep-alive Content-Length: - - '151' + - '163' Content-Type: - application/json Cookie: - - _session_id=7cc1bbc5645f719a0e4bece41652c84b + - _session_id=52106e5e8d03dde888c8002c41afdeef User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/subnets + uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","ipam":"DHCP","boot_mode":"DHCP","id":20,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -175,14 +173,14 @@ 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: - - Wed, 04 Dec 2019 10:07:47 GMT + - Fri, 17 Jul 2020 07:19:09 GMT ETag: - - W/"d92c6de949c2114c2e6ad79e80659e5d" + - W/"4a1f48804cfd945a200b58a4b10a657f" Foreman_api_version: - '2' Foreman_current_location: @@ -190,19 +188,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -211,94 +207,15 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - c5e76cf0-1212-47b6-85cd-2cef8859493d + - 57d866da-6e3f-4353-810f-1bc3c462fc48 X-Runtime: - - '0.043444' + - '0.054328' X-XSS-Protection: - 1; mode=block status: code: 201 message: Created -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=7cc1bbc5645f719a0e4bece41652c84b; request_method=POST - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/subnets/20/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": []\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 04 Dec 2019 10:07:47 GMT - ETag: - - W/"b0ebd79c430c4781172af39880582aed-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=97 - 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: - - 06f9abec-6655-4857-9ebc-15caa37cac52 - X-Runtime: - - '0.015056' - X-XSS-Protection: - - 1; mode=block - content-length: - - '159' - status: - code: 200 - message: OK - request: body: '{"parameter": {"name": "subnet_param1", "value": "value1", "parameter_type": "string"}}' @@ -314,15 +231,15 @@ interactions: Content-Type: - application/json Cookie: - - _session_id=7cc1bbc5645f719a0e4bece41652c84b + - _session_id=52106e5e8d03dde888c8002c41afdeef User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/subnets/20/parameters + uri: https://foreman.example.org/api/subnets/1/parameters response: body: - string: '{"priority":40,"created_at":"2019-12-04 10:07:47 UTC","updated_at":"2019-12-04 - 10:07:47 UTC","id":19,"name":"subnet_param1","parameter_type":"string","value":"value1"}' + string: '{"priority":40,"created_at":"2020-07-17 07:19:09 UTC","updated_at":"2020-07-17 + 07:19:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -330,14 +247,14 @@ 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: - - Wed, 04 Dec 2019 10:07:47 GMT + - Fri, 17 Jul 2020 07:19:09 GMT ETag: - - W/"7cf93927c357390d6cc8a5f835e2cc1b" + - W/"f07594ca92728d693944d05c405d6380" Foreman_api_version: - '2' Foreman_current_location: @@ -345,19 +262,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=96 + - timeout=15, max=97 Server: - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -366,12 +281,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 09ba43d0-937f-47be-a542-281d0b6179cc + - c4b39def-ea09-4f31-990d-1e62fc765272 X-Runtime: - - '0.037799' + - '0.042314' X-XSS-Protection: - 1; mode=block status: @@ -392,15 +305,15 @@ interactions: Content-Type: - application/json Cookie: - - _session_id=7cc1bbc5645f719a0e4bece41652c84b; request_method=POST + - _session_id=52106e5e8d03dde888c8002c41afdeef User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/subnets/20/parameters + uri: https://foreman.example.org/api/subnets/1/parameters response: body: - string: '{"priority":40,"created_at":"2019-12-04 10:07:47 UTC","updated_at":"2019-12-04 - 10:07:47 UTC","id":20,"name":"subnet_param2","parameter_type":"string","value":"value2"}' + string: '{"priority":40,"created_at":"2020-07-17 07:19:09 UTC","updated_at":"2020-07-17 + 07:19:09 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -408,14 +321,14 @@ 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: - - Wed, 04 Dec 2019 10:07:47 GMT + - Fri, 17 Jul 2020 07:19:09 GMT ETag: - - W/"f6c43729f0ec0a2fb3050239e7e67ddd" + - W/"03c1cf51e29ef2ce2fdaa4b3e9690dfd" Foreman_api_version: - '2' Foreman_current_location: @@ -423,17 +336,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=95 + - timeout=15, max=96 Server: - Apache - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -442,12 +355,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 201c29a8-fa2f-4975-897b-eabdf92c0ca1 + - 7d2d89b3-8cbe-43dd-a8a3-c92272f6f859 X-Runtime: - - '0.048491' + - '0.035841' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-1.yml b/tests/test_playbooks/fixtures/subnet-1.yml index bed6dc99..f3323930 100644 --- a/tests/test_playbooks/fixtures/subnet-1.yml +++ b/tests/test_playbooks/fixtures/subnet-1.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:48 GMT + - Fri, 17 Jul 2020 07:19:09 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=ba262f7904edd50af90b084e7d5de2e5; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=a4a2b08a9df541e2efb5a395e2aa62bd; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 8701f35b-eed7-45c2-b825-54cf6f54702a + - f586f88d-f686-4649-82e4-3c22a9eb1fee X-Runtime: - - '0.077513' + - '0.135906' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=ba262f7904edd50af90b084e7d5de2e5 + - _session_id=a4a2b08a9df541e2efb5a395e2aa62bd User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:47 UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":20,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:48 GMT + - Fri, 17 Jul 2020 07:19:10 GMT ETag: - - W/"dd5027d988d357f42effb95499850e98-gzip" + - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - f6d3653f-de60-4d0f-8905-153c1f3f31db + - 74399524-683b-415f-99da-e6e9236e886c X-Runtime: - - '0.017991' + - '0.020741' X-XSS-Protection: - 1; mode=block content-length: - - '800' + - '867' status: code: 200 message: OK @@ -155,18 +161,18 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=ba262f7904edd50af90b084e7d5de2e5 + - _session_id=a4a2b08a9df541e2efb5a395e2aa62bd User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/20 + uri: https://foreman.example.org/api/subnets/1 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","ipam":"DHCP","boot_mode":"DHCP","id":20,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","id":19,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","id":20,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -174,14 +180,14 @@ 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: - - Wed, 04 Dec 2019 10:07:48 GMT + - Fri, 17 Jul 2020 07:19:10 GMT ETag: - - W/"2b0fd81c190fb96f12b180a7a61959e6-gzip" + - W/"ad6e1a158056182197062f179bb0cdd5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,17 +195,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -208,16 +214,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - dc855249-94d3-44d6-b8c5-e585ed8b6db7 + - e3e463e2-4d2a-4230-8f96-51dd0cff4fc6 X-Runtime: - - '0.028514' + - '0.036376' X-XSS-Protection: - 1; mode=block content-length: - - '1037' + - '1102' status: code: 200 message: OK @@ -231,18 +235,21 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=ba262f7904edd50af90b084e7d5de2e5 + - _session_id=a4a2b08a9df541e2efb5a395e2aa62bd User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/20/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/subnets/1/parameters?per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"2019-12-04 10:07:47 - UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"id\":19,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"},{\"priority\":40,\"created_at\":\"2019-12-04 - 10:07:47 UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"id\":20,\"name\":\"subnet_param2\",\"parameter_type\":\"string\",\"value\":\"value2\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ + \ \"order\": null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"\ + 2020-07-17 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"id\"\ + :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"\ + },{\"priority\":40,\"created_at\":\"2020-07-17 07:19:09 UTC\",\"updated_at\"\ + :\"2020-07-17 07:19:09 UTC\",\"id\":2,\"name\":\"subnet_param2\",\"parameter_type\"\ + :\"string\",\"value\":\"value2\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +257,14 @@ 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: - - Wed, 04 Dec 2019 10:07:48 GMT + - Fri, 17 Jul 2020 07:19:10 GMT ETag: - - W/"e96ca04adeadd712e9282394bbe03db1-gzip" + - W/"c7a36eb53595df51a1b3a404b46c4f28-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,17 +272,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -284,16 +291,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - e7be87f5-32c5-4f67-8148-c5b04174e952 + - 1d348a97-7924-4ce2-80b6-12931d223cb6 X-Runtime: - - '0.024233' + - '0.023482' X-XSS-Protection: - 1; mode=block content-length: - - '494' + - '492' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-10.yml b/tests/test_playbooks/fixtures/subnet-10.yml index a1b6da50..7158d2ab 100644 --- a/tests/test_playbooks/fixtures/subnet-10.yml +++ b/tests/test_playbooks/fixtures/subnet-10.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:53 GMT + - Fri, 17 Jul 2020 07:19:15 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=481b4cd86b5fc51e98435d0317419ba8; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=0e99cf559840a6f9d4002a6836058c96; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - e9d94e4c-1cc8-45df-a6fd-ad65d8825ea0 + - f058c370-c4ed-4f08-b67c-d3c54c9e2054 X-Runtime: - - '0.075314' + - '0.133483' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=481b4cd86b5fc51e98435d0317419ba8 + - _session_id=0e99cf559840a6f9d4002a6836058c96 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:52 UTC\",\"updated_at\":\"2019-12-04 10:07:52 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":21,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:14 UTC\",\"updated_at\":\"2020-07-17 07:19:14 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":2,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:53 GMT + - Fri, 17 Jul 2020 07:19:15 GMT ETag: - - W/"55d9191b0b2ce4a7b59c06196b836cf5-gzip" + - W/"2d32d7018b6f2297e1ea1bc8e2955c85-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 702d06b3-0ea7-4d6c-9927-9ed5b48a6aa4 + - 48d24bc9-06e0-4304-97c1-76c293dfa7c5 X-Runtime: - - '0.018840' + - '0.016874' X-XSS-Protection: - 1; mode=block content-length: - - '800' + - '867' status: code: 200 message: OK @@ -157,15 +163,15 @@ interactions: Content-Length: - '0' Cookie: - - _session_id=481b4cd86b5fc51e98435d0317419ba8 + - _session_id=0e99cf559840a6f9d4002a6836058c96 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/subnets/21 + uri: https://foreman.example.org/api/subnets/2 response: body: - string: '{"id":21,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test - Subnet","vlanid":null,"created_at":"2019-12-04T10:07:52.228Z","updated_at":"2019-12-04T10:07:52.228Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"to_label":"Test + string: '{"id":2,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test + Subnet","vlanid":null,"created_at":"2020-07-17T07:19:14.547Z","updated_at":"2020-07-17T07:19:14.547Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test Subnet (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: Cache-Control: @@ -174,14 +180,14 @@ 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: - - Wed, 04 Dec 2019 10:07:53 GMT + - Fri, 17 Jul 2020 07:19:15 GMT ETag: - - W/"6c77f9f2c02162ee7ae45e847714f519-gzip" + - W/"1bd1dcef39fc272473973a4ef9215f7a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,19 +195,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -210,16 +214,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 825389fb-8b4a-46af-bd5f-15ab1b41ef13 + - e9ab8f7a-f782-457e-83cc-76ad77d94a4c X-Runtime: - - '0.036651' + - '0.036189' X-XSS-Protection: - 1; mode=block content-length: - - '479' + - '544' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-11.yml b/tests/test_playbooks/fixtures/subnet-11.yml index d7a90d62..8eadf436 100644 --- a/tests/test_playbooks/fixtures/subnet-11.yml +++ b/tests/test_playbooks/fixtures/subnet-11.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:53 GMT + - Fri, 17 Jul 2020 07:19:16 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=e47a68c23130df0fe41fdf6856b9bcd2; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=f076abe3bf009b2c120b2802a6a0585b; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 90f5441f-7c78-4a35-bf7e-06a76e363b18 + - 3c95931c-9638-442e-9601-f54bff2c46b9 X-Runtime: - - '0.075888' + - '0.132803' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,16 +79,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=e47a68c23130df0fe41fdf6856b9bcd2 + - _session_id=f076abe3bf009b2c120b2802a6a0585b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,12 +96,12 @@ 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: - - Wed, 04 Dec 2019 10:07:53 GMT + - Fri, 17 Jul 2020 07:19:16 GMT ETag: - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: @@ -111,17 +111,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,12 +130,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 475d52bf-e350-4d99-a2db-61d16bf7e054 + - a736cada-2f15-45ac-816f-c0b42175b017 X-Runtime: - - '0.015369' + - '0.015991' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/subnet-12.yml b/tests/test_playbooks/fixtures/subnet-12.yml index b87fe681..a0a6f84c 100644 --- a/tests/test_playbooks/fixtures/subnet-12.yml +++ b/tests/test_playbooks/fixtures/subnet-12.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:16 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=585f142989227a3f8710495010ba4e03; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=d6a1749c60be17e8ef77467ab2f93fe5; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 1553a7e0-2bcd-417e-8328-31a966a4be1f + - cdf5f2fb-16ed-4b81-b635-4266557c3d1e X-Runtime: - - '0.080061' + - '0.131679' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,16 +79,24 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=585f142989227a3f8710495010ba4e03 + - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,14 +104,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:16 GMT ETag: - - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" + - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -111,17 +119,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,16 +138,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - ab58c358-3d4b-433f-b549-542809d61934 + - 78facd59-3e89-4219-8bbc-b9e7c4dc14cc X-Runtime: - - '0.016716' + - '0.018210' X-XSS-Protection: - 1; mode=block content-length: - - '177' + - '666' status: code: 200 message: OK @@ -153,18 +159,24 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=585f142989227a3f8710495010ba4e03 + - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-02 - 16:49:02 UTC\",\"updated_at\":\"2019-12-02 16:49:02 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -172,14 +184,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:16 GMT ETag: - - W/"9f41ab315c54de51f07565ecbb580092-gzip" + - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -187,17 +199,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -206,16 +218,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - c779e9ae-ca06-4c28-837e-a806574c604f + - 9d4f41bd-b8cb-4b45-b86a-c4c31755b817 X-Runtime: - - '0.020134' + - '0.016886' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -229,18 +239,24 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=585f142989227a3f8710495010ba4e03 + - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-02 - 16:49:02 UTC\",\"updated_at\":\"2019-12-02 16:49:02 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -248,14 +264,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:16 GMT ETag: - - W/"9f41ab315c54de51f07565ecbb580092-gzip" + - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -263,17 +279,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -282,16 +298,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - b24d4437-d9a5-4816-867d-66015380b5f0 + - 1c65b0d8-be63-481d-ba64-9376d0e6e515 X-Runtime: - - '0.020809' + - '0.019476' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -305,18 +319,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=585f142989227a3f8710495010ba4e03 + - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-02 - 16:49:02 UTC\",\"updated_at\":\"2019-12-02 16:49:02 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -324,14 +336,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:16 GMT ETag: - - W/"9f41ab315c54de51f07565ecbb580092-gzip" + - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -339,17 +351,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=96 + - timeout=15, max=96 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -358,23 +370,21 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 98f647f8-7bc4-414e-aa8a-9a847155fef5 + - fc49b335-e566-4fc9-acce-304e77b6266a X-Runtime: - - '0.024363' + - '0.014377' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '177' status: code: 200 message: OK - request: body: '{"subnet": {"name": "Test Subnet", "network_type": "IPv4", "network": "192.168.200.0", - "mask": "255.255.255.224", "ipam": "DHCP", "tftp_id": 1, "httpboot_id": 1, "dns_id": - 1, "boot_mode": "DHCP"}}' + "cidr": 27, "mask": "255.255.255.224", "ipam": "DHCP", "tftp_id": 1, "httpboot_id": + 1, "dns_id": 1, "boot_mode": "DHCP"}}' headers: Accept: - application/json;version=2 @@ -383,20 +393,20 @@ interactions: Connection: - keep-alive Content-Length: - - '196' + - '208' Content-Type: - application/json Cookie: - - _session_id=585f142989227a3f8710495010ba4e03 + - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/subnets + uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:54 UTC","updated_at":"2019-12-04 10:07:54 UTC","ipam":"DHCP","boot_mode":"DHCP","id":22,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":1,"tftp_name":"foreman.example.com","httpboot_id":1,"httpboot_name":"foreman.example.com","dns_id":1,"template_id":null,"template_name":null,"dhcp":null,"tftp":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"httpboot":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"dns":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:16 UTC","updated_at":"2020-07-17 07:19:16 UTC","ipam":"DHCP","boot_mode":"DHCP","id":3,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":1,"tftp_name":"centos7-foreman-2-1.yatsu.example.com","httpboot_id":1,"httpboot_name":"centos7-foreman-2-1.yatsu.example.com","externalipam_id":null,"externalipam_name":null,"dns_id":1,"template_id":null,"template_name":null,"dhcp":null,"tftp":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"httpboot":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"externalipam":null,"dns":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -404,14 +414,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:16 GMT ETag: - - W/"a5e4d4b830d7535cd49f4fe47a78f934" + - W/"a333c3801e7155ef68b38a6f147c5228" Foreman_api_version: - '2' Foreman_current_location: @@ -419,19 +429,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=95 + - timeout=15, max=95 Server: - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -440,12 +448,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - d226004b-11cf-445d-9a79-9f79a008d6a0 + - 63d9834f-0c59-4578-a1fd-b6bfa0b37f72 X-Runtime: - - '0.069458' + - '0.049662' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-13.yml b/tests/test_playbooks/fixtures/subnet-13.yml index 45f294e7..6493d393 100644 --- a/tests/test_playbooks/fixtures/subnet-13.yml +++ b/tests/test_playbooks/fixtures/subnet-13.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:17 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=8c9d0cbf51e3b50cca4f6dc532929fae; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=f1d670d9b89e951579048d107f2c2bf6; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 1e609a49-23f9-43dc-88ea-f7c6753f53d3 + - b29d0151-d2be-4ad1-bb9d-95b6e396d9d1 X-Runtime: - - '0.084488' + - '0.134167' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,24 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=8c9d0cbf51e3b50cca4f6dc532929fae + - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:54 UTC\",\"updated_at\":\"2019-12-04 10:07:54 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":22,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":1,\"tftp_name\":\"foreman.example.com\",\"httpboot_id\":1,\"httpboot_name\":\"foreman.example.com\",\"dns_id\":1,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"httpboot\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +104,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:17 GMT ETag: - - W/"6eed7311b78b3e232b1648b6d50ffd27-gzip" + - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +119,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +138,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 28ea3e41-72d2-4021-a548-8f69cfa6be13 + - bff6b352-46d0-4204-b20f-c8b2e7946768 X-Runtime: - - '0.022816' + - '0.018960' X-XSS-Protection: - 1; mode=block content-length: - - '1047' + - '666' status: code: 200 message: OK @@ -155,16 +159,24 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=8c9d0cbf51e3b50cca4f6dc532929fae + - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/22 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:54 UTC","updated_at":"2019-12-04 10:07:54 UTC","ipam":"DHCP","boot_mode":"DHCP","id":22,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":1,"tftp_name":"foreman.example.com","httpboot_id":1,"httpboot_name":"foreman.example.com","dns_id":1,"template_id":null,"template_name":null,"dhcp":null,"tftp":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"httpboot":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"dns":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -172,14 +184,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:17 GMT ETag: - - W/"a5e4d4b830d7535cd49f4fe47a78f934-gzip" + - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -187,17 +199,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -206,16 +218,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - fd1f2b98-b084-4b55-83ad-0c7758973163 + - 3f71af2b-2587-4ec7-a328-77a97eced754 X-Runtime: - - '0.031952' + - '0.017318' X-XSS-Protection: - 1; mode=block content-length: - - '949' + - '666' status: code: 200 message: OK @@ -229,18 +239,24 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=8c9d0cbf51e3b50cca4f6dc532929fae + - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-02 - 16:49:02 UTC\",\"updated_at\":\"2019-12-02 16:49:02 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -248,14 +264,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:17 GMT ETag: - - W/"9f41ab315c54de51f07565ecbb580092-gzip" + - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -263,17 +279,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -282,16 +298,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - b99842d1-f4b2-4f8c-835e-67928e91c23a + - 017e41d1-772c-4285-aac0-ef565a8bcb15 X-Runtime: - - '0.021137' + - '0.017733' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -305,18 +319,32 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=8c9d0cbf51e3b50cca4f6dc532929fae + - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-02 - 16:49:02 UTC\",\"updated_at\":\"2019-12-02 16:49:02 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:16 UTC\",\"updated_at\":\"2020-07-17 07:19:16 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":3,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":1,\"tftp_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"httpboot_id\":1,\"httpboot_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":1,\"template_id\"\ + :null,\"template_name\":null,\"dhcp\":null,\"tftp\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + httpboot\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"\ + url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"externalipam\"\ + :null,\"dns\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"\ + url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"template\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -324,14 +352,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:17 GMT ETag: - - W/"9f41ab315c54de51f07565ecbb580092-gzip" + - W/"52f8d285ee08faf0b279257d771084d3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -339,17 +367,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=96 + - timeout=15, max=96 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -358,16 +386,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 20200500-ab6e-4b7d-b9e5-53c6f90d648a + - 8e9c21e4-fcd4-4882-8c21-9efb4d34bf03 X-Runtime: - - '0.020631' + - '0.023096' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '1258' status: code: 200 message: OK @@ -381,18 +407,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=8c9d0cbf51e3b50cca4f6dc532929fae + - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets/3 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-02 - 16:49:02 UTC\",\"updated_at\":\"2019-12-02 16:49:02 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:16 UTC","updated_at":"2020-07-17 07:19:16 UTC","ipam":"DHCP","boot_mode":"DHCP","id":3,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":1,"tftp_name":"centos7-foreman-2-1.yatsu.example.com","httpboot_id":1,"httpboot_name":"centos7-foreman-2-1.yatsu.example.com","externalipam_id":null,"externalipam_name":null,"dns_id":1,"template_id":null,"template_name":null,"dhcp":null,"tftp":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"httpboot":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"externalipam":null,"dns":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -400,14 +424,14 @@ 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: - - Wed, 04 Dec 2019 10:07:54 GMT + - Fri, 17 Jul 2020 07:19:17 GMT ETag: - - W/"9f41ab315c54de51f07565ecbb580092-gzip" + - W/"a333c3801e7155ef68b38a6f147c5228-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -415,17 +439,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=95 + - timeout=15, max=95 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -434,16 +458,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 81fa7cba-147f-470e-b008-3222161890b1 + - aa833c48-1c11-4b91-93cd-4dacc4012fbf X-Runtime: - - '0.029696' + - '0.026188' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '1160' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-14.yml b/tests/test_playbooks/fixtures/subnet-14.yml index 6378a11b..5a081005 100644 --- a/tests/test_playbooks/fixtures/subnet-14.yml +++ b/tests/test_playbooks/fixtures/subnet-14.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:55 GMT + - Fri, 17 Jul 2020 07:19:18 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=0fe60b0884d98cd3b355460d19f2f50d; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=992f2797525f1a06763f2385ebeea504; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 6457cfa2-eddf-48b7-a3fc-7cccc4a2f775 + - 8d04d685-78c9-4a46-8654-2a06aa324e2d X-Runtime: - - '0.079395' + - '0.144105' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,32 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=0fe60b0884d98cd3b355460d19f2f50d + - _session_id=992f2797525f1a06763f2385ebeea504 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:54 UTC\",\"updated_at\":\"2019-12-04 10:07:54 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":22,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":1,\"tftp_name\":\"foreman.example.com\",\"httpboot_id\":1,\"httpboot_name\":\"foreman.example.com\",\"dns_id\":1,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"httpboot\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:16 UTC\",\"updated_at\":\"2020-07-17 07:19:16 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":3,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":1,\"tftp_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"httpboot_id\":1,\"httpboot_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":1,\"template_id\"\ + :null,\"template_name\":null,\"dhcp\":null,\"tftp\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + httpboot\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"\ + url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"externalipam\"\ + :null,\"dns\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"\ + url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"template\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +112,14 @@ 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: - - Wed, 04 Dec 2019 10:07:55 GMT + - Fri, 17 Jul 2020 07:19:18 GMT ETag: - - W/"6eed7311b78b3e232b1648b6d50ffd27-gzip" + - W/"52f8d285ee08faf0b279257d771084d3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +127,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +146,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 414599a2-50a3-4c43-8640-cbe1e39ce755 + - 69691ea8-335a-46d0-b5c1-b5924a2876ac X-Runtime: - - '0.021446' + - '0.024383' X-XSS-Protection: - 1; mode=block content-length: - - '1047' + - '1258' status: code: 200 message: OK @@ -157,15 +169,15 @@ interactions: Content-Length: - '0' Cookie: - - _session_id=0fe60b0884d98cd3b355460d19f2f50d + - _session_id=992f2797525f1a06763f2385ebeea504 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/subnets/22 + uri: https://foreman.example.org/api/subnets/3 response: body: - string: '{"id":22,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test - Subnet","vlanid":null,"created_at":"2019-12-04T10:07:54.239Z","updated_at":"2019-12-04T10:07:54.239Z","dhcp_id":null,"tftp_id":1,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":1,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":1,"to_label":"Test + string: '{"id":3,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test + Subnet","vlanid":null,"created_at":"2020-07-17T07:19:16.904Z","updated_at":"2020-07-17T07:19:16.904Z","dhcp_id":null,"tftp_id":1,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":1,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":1,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test Subnet (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: Cache-Control: @@ -174,14 +186,14 @@ 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: - - Wed, 04 Dec 2019 10:07:55 GMT + - Fri, 17 Jul 2020 07:19:18 GMT ETag: - - W/"c1c86de5d5466b1f37c43ba87fc8b25e-gzip" + - W/"368a6912ddadce98bf353327244d6d51-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,19 +201,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -210,16 +220,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 6abfe054-48ec-4f7a-af85-fe2a4178b2c1 + - 17c5dcc0-3614-408a-96d7-9900d1b7c96c X-Runtime: - - '0.035863' + - '0.039617' X-XSS-Protection: - 1; mode=block content-length: - - '470' + - '535' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-15.yml b/tests/test_playbooks/fixtures/subnet-15.yml index 14443543..f8501479 100644 --- a/tests/test_playbooks/fixtures/subnet-15.yml +++ b/tests/test_playbooks/fixtures/subnet-15.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:55 GMT + - Fri, 17 Jul 2020 07:19:18 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=35e131d5f978b35a7c9c561e4fe5af52; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=7a6dd95699851579185cfe9628adf943; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - b4b56042-8572-4ed4-8cdd-fe9270aa900e + - df554c52-f70b-4ca6-98c8-676f5bf893f6 X-Runtime: - - '0.077857' + - '0.137415' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,16 +79,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=35e131d5f978b35a7c9c561e4fe5af52 + - _session_id=7a6dd95699851579185cfe9628adf943 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,12 +96,12 @@ 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: - - Wed, 04 Dec 2019 10:07:55 GMT + - Fri, 17 Jul 2020 07:19:18 GMT ETag: - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: @@ -111,17 +111,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,12 +130,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 073d6e10-ebd8-4400-ae03-84b5c2e419cd + - 5cdb8fe3-3740-4d9e-8b6a-dbecc295abf9 X-Runtime: - - '0.015049' + - '0.015882' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/subnet-16.yml b/tests/test_playbooks/fixtures/subnet-16.yml index 71db6436..c0103f88 100644 --- a/tests/test_playbooks/fixtures/subnet-16.yml +++ b/tests/test_playbooks/fixtures/subnet-16.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:56 GMT + - Fri, 17 Jul 2020 07:19:19 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=46aae5d955fd8db06760c1dd8e5e1aa3; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=7484068ad52e636277e96a70e8efe499; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 1f7055ef-3b34-4ebe-bb91-f4cba567a9f5 + - e138466b-f6a1-4951-ba99-2e4b92f7cb15 X-Runtime: - - '0.076183' + - '0.134294' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,16 +79,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=46aae5d955fd8db06760c1dd8e5e1aa3 + - _session_id=7484068ad52e636277e96a70e8efe499 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22My+test+subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22My+test+subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"My test subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"My test subnet\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,12 +96,12 @@ 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: - - Wed, 04 Dec 2019 10:07:56 GMT + - Fri, 17 Jul 2020 07:19:19 GMT ETag: - W/"7b6b383d97c570b105ed88f061c0d169-gzip" Foreman_api_version: @@ -111,17 +111,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,12 +130,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - d6843b1c-e512-4760-bbd2-c797d1a99a11 + - 3ce89101-090f-47dd-8756-b1e1c91e1758 X-Runtime: - - '0.015191' + - '0.015109' X-XSS-Protection: - 1; mode=block content-length: @@ -145,7 +143,8 @@ interactions: message: OK - request: body: '{"subnet": {"name": "My test subnet", "network_type": "IPv4", "network": - "192.168.200.0", "mask": "255.255.255.224", "ipam": "DHCP", "boot_mode": "DHCP"}}' + "192.168.200.0", "cidr": 27, "mask": "255.255.255.224", "ipam": "DHCP", "boot_mode": + "DHCP"}}' headers: Accept: - application/json;version=2 @@ -154,20 +153,20 @@ interactions: Connection: - keep-alive Content-Length: - - '154' + - '166' Content-Type: - application/json Cookie: - - _session_id=46aae5d955fd8db06760c1dd8e5e1aa3 + - _session_id=7484068ad52e636277e96a70e8efe499 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/subnets + uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:56 UTC","updated_at":"2019-12-04 10:07:56 UTC","ipam":"DHCP","boot_mode":"DHCP","id":23,"name":"My - test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:19 UTC","updated_at":"2020-07-17 07:19:19 UTC","ipam":"DHCP","boot_mode":"DHCP","id":4,"name":"My + test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -175,14 +174,14 @@ 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: - - Wed, 04 Dec 2019 10:07:56 GMT + - Fri, 17 Jul 2020 07:19:19 GMT ETag: - - W/"4135030bd63e1d9c082ac8a1a1626968" + - W/"137eb7ebe20c0f25781d44f9da6791d2" Foreman_api_version: - '2' Foreman_current_location: @@ -190,19 +189,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -211,12 +208,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 087c5874-56b2-4ee1-a684-0699189f2258 + - 004fca95-8424-4fbc-972e-0f389adffab0 X-Runtime: - - '0.046939' + - '0.059494' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-17.yml b/tests/test_playbooks/fixtures/subnet-17.yml index 2ce814b2..94017ebd 100644 --- a/tests/test_playbooks/fixtures/subnet-17.yml +++ b/tests/test_playbooks/fixtures/subnet-17.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:56 GMT + - Fri, 17 Jul 2020 07:19:19 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=e2f3194b7389ce05c1281b7c4c448330; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=ca825eca815fc84bb15b896c671df51e; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - daededee-ba15-4fda-85a3-8ce27edf7fe6 + - 7d689590-5dbf-479a-b4fb-5d977b52c419 X-Runtime: - - '0.092258' + - '0.137478' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=e2f3194b7389ce05c1281b7c4c448330 + - _session_id=ca825eca815fc84bb15b896c671df51e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22My+test+subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22My+test+subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"My test subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:56 UTC\",\"updated_at\":\"2019-12-04 10:07:56 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":23,\"name\":\"My - test subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"My test subnet\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:19 UTC\",\"updated_at\":\"2020-07-17 07:19:19 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":4,\"name\":\"My test subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:56 GMT + - Fri, 17 Jul 2020 07:19:19 GMT ETag: - - W/"4bdce6ef9eeef6dd6fa51fbab070c6af-gzip" + - W/"66212780c2dabeb8a9f5996d002897b5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 5be354b8-4efc-4a4a-93d7-0408db5e324e + - 780912b2-a7b5-4228-a685-39761d512659 X-Runtime: - - '0.023381' + - '0.032322' X-XSS-Protection: - 1; mode=block content-length: - - '806' + - '873' status: code: 200 message: OK @@ -155,16 +161,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=e2f3194b7389ce05c1281b7c4c448330 + - _session_id=ca825eca815fc84bb15b896c671df51e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/23 + uri: https://foreman.example.org/api/subnets/4 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:56 UTC","updated_at":"2019-12-04 10:07:56 UTC","ipam":"DHCP","boot_mode":"DHCP","id":23,"name":"My - test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:19 UTC","updated_at":"2020-07-17 07:19:19 UTC","ipam":"DHCP","boot_mode":"DHCP","id":4,"name":"My + test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -172,14 +178,14 @@ 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: - - Wed, 04 Dec 2019 10:07:56 GMT + - Fri, 17 Jul 2020 07:19:19 GMT ETag: - - W/"4135030bd63e1d9c082ac8a1a1626968-gzip" + - W/"137eb7ebe20c0f25781d44f9da6791d2-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -187,17 +193,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -206,16 +212,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 7ed6280e-61e7-4ee4-acca-abdd79df7ebe + - 968244ce-6bfc-4b73-9a26-57d92f1b3929 X-Runtime: - - '0.023863' + - '0.025584' X-XSS-Protection: - 1; mode=block content-length: - - '705' + - '772' status: code: 200 message: OK @@ -233,16 +237,16 @@ interactions: Content-Type: - application/json Cookie: - - _session_id=e2f3194b7389ce05c1281b7c4c448330 + - _session_id=ca825eca815fc84bb15b896c671df51e User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/subnets/23 + uri: https://foreman.example.org/api/subnets/4 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:56 UTC","updated_at":"2019-12-04 10:07:56 UTC","ipam":"DHCP","boot_mode":"DHCP","id":23,"name":"My - new test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:19 UTC","updated_at":"2020-07-17 07:19:20 UTC","ipam":"DHCP","boot_mode":"DHCP","id":4,"name":"My + new test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +254,14 @@ 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: - - Wed, 04 Dec 2019 10:07:56 GMT + - Fri, 17 Jul 2020 07:19:20 GMT ETag: - - W/"b8e1f8569231f2a4cfcb5b8ef3942e0c-gzip" + - W/"62edad2025f17900e4b65034408d762a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,19 +269,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -286,16 +288,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 37f2fe6d-2f1b-4fb2-bb43-74cdc4bce80e + - 59f7ee95-ccf0-4bb2-84b7-42e6cd4b658b X-Runtime: - - '0.046731' + - '0.049309' X-XSS-Protection: - 1; mode=block content-length: - - '709' + - '776' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-18.yml b/tests/test_playbooks/fixtures/subnet-18.yml index ff44a581..8c5f1d0f 100644 --- a/tests/test_playbooks/fixtures/subnet-18.yml +++ b/tests/test_playbooks/fixtures/subnet-18.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:57 GMT + - Fri, 17 Jul 2020 07:19:20 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=49e37b227eb088b2a11607fd9b181803; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=2da60f54fb220bca00c2a25296ab691e; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 01ed4e95-f31e-4f4d-8c50-7e9ec4f19c26 + - 132f0b7a-b391-46e1-962e-fd1fe7992946 X-Runtime: - - '0.075646' + - '0.140056' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=49e37b227eb088b2a11607fd9b181803 + - _session_id=2da60f54fb220bca00c2a25296ab691e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22My+new+test+subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22My+new+test+subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"My new test subnet\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:56 UTC\",\"updated_at\":\"2019-12-04 10:07:56 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":23,\"name\":\"My - new test subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"My new test subnet\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:19 UTC\",\"updated_at\":\"2020-07-17 07:19:20 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":4,\"name\":\"My new test subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:57 GMT + - Fri, 17 Jul 2020 07:19:20 GMT ETag: - - W/"9fa7d0b72b7c1b2ad233610da78e20bb-gzip" + - W/"ab5961b378584fd64b0f7f1328697139-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 526d1dba-40a6-42ba-b22b-1f2ac4de4c8f + - 9432a900-4a59-49f9-8a0f-a1de53c33dfa X-Runtime: - - '0.017658' + - '0.016910' X-XSS-Protection: - 1; mode=block content-length: - - '814' + - '881' status: code: 200 message: OK @@ -155,16 +161,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=49e37b227eb088b2a11607fd9b181803 + - _session_id=2da60f54fb220bca00c2a25296ab691e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/23 + uri: https://foreman.example.org/api/subnets/4 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:56 UTC","updated_at":"2019-12-04 10:07:56 UTC","ipam":"DHCP","boot_mode":"DHCP","id":23,"name":"My - new test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:19 UTC","updated_at":"2020-07-17 07:19:20 UTC","ipam":"DHCP","boot_mode":"DHCP","id":4,"name":"My + new test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -172,14 +178,14 @@ 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: - - Wed, 04 Dec 2019 10:07:57 GMT + - Fri, 17 Jul 2020 07:19:20 GMT ETag: - - W/"b8e1f8569231f2a4cfcb5b8ef3942e0c-gzip" + - W/"62edad2025f17900e4b65034408d762a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -187,17 +193,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -206,16 +212,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 8c6a14e0-de1d-4dc7-89cd-dff053937256 + - 8bacb50d-703f-4ffd-90df-e6e3a5a2407f X-Runtime: - - '0.024706' + - '0.023755' X-XSS-Protection: - 1; mode=block content-length: - - '709' + - '776' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-19.yml b/tests/test_playbooks/fixtures/subnet-19.yml index 993baa19..b0e381f0 100644 --- a/tests/test_playbooks/fixtures/subnet-19.yml +++ b/tests/test_playbooks/fixtures/subnet-19.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:57 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=b6f9651d10bf383a8b4344313c408411; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=b278c1de7f0c13c91997ba2b085fd0b0; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 3ee9f71e-5243-4681-8c39-ae664ac7ab85 + - bf8b94b9-5a38-46f7-94e3-50e9ff32bc25 X-Runtime: - - '0.074175' + - '0.134544' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=b6f9651d10bf383a8b4344313c408411 + - _session_id=b278c1de7f0c13c91997ba2b085fd0b0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22My+new+test+subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22My+new+test+subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"My new test subnet\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:56 UTC\",\"updated_at\":\"2019-12-04 10:07:56 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":23,\"name\":\"My - new test subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"My new test subnet\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:19 UTC\",\"updated_at\":\"2020-07-17 07:19:20 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":4,\"name\":\"My new test subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:57 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"9fa7d0b72b7c1b2ad233610da78e20bb-gzip" + - W/"ab5961b378584fd64b0f7f1328697139-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - b87e30ed-25c3-49b2-bfcf-0ecb880fcf21 + - 87194d0a-c373-4f57-a4d4-c45b1d309d52 X-Runtime: - - '0.017070' + - '0.017648' X-XSS-Protection: - 1; mode=block content-length: - - '814' + - '881' status: code: 200 message: OK @@ -157,15 +163,15 @@ interactions: Content-Length: - '0' Cookie: - - _session_id=b6f9651d10bf383a8b4344313c408411 + - _session_id=b278c1de7f0c13c91997ba2b085fd0b0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/subnets/23 + uri: https://foreman.example.org/api/subnets/4 response: body: - string: '{"id":23,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"My - new test subnet","vlanid":null,"created_at":"2019-12-04T10:07:56.282Z","updated_at":"2019-12-04T10:07:56.829Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"to_label":"My + string: '{"id":4,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"My + new test subnet","vlanid":null,"created_at":"2020-07-17T07:19:19.381Z","updated_at":"2020-07-17T07:19:20.023Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"My new test subnet (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: Cache-Control: @@ -174,14 +180,14 @@ 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: - - Wed, 04 Dec 2019 10:07:57 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"bdb793a61840c165ae6e1d1d2407e167-gzip" + - W/"18b952c932ba203a0c26b329736e4cd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,19 +195,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -210,16 +214,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - d44d3217-41c8-4248-ae23-419b55f6b8b8 + - 5bce87f0-888d-4505-937b-34f3e6984597 X-Runtime: - - '0.035686' + - '0.037388' X-XSS-Protection: - 1; mode=block content-length: - - '493' + - '558' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-2.yml b/tests/test_playbooks/fixtures/subnet-2.yml index 6b4de5c8..d2845a16 100644 --- a/tests/test_playbooks/fixtures/subnet-2.yml +++ b/tests/test_playbooks/fixtures/subnet-2.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:48 GMT + - Fri, 17 Jul 2020 07:19:10 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=eb0ed140adfdb36d79f2e6fcb6d70a88; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=1fa67f28744784af0734a4011cb46ee7; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 144d1978-90aa-42a1-b65c-20cd0789b76b + - 43372399-7273-48a8-b343-4e86798ad064 X-Runtime: - - '0.081769' + - '0.139570' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=eb0ed140adfdb36d79f2e6fcb6d70a88 + - _session_id=1fa67f28744784af0734a4011cb46ee7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:47 UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":20,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:48 GMT + - Fri, 17 Jul 2020 07:19:10 GMT ETag: - - W/"dd5027d988d357f42effb95499850e98-gzip" + - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 70c6abee-18d5-464a-bfa5-f2811c6a023c + - dfe73b09-f9a9-42fb-a986-c4d9495d28bf X-Runtime: - - '0.017931' + - '0.018299' X-XSS-Protection: - 1; mode=block content-length: - - '800' + - '867' status: code: 200 message: OK @@ -155,18 +161,18 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=eb0ed140adfdb36d79f2e6fcb6d70a88 + - _session_id=1fa67f28744784af0734a4011cb46ee7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/20 + uri: https://foreman.example.org/api/subnets/1 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","ipam":"DHCP","boot_mode":"DHCP","id":20,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","id":19,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","id":20,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -174,14 +180,14 @@ 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: - - Wed, 04 Dec 2019 10:07:48 GMT + - Fri, 17 Jul 2020 07:19:10 GMT ETag: - - W/"2b0fd81c190fb96f12b180a7a61959e6-gzip" + - W/"ad6e1a158056182197062f179bb0cdd5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,17 +195,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -208,16 +214,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 23838f92-fe54-473e-a7fb-bc836cfbb7bc + - dcf3effa-bcc7-4b34-801f-6f96f05eabf9 X-Runtime: - - '0.028988' + - '0.030987' X-XSS-Protection: - 1; mode=block content-length: - - '1037' + - '1102' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-20.yml b/tests/test_playbooks/fixtures/subnet-20.yml index 697ee721..a2f1f253 100644 --- a/tests/test_playbooks/fixtures/subnet-20.yml +++ b/tests/test_playbooks/fixtures/subnet-20.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 6468a5a3-e216-47c8-b3e4-c9dd22a8a7bd + - 73479514-b93f-46ab-9c69-3336c9d6c8fd X-Runtime: - - '0.074810' + - '0.137378' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,16 +79,20 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2 + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ + \ 07:10:06 UTC\",\"updated_at\":\"2020-07-17 07:10:06 UTC\",\"id\":16,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,14 +100,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"442782b5c35a312d29eef0d20d99ec4e-gzip" + - W/"349ab26506db8d6a1b98584cb8886cbc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -111,17 +115,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,16 +134,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - ae57e25e-5e6d-4221-8353-121c1a7ed8f2 + - b393d887-e21a-4c93-8815-eb720dfc06cb X-Runtime: - - '0.015072' + - '0.017382' X-XSS-Protection: - 1; mode=block content-length: - - '179' + - '389' status: code: 200 message: OK @@ -153,17 +155,20 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2 + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2019-12-04 - 10:07:45 UTC\",\"updated_at\":\"2019-12-04 10:07:45 UTC\",\"id\":13,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ + \ 07:10:08 UTC\",\"updated_at\":\"2020-07-17 07:10:08 UTC\",\"id\":17,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -171,14 +176,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"bc02fc080aa447429061e6d165b681bc-gzip" + - W/"2d70e9ddf57eeaca3621c5cdf328de7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -186,17 +191,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -205,16 +210,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 2a9ef8c2-044a-4038-ae51-13449ed8d5cb + - ced82e05-cf2a-47e9-a5f1-e5324c81c25a X-Runtime: - - '0.016716' + - '0.014916' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '389' status: code: 200 message: OK @@ -228,17 +231,19 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2 + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22bar.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"bar.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2019-12-04 - 10:07:46 UTC\",\"updated_at\":\"2019-12-04 10:07:46 UTC\",\"id\":14,\"name\":\"bar.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:02\ + \ UTC\",\"updated_at\":\"2020-07-17 07:10:02 UTC\",\"id\":13,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -246,14 +251,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"4a3d0e454d850e399f17bea641e2f04b-gzip" + - W/"ed09a20f032748b050bc867149918e5b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -261,17 +266,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -280,16 +285,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 74cfb1b9-72fe-4cc0-acc1-7970bba8bfbf + - 7451efc0-7794-49a8-9c86-f6b2fb42892f X-Runtime: - - '0.016682' + - '0.015442' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '355' status: code: 200 message: OK @@ -303,17 +306,19 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2 + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:39 UTC\",\"updated_at\":\"2019-12-04 10:07:39 UTC\",\"id\":33,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"13\",\"parent_id\":13,\"parent_name\":\"Foo\",\"created_at\":\"2020-07-17\ + \ 07:10:04 UTC\",\"updated_at\":\"2020-07-17 07:10:04 UTC\",\"id\":14,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -321,14 +326,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"13898f94dcb51ef1dfc948b38af58379-gzip" + - W/"1c8e086567f548fd92d713cd75ca5179-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -336,17 +341,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=96 + - timeout=15, max=96 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -355,16 +360,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 9f21bf34-cef8-466d-a342-d47a80f31d22 + - 7dbfabd3-6749-4269-9a4b-021ddab4d433 X-Runtime: - - '0.015566' + - '0.017201' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '362' status: code: 200 message: OK @@ -378,17 +381,19 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2 + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"33\",\"parent_id\":33,\"parent_name\":\"Foo\",\"created_at\":\"2019-12-04 - 10:07:40 UTC\",\"updated_at\":\"2019-12-04 10:07:40 UTC\",\"id\":34,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:05\ + \ UTC\",\"updated_at\":\"2020-07-17 07:10:05 UTC\",\"id\":15,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -396,14 +401,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"5ef7c3e495999dd3f33dbf7b762ad3ae-gzip" + - W/"bbd6f13df5f1b3a22ce68811f2efb683-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -411,17 +416,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=95 + - timeout=15, max=95 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -430,16 +435,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - a659aa06-c6d1-4086-9e1e-8634b93c79ae + - 739cf47b-d547-4ff6-8b7e-237046dcca09 X-Runtime: - - '0.017081' + - '0.015614' X-XSS-Protection: - 1; mode=block content-length: - - '362' + - '355' status: code: 200 message: OK @@ -453,17 +456,20 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2 + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:42 UTC\",\"updated_at\":\"2019-12-04 10:07:42 UTC\",\"id\":35,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-07-17 07:19:07 UTC\",\"updated_at\":\"2020-07-17\ + \ 07:19:07 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -471,14 +477,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"d894ad17d3475ef6ae7132607dc869bf-gzip" + - W/"fc0167eaa28b655b9f1a2f74de16bbb1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -486,17 +492,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=94 + - timeout=15, max=94 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -505,16 +511,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 0f5f80ee-7103-44d0-8797-8d74cb90c8ca + - 01759da2-2ed9-4c04-8ed1-1c1d976c3c84 X-Runtime: - - '0.015090' + - '0.018398' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '440' status: code: 200 message: OK @@ -528,18 +532,20 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2 + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22bar.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:43 UTC\",\"updated_at\":\"2019-12-04 10:07:43 UTC\",\"id\":36,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"bar.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-07-17 07:19:08 UTC\",\"updated_at\":\"2020-07-17\ + \ 07:19:08 UTC\",\"id\":3,\"name\":\"bar.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -547,14 +553,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"3097ef1c9f9fdeea8c8131c3338a7aec-gzip" + - W/"95fd374282b627cbeca46dee7d428047-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -562,17 +568,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=93 + - timeout=15, max=93 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -581,16 +587,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 7739fdc0-47b0-448c-8a67-7b8f9b66d97e + - fa6fd277-fbdc-42b2-93c6-a555edaf5038 X-Runtime: - - '0.015107' + - '0.021610' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '440' status: code: 200 message: OK @@ -604,18 +608,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2 + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:44 UTC\",\"updated_at\":\"2019-12-04 10:07:44 UTC\",\"id\":37,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -623,14 +625,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"4c71f98e3bcb5ca195083d797255f6e4-gzip" + - W/"442782b5c35a312d29eef0d20d99ec4e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -638,17 +640,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=92 + - timeout=15, max=92 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -657,26 +659,24 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 68ee0521-97d7-44bb-8ab4-f57ddf72890a + - d0b37228-05d4-42ed-be0e-1148b7fc4fec X-Runtime: - - '0.015008' + - '0.023830' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '179' status: code: 200 message: OK - request: body: '{"subnet": {"name": "Test Subnet 2", "description": "My subnet description", - "network_type": "IPv4", "network": "192.168.200.0", "mask": "255.255.255.224", + "network_type": "IPv4", "network": "192.168.200.0", "cidr": 27, "mask": "255.255.255.224", "gateway": "192.168.200.1", "dns_primary": "1.1.1.1", "dns_secondary": "1.1.1.2", "ipam": "Internal DB", "from": "192.168.200.10", "to": "192.168.200.20", "vlanid": - 42, "mtu": 9000, "domain_ids": [13, 14], "boot_mode": "Static", "location_ids": - [33, 34, 35], "organization_ids": [36, 37]}}' + 42, "mtu": 9000, "domain_ids": [2, 3], "boot_mode": "Static", "location_ids": + [13, 14, 15], "organization_ids": [16, 17]}}' headers: Accept: - application/json;version=2 @@ -685,21 +685,21 @@ interactions: Connection: - keep-alive Content-Length: - - '445' + - '455' Content-Type: - application/json Cookie: - - _session_id=f86b41e2966e593002eca38d554807e2 + - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/subnets + uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2019-12-04 - 10:07:58 UTC","updated_at":"2019-12-04 10:07:58 UTC","ipam":"Internal DB","boot_mode":"Static","id":24,"name":"Test - Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[{"id":13,"name":"foo.example.com"},{"id":14,"name":"bar.example.com"}],"interfaces":[],"parameters":[],"locations":[{"id":33,"name":"Foo","title":"Foo","description":null},{"id":34,"name":"Baz","title":"Foo/Baz","description":null},{"id":35,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":36,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":37,"name":"Test + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-07-17 + 07:19:22 UTC","updated_at":"2020-07-17 07:19:22 UTC","ipam":"Internal DB","boot_mode":"Static","id":5,"name":"Test + Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[{"id":2,"name":"foo.example.com"},{"id":3,"name":"bar.example.com"}],"interfaces":[],"parameters":[],"locations":[{"id":13,"name":"Foo","title":"Foo","description":null},{"id":14,"name":"Baz","title":"Foo/Baz","description":null},{"id":15,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":16,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":17,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -708,14 +708,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:21 GMT ETag: - - W/"273ecb7661265ddbd91a4b358f0be48d" + - W/"77d2a5ec7ba6d83f406ca2f8bc996b61" Foreman_api_version: - '2' Foreman_current_location: @@ -723,19 +723,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=91 + - timeout=15, max=91 Server: - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -744,12 +742,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 18deec3c-b97d-4e57-9e5b-b2d4420af7d5 + - 3d0a9ac0-4b4c-42aa-a746-d519982e1b57 X-Runtime: - - '0.086208' + - '0.118509' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-21.yml b/tests/test_playbooks/fixtures/subnet-21.yml index 12545f38..2ad74cab 100644 --- a/tests/test_playbooks/fixtures/subnet-21.yml +++ b/tests/test_playbooks/fixtures/subnet-21.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:22 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=18a25f6693a2734a6b00ef9da7de7775; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=2f5695b6d7fef452118cf0a92c5e173c; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - cd86099d-85f9-4c59-bf61-2b64cccfca59 + - c5d6d449-6660-478d-bd3f-a39f63d7940b X-Runtime: - - '0.075202' + - '0.138309' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,19 +79,20 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=18a25f6693a2734a6b00ef9da7de7775 + - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\",\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\",\"to\":\"192.168.200.20\",\"created_at\":\"2019-12-04 - 10:07:58 UTC\",\"updated_at\":\"2019-12-04 10:07:58 UTC\",\"ipam\":\"Internal - DB\",\"boot_mode\":\"Static\",\"id\":24,\"name\":\"Test Subnet 2\",\"description\":\"My - subnet description\",\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ + \ 07:10:06 UTC\",\"updated_at\":\"2020-07-17 07:10:06 UTC\",\"id\":16,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -99,14 +100,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:22 GMT ETag: - - W/"64d4101514cc2cd178169b20214334d8-gzip" + - W/"349ab26506db8d6a1b98584cb8886cbc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,17 +115,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -133,16 +134,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 5e608ac8-1370-466f-8be1-deeaf172caef + - a4a82ff6-770e-4e03-a285-9dbcb1c7026e X-Runtime: - - '0.016816' + - '0.017395' X-XSS-Protection: - 1; mode=block content-length: - - '875' + - '389' status: code: 200 message: OK @@ -156,18 +155,20 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=18a25f6693a2734a6b00ef9da7de7775 + - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/24 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2019-12-04 - 10:07:58 UTC","updated_at":"2019-12-04 10:07:58 UTC","ipam":"Internal DB","boot_mode":"Static","id":24,"name":"Test - Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[{"id":14,"name":"bar.example.com"},{"id":13,"name":"foo.example.com"}],"interfaces":[],"parameters":[],"locations":[{"id":35,"name":"Bar","title":"Bar","description":null},{"id":33,"name":"Foo","title":"Foo","description":null},{"id":34,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":36,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":37,"name":"Test - Org2","title":"Test Org2","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ + \ 07:10:08 UTC\",\"updated_at\":\"2020-07-17 07:10:08 UTC\",\"id\":17,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -175,14 +176,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:22 GMT ETag: - - W/"831a216f057d0c8c12b0219809c6cd14-gzip" + - W/"2d70e9ddf57eeaca3621c5cdf328de7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -190,17 +191,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -209,16 +210,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - c66579ec-2c9e-4577-a080-96d036cd8cc9 + - 6996c895-46e2-4d4f-b739-5f839adaf4ff X-Runtime: - - '0.024543' + - '0.014122' X-XSS-Protection: - 1; mode=block content-length: - - '1184' + - '389' status: code: 200 message: OK @@ -232,17 +231,19 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=18a25f6693a2734a6b00ef9da7de7775 + - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:39 UTC\",\"updated_at\":\"2019-12-04 10:07:39 UTC\",\"id\":33,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:02\ + \ UTC\",\"updated_at\":\"2020-07-17 07:10:02 UTC\",\"id\":13,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +251,14 @@ 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: - - Wed, 04 Dec 2019 10:07:58 GMT + - Fri, 17 Jul 2020 07:19:22 GMT ETag: - - W/"13898f94dcb51ef1dfc948b38af58379-gzip" + - W/"ed09a20f032748b050bc867149918e5b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,17 +266,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -284,12 +285,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - b1d52329-fbc2-4696-81ee-1a56e9c6d8c4 + - 60cac344-6141-44f6-ba42-8fdb05f79fc7 X-Runtime: - - '0.028955' + - '0.014882' X-XSS-Protection: - 1; mode=block content-length: @@ -307,17 +306,19 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=18a25f6693a2734a6b00ef9da7de7775 + - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"33\",\"parent_id\":33,\"parent_name\":\"Foo\",\"created_at\":\"2019-12-04 - 10:07:40 UTC\",\"updated_at\":\"2019-12-04 10:07:40 UTC\",\"id\":34,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"13\",\"parent_id\":13,\"parent_name\":\"Foo\",\"created_at\":\"2020-07-17\ + \ 07:10:04 UTC\",\"updated_at\":\"2020-07-17 07:10:04 UTC\",\"id\":14,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -325,14 +326,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:22 GMT ETag: - - W/"5ef7c3e495999dd3f33dbf7b762ad3ae-gzip" + - W/"1c8e086567f548fd92d713cd75ca5179-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -340,17 +341,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=96 + - timeout=15, max=96 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -359,12 +360,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - ce55541d-e2cc-406e-b2a8-fb0a3d6f1753 + - 9a85b8d5-6bc7-4679-a171-872eb2fadd63 X-Runtime: - - '0.019084' + - '0.017109' X-XSS-Protection: - 1; mode=block content-length: @@ -382,17 +381,19 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=18a25f6693a2734a6b00ef9da7de7775 + - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:42 UTC\",\"updated_at\":\"2019-12-04 10:07:42 UTC\",\"id\":35,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:05\ + \ UTC\",\"updated_at\":\"2020-07-17 07:10:05 UTC\",\"id\":15,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -400,14 +401,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:22 GMT ETag: - - W/"d894ad17d3475ef6ae7132607dc869bf-gzip" + - W/"bbd6f13df5f1b3a22ce68811f2efb683-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -415,17 +416,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=95 + - timeout=15, max=95 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -434,12 +435,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 34565ee2-c076-4366-ae98-eb55bfed225a + - 2cbcb51c-64d7-43bb-886e-22ff839090e2 X-Runtime: - - '0.016044' + - '0.014801' X-XSS-Protection: - 1; mode=block content-length: @@ -457,18 +456,27 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=18a25f6693a2734a6b00ef9da7de7775 + - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:43 UTC\",\"updated_at\":\"2019-12-04 10:07:43 UTC\",\"id\":36,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\"\ + ,\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\"\ + ,\"to\":\"192.168.200.20\",\"created_at\":\"2020-07-17 07:19:22 UTC\",\"updated_at\"\ + :\"2020-07-17 07:19:22 UTC\",\"ipam\":\"Internal DB\",\"boot_mode\":\"Static\"\ + ,\"id\":5,\"name\":\"Test Subnet 2\",\"description\":\"My subnet description\"\ + ,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"\ + tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"\ + externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\"\ + :null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"\ + externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -476,14 +484,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:22 GMT ETag: - - W/"3097ef1c9f9fdeea8c8131c3338a7aec-gzip" + - W/"91878fe2401946e312dd037be104c964-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -491,17 +499,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=94 + - timeout=15, max=94 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -510,16 +518,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 6f0b4393-19f5-4f89-9cf9-c5b1560cb03f + - 1251c443-704a-44b2-a93b-70ec3c883467 X-Runtime: - - '0.015920' + - '0.016617' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '942' status: code: 200 message: OK @@ -533,18 +539,18 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=18a25f6693a2734a6b00ef9da7de7775 + - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets/5 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:44 UTC\",\"updated_at\":\"2019-12-04 10:07:44 UTC\",\"id\":37,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-07-17 + 07:19:22 UTC","updated_at":"2020-07-17 07:19:22 UTC","ipam":"Internal DB","boot_mode":"Static","id":5,"name":"Test + Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[{"id":3,"name":"bar.example.com"},{"id":2,"name":"foo.example.com"}],"interfaces":[],"parameters":[],"locations":[{"id":15,"name":"Bar","title":"Bar","description":null},{"id":13,"name":"Foo","title":"Foo","description":null},{"id":14,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":16,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":17,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -552,14 +558,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:22 GMT ETag: - - W/"4c71f98e3bcb5ca195083d797255f6e4-gzip" + - W/"915ba00c59e3c619a467ef8fa2359da4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -567,17 +573,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=93 + - timeout=15, max=93 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -586,16 +592,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 7de95bf5-5c17-4d58-8d7e-55324fa3394e + - 4d552930-7a42-4416-ab66-14ec3daf6e46 X-Runtime: - - '0.015162' + - '0.029820' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '1249' status: code: 200 message: OK @@ -613,17 +617,17 @@ interactions: Content-Type: - application/json Cookie: - - _session_id=18a25f6693a2734a6b00ef9da7de7775 + - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/subnets/24 + uri: https://foreman.example.org/api/subnets/5 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2019-12-04 - 10:07:58 UTC","updated_at":"2019-12-04 10:07:58 UTC","ipam":"Internal DB","boot_mode":"Static","id":24,"name":"Test - Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[{"id":35,"name":"Bar","title":"Bar","description":null},{"id":33,"name":"Foo","title":"Foo","description":null},{"id":34,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":36,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":37,"name":"Test + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-07-17 + 07:19:22 UTC","updated_at":"2020-07-17 07:19:22 UTC","ipam":"Internal DB","boot_mode":"Static","id":5,"name":"Test + Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[{"id":15,"name":"Bar","title":"Bar","description":null},{"id":13,"name":"Foo","title":"Foo","description":null},{"id":14,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":16,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":17,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -632,14 +636,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:22 GMT ETag: - - W/"8c1e42eac7e77f8f460b4530cd0635e6-gzip" + - W/"9f3c1eec2685001cd570c4d9f1b77101-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -647,19 +651,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=92 + - timeout=15, max=92 Server: - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -668,16 +670,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 8a96f4ee-af1e-489a-99f3-6577997b35e9 + - 8e16f7bc-a975-44ad-b1cb-af7e1b7bfb85 X-Runtime: - - '0.038141' + - '0.040647' X-XSS-Protection: - 1; mode=block content-length: - - '1115' + - '1182' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-22.yml b/tests/test_playbooks/fixtures/subnet-22.yml index 78623076..2d1edba9 100644 --- a/tests/test_playbooks/fixtures/subnet-22.yml +++ b/tests/test_playbooks/fixtures/subnet-22.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:23 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=50d85e7063bb9c5e4077ba561976a7f5; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 1da35830-44ff-4281-8f4a-763745fe689c + - f6e238e0-d780-4461-991f-955a2d27b75d X-Runtime: - - '0.077086' + - '0.149034' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,19 +79,20 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=50d85e7063bb9c5e4077ba561976a7f5 + - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\",\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\",\"to\":\"192.168.200.20\",\"created_at\":\"2019-12-04 - 10:07:58 UTC\",\"updated_at\":\"2019-12-04 10:07:58 UTC\",\"ipam\":\"Internal - DB\",\"boot_mode\":\"Static\",\"id\":24,\"name\":\"Test Subnet 2\",\"description\":\"My - subnet description\",\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ + \ 07:10:06 UTC\",\"updated_at\":\"2020-07-17 07:10:06 UTC\",\"id\":16,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -99,14 +100,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:23 GMT ETag: - - W/"64d4101514cc2cd178169b20214334d8-gzip" + - W/"349ab26506db8d6a1b98584cb8886cbc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,17 +115,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -133,16 +134,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 8c22af7d-3498-4fea-90d5-81396f26ded7 + - 9db87cd1-0c7b-458d-be79-dbf030ee3c8e X-Runtime: - - '0.017138' + - '0.017074' X-XSS-Protection: - 1; mode=block content-length: - - '875' + - '389' status: code: 200 message: OK @@ -156,18 +155,20 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=50d85e7063bb9c5e4077ba561976a7f5 + - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/24 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2019-12-04 - 10:07:58 UTC","updated_at":"2019-12-04 10:07:58 UTC","ipam":"Internal DB","boot_mode":"Static","id":24,"name":"Test - Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[{"id":35,"name":"Bar","title":"Bar","description":null},{"id":33,"name":"Foo","title":"Foo","description":null},{"id":34,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":36,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":37,"name":"Test - Org2","title":"Test Org2","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ + \ 07:10:08 UTC\",\"updated_at\":\"2020-07-17 07:10:08 UTC\",\"id\":17,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -175,14 +176,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:23 GMT ETag: - - W/"8c1e42eac7e77f8f460b4530cd0635e6-gzip" + - W/"2d70e9ddf57eeaca3621c5cdf328de7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -190,17 +191,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -209,16 +210,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 33e8bfc6-a821-4c89-a039-45314d6d2514 + - 7b628da1-bfc2-4c83-a5f8-ddaef13724e4 X-Runtime: - - '0.025279' + - '0.016592' X-XSS-Protection: - 1; mode=block content-length: - - '1115' + - '389' status: code: 200 message: OK @@ -232,17 +231,19 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=50d85e7063bb9c5e4077ba561976a7f5 + - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:39 UTC\",\"updated_at\":\"2019-12-04 10:07:39 UTC\",\"id\":33,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:02\ + \ UTC\",\"updated_at\":\"2020-07-17 07:10:02 UTC\",\"id\":13,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +251,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:23 GMT ETag: - - W/"13898f94dcb51ef1dfc948b38af58379-gzip" + - W/"ed09a20f032748b050bc867149918e5b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,17 +266,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -284,12 +285,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 3b3bebb5-0bd9-42d1-9d0c-7f7f3db3b477 + - facc6e6b-8b61-443a-86f6-0def0761508a X-Runtime: - - '0.015093' + - '0.016287' X-XSS-Protection: - 1; mode=block content-length: @@ -307,17 +306,19 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=50d85e7063bb9c5e4077ba561976a7f5 + - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"33\",\"parent_id\":33,\"parent_name\":\"Foo\",\"created_at\":\"2019-12-04 - 10:07:40 UTC\",\"updated_at\":\"2019-12-04 10:07:40 UTC\",\"id\":34,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"13\",\"parent_id\":13,\"parent_name\":\"Foo\",\"created_at\":\"2020-07-17\ + \ 07:10:04 UTC\",\"updated_at\":\"2020-07-17 07:10:04 UTC\",\"id\":14,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -325,14 +326,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:23 GMT ETag: - - W/"5ef7c3e495999dd3f33dbf7b762ad3ae-gzip" + - W/"1c8e086567f548fd92d713cd75ca5179-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -340,17 +341,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=96 + - timeout=15, max=96 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -359,12 +360,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 29298f96-adcd-4792-8843-2d790bd7364e + - a917092f-12f1-4552-8279-5cc40365185b X-Runtime: - - '0.016233' + - '0.016593' X-XSS-Protection: - 1; mode=block content-length: @@ -382,17 +381,19 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=50d85e7063bb9c5e4077ba561976a7f5 + - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:42 UTC\",\"updated_at\":\"2019-12-04 10:07:42 UTC\",\"id\":35,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:05\ + \ UTC\",\"updated_at\":\"2020-07-17 07:10:05 UTC\",\"id\":15,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -400,14 +401,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:23 GMT ETag: - - W/"d894ad17d3475ef6ae7132607dc869bf-gzip" + - W/"bbd6f13df5f1b3a22ce68811f2efb683-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -415,17 +416,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=95 + - timeout=15, max=95 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -434,12 +435,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - e330740c-6988-42ec-b912-a41184c751b6 + - e14c8cff-82f0-479b-bea6-f2b83b23daec X-Runtime: - - '0.016723' + - '0.015275' X-XSS-Protection: - 1; mode=block content-length: @@ -457,18 +456,27 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=50d85e7063bb9c5e4077ba561976a7f5 + - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:43 UTC\",\"updated_at\":\"2019-12-04 10:07:43 UTC\",\"id\":36,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\"\ + ,\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\"\ + ,\"to\":\"192.168.200.20\",\"created_at\":\"2020-07-17 07:19:22 UTC\",\"updated_at\"\ + :\"2020-07-17 07:19:22 UTC\",\"ipam\":\"Internal DB\",\"boot_mode\":\"Static\"\ + ,\"id\":5,\"name\":\"Test Subnet 2\",\"description\":\"My subnet description\"\ + ,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"\ + tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"\ + externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\"\ + :null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"\ + externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -476,14 +484,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:23 GMT ETag: - - W/"3097ef1c9f9fdeea8c8131c3338a7aec-gzip" + - W/"91878fe2401946e312dd037be104c964-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -491,17 +499,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=94 + - timeout=15, max=94 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -510,16 +518,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 4bf5efbd-9af0-492e-906d-e5b7b70dccca + - 2b6eccab-f9f1-47f4-adad-7eb555ea5375 X-Runtime: - - '0.015808' + - '0.016716' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '942' status: code: 200 message: OK @@ -533,18 +539,18 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=50d85e7063bb9c5e4077ba561976a7f5 + - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets/5 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-04 - 10:07:44 UTC\",\"updated_at\":\"2019-12-04 10:07:44 UTC\",\"id\":37,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-07-17 + 07:19:22 UTC","updated_at":"2020-07-17 07:19:22 UTC","ipam":"Internal DB","boot_mode":"Static","id":5,"name":"Test + Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[{"id":15,"name":"Bar","title":"Bar","description":null},{"id":13,"name":"Foo","title":"Foo","description":null},{"id":14,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":16,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":17,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -552,14 +558,14 @@ 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: - - Wed, 04 Dec 2019 10:07:59 GMT + - Fri, 17 Jul 2020 07:19:23 GMT ETag: - - W/"4c71f98e3bcb5ca195083d797255f6e4-gzip" + - W/"9f3c1eec2685001cd570c4d9f1b77101-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -567,17 +573,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=93 + - timeout=15, max=93 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -586,16 +592,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - d6368149-f652-4ca7-9636-a546975dd190 + - cba25bd0-027f-41a8-bb69-4dc47a46ba7a X-Runtime: - - '0.015573' + - '0.025724' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '1182' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-23.yml b/tests/test_playbooks/fixtures/subnet-23.yml index 615074f0..adc5b673 100644 --- a/tests/test_playbooks/fixtures/subnet-23.yml +++ b/tests/test_playbooks/fixtures/subnet-23.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:08:00 GMT + - Fri, 17 Jul 2020 07:19:24 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=672caedc1be72df10cd3dc94016254c1; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=9d7ac821c2fcb6162b630ff2abb5404e; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 2bfa292e-e57f-46e9-baf5-6e5fb82e59ad + - fea1a9ee-4a69-41d0-ad6c-e4324da742ae X-Runtime: - - '0.075749' + - '0.152779' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,19 +79,27 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=672caedc1be72df10cd3dc94016254c1 + - _session_id=9d7ac821c2fcb6162b630ff2abb5404e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\",\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\",\"to\":\"192.168.200.20\",\"created_at\":\"2019-12-04 - 10:07:58 UTC\",\"updated_at\":\"2019-12-04 10:07:58 UTC\",\"ipam\":\"Internal - DB\",\"boot_mode\":\"Static\",\"id\":24,\"name\":\"Test Subnet 2\",\"description\":\"My - subnet description\",\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\"\ + ,\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\"\ + ,\"to\":\"192.168.200.20\",\"created_at\":\"2020-07-17 07:19:22 UTC\",\"updated_at\"\ + :\"2020-07-17 07:19:22 UTC\",\"ipam\":\"Internal DB\",\"boot_mode\":\"Static\"\ + ,\"id\":5,\"name\":\"Test Subnet 2\",\"description\":\"My subnet description\"\ + ,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"\ + tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"\ + externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\"\ + :null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"\ + externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -99,14 +107,14 @@ 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: - - Wed, 04 Dec 2019 10:08:00 GMT + - Fri, 17 Jul 2020 07:19:24 GMT ETag: - - W/"64d4101514cc2cd178169b20214334d8-gzip" + - W/"91878fe2401946e312dd037be104c964-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,17 +122,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -133,16 +141,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 8f079a09-39eb-4a8c-a058-21fc8254f3e9 + - c9b2d340-6e4a-4808-afd6-af4081d93416 X-Runtime: - - '0.017766' + - '0.030434' X-XSS-Protection: - 1; mode=block content-length: - - '875' + - '942' status: code: 200 message: OK @@ -158,16 +164,16 @@ interactions: Content-Length: - '0' Cookie: - - _session_id=672caedc1be72df10cd3dc94016254c1 + - _session_id=9d7ac821c2fcb6162b630ff2abb5404e User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/subnets/24 + uri: https://foreman.example.org/api/subnets/5 response: body: - string: '{"id":24,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test - Subnet 2","vlanid":42,"created_at":"2019-12-04T10:07:58.448Z","updated_at":"2019-12-04T10:07:58.448Z","dhcp_id":null,"tftp_id":null,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","dns_id":null,"boot_mode":"Static","ipam":"Internal - DB","description":"My subnet description","mtu":9000,"template_id":null,"httpboot_id":null,"to_label":"Test + string: '{"id":5,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test + Subnet 2","vlanid":42,"created_at":"2020-07-17T07:19:22.047Z","updated_at":"2020-07-17T07:19:22.047Z","dhcp_id":null,"tftp_id":null,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","dns_id":null,"boot_mode":"Static","ipam":"Internal + DB","description":"My subnet description","mtu":9000,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test Subnet 2 (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: Cache-Control: @@ -176,14 +182,14 @@ 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: - - Wed, 04 Dec 2019 10:08:00 GMT + - Fri, 17 Jul 2020 07:19:24 GMT ETag: - - W/"d02743c21c8750fb7e43f48c8ac8fb1d-gzip" + - W/"1e2f677574b6a80b68fea7f12c56ebba-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -191,19 +197,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -212,16 +216,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - f519d3f3-570f-48e5-a8ad-dec1bff56cd0 + - 4b2a60e8-c5f2-41db-99a1-71c0eb4470f4 X-Runtime: - - '0.050199' + - '0.068059' X-XSS-Protection: - 1; mode=block content-length: - - '554' + - '619' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-24.yml b/tests/test_playbooks/fixtures/subnet-24.yml index 07302d90..63d7fb92 100644 --- a/tests/test_playbooks/fixtures/subnet-24.yml +++ b/tests/test_playbooks/fixtures/subnet-24.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:08:00 GMT + - Fri, 17 Jul 2020 07:19:24 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=5c1f94acca14b1b078d754bec99ff7b4; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=b5700518b00dfeaddf7fc8d58c758951; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - cd30ef4c-6306-4c5b-9902-e4daae7f0a1b + - 19ebda98-27a1-4958-80fa-51e829d8e75b X-Runtime: - - '0.076455' + - '0.137988' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,16 +79,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=5c1f94acca14b1b078d754bec99ff7b4 + - _session_id=b5700518b00dfeaddf7fc8d58c758951 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,12 +96,12 @@ 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: - - Wed, 04 Dec 2019 10:08:00 GMT + - Fri, 17 Jul 2020 07:19:24 GMT ETag: - W/"442782b5c35a312d29eef0d20d99ec4e-gzip" Foreman_api_version: @@ -111,17 +111,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,12 +130,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 225d03dc-6d43-4677-ad66-f93a3321d7f7 + - 2491f261-ce5d-45e3-82f8-16b427b4c45b X-Runtime: - - '0.016052' + - '0.016393' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/subnet-3.yml b/tests/test_playbooks/fixtures/subnet-3.yml index 3df58d15..f6d325d1 100644 --- a/tests/test_playbooks/fixtures/subnet-3.yml +++ b/tests/test_playbooks/fixtures/subnet-3.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:49 GMT + - Fri, 17 Jul 2020 07:19:11 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=ebfb9fed6b26e931200a2c8b50631c4e; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=4ba88bcb2f38649276494c6a9806d07d; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - bd405a92-65ac-4d92-b5d3-688570ffffcd + - 530697e1-ba2c-424e-bca9-520db9222749 X-Runtime: - - '0.103887' + - '0.136694' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=ebfb9fed6b26e931200a2c8b50631c4e + - _session_id=4ba88bcb2f38649276494c6a9806d07d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:47 UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":20,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:49 GMT + - Fri, 17 Jul 2020 07:19:11 GMT ETag: - - W/"dd5027d988d357f42effb95499850e98-gzip" + - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 72bd8f5d-811b-4271-a70e-5d6e59ca37c5 + - bb0f6390-909d-496c-a299-7a0a07bc734a X-Runtime: - - '0.024513' + - '0.016606' X-XSS-Protection: - 1; mode=block content-length: - - '800' + - '867' status: code: 200 message: OK @@ -155,18 +161,18 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=ebfb9fed6b26e931200a2c8b50631c4e + - _session_id=4ba88bcb2f38649276494c6a9806d07d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/20 + uri: https://foreman.example.org/api/subnets/1 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","ipam":"DHCP","boot_mode":"DHCP","id":20,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","id":19,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","id":20,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -174,14 +180,14 @@ 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: - - Wed, 04 Dec 2019 10:07:49 GMT + - Fri, 17 Jul 2020 07:19:11 GMT ETag: - - W/"2b0fd81c190fb96f12b180a7a61959e6-gzip" + - W/"ad6e1a158056182197062f179bb0cdd5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,17 +195,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -208,16 +214,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - ab1f4aab-a105-41b6-bf3e-e2d810c10ee8 + - 8ebcc744-f0c3-4ceb-a0fc-27de05fd77d0 X-Runtime: - - '0.032014' + - '0.027392' X-XSS-Protection: - 1; mode=block content-length: - - '1037' + - '1102' status: code: 200 message: OK @@ -231,18 +235,21 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=ebfb9fed6b26e931200a2c8b50631c4e + - _session_id=4ba88bcb2f38649276494c6a9806d07d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/20/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/subnets/1/parameters?per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"2019-12-04 10:07:47 - UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"id\":19,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"},{\"priority\":40,\"created_at\":\"2019-12-04 - 10:07:47 UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"id\":20,\"name\":\"subnet_param2\",\"parameter_type\":\"string\",\"value\":\"value2\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ + \ \"order\": null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"\ + 2020-07-17 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"id\"\ + :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"\ + },{\"priority\":40,\"created_at\":\"2020-07-17 07:19:09 UTC\",\"updated_at\"\ + :\"2020-07-17 07:19:09 UTC\",\"id\":2,\"name\":\"subnet_param2\",\"parameter_type\"\ + :\"string\",\"value\":\"value2\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +257,14 @@ 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: - - Wed, 04 Dec 2019 10:07:49 GMT + - Fri, 17 Jul 2020 07:19:11 GMT ETag: - - W/"e96ca04adeadd712e9282394bbe03db1-gzip" + - W/"c7a36eb53595df51a1b3a404b46c4f28-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,17 +272,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -284,16 +291,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 5c3de099-90fd-4bfb-99ed-00098a2030ca + - 16219f02-dd8d-4dfb-94fd-a91a7c192c39 X-Runtime: - - '0.019796' + - '0.019176' X-XSS-Protection: - 1; mode=block content-length: - - '494' + - '492' status: code: 200 message: OK @@ -311,15 +316,15 @@ interactions: Content-Type: - application/json Cookie: - - _session_id=ebfb9fed6b26e931200a2c8b50631c4e + - _session_id=4ba88bcb2f38649276494c6a9806d07d User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/subnets/20/parameters/19 + uri: https://foreman.example.org/api/subnets/1/parameters/1 response: body: - string: '{"priority":40,"created_at":"2019-12-04 10:07:47 UTC","updated_at":"2019-12-04 - 10:07:49 UTC","id":19,"name":"subnet_param1","parameter_type":"string","value":"new_value1"}' + string: '{"priority":40,"created_at":"2020-07-17 07:19:09 UTC","updated_at":"2020-07-17 + 07:19:11 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"new_value1"}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -327,14 +332,14 @@ 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: - - Wed, 04 Dec 2019 10:07:49 GMT + - Fri, 17 Jul 2020 07:19:11 GMT ETag: - - W/"c4bc89c73e698d73c1f8c0ab1b379918-gzip" + - W/"953e22694954ae6bbcc3f53fdf70f857-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -342,19 +347,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=96 + - timeout=15, max=96 Server: - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -363,16 +366,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - d739710d-6657-4660-9104-707b6f7b0b34 + - 78614eed-790d-4811-adc0-d421b99d2a9c X-Runtime: - - '0.040327' + - '0.040446' X-XSS-Protection: - 1; mode=block content-length: - - '171' + - '170' status: code: 200 message: OK @@ -391,15 +392,15 @@ interactions: Content-Type: - application/json Cookie: - - _session_id=ebfb9fed6b26e931200a2c8b50631c4e; request_method=PUT + - _session_id=4ba88bcb2f38649276494c6a9806d07d User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/subnets/20/parameters + uri: https://foreman.example.org/api/subnets/1/parameters response: body: - string: '{"priority":40,"created_at":"2019-12-04 10:07:49 UTC","updated_at":"2019-12-04 - 10:07:49 UTC","id":21,"name":"subnet_param3","parameter_type":"string","value":"value3"}' + string: '{"priority":40,"created_at":"2020-07-17 07:19:11 UTC","updated_at":"2020-07-17 + 07:19:11 UTC","id":3,"name":"subnet_param3","parameter_type":"string","value":"value3"}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -407,14 +408,14 @@ 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: - - Wed, 04 Dec 2019 10:07:49 GMT + - Fri, 17 Jul 2020 07:19:11 GMT ETag: - - W/"9f9586f143120c1ded8d40f2efe427e1" + - W/"dae6dd66c1734230c7a61a218afeee02" Foreman_api_version: - '2' Foreman_current_location: @@ -422,19 +423,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=95 + - timeout=15, max=95 Server: - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -443,12 +442,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 178cdc4d-5835-4eb4-b8fc-61a1576aa46c + - 4d04da2f-f39b-4e45-b971-defcdbc700d4 X-Runtime: - - '0.038329' + - '0.037139' X-XSS-Protection: - 1; mode=block status: @@ -466,14 +463,14 @@ interactions: Content-Length: - '0' Cookie: - - _session_id=ebfb9fed6b26e931200a2c8b50631c4e; request_method=POST + - _session_id=4ba88bcb2f38649276494c6a9806d07d User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/subnets/20/parameters/20 + uri: https://foreman.example.org/api/subnets/1/parameters/2 response: body: - string: '{"id":20,"name":"subnet_param2","value":"value2","reference_id":20,"created_at":"2019-12-04T10:07:47.788Z","updated_at":"2019-12-04T10:07:47.788Z","priority":40,"hidden_value":"*****","key_type":"string"}' + string: '{"id":2,"name":"subnet_param2","value":"value2","reference_id":1,"created_at":"2020-07-17T07:19:09.515Z","updated_at":"2020-07-17T07:19:09.515Z","priority":40,"hidden_value":"*****","key_type":"string","searchable_value":"value2"}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -481,14 +478,14 @@ 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: - - Wed, 04 Dec 2019 10:07:49 GMT + - Fri, 17 Jul 2020 07:19:11 GMT ETag: - - W/"8026d08c073eb6424c5685473c8cf157-gzip" + - W/"4b1fdf496ae9d47f41dd9a5553af602a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -496,19 +493,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=94 + - timeout=15, max=94 Server: - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -517,16 +512,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 0129d4ef-0f5d-454e-a209-dcf0d4de7b0c + - ee400e62-b57d-4a1c-af6c-b30101505e12 X-Runtime: - - '0.030287' + - '0.029729' X-XSS-Protection: - 1; mode=block content-length: - - '204' + - '230' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-4.yml b/tests/test_playbooks/fixtures/subnet-4.yml index 28703d51..77219f66 100644 --- a/tests/test_playbooks/fixtures/subnet-4.yml +++ b/tests/test_playbooks/fixtures/subnet-4.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:49 GMT + - Fri, 17 Jul 2020 07:19:11 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=61e4106ab390e44244c361dcb739ad26; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=5a5310895cb647593e906a069f65c884; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - ebdf4606-6a80-4b6e-8c7d-a7e4137c4570 + - dde6aa33-5373-414d-85ce-cf273eb09017 X-Runtime: - - '0.076114' + - '0.135699' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=61e4106ab390e44244c361dcb739ad26 + - _session_id=5a5310895cb647593e906a069f65c884 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:47 UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":20,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:50 GMT + - Fri, 17 Jul 2020 07:19:12 GMT ETag: - - W/"dd5027d988d357f42effb95499850e98-gzip" + - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 46c6f4e4-9c60-44ef-87d9-737bb6b32a7e + - d8bbd1e1-ce4d-43a9-97c7-497397716d3b X-Runtime: - - '0.017235' + - '0.017323' X-XSS-Protection: - 1; mode=block content-length: - - '800' + - '867' status: code: 200 message: OK @@ -155,18 +161,18 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=61e4106ab390e44244c361dcb739ad26 + - _session_id=5a5310895cb647593e906a069f65c884 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/20 + uri: https://foreman.example.org/api/subnets/1 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","ipam":"DHCP","boot_mode":"DHCP","id":20,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:49 UTC","id":19,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":40,"created_at":"2019-12-04 - 10:07:49 UTC","updated_at":"2019-12-04 10:07:49 UTC","id":21,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:11 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":40,"created_at":"2020-07-17 + 07:19:11 UTC","updated_at":"2020-07-17 07:19:11 UTC","id":3,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -174,14 +180,14 @@ 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: - - Wed, 04 Dec 2019 10:07:50 GMT + - Fri, 17 Jul 2020 07:19:12 GMT ETag: - - W/"5ecd58bc680ce7158a856dc192d270fd-gzip" + - W/"5e6d29f2ae6e5057a5df0c4a7c663b44-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,17 +195,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -208,16 +214,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - b082639c-6f49-4adb-9876-3531c68e9540 + - 1870e393-eb37-43dc-bf2b-225c5ad9874e X-Runtime: - - '0.026352' + - '0.027681' X-XSS-Protection: - 1; mode=block content-length: - - '1041' + - '1106' status: code: 200 message: OK @@ -231,18 +235,21 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=61e4106ab390e44244c361dcb739ad26 + - _session_id=5a5310895cb647593e906a069f65c884 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/20/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/subnets/1/parameters?per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"2019-12-04 10:07:47 - UTC\",\"updated_at\":\"2019-12-04 10:07:49 UTC\",\"id\":19,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"},{\"priority\":40,\"created_at\":\"2019-12-04 - 10:07:49 UTC\",\"updated_at\":\"2019-12-04 10:07:49 UTC\",\"id\":21,\"name\":\"subnet_param3\",\"parameter_type\":\"string\",\"value\":\"value3\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ + \ \"order\": null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"\ + 2020-07-17 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:11 UTC\",\"id\"\ + :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"\ + },{\"priority\":40,\"created_at\":\"2020-07-17 07:19:11 UTC\",\"updated_at\"\ + :\"2020-07-17 07:19:11 UTC\",\"id\":3,\"name\":\"subnet_param3\",\"parameter_type\"\ + :\"string\",\"value\":\"value3\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +257,14 @@ 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: - - Wed, 04 Dec 2019 10:07:50 GMT + - Fri, 17 Jul 2020 07:19:12 GMT ETag: - - W/"c0818356e402b650d325283502e138f6-gzip" + - W/"1905256a5201c2f6486d9d0e9163b54c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,17 +272,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -284,16 +291,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 0a597360-f966-4c8f-85fe-411ce02a0cac + - 41b5dcad-c538-48ce-9292-5aa093330cf4 X-Runtime: - - '0.019139' + - '0.019420' X-XSS-Protection: - 1; mode=block content-length: - - '498' + - '496' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-5.yml b/tests/test_playbooks/fixtures/subnet-5.yml index befb8ccd..6efe9cbe 100644 --- a/tests/test_playbooks/fixtures/subnet-5.yml +++ b/tests/test_playbooks/fixtures/subnet-5.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:50 GMT + - Fri, 17 Jul 2020 07:19:12 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=14bc20b067cc49eae8867fed7d8322ae; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=42f0b301237640911d7bbddbf0998ab5; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - ebb46efb-e25c-4ec2-ae8e-6f4442ec3717 + - 906179e3-7bd3-4449-ac8f-51f283f08ebf X-Runtime: - - '0.081657' + - '0.133507' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=14bc20b067cc49eae8867fed7d8322ae + - _session_id=42f0b301237640911d7bbddbf0998ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:47 UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":20,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:50 GMT + - Fri, 17 Jul 2020 07:19:12 GMT ETag: - - W/"dd5027d988d357f42effb95499850e98-gzip" + - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - a488099c-98d4-47b0-960a-f98772cebb59 + - cc3e2a7b-e01b-4bbd-9d6d-6e74c1f3043c X-Runtime: - - '0.017525' + - '0.016398' X-XSS-Protection: - 1; mode=block content-length: - - '800' + - '867' status: code: 200 message: OK @@ -155,18 +161,18 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=14bc20b067cc49eae8867fed7d8322ae + - _session_id=42f0b301237640911d7bbddbf0998ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/20 + uri: https://foreman.example.org/api/subnets/1 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:47 UTC","ipam":"DHCP","boot_mode":"DHCP","id":20,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2019-12-04 - 10:07:47 UTC","updated_at":"2019-12-04 10:07:49 UTC","id":19,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":40,"created_at":"2019-12-04 - 10:07:49 UTC","updated_at":"2019-12-04 10:07:49 UTC","id":21,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 + 07:19:09 UTC","updated_at":"2020-07-17 07:19:11 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":40,"created_at":"2020-07-17 + 07:19:11 UTC","updated_at":"2020-07-17 07:19:11 UTC","id":3,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -174,14 +180,14 @@ 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: - - Wed, 04 Dec 2019 10:07:50 GMT + - Fri, 17 Jul 2020 07:19:12 GMT ETag: - - W/"5ecd58bc680ce7158a856dc192d270fd-gzip" + - W/"5e6d29f2ae6e5057a5df0c4a7c663b44-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,17 +195,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -208,16 +214,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 028c3ea3-fe51-4593-a39b-e3975137ef5b + - 94f9d7fd-b172-41ea-ac7e-8096cacf5e92 X-Runtime: - - '0.028810' + - '0.025442' X-XSS-Protection: - 1; mode=block content-length: - - '1041' + - '1106' status: code: 200 message: OK @@ -231,18 +235,21 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=14bc20b067cc49eae8867fed7d8322ae + - _session_id=42f0b301237640911d7bbddbf0998ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/20/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/subnets/1/parameters?per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"2019-12-04 10:07:47 - UTC\",\"updated_at\":\"2019-12-04 10:07:49 UTC\",\"id\":19,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"},{\"priority\":40,\"created_at\":\"2019-12-04 - 10:07:49 UTC\",\"updated_at\":\"2019-12-04 10:07:49 UTC\",\"id\":21,\"name\":\"subnet_param3\",\"parameter_type\":\"string\",\"value\":\"value3\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ + \ \"order\": null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"\ + 2020-07-17 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:11 UTC\",\"id\"\ + :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"\ + },{\"priority\":40,\"created_at\":\"2020-07-17 07:19:11 UTC\",\"updated_at\"\ + :\"2020-07-17 07:19:11 UTC\",\"id\":3,\"name\":\"subnet_param3\",\"parameter_type\"\ + :\"string\",\"value\":\"value3\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +257,14 @@ 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: - - Wed, 04 Dec 2019 10:07:50 GMT + - Fri, 17 Jul 2020 07:19:12 GMT ETag: - - W/"c0818356e402b650d325283502e138f6-gzip" + - W/"1905256a5201c2f6486d9d0e9163b54c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,17 +272,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=97 + - timeout=15, max=97 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -284,16 +291,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 67f8460f-b828-458f-ae32-88a0a49ecbce + - 354feefd-1121-49bb-801c-6ca4abc1cb7c X-Runtime: - - '0.019449' + - '0.018204' X-XSS-Protection: - 1; mode=block content-length: - - '498' + - '496' status: code: 200 message: OK @@ -309,14 +314,14 @@ interactions: Content-Length: - '0' Cookie: - - _session_id=14bc20b067cc49eae8867fed7d8322ae + - _session_id=42f0b301237640911d7bbddbf0998ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/subnets/20/parameters/19 + uri: https://foreman.example.org/api/subnets/1/parameters/1 response: body: - string: '{"id":19,"name":"subnet_param1","value":"new_value1","reference_id":20,"created_at":"2019-12-04T10:07:47.745Z","updated_at":"2019-12-04T10:07:49.468Z","priority":40,"hidden_value":"*****","key_type":"string"}' + string: '{"id":1,"name":"subnet_param1","value":"new_value1","reference_id":1,"created_at":"2020-07-17T07:19:09.466Z","updated_at":"2020-07-17T07:19:11.434Z","priority":40,"hidden_value":"*****","key_type":"string","searchable_value":"new_value1"}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -324,14 +329,14 @@ 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: - - Wed, 04 Dec 2019 10:07:50 GMT + - Fri, 17 Jul 2020 07:19:12 GMT ETag: - - W/"f0aac652073ae7900993149a40814ec7-gzip" + - W/"ebeed6894b9b9be8f40d5a7b62fb8da0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -339,19 +344,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=96 + - timeout=15, max=96 Server: - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -360,16 +363,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 0450afcb-8209-45bf-b24d-eac4cb9679a8 + - 9d1ca726-c76a-49d7-aaaf-c7e03e5c4f55 X-Runtime: - - '0.032819' + - '0.030359' X-XSS-Protection: - 1; mode=block content-length: - - '208' + - '238' status: code: 200 message: OK @@ -385,14 +386,14 @@ interactions: Content-Length: - '0' Cookie: - - _session_id=14bc20b067cc49eae8867fed7d8322ae; request_method=DELETE + - _session_id=42f0b301237640911d7bbddbf0998ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/subnets/20/parameters/21 + uri: https://foreman.example.org/api/subnets/1/parameters/3 response: body: - string: '{"id":21,"name":"subnet_param3","value":"value3","reference_id":20,"created_at":"2019-12-04T10:07:49.515Z","updated_at":"2019-12-04T10:07:49.515Z","priority":40,"hidden_value":"*****","key_type":"string"}' + string: '{"id":3,"name":"subnet_param3","value":"value3","reference_id":1,"created_at":"2020-07-17T07:19:11.481Z","updated_at":"2020-07-17T07:19:11.481Z","priority":40,"hidden_value":"*****","key_type":"string","searchable_value":"value3"}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -400,14 +401,14 @@ 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: - - Wed, 04 Dec 2019 10:07:50 GMT + - Fri, 17 Jul 2020 07:19:12 GMT ETag: - - W/"6c328a9e284a93e6bcec5dd497b59ee8-gzip" + - W/"22af311ca55e7d19c6a6586999ec3c9c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -415,17 +416,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=95 + - timeout=15, max=95 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -434,16 +435,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - ce72ac2b-1225-44fa-959d-bf08a2a46906 + - f3d0a9be-fefc-4840-ba9d-ecb7b9f1b3fb X-Runtime: - - '0.031667' + - '0.030661' X-XSS-Protection: - 1; mode=block content-length: - - '204' + - '230' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-6.yml b/tests/test_playbooks/fixtures/subnet-6.yml index 86603c7f..cccc1c04 100644 --- a/tests/test_playbooks/fixtures/subnet-6.yml +++ b/tests/test_playbooks/fixtures/subnet-6.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:51 GMT + - Fri, 17 Jul 2020 07:19:13 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=30c49236a167b9fa36debf6355f5613f; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=46fbcd86ee74776f0edb3ceb0003a0b9; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 1856da62-fcaf-4ab8-84dd-8c72f2d3bfe7 + - 041366f2-92f2-41eb-96fa-121bd817d045 X-Runtime: - - '0.075788' + - '0.143262' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=30c49236a167b9fa36debf6355f5613f + - _session_id=46fbcd86ee74776f0edb3ceb0003a0b9 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:47 UTC\",\"updated_at\":\"2019-12-04 10:07:47 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":20,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:51 GMT + - Fri, 17 Jul 2020 07:19:13 GMT ETag: - - W/"dd5027d988d357f42effb95499850e98-gzip" + - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - a30be1fd-ba8b-4eae-aacc-83ed9fbe5114 + - 2e0f8df0-781c-4dd8-a963-ffee24464458 X-Runtime: - - '0.017971' + - '0.017289' X-XSS-Protection: - 1; mode=block content-length: - - '800' + - '867' status: code: 200 message: OK @@ -157,15 +163,15 @@ interactions: Content-Length: - '0' Cookie: - - _session_id=30c49236a167b9fa36debf6355f5613f + - _session_id=46fbcd86ee74776f0edb3ceb0003a0b9 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/subnets/20 + uri: https://foreman.example.org/api/subnets/1 response: body: - string: '{"id":20,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test - Subnet","vlanid":null,"created_at":"2019-12-04T10:07:47.673Z","updated_at":"2019-12-04T10:07:47.673Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"to_label":"Test + string: '{"id":1,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test + Subnet","vlanid":null,"created_at":"2020-07-17T07:19:09.408Z","updated_at":"2020-07-17T07:19:09.408Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test Subnet (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: Cache-Control: @@ -174,14 +180,14 @@ 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: - - Wed, 04 Dec 2019 10:07:51 GMT + - Fri, 17 Jul 2020 07:19:13 GMT ETag: - - W/"a06f08cfd0834e86f63ca147a9a9b198-gzip" + - W/"6ad423adcab8e6e2a3497c3ef21769a3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,19 +195,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -210,16 +214,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 86084d42-3d65-4bd3-99f9-f315c3a8b26c + - b6e2689a-6870-4058-8cb5-cc55249e27f3 X-Runtime: - - '0.037545' + - '0.039744' X-XSS-Protection: - 1; mode=block content-length: - - '479' + - '544' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-7.yml b/tests/test_playbooks/fixtures/subnet-7.yml index 3c84b735..741cfd16 100644 --- a/tests/test_playbooks/fixtures/subnet-7.yml +++ b/tests/test_playbooks/fixtures/subnet-7.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:51 GMT + - Fri, 17 Jul 2020 07:19:13 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=7edcc44b30893841f68941b8538b94dc; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=ec8b5e1932011df913620ebc109640d7; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 7cce9cbf-7a37-4df6-8cc1-9d8110d94f8d + - 960e14e0-75ce-4f6f-9019-ea157fee7a54 X-Runtime: - - '0.106579' + - '0.143395' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,16 +79,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=7edcc44b30893841f68941b8538b94dc + - _session_id=ec8b5e1932011df913620ebc109640d7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,12 +96,12 @@ 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: - - Wed, 04 Dec 2019 10:07:51 GMT + - Fri, 17 Jul 2020 07:19:13 GMT ETag: - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: @@ -111,17 +111,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,12 +130,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 5c10c348-9eb5-4fb5-9c7e-6b587df0befe + - 152cf9d3-6a8f-49d8-b62a-c3add7070119 X-Runtime: - - '0.025293' + - '0.014997' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/subnet-8.yml b/tests/test_playbooks/fixtures/subnet-8.yml index d7910721..797ea88e 100644 --- a/tests/test_playbooks/fixtures/subnet-8.yml +++ b/tests/test_playbooks/fixtures/subnet-8.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:52 GMT + - Fri, 17 Jul 2020 07:19:14 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=69675905bfddc828691544888f627391; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=6a53164fb55fe2402106b4e305e62038; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 0b2c215f-959e-4315-9694-f296b87b410b + - 54466b60-31fc-4f18-a5fb-91c5085fe597 X-Runtime: - - '0.082662' + - '0.137288' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,16 +79,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=69675905bfddc828691544888f627391 + - _session_id=6a53164fb55fe2402106b4e305e62038 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,12 +96,12 @@ 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: - - Wed, 04 Dec 2019 10:07:52 GMT + - Fri, 17 Jul 2020 07:19:14 GMT ETag: - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: @@ -111,17 +111,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,12 +130,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 88033a65-c174-4636-abc3-f8a89e44c492 + - 86e560a1-1c57-478e-bb82-5941507bb6bf X-Runtime: - - '0.015708' + - '0.015529' X-XSS-Protection: - 1; mode=block content-length: @@ -145,7 +143,7 @@ interactions: message: OK - request: body: '{"subnet": {"name": "Test Subnet", "network_type": "IPv4", "network": "192.168.200.0", - "mask": "255.255.255.224", "ipam": "DHCP", "boot_mode": "DHCP"}}' + "cidr": 27, "mask": "255.255.255.224", "ipam": "DHCP", "boot_mode": "DHCP"}}' headers: Accept: - application/json;version=2 @@ -154,20 +152,20 @@ interactions: Connection: - keep-alive Content-Length: - - '151' + - '163' Content-Type: - application/json Cookie: - - _session_id=69675905bfddc828691544888f627391 + - _session_id=6a53164fb55fe2402106b4e305e62038 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/subnets + uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:52 UTC","updated_at":"2019-12-04 10:07:52 UTC","ipam":"DHCP","boot_mode":"DHCP","id":21,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:14 UTC","updated_at":"2020-07-17 07:19:14 UTC","ipam":"DHCP","boot_mode":"DHCP","id":2,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -175,14 +173,14 @@ 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: - - Wed, 04 Dec 2019 10:07:52 GMT + - Fri, 17 Jul 2020 07:19:14 GMT ETag: - - W/"60f6a0c92bc8690104dbe5d651c8e93c" + - W/"eb0fdc78e3254c8a2a5d9060710daf3f" Foreman_api_version: - '2' Foreman_current_location: @@ -190,19 +188,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -211,12 +207,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 3129a6fb-8c85-4d97-87b9-aeb96be99f29 + - a5a7dcef-3ae5-4cc9-a563-8cf320c36429 X-Runtime: - - '0.042079' + - '0.043713' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-9.yml b/tests/test_playbooks/fixtures/subnet-9.yml index ea14182d..056cafb3 100644 --- a/tests/test_playbooks/fixtures/subnet-9.yml +++ b/tests/test_playbooks/fixtures/subnet-9.yml @@ -11,27 +11,25 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","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: - - Wed, 04 Dec 2019 10:07:52 GMT + - Fri, 17 Jul 2020 07:19:14 GMT ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" + - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +37,19 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=100 + - timeout=15, max=100 Server: - Apache Set-Cookie: - - _session_id=c14ef8f0d0daab54516578bfa2b944fa; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - _session_id=4862b608fe42973a08e4f9f0b4540975; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,14 +58,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 48307c31-7a01-43a4-b172-a8cd1adccb31 + - 4536d494-d9a0-4e64-bf49-a82e0d18689d X-Runtime: - - '0.075431' + - '0.135208' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -79,18 +79,26 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=c14ef8f0d0daab54516578bfa2b944fa + - _session_id=4862b608fe42973a08e4f9f0b4540975 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2019-12-04 - 10:07:52 UTC\",\"updated_at\":\"2019-12-04 10:07:52 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":21,\"name\":\"Test - Subnet\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ + \ 07:19:14 UTC\",\"updated_at\":\"2020-07-17 07:19:14 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":2,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +106,14 @@ 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: - - Wed, 04 Dec 2019 10:07:52 GMT + - Fri, 17 Jul 2020 07:19:15 GMT ETag: - - W/"55d9191b0b2ce4a7b59c06196b836cf5-gzip" + - W/"2d32d7018b6f2297e1ea1bc8e2955c85-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,17 +121,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=99 + - timeout=15, max=99 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -132,16 +140,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 70d3ee27-6be4-4fb4-873a-806de6b3bb08 + - a81994e6-f73e-4122-9ade-f0d3638d301e X-Runtime: - - '0.016592' + - '0.016405' X-XSS-Protection: - 1; mode=block content-length: - - '800' + - '867' status: code: 200 message: OK @@ -155,16 +161,16 @@ interactions: Connection: - keep-alive Cookie: - - _session_id=c14ef8f0d0daab54516578bfa2b944fa + - _session_id=4862b608fe42973a08e4f9f0b4540975 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets/21 + uri: https://foreman.example.org/api/subnets/2 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2019-12-04 - 10:07:52 UTC","updated_at":"2019-12-04 10:07:52 UTC","ipam":"DHCP","boot_mode":"DHCP","id":21,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 + 07:19:14 UTC","updated_at":"2020-07-17 07:19:14 UTC","ipam":"DHCP","boot_mode":"DHCP","id":2,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -172,14 +178,14 @@ 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: - - Wed, 04 Dec 2019 10:07:52 GMT + - Fri, 17 Jul 2020 07:19:15 GMT ETag: - - W/"60f6a0c92bc8690104dbe5d651c8e93c-gzip" + - W/"eb0fdc78e3254c8a2a5d9060710daf3f-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -187,17 +193,17 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.0 Keep-Alive: - - timeout=5, max=98 + - timeout=15, max=98 Server: - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding + Via: + - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -206,16 +212,14 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 X-Request-Id: - - 1ef51b4e-65d6-4aba-9ecd-a9218ca1274d + - 3fa39637-97f1-4911-98d9-217d4af8ec87 X-Runtime: - - '0.022248' + - '0.021618' X-XSS-Protection: - 1; mode=block content-length: - - '702' + - '769' status: code: 200 message: OK From 30ada0954b8feb0620a7c2da93bc3a9eec1a9151 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg <2500@gmx.de> Date: Fri, 17 Jul 2020 10:14:08 +0200 Subject: [PATCH 13/88] Autodetect python version --- .github/workflows/main.yml | 2 +- Makefile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9b68fc4..29a25806 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,7 +55,7 @@ jobs: - name: Run basic tests run: make test-crud test-other - name: Run Ansible devel specific tests - run: make SANITY_OPTS="--local" PYTHON_VERSION=${{ matrix.python }} sanity dist-test + run: make SANITY_OPTS="--local" sanity dist-test if: matrix.ansible == 'devel' checkmode: diff --git a/Makefile b/Makefile index 5bf58335..d417d585 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,11 @@ METADATA := galaxy.yml LICENSE README.md meta/runtime.yml requirements.txt requi $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(eval _$(PLUGIN_TYPE) := $(filter-out %__init__.py,$(wildcard plugins/$(PLUGIN_TYPE)/*.py)))) DEPENDENCIES := $(METADATA) $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(_$(PLUGIN_TYPE))) -PYTHON_VERSION = 3.7 +PYTHON_VERSION = $(shell python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))') COLLECTION_COMMAND ?= ansible-galaxy SANITY_OPTS = --venv -TEST= -PYTEST=pytest -n 4 --boxed -v +TEST = +PYTEST = pytest -n 4 --boxed -v default: help help: From bc46d06b48dd36a5ea9b764c6e70fd23e6a91f58 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg <2500@gmx.de> Date: Fri, 17 Jul 2020 11:34:59 +0200 Subject: [PATCH 14/88] Require mask/cidr only on ipv4 (#880) fixes: #878 --- plugins/modules/subnet.py | 7 ++++--- tests/test_playbooks/subnet.yml | 9 --------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index 4d4b29b3..9cb51ea9 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -67,10 +67,10 @@ required: true type: str cidr: - description: CIDR prefix length; Required if no mask provided + description: CIDR prefix length; Required if I(network_type=IPv4) and no I(mask) provided type: int mask: - description: Subnet netmask. Required if no cidr prefix length provided + description: Subnet netmask. Required if I(network_type=IPv4) and no I(cidr) prefix length provided type: str from_ip: description: First IP address of the host IP allocation pool @@ -226,7 +226,6 @@ def main(): vlanid=dict(type='int'), mtu=dict(type='int'), ), - required_one_of=[['cidr', 'mask']], required_plugins=[('discovery', ['discovery_proxy'])], ) @@ -237,6 +236,8 @@ def main(): if not module.desired_absent: if module_params['network_type'] == 'IPv4': + if 'mask' not in module_params and 'cidr' not in module_params: + module.fail_json(msg='When specifying IPv4 networks, either "mask" or "cidr" is required.') IPNetwork = ipaddress.IPv4Network else: IPNetwork = ipaddress.IPv6Network diff --git a/tests/test_playbooks/subnet.yml b/tests/test_playbooks/subnet.yml index 0b08f5bd..f1621014 100644 --- a/tests/test_playbooks/subnet.yml +++ b/tests/test_playbooks/subnet.yml @@ -93,12 +93,10 @@ expected_change: true - include: tasks/subnet.yml vars: - subnet_mask: '255.255.255.224' subnet_state: absent expected_change: true - include: tasks/subnet.yml vars: - subnet_mask: '255.255.255.224' subnet_state: absent expected_change: false - name: 'Test Subnet with minimal params (cidr)' @@ -115,13 +113,11 @@ expected_change: false - include: tasks/subnet.yml vars: - subnet_cidr: 27 subnet_state: absent expected_change: true - include: tasks/subnet.yml vars: subnet_state: absent - subnet_cidr: 27 expected_change: false - name: 'Test Subnet with proxies' block: @@ -145,13 +141,11 @@ expected_change: false - include: tasks/subnet.yml vars: - subnet_cidr: 27 subnet_state: absent expected_change: true - include: tasks/subnet.yml vars: subnet_state: absent - subnet_cidr: 27 expected_change: false - name: 'Test Subnet name change' block: @@ -177,7 +171,6 @@ - include: tasks/subnet.yml vars: subnet_name: "My new test subnet" - subnet_mask: '255.255.255.224' subnet_state: absent expected_change: true - name: 'Test Subnet with full params except smart proxies and cidr' @@ -245,12 +238,10 @@ vars: subnet_name: Test Subnet 2 subnet_state: absent - subnet_mask: '255.255.255.224' expected_change: true - include: tasks/subnet.yml vars: subnet_name: Test Subnet 2 - subnet_mask: '255.255.255.224' subnet_state: absent expected_change: false From 2eaac7f938fd757e076b37d47b844b4fbe318ab3 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 17 Jul 2020 10:50:02 +0200 Subject: [PATCH 15/88] filter more headers from the response they are mostly noise and removing them makes diffs smaller --- tests/vcr_python_wrapper.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/vcr_python_wrapper.py b/tests/vcr_python_wrapper.py index a54b35a0..98b6cc6c 100755 --- a/tests/vcr_python_wrapper.py +++ b/tests/vcr_python_wrapper.py @@ -9,6 +9,8 @@ except ImportError: from urllib.parse import urlparse, urlunparse +FILTER_RESPONSE_HEADERS = ['Apipie-Checksum', 'Date', 'ETag', 'Server', 'Set-Cookie', 'Via', 'X-Powered-By', 'X-Request-Id', 'X-Runtime'] + # We need our own json level2 matcher, because, python2 and python3 do not save # dictionaries in the same order @@ -81,10 +83,11 @@ def host_body_matcher(r1, r2): return body_json_l2_matcher(r1, r2) -def filter_apipie_checksum(response): - # headers should be case insensitive, but for some reason they weren't for me - response['headers'].pop('apipie-checksum', None) - response['headers'].pop('Apipie-Checksum', None) +def filter_response(response): + for header in FILTER_RESPONSE_HEADERS: + # headers should be case insensitive, but for some reason they weren't for me + response['headers'].pop(header.lower(), None) + response['headers'].pop(header, None) return response @@ -142,7 +145,7 @@ def filter_request_uri(request): match_on=['method', 'path', query_matcher, body_matcher], filter_headers=['Authorization'], before_record_request=filter_request_uri, - before_record_response=filter_apipie_checksum, + before_record_response=filter_response, decode_compressed_response=True, ): with open(sys.argv[0]) as f: From 47c0aee18a63f64d204a5a5066ad0010945ae372 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 17 Jul 2020 10:57:49 +0200 Subject: [PATCH 16/88] also filter request headers --- tests/vcr_python_wrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/vcr_python_wrapper.py b/tests/vcr_python_wrapper.py index 98b6cc6c..d88ba628 100755 --- a/tests/vcr_python_wrapper.py +++ b/tests/vcr_python_wrapper.py @@ -9,6 +9,7 @@ except ImportError: from urllib.parse import urlparse, urlunparse +FILTER_REQUEST_HEADERS = ['Authorization', 'Cookie'] FILTER_RESPONSE_HEADERS = ['Apipie-Checksum', 'Date', 'ETag', 'Server', 'Set-Cookie', 'Via', 'X-Powered-By', 'X-Request-Id', 'X-Runtime'] @@ -143,7 +144,7 @@ def filter_request_uri(request): with fam_vcr.use_cassette(cassette_file, record_mode=test_params['record_mode'], match_on=['method', 'path', query_matcher, body_matcher], - filter_headers=['Authorization'], + filter_headers=FILTER_REQUEST_HEADERS, before_record_request=filter_request_uri, before_record_response=filter_response, decode_compressed_response=True, From 11c39e96f6c3171279da271f5c50c2421d51ff5c Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 17 Jul 2020 13:47:28 +0200 Subject: [PATCH 17/88] drop framework test -- it's not meaningful anymore --- tests/test_module_state.py | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/tests/test_module_state.py b/tests/test_module_state.py index 965e546f..557ca1b8 100644 --- a/tests/test_module_state.py +++ b/tests/test_module_state.py @@ -1,15 +1,8 @@ -import ast import py.path import pytest -import six from .conftest import TEST_PLAYBOOKS -if six.PY2: - ast_try = ast.TryExcept -else: - ast_try = ast.Try - MODULES_PATH = py.path.local(__file__).realpath() / '..' / '..' / 'plugins' / 'modules' @@ -34,30 +27,6 @@ def _module_is_tested(module): return module in TEST_PLAYBOOKS -def _module_framework(module): - module_file_path = _module_file_path(module) - with module_file_path.open() as module_file: - module_ast = ast.parse(module_file.read()) - return _module_framework_from_body(module_ast.body) or 'unknown' - - -def _module_framework_from_body(body): - framework = None - for entry in body: - if isinstance(entry, ast.ImportFrom): - if entry.module == 'ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper' and not framework: - framework = 'apypie' - elif isinstance(entry, ast_try) and not framework: - framework = _module_framework_from_body(entry.body) - return framework - - -@pytest.mark.parametrize('module', ALL_MODULES) -def test_module_framework(module): - module_framework = _module_framework(module) - assert (module_framework == 'apypie' or module == 'redhat_manifest') - - @pytest.mark.parametrize('module', ALL_MODULES) -def test_module_state(module): +def test_module_is_tested(module): assert _module_is_tested(module) From c3eb4813d1eb2eb55efac8c1377398c2d101f6c4 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 20 Jul 2020 12:34:09 +0200 Subject: [PATCH 18/88] use stable-2.10 ansible branch for building docs in devel the tooling got revamped and can't be abused for our needs currently --- docs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index f6149a94..b8a724dd 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -17,7 +17,7 @@ help: .PHONY: help Makefile generate-docs $(ANSIBLEGIT): - git clone --depth=1 https://github.com/ansible/ansible/ $(ANSIBLEGIT) + git clone --depth=1 https://github.com/ansible/ansible/ -b stable-2.10 $(ANSIBLEGIT) generate-docs: $(ANSIBLEGIT) rm -rf ./modules/ From 4513c7bcfa334d441f8ee49800e6108f4dc56869 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 20 Jul 2020 12:44:57 +0200 Subject: [PATCH 19/88] also test against the upcoming 2.10 release --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 29a25806..761d45a2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,20 +17,27 @@ jobs: ansible: - stable-2.8 - stable-2.9 + - stable-2.10 - devel exclude: - python: "2.7" ansible: "stable-2.8" - python: "2.7" ansible: "stable-2.9" + - python: "2.7" + ansible: "stable-2.10" - python: "3.5" ansible: "stable-2.8" - python: "3.5" ansible: "stable-2.9" + - python: "3.5" + ansible: "stable-2.10" - python: "3.6" ansible: "stable-2.8" - python: "3.6" ansible: "stable-2.9" + - python: "3.6" + ansible: "stable-2.10" steps: - uses: actions/checkout@v2 - name: Set up Python @@ -51,7 +58,7 @@ jobs: run: sudo mkdir -p /etc/rhsm/ca/ && sudo touch /etc/rhsm/ca/redhat-uep.pem - name: Install Ansible devel specific dependencies run: ansible-galaxy collection install community.general - if: matrix.ansible == 'devel' + if: matrix.ansible == 'devel' or matrix.ansible == 'stable-2.10' - name: Run basic tests run: make test-crud test-other - name: Run Ansible devel specific tests From 6fdf4b7ca7fdab3b50a223ad4a612e0c00e30253 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 20 Jul 2020 13:28:44 +0200 Subject: [PATCH 20/88] fix workflow syntax --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 761d45a2..c2ef58ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,7 +58,7 @@ jobs: run: sudo mkdir -p /etc/rhsm/ca/ && sudo touch /etc/rhsm/ca/redhat-uep.pem - name: Install Ansible devel specific dependencies run: ansible-galaxy collection install community.general - if: matrix.ansible == 'devel' or matrix.ansible == 'stable-2.10' + if: matrix.ansible == 'devel' || matrix.ansible == 'stable-2.10' - name: Run basic tests run: make test-crud test-other - name: Run Ansible devel specific tests From a7f8ffa6e35924aa31b03b578f0431d8b93f8d7b Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 20 Jul 2020 13:24:19 +0200 Subject: [PATCH 21/88] cleanup docs of the callback plugin --- plugins/callback/foreman.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/callback/foreman.py b/plugins/callback/foreman.py index eef2ac1e..5407adc5 100644 --- a/plugins/callback/foreman.py +++ b/plugins/callback/foreman.py @@ -12,10 +12,7 @@ type: notification short_description: Sends events to Foreman description: - - This callback will report facts and task events to Foreman https://theforeman.org/ - - Before 2.4, if you wanted to use an ini configuration, the file must be placed in the same directory as this plugin and named foreman.ini - - In 2.4 and above you can just put it in the main Ansible configuration file. - version_added: "2.2" + - This callback will report facts and task events to Foreman requirements: - whitelisting in configuration - requests (python library) From 1c6ffbf654654ca3dae70496139e9a1ee8020257 Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello Date: Fri, 3 Jul 2020 17:58:55 -0400 Subject: [PATCH 22/88] Ability to control the number of hosts returned per page --- plugins/inventory/foreman.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/inventory/foreman.py b/plugins/inventory/foreman.py index 8e61e3e6..880949c7 100644 --- a/plugins/inventory/foreman.py +++ b/plugins/inventory/foreman.py @@ -68,6 +68,10 @@ host_filters: description: This can be used to restrict the list of returned host type: string + per_page: + description: Determine the number of hosts returned by Foreman per page + type: integer + default: 250 ''' EXAMPLES = ''' @@ -143,7 +147,7 @@ def _get_json(self, url, ignore_errors=None, params=None): if params is None: params = {} params['page'] = 1 - params['per_page'] = 250 + params['per_page'] = self.get_option('per_page') while True: ret = s.get(url, params=params) if ignore_errors and ret.status_code in ignore_errors: From faf51c546a9a6f7f5604ad1f97f2ef29185807b2 Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello Date: Mon, 6 Jul 2020 11:21:15 -0400 Subject: [PATCH 23/88] Enhanced documentation and renamed parameter --- plugins/inventory/foreman.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/inventory/foreman.py b/plugins/inventory/foreman.py index 880949c7..8b988f2d 100644 --- a/plugins/inventory/foreman.py +++ b/plugins/inventory/foreman.py @@ -68,8 +68,8 @@ host_filters: description: This can be used to restrict the list of returned host type: string - per_page: - description: Determine the number of hosts returned by Foreman per page + batch_size: + description: Determine the number of hosts that will be returned by the Foreman API per call type: integer default: 250 ''' @@ -147,7 +147,7 @@ def _get_json(self, url, ignore_errors=None, params=None): if params is None: params = {} params['page'] = 1 - params['per_page'] = self.get_option('per_page') + params['per_page'] = self.get_option('batch_size') while True: ret = s.get(url, params=params) if ignore_errors and ret.status_code in ignore_errors: From 199ae1469982a10ab22b03e31d70d057c18de0b4 Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello Date: Mon, 6 Jul 2020 11:49:23 -0400 Subject: [PATCH 24/88] Update plugins/inventory/foreman.py Co-authored-by: Matthias Dellweg <2500@gmx.de> --- plugins/inventory/foreman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inventory/foreman.py b/plugins/inventory/foreman.py index 8b988f2d..19f20df6 100644 --- a/plugins/inventory/foreman.py +++ b/plugins/inventory/foreman.py @@ -69,7 +69,7 @@ description: This can be used to restrict the list of returned host type: string batch_size: - description: Determine the number of hosts that will be returned by the Foreman API per call + description: Number of hosts per batch that will be retrieved from the Foreman API per individual call type: integer default: 250 ''' From 457d26e95e8f7152d872b8a154ccab29e7271e61 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 21 Jul 2020 07:00:17 +0200 Subject: [PATCH 25/88] use stable 2.9 for docs, 2.10 got the same changes as devel now --- docs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index b8a724dd..22a948a4 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -17,7 +17,7 @@ help: .PHONY: help Makefile generate-docs $(ANSIBLEGIT): - git clone --depth=1 https://github.com/ansible/ansible/ -b stable-2.10 $(ANSIBLEGIT) + git clone --depth=1 https://github.com/ansible/ansible/ -b stable-2.9 $(ANSIBLEGIT) generate-docs: $(ANSIBLEGIT) rm -rf ./modules/ From 339abc593e6e4781c36d5559bd48e591837daafc Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 21 Jul 2020 13:19:04 +0200 Subject: [PATCH 26/88] drop requirements-common --- Makefile | 2 +- requirements-common.txt | 3 --- requirements-dev.txt | 3 +-- requirements.txt | 4 +++- 4 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 requirements-common.txt diff --git a/Makefile b/Makefile index d417d585..737e09e9 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VERSION := $(shell python -c 'import yaml; print(yaml.safe_load(open("galaxy.yml MANIFEST := build/collections/ansible_collections/$(NAMESPACE)/$(NAME)/MANIFEST.json PLUGIN_TYPES := $(filter-out __%,$(notdir $(wildcard plugins/*))) -METADATA := galaxy.yml LICENSE README.md meta/runtime.yml requirements.txt requirements-common.txt +METADATA := galaxy.yml LICENSE README.md meta/runtime.yml requirements.txt $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(eval _$(PLUGIN_TYPE) := $(filter-out %__init__.py,$(wildcard plugins/$(PLUGIN_TYPE)/*.py)))) DEPENDENCIES := $(METADATA) $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(_$(PLUGIN_TYPE))) diff --git a/requirements-common.txt b/requirements-common.txt deleted file mode 100644 index 3191e4cf..00000000 --- a/requirements-common.txt +++ /dev/null @@ -1,3 +0,0 @@ -requests -ipaddress; python_version < '3.3' -PyYAML diff --git a/requirements-dev.txt b/requirements-dev.txt index cacb21e9..5ab6d9de 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,7 +6,6 @@ ansible_runner python-debian rpm-py-installer docker -git+https://github.com/Apipie/apypie.git@master#egg=apypie --r requirements-common.txt +-r requirements.txt -r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.pylint.txt -r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.validate-modules.txt diff --git a/requirements.txt b/requirements.txt index 41a8ad67..cbb129fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,4 @@ apypie>=0.0.5 --r requirements-common.txt +requests +ipaddress; python_version < '3.3' +PyYAML From 95d383754f0e05db3bb1ff7fe24d437adacec9f0 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 21 Jul 2020 13:22:34 +0200 Subject: [PATCH 27/88] bump apypie requirement to a more sensible version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cbb129fa..be6fe1e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -apypie>=0.0.5 +apypie>=0.2.0 requests ipaddress; python_version < '3.3' PyYAML From 773124f68559c5d2b3767ea711d41338ea4f2828 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 21 Jul 2020 13:48:06 +0200 Subject: [PATCH 28/88] drop dead code --- plugins/module_utils/foreman_helper.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index 71c948ff..f7bea626 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -487,27 +487,15 @@ def find_resource_by_title(self, resource, title, **kwargs): def find_resource_by_id(self, resource, obj_id, **kwargs): return self.find_resource_by(resource, 'id', obj_id, **kwargs) - def find_resources_by(self, resource, search_field, search_list, **kwargs): - return [self.find_resource_by(resource, search_field, search_item, **kwargs) for search_item in search_list] - def find_resources_by_name(self, resource, names, **kwargs): return [self.find_resource_by_name(resource, name, **kwargs) for name in names] - def find_resources_by_title(self, resource, titles, **kwargs): - return [self.find_resource_by_title(resource, title, **kwargs) for title in titles] - - def find_resources_by_id(self, resource, obj_ids, **kwargs): - return [self.find_resource_by_id(resource, obj_id, **kwargs) for obj_id in obj_ids] - def find_operatingsystem(self, name, failsafe=False, **kwargs): result = self.find_resource_by_title('operatingsystems', name, failsafe=True, **kwargs) if not result: result = self.find_resource_by('operatingsystems', 'title', name, search_operator='~', failsafe=failsafe, **kwargs) return result - def find_operatingsystems(self, names, **kwargs): - return [self.find_operatingsystem(name, **kwargs) for name in names] - def find_puppetclass(self, name, environment=None, params=None, failsafe=False, thin=None): if thin is None: thin = self._thin_default From fd99f57bbee26daf18b8cd6d01ab232d59057d08 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 30 Jan 2020 09:37:21 +0100 Subject: [PATCH 29/88] test ansible/devel on Python 3.8 --- .github/workflows/main.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c2ef58ee..95f10c42 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,12 @@ jobs: strategy: fail-fast: false matrix: - python: ["2.7", "3.5", "3.6", "3.7"] + python: + - "2.7" + - "3.5" + - "3.6" + - "3.7" + - "3.8" ansible: - stable-2.8 - stable-2.9 @@ -38,6 +43,12 @@ jobs: ansible: "stable-2.9" - python: "3.6" ansible: "stable-2.10" + - python: "3.8" + ansible: "stable-2.8" + - python: "3.8" + ansible: "stable-2.9" + - python: "3.8" + ansible: "stable-2.10" steps: - uses: actions/checkout@v2 - name: Set up Python @@ -63,7 +74,7 @@ jobs: run: make test-crud test-other - name: Run Ansible devel specific tests run: make SANITY_OPTS="--local" sanity dist-test - if: matrix.ansible == 'devel' + if: matrix.ansible == 'devel' && matrix.python != '3.8' checkmode: runs-on: ubuntu-latest From 249d3fd005bd71e4fbe9b267d7df508b4efe64fb Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 21 Jul 2020 16:16:19 +0200 Subject: [PATCH 30/88] sort tests this was omited when we dropped the prefix --- tests/conftest.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index cb8bcda5..25e848da 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -9,55 +9,55 @@ 'compute_attribute', 'compute_profile', 'compute_resource', + 'config_group', 'content_credential', + 'content_upload', 'content_view', 'content_view_filter', 'content_view_version', 'domain', - 'puppet_environment', 'external_usergroup', - 'config_group', 'filters', 'global_parameter', + 'hardware_model', 'host', + 'host_collection', 'host_power', 'hostgroup', 'http_proxy', 'image', - 'inventory_plugin', - 'katello_hostgroup', - 'luna_hostgroup', - 'host_collection', 'installation_medium', + 'inventory_plugin', 'job_template', + 'katello_hostgroup', 'katello_manifest', - 'repository_sync', 'lifecycle_environment', 'location', - 'hardware_model', + 'luna_hostgroup', 'operatingsystem', 'organization', 'os_default_template', + 'partition_table', 'product', 'provisioning_template', - 'partition_table', + 'puppet_environment', 'realm', 'redhat_manifest', 'repository', 'repository_set', + 'repository_sync', + 'resource_info', 'role', - 'scc_account', - 'scc_product', 'scap_content', 'scap_tailoring_file', - 'resource_info', + 'scc_account', + 'scc_product', 'setting', 'smart_class_parameter', 'snapshot', 'subnet', 'sync_plan', 'templates_import', - 'content_upload', 'user', 'usergroup', ] From 6c35e5064e9a10c3a80ead5eec22d1f08d9541da Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 17 Jul 2020 08:48:30 +0200 Subject: [PATCH 31/88] use foreman 2.1 container in tests --- tests/test_playbooks/inventory_plugin.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_playbooks/inventory_plugin.yml b/tests/test_playbooks/inventory_plugin.yml index 22e19dfa..8d12c879 100644 --- a/tests/test_playbooks/inventory_plugin.yml +++ b/tests/test_playbooks/inventory_plugin.yml @@ -13,13 +13,13 @@ tasks: - name: fetch Foreman container docker_image: - name: quay.io/foreman/foreman:2.0-stable + name: quay.io/foreman/foreman:2.1-stable source: pull - name: start Foreman container docker_container: name: foreman - image: quay.io/foreman/foreman:2.0-stable + image: quay.io/foreman/foreman:2.1-stable command: bash -c "bundle exec bin/rails db:create db:migrate && bundle exec bin/rails db:seed && bundle exec bin/rails server -b 0.0.0.0" env: SEED_ADMIN_PASSWORD: changeme From f77db786f6dc184ddc7b54fdd2b4d4af41535d7f Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 21 Jul 2020 15:35:03 +0200 Subject: [PATCH 32/88] use PostgreSQL container in tests --- tests/test_playbooks/inventory_plugin.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tests/test_playbooks/inventory_plugin.yml b/tests/test_playbooks/inventory_plugin.yml index 8d12c879..f8f6fa80 100644 --- a/tests/test_playbooks/inventory_plugin.yml +++ b/tests/test_playbooks/inventory_plugin.yml @@ -11,11 +11,28 @@ - community.general - theforeman.foreman tasks: + - name: fetch PostgreSQL container + docker_image: + name: postgres:12 + source: pull + - name: fetch Foreman container docker_image: name: quay.io/foreman/foreman:2.1-stable source: pull + - name: start PostgreSQL container + docker_container: + name: postgres + image: postgres:12 + env: + POSTGRES_USER: foreman + POSTGRES_PASSWORD: foreman + POSTGRES_DATABASE: foreman + PGDATA: /var/lib/postgresql/data/pgdata + published_ports: + - "0.0.0.0:5432:5432" + - name: start Foreman container docker_container: name: foreman @@ -24,7 +41,9 @@ env: SEED_ADMIN_PASSWORD: changeme RAILS_ENV: production - DATABASE_URL: sqlite3:db/production.sqlite3 + DATABASE_URL: postgres://foreman:foreman@postgres/foreman?pool=5 + links: + - postgres:postgres published_ports: - "0.0.0.0:3000:3000" From d375dc2b68e904f76e25fb87036c9340dfbbbf06 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 24 Jul 2020 10:16:02 +0200 Subject: [PATCH 33/88] use `develop` as branch name for docs --- .github/workflows/docs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4f6c77af..9dfe020d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,7 +5,7 @@ on: tags: - v[0-9]+.[0-9]+.[0-9]+ branches: - - master + - develop jobs: docs: @@ -32,9 +32,9 @@ jobs: git checkout gh-pages rm -rf $(basename ${GITHUB_REF}) mv docs/_build/html $(basename ${GITHUB_REF}) - git show origin/master:docs/_gh_include/header.inc > index.html + git show origin/develop:docs/_gh_include/header.inc > index.html dirname */index.html | sort --version-sort | xargs -I@@ -n1 echo '' >> index.html - git show origin/master:docs/_gh_include/footer.inc >> index.html + git show origin/develop:docs/_gh_include/footer.inc >> index.html git add $(basename ${GITHUB_REF}) index.html git commit -m "update docs for $(basename ${GITHUB_REF})" || true - name: push docs From f52f4d2b81e7d44968a7f5013cadea7c39f8d299 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 24 Jul 2020 10:16:25 +0200 Subject: [PATCH 34/88] main file is a perfect name for an index --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 890e9461..b67c6b65 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,4 +1,4 @@ -.. Foreman Ansible Modules documentation master file, created by +.. Foreman Ansible Modules documentation main file, created by sphinx-quickstart on Tue Dec 11 10:00:39 2018. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. From f0ba874a1b0d5dbd428abfb89c8b05def41bb35f Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 27 Jul 2020 08:39:47 +0200 Subject: [PATCH 35/88] unify wording and formatting of plugin (short) descriptions --- plugins/inventory/foreman.py | 4 ++-- plugins/modules/activation_key.py | 2 +- plugins/modules/auth_source_ldap.py | 2 +- plugins/modules/compute_resource.py | 2 +- plugins/modules/config_group.py | 2 +- plugins/modules/content_credential.py | 2 +- plugins/modules/content_upload.py | 2 +- plugins/modules/content_view.py | 2 +- plugins/modules/content_view_filter.py | 2 +- plugins/modules/content_view_version.py | 2 +- plugins/modules/external_usergroup.py | 2 +- plugins/modules/hardware_model.py | 2 +- plugins/modules/host.py | 5 ++--- plugins/modules/host_collection.py | 2 +- plugins/modules/host_power.py | 2 +- plugins/modules/installation_medium.py | 4 ++-- plugins/modules/job_template.py | 2 +- plugins/modules/lifecycle_environment.py | 2 +- plugins/modules/location.py | 4 ++-- plugins/modules/operatingsystem.py | 2 +- plugins/modules/organization.py | 4 ++-- plugins/modules/os_default_template.py | 2 +- plugins/modules/partition_table.py | 4 ++-- plugins/modules/product.py | 8 ++++---- plugins/modules/provisioning_template.py | 4 ++-- plugins/modules/puppet_environment.py | 4 ++-- plugins/modules/repository.py | 4 ++-- plugins/modules/repository_set.py | 2 +- plugins/modules/repository_sync.py | 2 +- plugins/modules/resource_info.py | 4 ++-- plugins/modules/scap_content.py | 4 ++-- plugins/modules/scap_tailoring_file.py | 4 ++-- plugins/modules/scc_account.py | 8 ++++---- plugins/modules/scc_product.py | 8 ++++---- plugins/modules/setting.py | 2 +- plugins/modules/subscription_manifest.py | 4 ++-- plugins/modules/sync_plan.py | 8 ++++---- plugins/modules/templates_import.py | 2 +- plugins/modules/usergroup.py | 2 +- 39 files changed, 64 insertions(+), 65 deletions(-) diff --git a/plugins/inventory/foreman.py b/plugins/inventory/foreman.py index 19f20df6..2028f16f 100644 --- a/plugins/inventory/foreman.py +++ b/plugins/inventory/foreman.py @@ -8,11 +8,11 @@ DOCUMENTATION = ''' name: foreman plugin_type: inventory - short_description: foreman inventory source + short_description: Foreman inventory source requirements: - requests >= 1.1 description: - - Get inventory hosts from the Foreman service. + - Get inventory hosts from Foreman. - Uses a YAML configuration file that ends with ``foreman.(yml|yaml)``. extends_documentation_fragment: - inventory_cache diff --git a/plugins/modules/activation_key.py b/plugins/modules/activation_key.py index 5b400e39..7a1968f3 100644 --- a/plugins/modules/activation_key.py +++ b/plugins/modules/activation_key.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: activation_key -short_description: Create and manage activation keys +short_description: Manage Activation Keys description: - Create and manage activation keys author: "Andrew Kofink (@akofink)" diff --git a/plugins/modules/auth_source_ldap.py b/plugins/modules/auth_source_ldap.py index 6b8b9c31..6808eec1 100644 --- a/plugins/modules/auth_source_ldap.py +++ b/plugins/modules/auth_source_ldap.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: auth_source_ldap -short_description: Manage LDAP authentication sources +short_description: Manage LDAP Authentication Sources description: - Create, update, and delete LDAP authentication sources author: diff --git a/plugins/modules/compute_resource.py b/plugins/modules/compute_resource.py index cb87402e..77bc0d8d 100644 --- a/plugins/modules/compute_resource.py +++ b/plugins/modules/compute_resource.py @@ -24,7 +24,7 @@ DOCUMENTATION = ''' --- module: compute_resource -short_description: Manage Compute resources +short_description: Manage Compute Resources description: - Create, update, and delete Compute Resources author: diff --git a/plugins/modules/config_group.py b/plugins/modules/config_group.py index 2603e681..93ec385f 100644 --- a/plugins/modules/config_group.py +++ b/plugins/modules/config_group.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: config_group -short_description: Manage (Puppet) config groups +short_description: Manage (Puppet) Config Groups description: - Create, update, and delete (Puppet) config groups author: diff --git a/plugins/modules/content_credential.py b/plugins/modules/content_credential.py index f7d5df73..13af663a 100644 --- a/plugins/modules/content_credential.py +++ b/plugins/modules/content_credential.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: content_credential -short_description: Create and manage content credentials +short_description: Manage Content Credentials description: - Create and manage content credentials author: "Baptiste Agasse (@bagasse)" diff --git a/plugins/modules/content_upload.py b/plugins/modules/content_upload.py index 7c5b1958..948e8127 100644 --- a/plugins/modules/content_upload.py +++ b/plugins/modules/content_upload.py @@ -23,7 +23,7 @@ DOCUMENTATION = ''' --- module: content_upload -short_description: Upload content +short_description: Upload content to a repository description: - Allows the upload of content to a repository author: "Eric D Helms (@ehelms)" diff --git a/plugins/modules/content_view.py b/plugins/modules/content_view.py index 801434e0..d24c8b28 100644 --- a/plugins/modules/content_view.py +++ b/plugins/modules/content_view.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: content_view -short_description: Create and manage content views +short_description: Manage Content Views description: - Create and manage content views author: "Eric D Helms (@ehelms)" diff --git a/plugins/modules/content_view_filter.py b/plugins/modules/content_view_filter.py index 9ab51c43..b094663f 100644 --- a/plugins/modules/content_view_filter.py +++ b/plugins/modules/content_view_filter.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: content_view_filter -short_description: Create and manage content View filters +short_description: Manage Content View Filters description: - Create and manage content View filters author: "Sean O'Keeffe (@sean797)" diff --git a/plugins/modules/content_view_version.py b/plugins/modules/content_view_version.py index b57ac982..3569c7a8 100644 --- a/plugins/modules/content_view_version.py +++ b/plugins/modules/content_view_version.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: content_view_version -short_description: Create, remove or interact with a Content View Version +short_description: Manage Content View Versions description: - Publish, Promote or Remove a Content View Version author: Sean O'Keeffe (@sean797) diff --git a/plugins/modules/external_usergroup.py b/plugins/modules/external_usergroup.py index 0aad297d..ab8391e2 100644 --- a/plugins/modules/external_usergroup.py +++ b/plugins/modules/external_usergroup.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: external_usergroup -short_description: Manage external user groups +short_description: Manage External User Groups description: - Create, update, and delete external user groups author: diff --git a/plugins/modules/hardware_model.py b/plugins/modules/hardware_model.py index 51c93b1c..3448c649 100644 --- a/plugins/modules/hardware_model.py +++ b/plugins/modules/hardware_model.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: hardware_model -short_description: Manage hardware models +short_description: Manage Hardware Models description: - Manage hardware models author: diff --git a/plugins/modules/host.py b/plugins/modules/host.py index b359ece7..8aea0cd6 100644 --- a/plugins/modules/host.py +++ b/plugins/modules/host.py @@ -22,10 +22,9 @@ DOCUMENTATION = ''' --- module: host -short_description: Manage hosts +short_description: Manage Hosts description: - - "Manage host Entities" - - "This beta version can create and delete hosts from preexisting host groups" + - Create, update, and delete Hosts author: - "Bernhard Hopfenmueller (@Fobhep) ATIX AG" options: diff --git a/plugins/modules/host_collection.py b/plugins/modules/host_collection.py index 240388f0..dc114b3d 100644 --- a/plugins/modules/host_collection.py +++ b/plugins/modules/host_collection.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: host_collection -short_description: Create and Manage host collections +short_description: Manage Host Collections description: - Create and Manage host collections author: diff --git a/plugins/modules/host_power.py b/plugins/modules/host_power.py index 43017d8f..b61aa3d4 100644 --- a/plugins/modules/host_power.py +++ b/plugins/modules/host_power.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: host_power -short_description: Manage hosts power state +short_description: Manage Power State of Hosts description: - "Manage power state of a host" - "This beta version can start and stop an existing foreman host and question the current power state." diff --git a/plugins/modules/installation_medium.py b/plugins/modules/installation_medium.py index 8adac752..6be1bf2d 100644 --- a/plugins/modules/installation_medium.py +++ b/plugins/modules/installation_medium.py @@ -22,9 +22,9 @@ DOCUMENTATION = ''' --- module: installation_medium -short_description: Manage Installation Medium +short_description: Manage Installation Media description: - - Create, update, and delete Installation Medium + - Create, update, and delete Installation Media author: - "Manuel Bonk(@manuelbonk) ATIX AG" options: diff --git a/plugins/modules/job_template.py b/plugins/modules/job_template.py index 1866c05d..aa8c7877 100644 --- a/plugins/modules/job_template.py +++ b/plugins/modules/job_template.py @@ -24,7 +24,7 @@ module: job_template short_description: Manage Job Templates description: - - "Manage Remote Execution Job Templates" + - Manage Remote Execution Job Templates author: - "Manuel Bonk (@manuelbonk) ATIX AG" - "Matthias Dellweg (@mdellweg) ATIX AG" diff --git a/plugins/modules/lifecycle_environment.py b/plugins/modules/lifecycle_environment.py index edcf1a0b..e88da802 100644 --- a/plugins/modules/lifecycle_environment.py +++ b/plugins/modules/lifecycle_environment.py @@ -23,7 +23,7 @@ DOCUMENTATION = ''' --- module: lifecycle_environment -short_description: Create and manage lifecycle environments +short_description: Manage Lifecycle Environments description: - Create and manage lifecycle environments author: diff --git a/plugins/modules/location.py b/plugins/modules/location.py index 2b7453e7..1a30a54d 100644 --- a/plugins/modules/location.py +++ b/plugins/modules/location.py @@ -22,9 +22,9 @@ DOCUMENTATION = ''' --- module: location -short_description: Manage Location +short_description: Manage Locations description: - - Manage Location + - Manage Locations author: - "Matthias M Dellweg (@mdellweg) ATIX AG" options: diff --git a/plugins/modules/operatingsystem.py b/plugins/modules/operatingsystem.py index 0c6c0bee..764f33df 100644 --- a/plugins/modules/operatingsystem.py +++ b/plugins/modules/operatingsystem.py @@ -25,7 +25,7 @@ module: operatingsystem short_description: Manage Operating Systems description: - - "Manage Operating System Entities" + - Manage Operating Systems author: - "Matthias M Dellweg (@mdellweg) ATIX AG" - "Bernhard Hopfenmüller (@Fobhep) ATIX AG" diff --git a/plugins/modules/organization.py b/plugins/modules/organization.py index 83475564..1d7101d8 100644 --- a/plugins/modules/organization.py +++ b/plugins/modules/organization.py @@ -23,9 +23,9 @@ DOCUMENTATION = ''' --- module: organization -short_description: Manage Organization +short_description: Manage Organizations description: - - Manage Organization + - Manage Organizations author: - "Eric D Helms (@ehelms)" - "Matthias M Dellweg (@mdellweg) ATIX AG" diff --git a/plugins/modules/os_default_template.py b/plugins/modules/os_default_template.py index 6e72ca7b..8d2628ad 100644 --- a/plugins/modules/os_default_template.py +++ b/plugins/modules/os_default_template.py @@ -24,7 +24,7 @@ module: os_default_template short_description: Manage Default Template Associations To Operating Systems description: - - "Manage OSDefaultTemplate Entities" + - Manage OSDefaultTemplate Entities author: - "Matthias M Dellweg (@mdellweg) ATIX AG" options: diff --git a/plugins/modules/partition_table.py b/plugins/modules/partition_table.py index 304b0ca3..0814cc8b 100644 --- a/plugins/modules/partition_table.py +++ b/plugins/modules/partition_table.py @@ -22,9 +22,9 @@ DOCUMENTATION = ''' --- module: partition_table -short_description: Manage Partition Table Template +short_description: Manage Partition Table Templates description: - - "Manage Partition Table" + - Manage Partition Table Templates author: - "Bernhard Hopfenmueller (@Fobhep) ATIX AG" - "Matthias Dellweg (@mdellweg) ATIX AG" diff --git a/plugins/modules/product.py b/plugins/modules/product.py index e4ecd7a1..b089120c 100644 --- a/plugins/modules/product.py +++ b/plugins/modules/product.py @@ -22,12 +22,12 @@ DOCUMENTATION = ''' --- module: product -short_description: Create and manage products +short_description: Manage Products description: - - Create and manage products + - Create and manage products author: - - "Eric D Helms (@ehelms)" - - "Matthias Dellweg (@mdellweg) ATIX AG" + - "Eric D Helms (@ehelms)" + - "Matthias Dellweg (@mdellweg) ATIX AG" options: name: description: diff --git a/plugins/modules/provisioning_template.py b/plugins/modules/provisioning_template.py index c1e4b4e1..97e5bdfd 100644 --- a/plugins/modules/provisioning_template.py +++ b/plugins/modules/provisioning_template.py @@ -22,9 +22,9 @@ DOCUMENTATION = ''' --- module: provisioning_template -short_description: Manage Provisioning Template +short_description: Manage Provisioning Templates description: - - "Manage Provisioning Template" + - Manage Provisioning Templates author: - "Bernhard Hopfenmueller (@Fobhep) ATIX AG" - "Matthias Dellweg (@mdellweg) ATIX AG" diff --git a/plugins/modules/puppet_environment.py b/plugins/modules/puppet_environment.py index 35e84c0d..1eb77680 100644 --- a/plugins/modules/puppet_environment.py +++ b/plugins/modules/puppet_environment.py @@ -23,9 +23,9 @@ DOCUMENTATION = ''' --- module: puppet_environment -short_description: Manage Environment (Puppet) +short_description: Manage Puppet Environments description: - - Create, update, and delete Environment + - Create, update, and delete Puppet Environments author: - "Bernhard Suttner (@_sbernhard) ATIX AG" - "Christoffer Reijer (@ephracis) Basalt AB" diff --git a/plugins/modules/repository.py b/plugins/modules/repository.py index 31696d7b..e3cf2e46 100644 --- a/plugins/modules/repository.py +++ b/plugins/modules/repository.py @@ -22,9 +22,9 @@ DOCUMENTATION = ''' --- module: repository -short_description: Create and manage repositories +short_description: Manage Repositories description: - - Crate and manage repositories + - Crate and manage repositories author: "Eric D Helms (@ehelms)" options: name: diff --git a/plugins/modules/repository_set.py b/plugins/modules/repository_set.py index 8cea37c2..669c4d9b 100644 --- a/plugins/modules/repository_set.py +++ b/plugins/modules/repository_set.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: repository_set -short_description: Enable/disable repositories in repository sets +short_description: Enable/disable Repositories in Repository Sets description: - Enable/disable repositories in repository sets author: "Andrew Kofink (@akofink)" diff --git a/plugins/modules/repository_sync.py b/plugins/modules/repository_sync.py index b10aa199..133a2990 100644 --- a/plugins/modules/repository_sync.py +++ b/plugins/modules/repository_sync.py @@ -23,7 +23,7 @@ DOCUMENTATION = ''' --- module: repository_sync -short_description: Sync a repository or product +short_description: Sync a Repository or Product description: - Sync a repository or product author: diff --git a/plugins/modules/resource_info.py b/plugins/modules/resource_info.py index 5f6f74c9..9fd9dedc 100644 --- a/plugins/modules/resource_info.py +++ b/plugins/modules/resource_info.py @@ -22,9 +22,9 @@ DOCUMENTATION = ''' --- module: resource_info -short_description: Gather facts about resources +short_description: Gather information about resources description: - - "Gather facts about resources" + - Gather information about resources author: - "Sean O'Keeffe (@sean797)" options: diff --git a/plugins/modules/scap_content.py b/plugins/modules/scap_content.py index 6ca00cf0..8fc612e9 100644 --- a/plugins/modules/scap_content.py +++ b/plugins/modules/scap_content.py @@ -22,9 +22,9 @@ DOCUMENTATION = ''' --- module: scap_content -short_description: Manage SCAP content. +short_description: Manage SCAP content description: - - Create, update, and delete SCAP content. + - Create, update, and delete SCAP content author: - "Jameer Pathan (@jameerpathan111)" options: diff --git a/plugins/modules/scap_tailoring_file.py b/plugins/modules/scap_tailoring_file.py index 149a24af..180e10f9 100644 --- a/plugins/modules/scap_tailoring_file.py +++ b/plugins/modules/scap_tailoring_file.py @@ -22,9 +22,9 @@ DOCUMENTATION = ''' --- module: scap_tailoring_file -short_description: Manage SCAP tailoring files. +short_description: Manage SCAP Tailoring Files description: - - Create, update, and delete SCAP tailoring files. + - Create, update, and delete SCAP Tailoring Files author: - "Evgeni Golov (@evgeni)" options: diff --git a/plugins/modules/scc_account.py b/plugins/modules/scc_account.py index c174217d..669a24a1 100644 --- a/plugins/modules/scc_account.py +++ b/plugins/modules/scc_account.py @@ -22,11 +22,11 @@ DOCUMENTATION = ''' --- module: scc_account -short_description: Manage SccAccount +short_description: Manage SUSE Customer Center Accounts description: - - "Manage Suse Customer Center Account Entities" - - "This module requires the foreman_scc_manager plugin set up in the server" - - "See: U(https://github.com/ATIX-AG/foreman_scc_manager)" + - Manage SUSE Customer Center Accounts + - This module requires the foreman_scc_manager plugin set up in the server + - See U(https://github.com/ATIX-AG/foreman_scc_manager) author: - "Manisha Singhal (@manisha15) ATIX AG" options: diff --git a/plugins/modules/scc_product.py b/plugins/modules/scc_product.py index ebb088f9..40bcd610 100644 --- a/plugins/modules/scc_product.py +++ b/plugins/modules/scc_product.py @@ -22,11 +22,11 @@ DOCUMENTATION = ''' --- module: scc_product -short_description: Subscribe Suse Customer Center Account Product +short_description: Subscribe SUSE Customer Center Account Products description: - - "Manage Suse Customer Center Product Entities" - - "This module requires the foreman_scc_manager plugin set up in the server" - - "See: U(https://github.com/ATIX-AG/foreman_scc_manager)" + - Manage SUSE Customer Center Products + - This module requires the foreman_scc_manager plugin set up in the server + - See U(https://github.com/ATIX-AG/foreman_scc_manager) author: - "Manisha Singhal (@manisha15) ATIX AG" options: diff --git a/plugins/modules/setting.py b/plugins/modules/setting.py index cfc6a513..479ed221 100644 --- a/plugins/modules/setting.py +++ b/plugins/modules/setting.py @@ -24,7 +24,7 @@ module: setting short_description: Manage Settings description: - - "Manage Setting Entities" + - Manage Settings author: - "Matthias M Dellweg (@mdellweg) ATIX AG" options: diff --git a/plugins/modules/subscription_manifest.py b/plugins/modules/subscription_manifest.py index 6037ba6b..32f99ebd 100644 --- a/plugins/modules/subscription_manifest.py +++ b/plugins/modules/subscription_manifest.py @@ -22,9 +22,9 @@ DOCUMENTATION = ''' --- module: subscription_manifest -short_description: Manage manifests +short_description: Manage Subscription Manifests description: - - Upload and manage manifests + - Upload, refresh and delete Subscription Manifests author: "Andrew Kofink (@akofink)" options: manifest_path: diff --git a/plugins/modules/sync_plan.py b/plugins/modules/sync_plan.py index 3edc4583..5ddd5785 100644 --- a/plugins/modules/sync_plan.py +++ b/plugins/modules/sync_plan.py @@ -23,12 +23,12 @@ DOCUMENTATION = ''' --- module: sync_plan -short_description: Manage sync plans +short_description: Manage Sync Plans description: - - Manage sync plans + - Manage sync plans author: - - "Andrew Kofink (@akofink)" - - "Matthis Dellweg (@mdellweg) ATIX-AG" + - "Andrew Kofink (@akofink)" + - "Matthis Dellweg (@mdellweg) ATIX-AG" options: name: description: diff --git a/plugins/modules/templates_import.py b/plugins/modules/templates_import.py index 4a8945dd..5c2f6cd0 100644 --- a/plugins/modules/templates_import.py +++ b/plugins/modules/templates_import.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: templates_import -short_description: Sync templates from a repository +short_description: Sync Templates from a repository description: - Sync provisioning templates, report_templates, partition tables and job templates from external git repository or file system. - Based on foreman_templates plugin U(https://github.com/theforeman/foreman_templates). diff --git a/plugins/modules/usergroup.py b/plugins/modules/usergroup.py index baf4598a..fe6f1b9f 100644 --- a/plugins/modules/usergroup.py +++ b/plugins/modules/usergroup.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' --- module: usergroup -short_description: Manage User groups +short_description: Manage User Groups description: - Create, update, and delete user groups author: From 44042b5cb6c26dfe86fc8227c4e5f1aad8b9775d Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Wed, 11 Dec 2019 11:53:40 +0100 Subject: [PATCH 36/88] Document returned entity in foreman_architecture --- plugins/modules/architecture.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/plugins/modules/architecture.py b/plugins/modules/architecture.py index 9f2f06a4..d166db23 100644 --- a/plugins/modules/architecture.py +++ b/plugins/modules/architecture.py @@ -77,7 +77,28 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + architectures: + description: List of architectures. + type: list + elements: dict + contains: + id: + description: Database id of the architecture. + type: int + name: + description: Name of the architecture. + type: str + operatinsystem_ids: + description: Database ids of associated operatingsystems. + type: list + elements: int +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule From 6b529eeef73a03389f3fc32e3787cf45faf42235 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Thu, 12 Dec 2019 16:49:18 +0100 Subject: [PATCH 37/88] Document returned entity in foreman_bookmark --- plugins/modules/bookmark.py | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/plugins/modules/bookmark.py b/plugins/modules/bookmark.py index bf072937..626f5a2c 100644 --- a/plugins/modules/bookmark.py +++ b/plugins/modules/bookmark.py @@ -85,7 +85,39 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + bookmarks: + description: List of bookmarks. + type: list + elements: dict + contains: + id: + description: Database id of the bookmark. + type: int + name: + description: Name of the bookmark. + type: str + controller: + description: Controller, the query is performed on. + type: str + query: + description: Query to be performed on the controller. + type: str + public: + description: Publicity of the bookmark. + type: bool + owner_type: + description: Class of the owner entity. + type: str + owner_id: + description: Database id of the owner entity. + type: int +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule From 542f42e0fe795bd032504b0a1053a9a18cd01186 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Thu, 2 Jan 2020 17:15:14 +0100 Subject: [PATCH 38/88] Document returned entity in foreman_compute_attribute --- plugins/modules/compute_attribute.py | 46 +++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/plugins/modules/compute_attribute.py b/plugins/modules/compute_attribute.py index 72d9f037..802e0f92 100644 --- a/plugins/modules/compute_attribute.py +++ b/plugins/modules/compute_attribute.py @@ -77,7 +77,51 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + compute_attributes: + description: List of compute attributes. + type: list + elements: dict + contains: + id: + description: Database id of the compute_attribute. + type: int + compute_profile_id: + description: Database id of the associated compute profile. + type: int + compute_profile_name: + description: Name of the associated compute profile. + type: str + compute_resource_id: + description: Database id of the associated compute resource. + type: int + compute_resource_name: + description: Name of the associated compute resource. + type: str + created_at: + description: Creation date of the compute attribute. + type: str + updated_at: + description: Date of last change to the compute attribute. + type: str + name: + description: Generated friendly name for the compute attribute. + type: str + provider_friendly_name: + description: Name of the provider type of the compute resource. + type: str + attributes: + description: Effective attributes for the given combination of compute profile and resource. + type: dict + vm_attrs: + description: Configured attributes. + type: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule From 292b04f9ee9e10ca13a133f0b2eb46a1e4f20ac2 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Mon, 27 Jan 2020 11:05:45 +0100 Subject: [PATCH 39/88] Document returned entity in foreman_compute_profile --- plugins/modules/compute_profile.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/plugins/modules/compute_profile.py b/plugins/modules/compute_profile.py index 2a3bd871..5b3a4d5b 100644 --- a/plugins/modules/compute_profile.py +++ b/plugins/modules/compute_profile.py @@ -135,7 +135,27 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + compute_profiles: + description: List of compute profiles. + type: list + elements: dict + contains: + id: + description: Database id of the compute profile. + type: int + name: + description: Name of the compute profile. + type: str + compute_attributes: + description: Attributes for this compute profile. + type: list +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule From 05a384b6a8e1b5c4fed2429c9408637bb6f7a9be Mon Sep 17 00:00:00 2001 From: Matthias Dellweg <2500@gmx.de> Date: Sat, 25 Jul 2020 14:49:37 +0200 Subject: [PATCH 40/88] Add boilerplate return documentation. --- plugins/modules/activation_key.py | 12 +++++++++- plugins/modules/auth_source_ldap.py | 13 ++++++++++- plugins/modules/compute_resource.py | 12 +++++++++- plugins/modules/config_group.py | 12 +++++++++- plugins/modules/content_credential.py | 12 +++++++++- plugins/modules/content_view.py | 12 +++++++++- plugins/modules/content_view_filter.py | 12 +++++++++- plugins/modules/content_view_version.py | 12 +++++++++- plugins/modules/domain.py | 12 +++++++++- plugins/modules/external_usergroup.py | 12 +++++++++- plugins/modules/global_parameter.py | 12 +++++++++- plugins/modules/hardware_model.py | 12 +++++++++- plugins/modules/host.py | 12 +++++++++- plugins/modules/host_collection.py | 12 +++++++++- plugins/modules/hostgroup.py | 12 +++++++++- plugins/modules/http_proxy.py | 12 +++++++++- plugins/modules/image.py | 12 +++++++++- plugins/modules/installation_medium.py | 12 +++++++++- plugins/modules/job_template.py | 16 ++++++++++++- plugins/modules/lifecycle_environment.py | 12 +++++++++- plugins/modules/location.py | 12 +++++++++- plugins/modules/operatingsystem.py | 12 +++++++++- plugins/modules/organization.py | 12 +++++++++- plugins/modules/os_default_template.py | 12 +++++++++- plugins/modules/partition_table.py | 12 +++++++++- plugins/modules/product.py | 12 +++++++++- plugins/modules/provisioning_template.py | 12 +++++++++- plugins/modules/puppet_environment.py | 12 +++++++++- plugins/modules/realm.py | 12 +++++++++- plugins/modules/repository.py | 12 +++++++++- plugins/modules/repository_set.py | 12 +++++++++- plugins/modules/role.py | 12 +++++++++- plugins/modules/scap_content.py | 12 +++++++++- plugins/modules/scap_tailoring_file.py | 12 +++++++++- plugins/modules/scc_account.py | 12 +++++++++- plugins/modules/smart_class_parameter.py | 12 +++++++++- plugins/modules/snapshot.py | 12 +++++++++- plugins/modules/subnet.py | 12 +++++++++- plugins/modules/sync_plan.py | 12 +++++++++- plugins/modules/templates_import.py | 29 +++++++++++++++++++++++- plugins/modules/user.py | 12 +++++++++- plugins/modules/usergroup.py | 12 +++++++++- 42 files changed, 484 insertions(+), 42 deletions(-) diff --git a/plugins/modules/activation_key.py b/plugins/modules/activation_key.py index 7a1968f3..ca0c4329 100644 --- a/plugins/modules/activation_key.py +++ b/plugins/modules/activation_key.py @@ -168,7 +168,17 @@ service_level: Standard ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + activation_keys: + description: List of activation keys. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/auth_source_ldap.py b/plugins/modules/auth_source_ldap.py index 6808eec1..d10ed587 100644 --- a/plugins/modules/auth_source_ldap.py +++ b/plugins/modules/auth_source_ldap.py @@ -154,7 +154,18 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + auth_source_ldaps: + description: List of auth sources for LDAP. + type: list + elements: dict +''' + from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicEntityAnsibleModule diff --git a/plugins/modules/compute_resource.py b/plugins/modules/compute_resource.py index 77bc0d8d..8d4f830a 100644 --- a/plugins/modules/compute_resource.py +++ b/plugins/modules/compute_resource.py @@ -278,7 +278,17 @@ ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + compute_resources: + description: List of compute resources. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicEntityAnsibleModule diff --git a/plugins/modules/config_group.py b/plugins/modules/config_group.py index 93ec385f..743ff47e 100644 --- a/plugins/modules/config_group.py +++ b/plugins/modules/config_group.py @@ -58,7 +58,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + config_groups: + description: List of config groups. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule diff --git a/plugins/modules/content_credential.py b/plugins/modules/content_credential.py index 13af663a..6c9db58a 100644 --- a/plugins/modules/content_credential.py +++ b/plugins/modules/content_credential.py @@ -63,7 +63,17 @@ content: "{{ lookup('file', 'RPM-GPG-KEY-my-repo') }}" ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + content_credentials: + description: List of content credentials. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/content_view.py b/plugins/modules/content_view.py index d24c8b28..c17ec9aa 100644 --- a/plugins/modules/content_view.py +++ b/plugins/modules/content_view.py @@ -125,7 +125,17 @@ latest: true ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + content_views: + description: List of content views. + type: list + elements: dict +''' import copy from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/content_view_filter.py b/plugins/modules/content_view_filter.py index b094663f..05ff84b1 100644 --- a/plugins/modules/content_view_filter.py +++ b/plugins/modules/content_view_filter.py @@ -166,7 +166,17 @@ inclusion: True ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + content_view_filters: + description: List of content view filters. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloMixin, ForemanStatelessEntityAnsibleModule diff --git a/plugins/modules/content_view_version.py b/plugins/modules/content_view_version.py index 3569c7a8..d5618522 100644 --- a/plugins/modules/content_view_version.py +++ b/plugins/modules/content_view_version.py @@ -125,7 +125,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + content_view_versions: + description: List of content view versions. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/domain.py b/plugins/modules/domain.py index dd9d7ce9..bc60ccfe 100644 --- a/plugins/modules/domain.py +++ b/plugins/modules/domain.py @@ -72,7 +72,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + domains: + description: List of domains. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicEntityAnsibleModule, NestedParametersMixin diff --git a/plugins/modules/external_usergroup.py b/plugins/modules/external_usergroup.py index ab8391e2..e15a9985 100644 --- a/plugins/modules/external_usergroup.py +++ b/plugins/modules/external_usergroup.py @@ -57,7 +57,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + external_usergroups: + description: List of external usergroups. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule diff --git a/plugins/modules/global_parameter.py b/plugins/modules/global_parameter.py index 7aef7929..4b140185 100644 --- a/plugins/modules/global_parameter.py +++ b/plugins/modules/global_parameter.py @@ -93,7 +93,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + global_parameters: + description: List of global parameters. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule, parameter_value_to_str diff --git a/plugins/modules/hardware_model.py b/plugins/modules/hardware_model.py index 3448c649..083353a9 100644 --- a/plugins/modules/hardware_model.py +++ b/plugins/modules/hardware_model.py @@ -63,7 +63,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + hardware_models: + description: List of hardware models. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule diff --git a/plugins/modules/host.py b/plugins/modules/host.py index 8aea0cd6..174fc51e 100644 --- a/plugins/modules/host.py +++ b/plugins/modules/host.py @@ -153,7 +153,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + hosts: + description: List of hosts. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ( ensure_puppetclasses, diff --git a/plugins/modules/host_collection.py b/plugins/modules/host_collection.py index dc114b3d..cc2f19f1 100644 --- a/plugins/modules/host_collection.py +++ b/plugins/modules/host_collection.py @@ -61,7 +61,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + host_collections: + description: List of host collections. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/hostgroup.py b/plugins/modules/hostgroup.py index 360532c6..349cf004 100644 --- a/plugins/modules/hostgroup.py +++ b/plugins/modules/hostgroup.py @@ -128,7 +128,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + hostgroups: + description: List of hostgroups. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ( ensure_puppetclasses, diff --git a/plugins/modules/http_proxy.py b/plugins/modules/http_proxy.py index c34cbc59..52403863 100644 --- a/plugins/modules/http_proxy.py +++ b/plugins/modules/http_proxy.py @@ -71,7 +71,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + http_proxies: + description: List of HTTP proxies. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicEntityAnsibleModule diff --git a/plugins/modules/image.py b/plugins/modules/image.py index 7b2b1a28..06807ecc 100644 --- a/plugins/modules/image.py +++ b/plugins/modules/image.py @@ -78,7 +78,17 @@ architecture: "x86_64" ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + images: + description: List of images. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule diff --git a/plugins/modules/installation_medium.py b/plugins/modules/installation_medium.py index 6be1bf2d..a502c256 100644 --- a/plugins/modules/installation_medium.py +++ b/plugins/modules/installation_medium.py @@ -73,7 +73,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + media: + description: List of installation media. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicEntityAnsibleModule, OS_LIST diff --git a/plugins/modules/job_template.py b/plugins/modules/job_template.py index aa8c7877..2cb5e41a 100644 --- a/plugins/modules/job_template.py +++ b/plugins/modules/job_template.py @@ -268,7 +268,21 @@ ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + job_templates: + description: List of job templates. + type: list + elements: dict + template_inputs: + description: List of template inputs associated with the job template. + type: list + elements: dict +''' import os from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ( diff --git a/plugins/modules/lifecycle_environment.py b/plugins/modules/lifecycle_environment.py index e88da802..5aeca859 100644 --- a/plugins/modules/lifecycle_environment.py +++ b/plugins/modules/lifecycle_environment.py @@ -67,7 +67,17 @@ state: "present" ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + lifecycle_environments: + description: List of lifecycle environments. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/location.py b/plugins/modules/location.py index 1a30a54d..fac4b4e1 100644 --- a/plugins/modules/location.py +++ b/plugins/modules/location.py @@ -90,7 +90,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + locations: + description: List of locations. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule, NestedParametersMixin diff --git a/plugins/modules/operatingsystem.py b/plugins/modules/operatingsystem.py index 764f33df..363f8a00 100644 --- a/plugins/modules/operatingsystem.py +++ b/plugins/modules/operatingsystem.py @@ -148,7 +148,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + operatinsystems: + description: List of operatinsystems. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ( diff --git a/plugins/modules/organization.py b/plugins/modules/organization.py index 1d7101d8..215fc9ec 100644 --- a/plugins/modules/organization.py +++ b/plugins/modules/organization.py @@ -60,7 +60,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + organizations: + description: List of organizations. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule, NestedParametersMixin diff --git a/plugins/modules/os_default_template.py b/plugins/modules/os_default_template.py index 8d2628ad..4a4be751 100644 --- a/plugins/modules/os_default_template.py +++ b/plugins/modules/os_default_template.py @@ -69,7 +69,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + os_default_templates: + description: List of operatingsystem default templates. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule diff --git a/plugins/modules/partition_table.py b/plugins/modules/partition_table.py index 0814cc8b..7649c091 100644 --- a/plugins/modules/partition_table.py +++ b/plugins/modules/partition_table.py @@ -177,7 +177,17 @@ ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + ptables: + description: List of partition tables. + type: list + elements: dict +''' import os diff --git a/plugins/modules/product.py b/plugins/modules/product.py index b089120c..0dcb19bc 100644 --- a/plugins/modules/product.py +++ b/plugins/modules/product.py @@ -97,7 +97,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + products: + description: List of products. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/provisioning_template.py b/plugins/modules/provisioning_template.py index 97e5bdfd..bcccb0ed 100644 --- a/plugins/modules/provisioning_template.py +++ b/plugins/modules/provisioning_template.py @@ -204,7 +204,17 @@ ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + provisioning_templates: + description: List of provisioning templates. + type: list + elements: dict +''' import os diff --git a/plugins/modules/puppet_environment.py b/plugins/modules/puppet_environment.py index 1eb77680..1b8f53b3 100644 --- a/plugins/modules/puppet_environment.py +++ b/plugins/modules/puppet_environment.py @@ -54,7 +54,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + puppet_environments: + description: List of puppet environments. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ( ForemanTaxonomicEntityAnsibleModule, diff --git a/plugins/modules/realm.py b/plugins/modules/realm.py index 251ff8ee..25b319da 100644 --- a/plugins/modules/realm.py +++ b/plugins/modules/realm.py @@ -65,7 +65,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + realms: + description: List of realms. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicEntityAnsibleModule diff --git a/plugins/modules/repository.py b/plugins/modules/repository.py index e3cf2e46..0baff2fd 100644 --- a/plugins/modules/repository.py +++ b/plugins/modules/repository.py @@ -193,7 +193,17 @@ gpg_key: RPM-GPG-KEY-my-product2 ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + repositories: + description: List of repositories. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/repository_set.py b/plugins/modules/repository_set.py index 669c4d9b..d5064c79 100644 --- a/plugins/modules/repository_set.py +++ b/plugins/modules/repository_set.py @@ -188,7 +188,17 @@ var: data ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + repository_sets: + description: List of repository sets. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/role.py b/plugins/modules/role.py index 1ebab9cb..8bd716de 100644 --- a/plugins/modules/role.py +++ b/plugins/modules/role.py @@ -76,7 +76,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + roles: + description: List of roles. + type: list + elements: dict +''' import copy diff --git a/plugins/modules/scap_content.py b/plugins/modules/scap_content.py index 8fc612e9..54d234cd 100644 --- a/plugins/modules/scap_content.py +++ b/plugins/modules/scap_content.py @@ -86,7 +86,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + scap_contents: + description: List of scap contents. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanScapDataStreamModule diff --git a/plugins/modules/scap_tailoring_file.py b/plugins/modules/scap_tailoring_file.py index 180e10f9..5149aa71 100644 --- a/plugins/modules/scap_tailoring_file.py +++ b/plugins/modules/scap_tailoring_file.py @@ -86,7 +86,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + scap_tailoring_files: + description: List of scap tailoring files. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanScapDataStreamModule diff --git a/plugins/modules/scc_account.py b/plugins/modules/scc_account.py index 669a24a1..b117e2c6 100644 --- a/plugins/modules/scc_account.py +++ b/plugins/modules/scc_account.py @@ -106,7 +106,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + scc_accounts: + description: List of scc accounts. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/smart_class_parameter.py b/plugins/modules/smart_class_parameter.py index 02c4e250..967eb790 100644 --- a/plugins/modules/smart_class_parameter.py +++ b/plugins/modules/smart_class_parameter.py @@ -154,7 +154,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + smart_class_parameters: + description: List of smart class parameters. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule, parameter_value_to_str diff --git a/plugins/modules/snapshot.py b/plugins/modules/snapshot.py index 12c30b2e..4fe8f08e 100644 --- a/plugins/modules/snapshot.py +++ b/plugins/modules/snapshot.py @@ -95,7 +95,17 @@ state: absent ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + snapshots: + description: List of snapshots. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index 9cb51ea9..82d27ca7 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -178,7 +178,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + subnets: + description: List of subnets. + type: list + elements: dict +''' import traceback from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ( diff --git a/plugins/modules/sync_plan.py b/plugins/modules/sync_plan.py index 5ddd5785..03935750 100644 --- a/plugins/modules/sync_plan.py +++ b/plugins/modules/sync_plan.py @@ -92,7 +92,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + sync_plans: + description: List of sync plans. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import KatelloEntityAnsibleModule diff --git a/plugins/modules/templates_import.py b/plugins/modules/templates_import.py index 5c2f6cd0..053bfdf2 100644 --- a/plugins/modules/templates_import.py +++ b/plugins/modules/templates_import.py @@ -105,7 +105,34 @@ password: "changeme" ''' -RETURN = ''' # ''' +RETURN = ''' +message: + description: Information about the import. + returned: success + type: dict + contains: + repo: + description: Repository, the templates were imported from. + type: str + branch: + description: Branch used in the repository. + type: str +report: + description: Report of the import. + returned: success + type: dict + contains: + changed: + description: List of templates that have been updated. + type: list + new: + description: List of templates that have been created. + type: list +templates: + description: Final state of the templates. + returned: success + type: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicAnsibleModule, _flatten_entity diff --git a/plugins/modules/user.py b/plugins/modules/user.py index 2e1bbc6e..2325057a 100644 --- a/plugins/modules/user.py +++ b/plugins/modules/user.py @@ -311,7 +311,17 @@ ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + users: + description: List of users. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ( ForemanTaxonomicEntityAnsibleModule, diff --git a/plugins/modules/usergroup.py b/plugins/modules/usergroup.py index fe6f1b9f..1552c419 100644 --- a/plugins/modules/usergroup.py +++ b/plugins/modules/usergroup.py @@ -82,7 +82,17 @@ state: present ''' -RETURN = ''' # ''' +RETURN = ''' +entity: + description: Final state of the affected entities grouped by their type. + returned: success + type: dict + contains: + usergroups: + description: List of usergroups. + type: list + elements: dict +''' from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanEntityAnsibleModule From e413b61ee9571e110029a3862f053b4c52eafb75 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 27 Jul 2020 10:02:36 +0200 Subject: [PATCH 41/88] add doc for filters --- docs/filters.rst | 7 +++++++ docs/index.rst | 1 + 2 files changed, 8 insertions(+) create mode 100644 docs/filters.rst diff --git a/docs/filters.rst b/docs/filters.rst new file mode 100644 index 00000000..1e952961 --- /dev/null +++ b/docs/filters.rst @@ -0,0 +1,7 @@ +Converting strings to Candlepin labels +====================================== + +This filter will convert arbitrary strings to Candlepin labels:: + + {{ 'Default Organization' | cp_label }} + # => 'Default_Organization' diff --git a/docs/index.rst b/docs/index.rst index b67c6b65..6898c4de 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -12,6 +12,7 @@ Welcome to Foreman Ansible Modules's documentation! README List of all modules + Filters .. toctree:: :maxdepth: 2 From c41161c58ac545c1e7a7cff5293a07b1657bab82 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 22 Jul 2020 11:15:32 +0200 Subject: [PATCH 42/88] generate docs using antsibull --- .gitignore | 2 +- docs/Makefile | 12 ++++-------- docs/index.rst | 2 +- docs/requirements.txt | 3 ++- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 9ed65a2d..0ed9fb25 100644 --- a/.gitignore +++ b/.gitignore @@ -11,5 +11,5 @@ __pycache__ .mypy_cache/ venv/ /build/ -docs/modules/ +docs/plugins/ docs/_build/ diff --git a/docs/Makefile b/docs/Makefile index 22a948a4..9de8bce2 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -8,20 +8,16 @@ SPHINXPROJ = ForemanAnsibleModules SOURCEDIR = . BUILDDIR = _build -ANSIBLEGIT = .tmp/ansible - # Put it first so that "make" without argument is like "make help". help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) .PHONY: help Makefile generate-docs -$(ANSIBLEGIT): - git clone --depth=1 https://github.com/ansible/ansible/ -b stable-2.9 $(ANSIBLEGIT) - -generate-docs: $(ANSIBLEGIT) - rm -rf ./modules/ - bash -c "source $(ANSIBLEGIT)/hacking/env-setup && ANSIBLE_COLLECTIONS_PATHS=../build/collections python3 $(ANSIBLEGIT)/hacking/build-ansible.py document-plugins --module-dir ../plugins/modules --template-dir ./_templates --template-dir $(ANSIBLEGIT)/docs/templates --type rst --output-dir ./modules/" +generate-docs: + mkdir -p ./plugins/ + ANSIBLE_COLLECTIONS_PATHS=../build/collections antsibull-docs collection --use-current --squash-hierarchy --dest-dir ../build/plugin_docs theforeman.foreman + cp -a ../build/plugin_docs/* ./plugins/ # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). diff --git a/docs/index.rst b/docs/index.rst index 6898c4de..cf1544b0 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,7 +11,7 @@ Welcome to Foreman Ansible Modules's documentation! :caption: User documentation README - List of all modules + plugins/index Filters .. toctree:: diff --git a/docs/requirements.txt b/docs/requirements.txt index e460cc70..e08dca47 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,4 @@ --r https://github.com/ansible/ansible/raw/devel/docs/docsite/requirements.txt +antsibull>=0.17.0 +ansible-base>=2.10.0rc2 sphinx-rtd-theme recommonmark From de67d9cfc588c734e79a9c127fe0f8bc22092e86 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 24 Jul 2020 09:29:37 +0200 Subject: [PATCH 43/88] move docs generation using antsibull into main makefile this leaves docs/Makefile a vanilla Sphinx Makefile --- Makefile | 6 ++++-- docs/Makefile | 9 ++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 737e09e9..dbd951a1 100644 --- a/Makefile +++ b/Makefile @@ -105,13 +105,15 @@ endif dist: $(NAMESPACE)-$(NAME)-$(VERSION).tar.gz clean: - rm -rf build + rm -rf build docs/plugins doc-setup: pip install -r docs/requirements.txt doc: $(MANIFEST) + mkdir -p ./docs/plugins + antsibull-docs collection --use-current --squash-hierarchy --dest-dir ./docs/plugins theforeman.foreman make -C docs html FORCE: -.PHONY: help dist lint sanity test test-crud test-check-mode test-other setup test-setup FORCE +.PHONY: help dist lint sanity test test-crud test-check-mode test-other setup test-setup doc-setup doc FORCE diff --git a/docs/Makefile b/docs/Makefile index 9de8bce2..6ffe5f69 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -12,14 +12,9 @@ BUILDDIR = _build help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -.PHONY: help Makefile generate-docs - -generate-docs: - mkdir -p ./plugins/ - ANSIBLE_COLLECTIONS_PATHS=../build/collections antsibull-docs collection --use-current --squash-hierarchy --dest-dir ../build/plugin_docs theforeman.foreman - cp -a ../build/plugin_docs/* ./plugins/ +.PHONY: help Makefile # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). -%: Makefile generate-docs +%: Makefile @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) From 0b48a8ac692de2799e08564f194a19b21154a7dc Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 24 Jul 2020 09:33:52 +0200 Subject: [PATCH 44/88] drop our custom template, it's unused now --- docs/_templates/plugin.rst.j2 | 469 ---------------------------------- 1 file changed, 469 deletions(-) delete mode 100644 docs/_templates/plugin.rst.j2 diff --git a/docs/_templates/plugin.rst.j2 b/docs/_templates/plugin.rst.j2 deleted file mode 100644 index 6fbed2db..00000000 --- a/docs/_templates/plugin.rst.j2 +++ /dev/null @@ -1,469 +0,0 @@ -:source: @{ source }@ - -{# avoids rST "isn't included in any toctree" errors for module docs #} -{% if plugin_type == 'module' %} -:orphan: -{% endif %} - -.. _@{ module }@_@{ plugin_type }@: -{% for alias in aliases %} -.. _@{ alias }@_@{ plugin_type }@: -{% endfor %} - -{% if short_description %} -{% set title = module + ' -- ' + short_description | rst_ify %} -{% else %} -{% set title = module %} -{% endif %} - -@{ title }@ -@{ '+' * title|length }@ - -{% if version_added is defined and version_added != '' -%} -.. versionadded:: @{ version_added | default('') }@ -{% endif %} - -.. contents:: - :local: - :depth: 1 - -{# ------------------------------------------ - # - # Please note: this looks like a core dump - # but it isn't one. - # - --------------------------------------------#} -{% if deprecated is defined -%} - - -DEPRECATED ----------- -{# use unknown here? skip the fields? #} -:Removed in Ansible: version: @{ deprecated['removed_in'] | default('') | string | rst_ify }@ -:Why: @{ deprecated['why'] | default('') | rst_ify }@ -:Alternative: @{ deprecated['alternative'] | default('') | rst_ify }@ - - -{% endif %} - -Synopsis --------- -{% if description -%} - -{% if description is string -%} -- @{ description | rst_ify }@ -{% else %} -{% for desc in description %} -- @{ desc | rst_ify }@ -{% endfor %} -{% endif %} - -{% endif %} - -{% if aliases is defined -%} -Aliases: @{ ','.join(aliases) }@ -{% endif %} - -{% if requirements -%} - -Requirements ------------- -{% if plugin_type == 'module' %} -The below requirements are needed on the host that executes this @{ plugin_type }@. -{% else %} -The below requirements are needed on the local master node that executes this @{ plugin_type }@. -{% endif %} - -{% for req in requirements %} -- @{ req | rst_ify }@ -{% endfor %} - -{% endif %} - -{% if options -%} - -Parameters ----------- - -.. raw:: html - - - {# Pre-compute the nesting depth to allocate columns -#} - @{ to_kludge_ns('maxdepth', 1) -}@ - {% for key, value in options|dictsort recursive -%} - @{ to_kludge_ns('maxdepth', [loop.depth, from_kludge_ns('maxdepth')] | max) -}@ - {% if value.suboptions -%} - {% if value.suboptions.items -%} - @{ loop(value.suboptions.items()) -}@ - {% elif value.suboptions[0].items -%} - @{ loop(value.suboptions[0].items()) -}@ - {% endif -%} - {% endif -%} - {% endfor -%} - {# Header of the documentation -#} - - - - {% if plugin_type != 'module' %} - - {% endif %} - - - {% for key, value in options|dictsort recursive %} - - {# indentation based on nesting level #} - {% for i in range(1, loop.depth) %} - - {% endfor %} - {# parameter name with required and/or introduced label #} - - {# default / choices #} - - {# configuration #} - {% if plugin_type != 'module' %} - - {% endif %} - {# description #} - - - {% if value.suboptions %} - {% if value.suboptions.items %} - @{ loop(value.suboptions|dictsort) }@ - {% elif value.suboptions[0].items %} - @{ loop(value.suboptions[0]|dictsort) }@ - {% endif %} - {% endif %} - {% endfor %} -
ParameterChoices/DefaultsConfigurationComments
- @{ key }@ -
- @{ value.type | documented_type }@ - {% if value.get('elements') %} / elements=@{ value.elements | documented_type }@{% endif %} - {% if value.get('required', False) %} / required{% endif %} -
- {% if value.version_added %}
added in @{value.version_added}@
{% endif %} -
- {# Turn boolean values in 'yes' and 'no' values #} - {% if value.default is sameas true %} - {% set _x = value.update({'default': 'yes'}) %} - {% elif value.default is sameas false %} - {% set _x = value.update({'default': 'no'}) %} - {% endif %} - {% if value.type == 'bool' %} - {% set _x = value.update({'choices': ['no', 'yes']}) %} - {% endif %} - {# Show possible choices and highlight details #} - {% if value.choices %} -
    Choices: - {% for choice in value.choices %} - {# Turn boolean values in 'yes' and 'no' values #} - {% if choice is sameas true %} - {% set choice = 'yes' %} - {% elif choice is sameas false %} - {% set choice = 'no' %} - {% endif %} - {% if (value.default is not list and value.default == choice) or (value.default is list and choice in value.default) %} -
  • @{ choice | escape }@ ←
  • - {% else %} -
  • @{ choice | escape }@
  • - {% endif %} - {% endfor %} -
- {% endif %} - {# Show default value, when multiple choice or no choices #} - {% if value.default is defined and value.default not in value.choices %} - Default:
@{ value.default | tojson | escape }@
- {% endif %} -
- {% if 'ini' in value %} -
ini entries: - {% for ini in value.ini %} -

[@{ ini.section }@]
@{ ini.key }@ = @{ value.default | default('VALUE') }@

- {% endfor %} -
- {% endif %} - {% if 'env' in value %} - {% for env in value.env %} -
env:@{ env.name }@
- {% endfor %} - {% endif %} - {% if 'vars' in value %} - {% for myvar in value.vars %} -
var: @{ myvar.name }@
- {% endfor %} - {% endif %} -
- {% if value.description is string %} -
@{ value.description | replace('\n', '\n ') | html_ify }@
- {% else %} - {% for desc in value.description %} -
@{ desc | replace('\n', '\n ') | html_ify }@
- {% endfor %} - {% endif %} - {% if 'aliases' in value and value.aliases %} -

aliases: @{ value.aliases|join(', ') }@
- {% endif %} -
-
- -{% endif %} - -{% if notes -%} -Notes ------ - -.. note:: -{% for note in notes %} - - @{ note | rst_ify }@ -{% endfor %} - -{% endif %} - -{% if seealso -%} -See Also --------- - -.. seealso:: - -{% for item in seealso %} -{% if item.module is defined and item.description is defined %} - :ref:`@{ item.module }@_module` - @{ item.description | rst_ify }@ -{% elif item.module is defined %} - :ref:`@{ item.module }@_module` - The official documentation on the **@{ item.module }@** module. -{% elif item.name is defined and item.link is defined and item.description is defined %} - `@{ item.name }@ <@{ item.link }@>`_ - @{ item.description | rst_ify }@ -{% elif item.ref is defined and item.description is defined %} - :ref:`@{ item.ref }@` - @{ item.description | rst_ify }@ -{% endif %} -{% endfor %} - -{% endif %} - -{% if examples or plainexamples -%} - -Examples --------- - -.. code-block:: yaml+jinja - -{% for example in examples %} -{% if example['description'] %}@{ example['description'] | indent(4, True) }@{% endif %} -@{ example['code'] | escape | indent(4, True) }@ -{% endfor %} -{% if plainexamples %}@{ plainexamples | indent(4, True) }@{% endif %} - -{% endif %} - -{% if not returnfacts and returndocs and returndocs.ansible_facts is defined %} -{% set returnfacts = returndocs.ansible_facts.contains %} -{% set _x = returndocs.pop('ansible_facts', None) %} -{% endif %} - -{% if returnfacts -%} - -Returned Facts --------------- -Facts returned by this module are added/updated in the ``hostvars`` host facts and can be referenced by name just like any other host fact. They do not need to be registered in order to use them. - -.. raw:: html - - - {# Pre-compute the nesting depth to allocate columns #} - @{ to_kludge_ns('maxdepth', 1) -}@ - {% for key, value in returnfacts|dictsort recursive %} - @{ to_kludge_ns('maxdepth', [loop.depth, from_kludge_ns('maxdepth')] | max) -}@ - {% if value.contains -%} - {% if value.contains.items -%} - @{ loop(value.contains.items()) -}@ - {% elif value.contains[0].items -%} - @{ loop(value.contains[0].items()) -}@ - {% endif -%} - {% endif -%} - {% endfor -%} - - - - - - {% for key, value in returnfacts|dictsort recursive %} - - {% for i in range(1, loop.depth) %} - - {% endfor %} - - - - - {# --------------------------------------------------------- - # sadly we cannot blindly iterate through the child dicts, - # since in some documentations, - # lists are used instead of dicts. This handles both types - # ---------------------------------------------------------#} - {% if value.contains %} - {% if value.contains.items %} - @{ loop(value.contains|dictsort) }@ - {% elif value.contains[0].items %} - @{ loop(value.contains[0]|dictsort) }@ - {% endif %} - {% endif %} - {% endfor %} -
FactReturnedDescription
- @{ key }@ -
- @{ value.type | documented_type }@ - {% if value.elements %} / elements=@{ value.elements | documented_type }@{% endif %} -
- {% if value.version_added %}
added in @{value.version_added}@
{% endif %} -
@{ value.returned | html_ify }@ - {% if value.description is string %} -
@{ value.description | html_ify }@ -
- {% else %} - {% for desc in value.description %} -
@{ desc | html_ify }@ -
- {% endfor %} - {% endif %} -
- {% if value.sample is defined and value.sample %} -
Sample:
- {# TODO: The sample should be escaped, using | escape or | htmlify, but both mess things up beyond repair with dicts #} -
@{ value.sample | replace('\n', '\n ') | html_ify }@
- {% endif %} -
-

- -{% endif %} - -{% if returndocs -%} - -Return Values -------------- -Common return values are documented :ref:`here `, the following are the fields unique to this @{ plugin_type }@: - -.. raw:: html - - - @{ to_kludge_ns('maxdepth', 1) -}@ - {% for key, value in returndocs|dictsort recursive -%} - @{ to_kludge_ns('maxdepth', [loop.depth, from_kludge_ns('maxdepth')] | max) -}@ - {% if value.contains -%} - {% if value.contains.items -%} - @{ loop(value.contains.items()) -}@ - {% elif value.contains[0].items -%} - @{ loop(value.contains[0].items()) -}@ - {% endif -%} - {% endif -%} - {% endfor -%} - - - - - - {% for key, value in returndocs|dictsort recursive %} - - {% for i in range(1, loop.depth) %} - - {% endfor %} - - - - - {# --------------------------------------------------------- - # sadly we cannot blindly iterate through the child dicts, - # since in some documentations, - # lists are used instead of dicts. This handles both types - # ---------------------------------------------------------#} - {% if value.contains %} - {% if value.contains.items %} - @{ loop(value.contains|dictsort) }@ - {% elif value.contains[0].items %} - @{ loop(value.contains[0]|dictsort) }@ - {% endif %} - {% endif %} - {% endfor %} -
KeyReturnedDescription
  - @{ key }@ -
- @{ value.type | documented_type }@ - {% if value.elements %} / elements=@{ value.elements | documented_type }@{% endif %} -
- {% if value.version_added %}
added in @{value.version_added}@
{% endif %} -
@{ value.returned | html_ify }@ - {% if value.description is string %} -
@{ value.description | html_ify |indent(4) | trim}@
- {% else %} - {% for desc in value.description %} -
@{ desc | html_ify |indent(4) | trim}@
- {% endfor %} - {% endif %} -
- {% if value.sample is defined and value.sample %} -
Sample:
- {# TODO: The sample should be escaped, using |escape or |htmlify, but both mess things up beyond repair with dicts #} -
@{ value.sample | replace('\n', '\n ') | html_ify }@
- {% endif %} -
-

- -{% endif %} - -Status ------- - -{% if deprecated %} - -- This @{ plugin_type }@ will be removed in version @{ deprecated['removed_in'] | default('') | string | rst_ify }@. *[deprecated]* -- For more information see `DEPRECATED`_. - -{% else %} - -{% set support = { 'core': 'the Ansible Core Team', 'network': 'the Ansible Network Team', 'certified': 'an Ansible Partner', 'community': 'the Ansible Community', 'curated': 'a Third Party'} %} -{% set module_states = { 'preview': 'not guaranteed to have a backwards compatible interface', 'stableinterface': 'guaranteed to have backward compatible interface changes going forward'} %} - -{% if metadata %} -{% if metadata.status %} - -{% for cur_state in metadata.status %} -- This @{ plugin_type }@ is @{ module_states[cur_state] }@. *[@{ cur_state }@]* -{% endfor %} - -{% endif %} - -{% if metadata.supported_by %} -{% set supported_by = support[metadata.supported_by] %} -- This @{ plugin_type }@ is :ref:`maintained by @{ supported_by }@ `. *[@{ metadata.supported_by }@]* - -{% if metadata.supported_by in ('core', 'network') %} -Red Hat Support -~~~~~~~~~~~~~~~ - -More information about Red Hat's support of this @{ plugin_type }@ is available from this `Red Hat Knowledge Base article `_. -{% endif %} - -{% endif %} - -{% endif %} - -{% endif %} - -{% if author is defined -%} -Authors -~~~~~~~ - -{% for author_name in author %} -- @{ author_name }@ -{% endfor %} - -{% endif %} - -.. hint:: -{% if plugin_type == 'module' %} - If you notice any issues in this documentation, you can `edit this document `_ to improve it. -{% else %} - If you notice any issues in this documentation, you can `edit this document `_ to improve it. -{% endif %} From 20eea3d9b945dcd5f96946e44b691d41cd32eb65 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 24 Jul 2020 09:46:23 +0200 Subject: [PATCH 45/88] don't set ANSIBLE_COLLECTIONS_PATHS -- ansible.cfg does --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dbd951a1..11723b45 100644 --- a/Makefile +++ b/Makefile @@ -75,8 +75,8 @@ tests/test_playbooks/vars/server.yml: @echo "For recording, please adjust $@ to match your reference server." dist-test: $(MANIFEST) - ANSIBLE_COLLECTIONS_PATHS=build/collections 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" - ANSIBLE_COLLECTIONS_PATHS=build/collections ansible-doc $(NAMESPACE).$(NAME).organization | grep -q "Manage Organization" + 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" + ansible-doc $(NAMESPACE).$(NAME).organization | grep -q "Manage Organization" $(MANIFEST): $(NAMESPACE)-$(NAME)-$(VERSION).tar.gz ifeq ($(COLLECTION_COMMAND),mazer) From 33128fecb820c6bb5b4ca4e7a95f3caef1007bff Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 28 Jul 2020 11:47:38 +0200 Subject: [PATCH 46/88] don't write Modules's --- docs/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index cf1544b0..f75e85e0 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,8 +3,8 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -Welcome to Foreman Ansible Modules's documentation! -=================================================== +Welcome to Foreman Ansible Modules' documentation! +================================================== .. toctree:: :maxdepth: 2 From 3fc4bcb415c4f62fcb0f6ec33ef8a8ae2c125500 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 28 Jul 2020 11:52:24 +0200 Subject: [PATCH 47/88] switch to default rtd theme there is no real gain in the Ansible CSS and it's just a mess to sync with upstream --- .../ansible_rtd_theme/static/ansible_rtd.css | 515 ------------------ docs/_themes/ansible_rtd_theme/theme.conf | 4 - docs/conf.py | 3 +- 3 files changed, 1 insertion(+), 521 deletions(-) delete mode 100644 docs/_themes/ansible_rtd_theme/static/ansible_rtd.css delete mode 100644 docs/_themes/ansible_rtd_theme/theme.conf diff --git a/docs/_themes/ansible_rtd_theme/static/ansible_rtd.css b/docs/_themes/ansible_rtd_theme/static/ansible_rtd.css deleted file mode 100644 index 1495973a..00000000 --- a/docs/_themes/ansible_rtd_theme/static/ansible_rtd.css +++ /dev/null @@ -1,515 +0,0 @@ -@import url('css/theme.css'); - -.ansibleNav { - background: #000; - padding: 0px 20px; - width: auto; - border-bottom: 1px solid #444; - font-size: 14px; -} - - -.ansibleNav ul { - list-style: none; - padding-left: 0px; - margin-top: 0px; -} - - - -.ansibleNav ul li{ - padding: 7px 0px; - border-bottom: 1px solid #444; -} - - -.ansibleNav ul li:last-child{ - border: none; -} - - -.ansibleNav ul li a { - color: #fff; - text-decoration: none; - text-transform: uppercase; - padding: 6px 0px; -} - -.ansibleNav ul li a:hover { - color: #5bbdbf ; - background: transparent; -} - - -@media screen and (min-width: 768px) { - - .DocSite-globalNav{ - display: block - } - - - #sideBanner{ - display: block; - } - - - .DocSite-sideNav{ - display: none; - } - - - .ansibleNav{ - height: 45px; - width: 100%; - font-size: 13px; - padding: 0px 60px 0px 0px; - } - - - .ansibleNav ul { - float: right; - display: flex; - flex-wrap: nowrap; - margin-top: 13px; - } - - - - .ansibleNav ul li{ - padding: 0px; - border-bottom: none; - } - - - .ansibleNav ul li a { - color: #fff; - text-decoration: none; - text-transform: uppercase; - padding: 8px 13px; - } - -} - - -DocSiteProduct-header { - flex: 1; - -webkit-flex: 1; - padding: 20px; - padding-top: 10px; - padding-bottom: 20px; - display: flex; - display: -webkit-flex; - flex-direction: column; - -webkit-flex-direction: column; - align-items: center; - -webkit-align-items: center; - justify-content: flex-start; - -webkit-justify-content: flex-start; - margin-left: 20px; - margin-right: 20px; - text-decoration: none; - font-weight: 400; - font-family: 'Open Sans', sans-serif; -} - - -.DocSiteProduct-header:active, -.DocSiteProduct-header:focus { - color: #fff; -} - - -.DocSiteProduct-header:visited { - color: #fff; -} - - -.DocSiteProduct-header--core { - font-size: 25px; - background-color: #5bbdbf; - border: 2px solid #5bbdbf; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - color: #fff; -} - - -.DocSiteProduct-headerAlign { - width: 100%; -} - - -.DocSiteProduct-logo { - width: 60px; - height: 60px; - margin-bottom: -9px; -} - - -.DocSiteProduct-logoText { - margin-top: 6px; - font-size: 36px; -} - -.DocSiteProduct-CurrentVersion { - font-size: 16px; -} - - -.DocSite-nav { - flex: initial; - -webkit-flex: initial; - display: flex; - display: -webkit-flex; - flex-direction: row; - -webkit-flex-direction: row; - justify-content: flex-start; - -webkit-justify-content: flex-start; - padding: 15px; - background-color: #000; - text-decoration: none; - font-family: 'Open Sans', sans-serif; -} - - -.DocSiteNav-logo { - width: 28px; - height: 28px; - margin-right: 8px; -} - - -.DocSiteNav-title { - color: #fff; - font-size: 20px; -} - - -.DocSiteProduct-CheckVersionPara { - padding-bottom: 20px; - margin-left: 10px; - margin-right: 10px; -} - - -.wy-side-nav-search { - z-index: 200; - background-color: #5bbdbf; - text-align: center; - padding: 4px; - display: block; - margin-bottom: 0.809em; -} - - -/*! TEST */ - -.DocSiteProduct-header { - flex: 1; - -webkit-flex: 1; - padding: 20px; - padding-top: 10px; - padding-bottom: 20px; - display: flex; - display: -webkit-flex; - flex-direction: column; - -webkit-flex-direction: column; - align-items: center; - -webkit-align-items: center; - justify-content: flex-start; - -webkit-justify-content: flex-start; - margin-left: 20px; - margin-right: 20px; - text-decoration: none; - font-weight: 400; - font-family: 'Open Sans', sans-serif; -} - - -.DocSiteProduct-header:active, -.DocSiteProduct-header:focus { - color: #fff; -} - - -.DocSiteProduct-header:visited { - color: #fff; -} - - -.DocSiteProduct-header--core { - font-size: 25px; - background-color: #5bbdbf; - border: 2px solid #5bbdbf; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - color: #fff; - padding-left: 2px; - margin-left: 2px; - -} - - -.DocSiteProduct-headerAlign { - width: 100%; -} - - -.DocSiteProduct-logo { - width: 60px; - height: 60px; - margin-bottom: -9px; -} - - -.DocSiteProduct-logoText { - margin-top: 6px; - font-size: 25px; - text-align: left; -} - - -.DocSite-nav { - flex: initial; - -webkit-flex: initial; - display: flex; - display: -webkit-flex; - flex-direction: row; - -webkit-flex-direction: row; - justify-content: flex-start; - -webkit-justify-content: flex-start; - padding: 15px; - background-color: #000; - text-decoration: none; - font-family: 'Open Sans', sans-serif; -} - - -.DocSiteNav-logo { - width: 28px; - height: 28px; - margin-right: 8px; - margin-top: -6px; - position: fixed; -} - - -.DocSiteNav-title { - color: #fff; - font-size: 20px; - position: fixed; - margin-left: 40px; - margin-top: -4px; - -} - - -.DocSiteProduct-CheckVersionPara { - - - margin-left: 2px; - padding-bottom: 4px; - margin-right: 2px; - margin-bottom: 10px; - -} - - -.wy-menu-vertical a { - padding: 0; -} - - -.wy-menu-vertical a.reference.internal { - padding: 0.4045em 1.618em; -} - - -.DocSiteBanner { - display: flex; - display: -webkit-flex; - justify-content: center; - -webkit-justify-content: center; - flex-wrap: wrap; - -webkit-flex-wrap: wrap; - margin-bottom: 25px; -} - - -.DocSiteBanner-imgWrapper { - max-width: 100%; -} - - -th, td { - min-width: 100px; -} - - -table { - overflow-x: auto; - display: block; - max-width: 100%; -} - -.documentation-table td.elbow-placeholder { - border-left: 1px solid #000; - border-top: 0px; - width: 30px; - min-width: 30px; -} - -.documentation-table th, .documentation-table td { - padding: 4px; - border-left: 1px solid #000; - border-top: 1px solid #000; -} - -.documentation-table { - border-right: 1px solid #000; - border-bottom: 1px solid #000; -} - - -@media print { - * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } - - #nav, - a, a:visited { text-decoration: underline; } - - a[href]:after { content: " (" attr(href) ")"; } - - abbr[title]:after { content: " (" attr(title) ")"; } - - .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } - /* Don't show links for images, or javascript/internal links */ - pre, blockquote { border: 0px solid #999; page-break-inside: avoid; } - - thead { display: table-header-group; } - /* h5bp.com/t */ - tr, img { page-break-inside: avoid; } - - img { max-width: 100% !important; } - - @page { margin: 0.5cm; } - - p, h2, h3 { orphans: 3; widows: 3; } - - h2, h3 { page-break-after: avoid; } - - .DocSiteBanner, - #google_image_div { - display: none !important; - } - -} - - - -#sideBanner{ - display: none; -} - - -.DocSite-globalNav { - display: none; -} - - - -.DocSite-sideNav { - display: block; - margin-bottom: 40px; -} - - -.ansibleNav { - background: #000; - padding: 0px 20px; - width: auto; - border-bottom: 1px solid #444; - font-size: 14px; -} - - -.ansibleNav ul { - list-style: none; - padding-left: 0px; - margin-top: 0px; -} - - - -.ansibleNav ul li{ - padding: 7px 0px; - border-bottom: 1px solid #444; -} - - -.ansibleNav ul li:last-child{ - border: none; -} - - -.ansibleNav ul li a { - color: #fff; - text-decoration: none; - text-transform: uppercase; - padding: 6px 0px; -} - -.ansibleNav ul li a:hover { - color: #5bbdbf ; - background: transparent; -} - - -@media screen and (min-width: 768px) { - - .DocSite-globalNav{ - display: block; - position: fixed; - } - - - #sideBanner{ - display: block; - } - - - .DocSite-sideNav{ - display: none; - } - - - .ansibleNav{ - height: 45px; - width: 100%; - font-size: 13px; - padding: 0px 60px 0px 0px; - } - - - .ansibleNav ul { - float: right; - display: flex; - flex-wrap: nowrap; - margin-top: 13px; - } - - - - .ansibleNav ul li{ - padding: 0px; - border-bottom: none; - } - - - .ansibleNav ul li a { - color: #fff; - text-decoration: none; - text-transform: uppercase; - padding: 8px 13px; - } - -} diff --git a/docs/_themes/ansible_rtd_theme/theme.conf b/docs/_themes/ansible_rtd_theme/theme.conf deleted file mode 100644 index 4b2e1ce2..00000000 --- a/docs/_themes/ansible_rtd_theme/theme.conf +++ /dev/null @@ -1,4 +0,0 @@ -[theme] -inherit = sphinx_rtd_theme -stylesheet = ansible_rtd.css -pygments_style = default diff --git a/docs/conf.py b/docs/conf.py index 73a290fe..76b878c2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -87,8 +87,7 @@ # a list of builtin themes. # # html_theme = 'alabaster' -#html_theme = 'sphinx_rtd_theme' -html_theme = 'ansible_rtd_theme' +html_theme = 'sphinx_rtd_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the From 37c9334a06363f68d752c26f331ee3033006ca4f Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 28 Jul 2020 11:53:27 +0200 Subject: [PATCH 48/88] don't add ansible's pygments lexer -- we don't have it anymore --- docs/conf.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 76b878c2..313588d3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -44,11 +44,6 @@ 'sphinx.ext.intersphinx', ] -ansible_extensions_path = os.path.abspath('.tmp/ansible/docs/docsite/_extensions') -if os.path.exists(ansible_extensions_path): - sys.path.append(ansible_extensions_path) - extensions.append('pygments_lexer') - # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] From 70e039ab174683b4a244aebfa4de195e210770da Mon Sep 17 00:00:00 2001 From: Ondrej Prazak Date: Wed, 17 Apr 2019 14:26:19 +0200 Subject: [PATCH 49/88] Add reporter to report logs sent by foreman callback When ansible fails to connect to remote host, callback sends a report to Foreman without any indication that the report comes from Ansible. As a result, Foreman is unable to determine the report origin. This adds a 'reporter' attribute into the logs that are sent. --- plugins/callback/foreman.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/callback/foreman.py b/plugins/callback/foreman.py index 5407adc5..5e2793f9 100644 --- a/plugins/callback/foreman.py +++ b/plugins/callback/foreman.py @@ -205,6 +205,7 @@ def send_reports(self, stats): "metrics": metrics, "status": status, "logs": log, + "reporter": "ansible", } } try: From db92901c0f3df98bb0c3565f56929d5e101ba32f Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 4 Aug 2020 16:15:16 +0200 Subject: [PATCH 50/88] add another repository_set example Fixes: #822 --- plugins/modules/repository_set.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/plugins/modules/repository_set.py b/plugins/modules/repository_set.py index d5064c79..cbc1e6e3 100644 --- a/plugins/modules/repository_set.py +++ b/plugins/modules/repository_set.py @@ -186,6 +186,23 @@ - name: "Output found repository sets, see the contentUrl section for possible repository substitutions" debug: var: data + +- name: Enable set with and without all_repositories at the same time + repository_set: + username: "admin" + password: "changeme" + server_url: "https://foreman.example.com" + organization: "Default Organization" + label: "{{ item.label }}" + repositories: "{{ item.repositories | default(omit) }}" + all_repositories: "{{ item.repositories is not defined }}" + state: enabled + loop: + - label: rhel-7-server-rpms + repositories: + - releasever: "7Server" + basearch: "x86_64" + - label: rhel-7-server-rhv-4.2-manager-rpms ''' RETURN = ''' From 1b11517be905ceaabbbc4a1146424ed8adfb7833 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 5 Aug 2020 12:25:40 +0200 Subject: [PATCH 51/88] run sanity tests also against 2.10 also split up running tests into separate steps to easier see what failed and update the step labels to better match reality --- .github/workflows/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95f10c42..baf16e35 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,14 +67,18 @@ jobs: run: make test-setup - name: fake redhat-uep.pem for redhat_manifest module run: sudo mkdir -p /etc/rhsm/ca/ && sudo touch /etc/rhsm/ca/redhat-uep.pem - - name: Install Ansible devel specific dependencies + - name: Install required collections for ansible-base (2.10+) run: ansible-galaxy collection install community.general if: matrix.ansible == 'devel' || matrix.ansible == 'stable-2.10' - - name: Run basic tests - run: make test-crud test-other - - name: Run Ansible devel specific tests - run: make SANITY_OPTS="--local" sanity dist-test - if: matrix.ansible == 'devel' && matrix.python != '3.8' + - name: Run crud tests + run: make test-crud + - name: Run other tests + run: make test-other + - name: Run dist tests + run: make dist-test + - name: Run sanity tests + run: make SANITY_OPTS="--local" sanity + if: (matrix.ansible == 'devel' || matrix.ansible == 'stable-2.10') && matrix.python != '3.8' checkmode: runs-on: ubuntu-latest From 33f03cf7548df51fd95d4afa6e18ccc3b3a6c312 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg <2500@gmx.de> Date: Wed, 5 Aug 2020 11:54:08 +0200 Subject: [PATCH 52/88] Improve CI tooling * Simplify directory handling in Makefile * Add support for roles in Makefile * Limit release workflow to trunk repository --- .github/workflows/docs.yml | 3 +-- .github/workflows/release.yml | 7 +++---- Makefile | 20 +++++++++++--------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9dfe020d..bcc156de 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,9 +9,8 @@ on: jobs: docs: - runs-on: ubuntu-latest - + if: github.repository == 'theforeman/foreman-ansible-modules' steps: - uses: actions/checkout@v2 - name: configure git diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 627f25c2..17f73c72 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,18 +7,17 @@ on: jobs: release: - runs-on: ubuntu-latest - + if: github.repository == 'theforeman/foreman-ansible-modules' steps: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: - python-version: "3.7" + python-version: "3.8" - name: Install Ansible run: pip install --upgrade ansible - name: Build Ansible Collection run: make dist - name: Deploy Ansible Collection - run: ansible-galaxy collection publish --api-key ${{ secrets.GALAXY_API_KEY }} theforeman-foreman-*.tar.gz + run: make publish GALAXY_API_KEY=${{ secrets.GALAXY_API_KEY }} diff --git a/Makefile b/Makefile index 11723b45..c397de9a 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,11 @@ NAME := $(shell python -c 'import yaml; print(yaml.safe_load(open("galaxy.yml")) VERSION := $(shell python -c 'import yaml; print(yaml.safe_load(open("galaxy.yml"))["version"])') MANIFEST := build/collections/ansible_collections/$(NAMESPACE)/$(NAME)/MANIFEST.json +ROLES := $(wildcard roles/*) PLUGIN_TYPES := $(filter-out __%,$(notdir $(wildcard plugins/*))) METADATA := galaxy.yml LICENSE README.md meta/runtime.yml requirements.txt $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(eval _$(PLUGIN_TYPE) := $(filter-out %__init__.py,$(wildcard plugins/$(PLUGIN_TYPE)/*.py)))) -DEPENDENCIES := $(METADATA) $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(_$(PLUGIN_TYPE))) +DEPENDENCIES := $(METADATA) $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(_$(PLUGIN_TYPE))) $(foreach ROLE,$(ROLES),$(wildcard $(ROLE)/*/*)) PYTHON_VERSION = $(shell python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))') COLLECTION_COMMAND ?= ansible-galaxy @@ -31,7 +32,8 @@ help: info: @echo "Building collection $(NAMESPACE)-$(NAME)-$(VERSION)" - @echo $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),"\n $(PLUGIN_TYPE): $(basename $(notdir $(_$(PLUGIN_TYPE))))") + @echo " roles:\n $(foreach ROLE,$(notdir $(ROLES)), - $(ROLE)\n)" + @echo " $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES), $(PLUGIN_TYPE):\n $(foreach PLUGIN,$(basename $(notdir $(_$(PLUGIN_TYPE)))), - $(PLUGIN)\n)\n)" lint: $(MANIFEST) | tests/test_playbooks/vars/server.yml yamllint -f parsable tests/test_playbooks @@ -88,13 +90,10 @@ else ansible-galaxy collection install -p build/collections $< --force endif -build/src/%: % | build/src - cp $< $@ +build/src/%: % + install -m 644 -DT $< $@ -build/src: - -mkdir -p build build/src build/src/meta build/src/plugins $(addprefix build/src/plugins/,$(PLUGIN_TYPES)) - -$(NAMESPACE)-$(NAME)-$(VERSION).tar.gz: $(addprefix build/src/,$(DEPENDENCIES)) | build/src +$(NAMESPACE)-$(NAME)-$(VERSION).tar.gz: $(addprefix build/src/,$(DEPENDENCIES)) ifeq ($(COLLECTION_COMMAND),mazer) mazer build --collection-path=build/src cp build/src/releases/$@ . @@ -104,6 +103,9 @@ endif dist: $(NAMESPACE)-$(NAME)-$(VERSION).tar.gz +publish: $(NAMESPACE)-$(NAME)-$(VERSION).tar.gz + ansible-galaxy collection publish --api-key $(GALAXY_API_KEY) $< + clean: rm -rf build docs/plugins @@ -116,4 +118,4 @@ doc: $(MANIFEST) FORCE: -.PHONY: help dist lint sanity test test-crud test-check-mode test-other setup test-setup doc-setup doc FORCE +.PHONY: help dist lint sanity test test-crud test-check-mode test-other setup test-setup doc-setup doc publish FORCE From 7c922f21dba1e3b6160e24b0f5c01665ae806e27 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 10 Aug 2020 12:48:34 +0200 Subject: [PATCH 53/88] add requires_ansible: '>=2.8' to runtime.yml --- meta/runtime.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/runtime.yml b/meta/runtime.yml index 52e97571..76292261 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -1,3 +1,5 @@ +--- +requires_ansible: '>=2.8' plugin_routing: modules: foreman_architecture: From a9835a2c401a0c8f292aecbe09bfd82df1e25ba7 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 10 Aug 2020 12:42:45 +0200 Subject: [PATCH 54/88] use FQCN in EXAMPLES --- plugins/modules/activation_key.py | 2 +- plugins/modules/architecture.py | 6 +++--- plugins/modules/auth_source_ldap.py | 4 ++-- plugins/modules/bookmark.py | 6 +++--- plugins/modules/compute_attribute.py | 4 ++-- plugins/modules/compute_profile.py | 8 ++++---- plugins/modules/compute_resource.py | 18 +++++++++--------- plugins/modules/config_group.py | 2 +- plugins/modules/content_credential.py | 2 +- plugins/modules/content_upload.py | 2 +- plugins/modules/content_view.py | 4 ++-- plugins/modules/content_view_filter.py | 4 ++-- plugins/modules/content_view_version.py | 10 +++++----- plugins/modules/domain.py | 2 +- plugins/modules/external_usergroup.py | 2 +- plugins/modules/global_parameter.py | 6 +++--- plugins/modules/hardware_model.py | 2 +- plugins/modules/host.py | 8 ++++---- plugins/modules/host_collection.py | 2 +- plugins/modules/host_power.py | 6 +++--- plugins/modules/hostgroup.py | 12 ++++++------ plugins/modules/http_proxy.py | 2 +- plugins/modules/installation_medium.py | 2 +- plugins/modules/job_template.py | 18 +++++++++--------- plugins/modules/lifecycle_environment.py | 2 +- plugins/modules/location.py | 8 ++++---- plugins/modules/operatingsystem.py | 6 +++--- plugins/modules/organization.py | 2 +- plugins/modules/os_default_template.py | 4 ++-- plugins/modules/partition_table.py | 16 ++++++++-------- plugins/modules/product.py | 4 ++-- plugins/modules/provisioning_template.py | 16 ++++++++-------- plugins/modules/puppet_environment.py | 2 +- plugins/modules/realm.py | 2 +- plugins/modules/redhat_manifest.py | 6 +++--- plugins/modules/repository.py | 4 ++-- plugins/modules/repository_set.py | 18 +++++++++--------- plugins/modules/repository_sync.py | 2 +- plugins/modules/resource_info.py | 10 +++++----- plugins/modules/role.py | 2 +- plugins/modules/scap_content.py | 6 +++--- plugins/modules/scap_tailoring_file.py | 6 +++--- plugins/modules/scc_account.py | 6 +++--- plugins/modules/scc_product.py | 2 +- plugins/modules/setting.py | 4 ++-- plugins/modules/smart_class_parameter.py | 4 ++-- plugins/modules/snapshot.py | 8 ++++---- plugins/modules/subnet.py | 2 +- plugins/modules/subscription_manifest.py | 2 +- plugins/modules/sync_plan.py | 2 +- plugins/modules/templates_import.py | 2 +- plugins/modules/user.py | 6 +++--- plugins/modules/usergroup.py | 2 +- 53 files changed, 145 insertions(+), 145 deletions(-) diff --git a/plugins/modules/activation_key.py b/plugins/modules/activation_key.py index ca0c4329..1ba796e5 100644 --- a/plugins/modules/activation_key.py +++ b/plugins/modules/activation_key.py @@ -145,7 +145,7 @@ EXAMPLES = ''' - name: "Create client activation key" - activation_key: + theforeman.foreman.activation_key: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/architecture.py b/plugins/modules/architecture.py index d166db23..acf83370 100644 --- a/plugins/modules/architecture.py +++ b/plugins/modules/architecture.py @@ -47,7 +47,7 @@ EXAMPLES = ''' - name: "Create an Architecture" - architecture: + theforeman.foreman.architecture: name: "i386" operatingsystems: - "TestOS1" @@ -58,7 +58,7 @@ state: present - name: "Update an Architecture" - architecture: + theforeman.foreman.architecture: name: "i386" operatingsystems: - "TestOS3" @@ -69,7 +69,7 @@ state: present - name: "Delete an Architecture" - architecture: + theforeman.foreman.architecture: name: "i386" server_url: "https://foreman.example.com" username: "admin" diff --git a/plugins/modules/auth_source_ldap.py b/plugins/modules/auth_source_ldap.py index d10ed587..6f7a6082 100644 --- a/plugins/modules/auth_source_ldap.py +++ b/plugins/modules/auth_source_ldap.py @@ -121,7 +121,7 @@ EXAMPLES = ''' - name: LDAP Authentication source - auth_source_ldap: + theforeman.foreman.auth_source_ldap: name: "Example LDAP" host: "ldap.example.org" server_url: "https://foreman.example.com" @@ -134,7 +134,7 @@ state: present - name: LDAP Authentication with automatic registration - auth_source_ldap: + theforeman.foreman.auth_source_ldap: name: "Example LDAP" host: "ldap.example.org" onthefly_register: True diff --git a/plugins/modules/bookmark.py b/plugins/modules/bookmark.py index 626f5a2c..6615d866 100644 --- a/plugins/modules/bookmark.py +++ b/plugins/modules/bookmark.py @@ -56,7 +56,7 @@ EXAMPLES = ''' - name: "Create a Bookmark" - bookmark: + theforeman.foreman.bookmark: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -66,7 +66,7 @@ state: present_with_defaults - name: "Update a Bookmark" - bookmark: + theforeman.foreman.bookmark: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -76,7 +76,7 @@ state: present - name: "Delete a Bookmark" - bookmark: + theforeman.foreman.bookmark: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/compute_attribute.py b/plugins/modules/compute_attribute.py index 802e0f92..718dcfc1 100644 --- a/plugins/modules/compute_attribute.py +++ b/plugins/modules/compute_attribute.py @@ -53,7 +53,7 @@ EXAMPLES = ''' - name: "Create compute attribute" - compute_attribute: + theforeman.foreman.compute_attribute: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -65,7 +65,7 @@ state: present - name: "Update compute attribute" - compute_attribute: + theforeman.foreman.compute_attribute: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/compute_profile.py b/plugins/modules/compute_profile.py index 5b3a4d5b..e2d12918 100644 --- a/plugins/modules/compute_profile.py +++ b/plugins/modules/compute_profile.py @@ -61,7 +61,7 @@ EXAMPLES = ''' - name: compute profile - compute_profile: + theforeman.foreman.compute_profile: name: example_compute_profile server_url: "https://foreman.example.com" username: admin @@ -69,7 +69,7 @@ state: present - name: another compute profile - compute_profile: + theforeman.foreman.compute_profile: name: another_example_compute_profile compute_attributes: - compute_resource: ovirt_compute_resource1 @@ -83,7 +83,7 @@ state: present - name: compute profile2 - compute_profile: + theforeman.foreman.compute_profile: name: example_compute_profile2 compute_attributes: - compute_resource: ovirt_compute_resource01 @@ -127,7 +127,7 @@ state: present - name: Remove compute profile - compute_profile: + theforeman.foreman.compute_profile: name: example_compute_profile2 server_url: "https://foreman.example.com" username: admin diff --git a/plugins/modules/compute_resource.py b/plugins/modules/compute_resource.py index 8d4f830a..33e30e9b 100644 --- a/plugins/modules/compute_resource.py +++ b/plugins/modules/compute_resource.py @@ -123,7 +123,7 @@ EXAMPLES = ''' - name: Create livirt compute resource - compute_resource: + theforeman.foreman.compute_resource: name: example_compute_resource locations: - Munich @@ -139,7 +139,7 @@ state: present - name: Update libvirt compute resource - compute_resource: + theforeman.foreman.compute_resource: name: example_compute_resource description: updated compute resource locations: @@ -156,7 +156,7 @@ state: present - name: Delete libvirt compute resource - compute_resource: + theforeman.foreman.compute_resource: name: example_compute_resource server_url: "https://foreman.example.com" username: admin @@ -164,7 +164,7 @@ state: absent - name: Create vmware compute resource - compute_resource: + theforeman.foreman.compute_resource: name: example_compute_resource locations: - Munich @@ -182,7 +182,7 @@ state: present - name: Create ovirt compute resource - compute_resource: + theforeman.foreman.compute_resource: name: ovirt_compute_resource locations: - France/Toulouse @@ -202,7 +202,7 @@ state: present - name: Create proxmox compute resource - compute_resource: + theforeman.foreman.compute_resource: name: proxmox_compute_resource locations: - Munich @@ -220,7 +220,7 @@ state: present - name: create EC2 compute resource - compute_resource: + theforeman.foreman.compute_resource: name: EC2_compute_resource description: EC2 locations: @@ -238,7 +238,7 @@ state: present - name: create Azure compute resource - compute_resource: + theforeman.foreman.compute_resource: name: AzureRm_compute_resource description: AzureRm locations: @@ -258,7 +258,7 @@ state: present - name: create GCE compute resource - compute_resource: + theforeman.foreman.compute_resource: name: GCE compute resource description: Google Cloud Engine locations: diff --git a/plugins/modules/config_group.py b/plugins/modules/config_group.py index 743ff47e..cb105b21 100644 --- a/plugins/modules/config_group.py +++ b/plugins/modules/config_group.py @@ -47,7 +47,7 @@ EXAMPLES = ''' - name: create new config group - config_group: + theforeman.foreman.config_group: name: "My config group" puppetclasses: - ntp diff --git a/plugins/modules/content_credential.py b/plugins/modules/content_credential.py index 6c9db58a..35ee570e 100644 --- a/plugins/modules/content_credential.py +++ b/plugins/modules/content_credential.py @@ -53,7 +53,7 @@ EXAMPLES = ''' - name: "Create katello client GPG key" - content_credential: + theforeman.foreman.content_credential: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/content_upload.py b/plugins/modules/content_upload.py index 948e8127..a475d69a 100644 --- a/plugins/modules/content_upload.py +++ b/plugins/modules/content_upload.py @@ -58,7 +58,7 @@ EXAMPLES = ''' - name: "Upload my.rpm" - content_upload: + theforeman.foreman.content_upload: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/content_view.py b/plugins/modules/content_view.py index c17ec9aa..96ff36e5 100644 --- a/plugins/modules/content_view.py +++ b/plugins/modules/content_view.py @@ -99,7 +99,7 @@ EXAMPLES = ''' - name: "Create or update Fedora content view" - content_view: + theforeman.foreman.content_view: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -110,7 +110,7 @@ product: 'Fedora' - name: "Create a composite content view" - content_view: + theforeman.foreman.content_view: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/content_view_filter.py b/plugins/modules/content_view_filter.py index 05ff84b1..d845d1ab 100644 --- a/plugins/modules/content_view_filter.py +++ b/plugins/modules/content_view_filter.py @@ -142,7 +142,7 @@ EXAMPLES = ''' - name: Exclude csh - content_view_filter: + theforeman.foreman.content_view_filter: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -153,7 +153,7 @@ package_name: tcsh - name: Include newer csh versions - content_view_filter: + theforeman.foreman.content_view_filter: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/content_view_version.py b/plugins/modules/content_view_version.py index d5618522..a0b69c0d 100644 --- a/plugins/modules/content_view_version.py +++ b/plugins/modules/content_view_version.py @@ -73,7 +73,7 @@ EXAMPLES = ''' - name: "Ensure content view version 2.0 is in Test & Pre Prod" - content_view_version: + theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -85,7 +85,7 @@ - Pre Prod - name: "Ensure content view version in Test is also in Pre Prod" - content_view_version: + theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -96,7 +96,7 @@ - Pre Prod - name: "Publish a content view, not idempotent" - content_view_version: + theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -104,7 +104,7 @@ organization: "Default Organization" - name: "Publish a content view and promote that version to Library & Dev, not idempotent" - content_view_version: + theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -115,7 +115,7 @@ - Dev - name: "Ensure content view version 1.0 doesn't exist" - content_view_version: + theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/domain.py b/plugins/modules/domain.py index bc60ccfe..18d56f83 100644 --- a/plugins/modules/domain.py +++ b/plugins/modules/domain.py @@ -59,7 +59,7 @@ EXAMPLES = ''' - name: domain - domain: + theforeman.foreman.domain: name: "example.org" description: "Example Domain" locations: diff --git a/plugins/modules/external_usergroup.py b/plugins/modules/external_usergroup.py index e15a9985..92e96576 100644 --- a/plugins/modules/external_usergroup.py +++ b/plugins/modules/external_usergroup.py @@ -50,7 +50,7 @@ EXAMPLES = ''' - name: Create an external user group - external_usergroup: + theforeman.foreman.external_usergroup: name: test auth_source_ldap: "My LDAP server" usergroup: "Internal Usergroup" diff --git a/plugins/modules/global_parameter.py b/plugins/modules/global_parameter.py index 4b140185..ea3b8679 100644 --- a/plugins/modules/global_parameter.py +++ b/plugins/modules/global_parameter.py @@ -67,7 +67,7 @@ EXAMPLES = ''' - name: "Create a Global Parameter" - global_parameter: + theforeman.foreman.global_parameter: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -76,7 +76,7 @@ state: present_with_defaults - name: "Update a Global Parameter" - global_parameter: + theforeman.foreman.global_parameter: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -85,7 +85,7 @@ state: present - name: "Delete a Global Parameter" - global_parameter: + theforeman.foreman.global_parameter: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/hardware_model.py b/plugins/modules/hardware_model.py index 083353a9..47996a3d 100644 --- a/plugins/modules/hardware_model.py +++ b/plugins/modules/hardware_model.py @@ -54,7 +54,7 @@ EXAMPLES = ''' - name: "Create ACME Laptop model" - hardware_model: + theforeman.foreman.hardware_model: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/host.py b/plugins/modules/host.py index 174fc51e..67dacd7f 100644 --- a/plugins/modules/host.py +++ b/plugins/modules/host.py @@ -117,7 +117,7 @@ EXAMPLES = ''' - name: "Create a host" - host: + theforeman.foreman.host: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -126,7 +126,7 @@ state: present - name: "Create a host with build context" - host: + theforeman.foreman.host: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -136,7 +136,7 @@ state: present - name: "Create an unmanaged host" - host: + theforeman.foreman.host: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -145,7 +145,7 @@ state: present - name: "Delete a host" - host: + theforeman.foreman.host: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/host_collection.py b/plugins/modules/host_collection.py index cc2f19f1..65484989 100644 --- a/plugins/modules/host_collection.py +++ b/plugins/modules/host_collection.py @@ -51,7 +51,7 @@ EXAMPLES = ''' - name: "Create Foo host collection" - host_collection: + theforeman.foreman.host_collection: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/host_power.py b/plugins/modules/host_power.py index b61aa3d4..aa58674c 100644 --- a/plugins/modules/host_power.py +++ b/plugins/modules/host_power.py @@ -57,7 +57,7 @@ EXAMPLES = ''' - name: "Switch a host on" - host_power: + theforeman.foreman.host_power: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -65,7 +65,7 @@ state: on - name: "Switch a host off" - host_power: + theforeman.foreman.host_power: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -73,7 +73,7 @@ state: off - name: "Query host power state" - host_power: + theforeman.foreman.host_power: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/hostgroup.py b/plugins/modules/hostgroup.py index 349cf004..eb13bf9e 100644 --- a/plugins/modules/hostgroup.py +++ b/plugins/modules/hostgroup.py @@ -64,7 +64,7 @@ EXAMPLES = ''' - name: "Create a Hostgroup" - hostgroup: + theforeman.foreman.hostgroup: name: "new_hostgroup" architecture: "architecture_name" operatingsystem: "operatingsystem_name" @@ -76,7 +76,7 @@ state: present - name: "Update a Hostgroup" - hostgroup: + theforeman.foreman.hostgroup: name: "new_hostgroup" architecture: "updated_architecture_name" operatingsystem: "updated_operatingsystem_name" @@ -96,12 +96,12 @@ state: present - name: "My nested hostgroup" - hostgroup: + theforeman.foreman.hostgroup: parent: "new_hostgroup" name: "my nested hostgroup" - name: "My hostgroup with some proxies" - hostgroup: + theforeman.foreman.hostgroup: name: "my hostgroup" environment: production puppet_proxy: puppet-proxy.example.com @@ -109,7 +109,7 @@ openscap_proxy: openscap-proxy.example.com - name: "My katello related hostgroup" - hostgroup: + theforeman.foreman.hostgroup: organization: "My Org" name: "kt hostgroup" content_source: capsule.example.com @@ -120,7 +120,7 @@ value: "my_prod_ak" - name: "Delete a Hostgroup" - hostgroup: + theforeman.foreman.hostgroup: name: "new_hostgroup" server_url: "https://foreman.example.com" username: "admin" diff --git a/plugins/modules/http_proxy.py b/plugins/modules/http_proxy.py index 52403863..c1992108 100644 --- a/plugins/modules/http_proxy.py +++ b/plugins/modules/http_proxy.py @@ -58,7 +58,7 @@ EXAMPLES = ''' - name: create example.org proxy - http_proxy: + theforeman.foreman.http_proxy: name: "example.org" url: "http://example.org:3128" locations: diff --git a/plugins/modules/installation_medium.py b/plugins/modules/installation_medium.py index a502c256..5ef44654 100644 --- a/plugins/modules/installation_medium.py +++ b/plugins/modules/installation_medium.py @@ -58,7 +58,7 @@ EXAMPLES = ''' - name: create new debian medium - installation_medium: + theforeman.foreman.installation_medium: name: "wheezy" locations: - "Munich" diff --git a/plugins/modules/job_template.py b/plugins/modules/job_template.py index 2cb5e41a..0db17e21 100644 --- a/plugins/modules/job_template.py +++ b/plugins/modules/job_template.py @@ -148,7 +148,7 @@ EXAMPLES = ''' - name: "Create a Job Template inline" - job_template: + theforeman.foreman.job_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -168,7 +168,7 @@ - TARDIS INC - name: "Create a Job Template from a file" - job_template: + theforeman.foreman.job_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -184,7 +184,7 @@ - TARDIS INC - name: "remove a job template's template inputs" - job_template: + theforeman.foreman.job_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -197,7 +197,7 @@ - TARDIS INC - name: "Delete a Job Template" - job_template: + theforeman.foreman.job_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -205,7 +205,7 @@ state: absent - name: "Create a Job Template from a file and modify with parameter(s)" - job_template: + theforeman.foreman.job_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -220,7 +220,7 @@ # Providing a name in this case wouldn't be very sensible. # Alternatively make use of with_filetree to parse recursively with filter. - name: Parsing a directory of Job templates - job_template: + theforeman.foreman.job_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -235,7 +235,7 @@ # If the templates are stored locally and the ansible module is executed on a remote host - name: Ensure latest version of all your Job Templates - job_template: + theforeman.foreman.job_template: server_url: "https://foreman.example.com" username: "admin" password: "changeme" @@ -247,7 +247,7 @@ # with name set to "*" bulk actions can be performed - name: "Delete *ALL* Job Templates" - job_template: + theforeman.foreman.job_template: username: "admin" password: "admin" server_url: "https://foreman.example.com" @@ -255,7 +255,7 @@ state: absent - name: "Assign all Job Templates to the same organization(s)" - job_template: + theforeman.foreman.job_template: username: "admin" password: "admin" server_url: "https://foreman.example.com" diff --git a/plugins/modules/lifecycle_environment.py b/plugins/modules/lifecycle_environment.py index 5aeca859..aac075e3 100644 --- a/plugins/modules/lifecycle_environment.py +++ b/plugins/modules/lifecycle_environment.py @@ -55,7 +55,7 @@ EXAMPLES = ''' - name: "Add a production lifecycle environment" - lifecycle_environment: + theforeman.foreman.lifecycle_environment: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/location.py b/plugins/modules/location.py index fac4b4e1..06f6c783 100644 --- a/plugins/modules/location.py +++ b/plugins/modules/location.py @@ -51,7 +51,7 @@ EXAMPLES = ''' # Create a simple location - name: "Create CI Location" - location: + theforeman.foreman.location: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -62,7 +62,7 @@ # Create a nested location - name: "Create Nested CI Location" - location: + theforeman.foreman.location: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -72,7 +72,7 @@ # Create a new nested location with parent included in name - name: "Create New Nested Location" - location: + theforeman.foreman.location: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -81,7 +81,7 @@ # Move a nested location to another parent - name: "Create Nested CI Location" - location: + theforeman.foreman.location: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/operatingsystem.py b/plugins/modules/operatingsystem.py index 363f8a00..d7d27232 100644 --- a/plugins/modules/operatingsystem.py +++ b/plugins/modules/operatingsystem.py @@ -113,7 +113,7 @@ EXAMPLES = ''' - name: "Create an Operating System" - operatingsystem: + theforeman.foreman.operatingsystem: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -127,7 +127,7 @@ state: present - name: "Ensure existence of an Operating System (provide default values)" - operatingsystem: + theforeman.foreman.operatingsystem: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -138,7 +138,7 @@ state: present_with_defaults - name: "Delete an Operating System" - operatingsystem: + theforeman.foreman.operatingsystem: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/organization.py b/plugins/modules/organization.py index 215fc9ec..e3c626ca 100644 --- a/plugins/modules/organization.py +++ b/plugins/modules/organization.py @@ -52,7 +52,7 @@ EXAMPLES = ''' - name: "Create CI Organization" - organization: + theforeman.foreman.organization: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/os_default_template.py b/plugins/modules/os_default_template.py index 4a4be751..2ac85dd9 100644 --- a/plugins/modules/os_default_template.py +++ b/plugins/modules/os_default_template.py @@ -50,7 +50,7 @@ EXAMPLES = ''' - name: "Create an Association" - os_default_template: + theforeman.foreman.os_default_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -60,7 +60,7 @@ state: present - name: "Delete an Association" - os_default_template: + theforeman.foreman.os_default_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/partition_table.py b/plugins/modules/partition_table.py index 7649c091..5392c782 100644 --- a/plugins/modules/partition_table.py +++ b/plugins/modules/partition_table.py @@ -71,7 +71,7 @@ # Keep in mind, that in this case, the inline parameters will be overwritten - name: "Create a Partition Table inline" - partition_table: + theforeman.foreman.partition_table: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -90,7 +90,7 @@ - TARDIS INC - name: "Create a Partition Template from a file" - partition_table: + theforeman.foreman.partition_table: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -102,7 +102,7 @@ - TARDIS INC - name: "Delete a Partition Template" - partition_table: + theforeman.foreman.partition_table: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -114,7 +114,7 @@ state: absent - name: "Create a Partition Template from a file and modify with parameter(s)" - partition_table: + theforeman.foreman.partition_table: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -129,7 +129,7 @@ # Providing a name in this case wouldn't be very sensible. # Alternatively make use of with_filetree to parse recursively with filter. - name: "Parsing a directory of partition templates" - partition_table: + theforeman.foreman.partition_table: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -144,7 +144,7 @@ # If the templates are stored locally and the ansible module is executed on a remote host - name: Ensure latest version of all Ptable Community Templates - partition_table: + theforeman.foreman.partition_table: server_url: "https://foreman.example.com" username: "admin" password: "changeme" @@ -156,7 +156,7 @@ # with name set to "*" bulk actions can be performed - name: "Delete *ALL* partition tables" - partition_table: + theforeman.foreman.partition_table: username: "admin" password: "admin" server_url: "https://foreman.example.com" @@ -164,7 +164,7 @@ state: absent - name: "Assign all partition tables to the same organization(s)" - partition_table: + theforeman.foreman.partition_table: username: "admin" password: "admin" server_url: "https://foreman.example.com" diff --git a/plugins/modules/product.py b/plugins/modules/product.py index 0dcb19bc..a01075e4 100644 --- a/plugins/modules/product.py +++ b/plugins/modules/product.py @@ -77,7 +77,7 @@ EXAMPLES = ''' - name: "Create Fedora product with a sync plan" - product: + theforeman.foreman.product: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -87,7 +87,7 @@ state: present - name: "Create CentOS 7 product with content credentials" - product: + theforeman.foreman.product: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/provisioning_template.py b/plugins/modules/provisioning_template.py index bcccb0ed..c58ed38f 100644 --- a/plugins/modules/provisioning_template.py +++ b/plugins/modules/provisioning_template.py @@ -95,7 +95,7 @@ # Keep in mind, that in this case, the inline parameters will be overwritten - name: "Create a Provisioning Template inline" - provisioning_template: + theforeman.foreman.provisioning_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -115,7 +115,7 @@ - TARDIS INC - name: "Create a Provisioning Template from a file" - provisioning_template: + theforeman.foreman.provisioning_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -129,7 +129,7 @@ # Due to the module logic, deleting requires a template dummy, # either inline or from a file. - name: "Delete a Provisioning Template" - provisioning_template: + theforeman.foreman.provisioning_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -141,7 +141,7 @@ state: absent - name: "Create a Provisioning Template from a file and modify with parameter" - provisioning_template: + theforeman.foreman.provisioning_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -156,7 +156,7 @@ # Providing a name in this case wouldn't be very sensible. # Alternatively make use of with_filetree to parse recursively with filter. - name: "Parsing a directory of provisioning templates" - provisioning_template: + theforeman.foreman.provisioning_template: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -171,7 +171,7 @@ # If the templates are stored locally and the ansible module is executed on a remote host - name: Ensure latest version of all Provisioning Community Templates - provisioning_template: + theforeman.foreman.provisioning_template: server_url: "https://foreman.example.com" username: "admin" password: "changeme" @@ -183,7 +183,7 @@ # with name set to "*" bulk actions can be performed - name: "Delete *ALL* provisioning templates" - provisioning_template: + theforeman.foreman.provisioning_template: username: "admin" password: "admin" server_url: "https://foreman.example.com" @@ -191,7 +191,7 @@ state: absent - name: "Assign all provisioning templates to the same organization(s)" - provisioning_template: + theforeman.foreman.provisioning_template: username: "admin" password: "admin" server_url: "https://foreman.example.com" diff --git a/plugins/modules/puppet_environment.py b/plugins/modules/puppet_environment.py index 1b8f53b3..7f38cfda 100644 --- a/plugins/modules/puppet_environment.py +++ b/plugins/modules/puppet_environment.py @@ -42,7 +42,7 @@ EXAMPLES = ''' - name: create new environment - puppet_environment: + theforeman.foreman.puppet_environment: name: "testing" locations: - "Munich" diff --git a/plugins/modules/realm.py b/plugins/modules/realm.py index 25b319da..3a72888e 100644 --- a/plugins/modules/realm.py +++ b/plugins/modules/realm.py @@ -55,7 +55,7 @@ EXAMPLES = ''' - name: "Create EXAMPLE.LOCAL Realm" - realm: + theforeman.foreman.realm: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/redhat_manifest.py b/plugins/modules/redhat_manifest.py index 7c0bae98..a4c09723 100644 --- a/plugins/modules/redhat_manifest.py +++ b/plugins/modules/redhat_manifest.py @@ -88,7 +88,7 @@ EXAMPLES = ''' - name: Create foreman.example.com Manifest and add 7 sub - redhat_manifest: + theforeman.foreman.redhat_manifest: name: "foreman.example.com" username: "john-smith" password: "changeme" @@ -96,7 +96,7 @@ quantity: 7 - name: Ensure my manifest has 10 of one subs in it and export - redhat_manifest: + theforeman.foreman.redhat_manifest: uuid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX username: john-smith password: changeme @@ -105,7 +105,7 @@ path: /root/manifest.zip - name: Remove all of one subs from foreman.example.com - redhat_manifest: + theforeman.foreman.redhat_manifest: name: foreman.example.com username: john-smith password: changeme diff --git a/plugins/modules/repository.py b/plugins/modules/repository.py index 0baff2fd..1a10613c 100644 --- a/plugins/modules/repository.py +++ b/plugins/modules/repository.py @@ -164,7 +164,7 @@ EXAMPLES = ''' - name: "Create repository" - repository: + theforeman.foreman.repository: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -178,7 +178,7 @@ download_policy: background - name: "Create repository with content credentials" - repository: + theforeman.foreman.repository: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/repository_set.py b/plugins/modules/repository_set.py index cbc1e6e3..9f35dbf4 100644 --- a/plugins/modules/repository_set.py +++ b/plugins/modules/repository_set.py @@ -82,7 +82,7 @@ EXAMPLES = ''' - name: "Enable RHEL 7 RPMs repositories" - repository_set: + theforeman.foreman.repository_set: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -101,7 +101,7 @@ state: enabled - name: "Enable RHEL 7 RPMs repositories with label" - repository_set: + theforeman.foreman.repository_set: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -119,7 +119,7 @@ state: enabled - name: "Disable RHEL 7 Extras RPMs repository" - repository_set: + theforeman.foreman.repository_set: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -131,7 +131,7 @@ - basearch: x86_64 - name: "Enable RHEL 8 BaseOS RPMs repository with label" - repository_set: + theforeman.foreman.repository_set: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -141,7 +141,7 @@ - releasever: "8" - name: "Enable Red Hat Virtualization Manager RPMs repository with label" - repository_set: + theforeman.foreman.repository_set: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -152,7 +152,7 @@ state: enabled - name: "Enable Red Hat Virtualization Manager RPMs repository without specifying basearch" - repository_set: + theforeman.foreman.repository_set: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -162,7 +162,7 @@ state: enabled - name: "Search for possible repository sets of a product" - resource_info: + theforeman.foreman.resource_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -175,7 +175,7 @@ var: data - name: "Search for possible repository sets by label" - resource_info: + theforeman.foreman.resource_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -188,7 +188,7 @@ var: data - name: Enable set with and without all_repositories at the same time - repository_set: + theforeman.foreman.repository_set: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/repository_sync.py b/plugins/modules/repository_sync.py index 133a2990..51241b98 100644 --- a/plugins/modules/repository_sync.py +++ b/plugins/modules/repository_sync.py @@ -47,7 +47,7 @@ EXAMPLES = ''' - name: "Sync repository" - repository_sync: + theforeman.foreman.repository_sync: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/resource_info.py b/plugins/modules/resource_info.py index 9fd9dedc..5f53bbd6 100644 --- a/plugins/modules/resource_info.py +++ b/plugins/modules/resource_info.py @@ -62,7 +62,7 @@ EXAMPLES = ''' - name: "Read a Setting" - resource_info: + theforeman.foreman.resource_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -73,7 +73,7 @@ var: result.resources[0].value - name: "Read all Registries" - resource_info: + theforeman.foreman.resource_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -84,7 +84,7 @@ with_items: "{{ result.resources }}" - name: "Read all Organizations with full details" - resource_info: + theforeman.foreman.resource_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -95,7 +95,7 @@ var: result.resources - name: Get all existing subscriptions for organization with id 1 - resource_info: + theforeman.foreman.resource_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -107,7 +107,7 @@ var: result - name: Get all existing activation keys for organization ACME - resource_info: + theforeman.foreman.resource_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/role.py b/plugins/modules/role.py index 8bd716de..4cbe79c0 100644 --- a/plugins/modules/role.py +++ b/plugins/modules/role.py @@ -59,7 +59,7 @@ EXAMPLES = ''' - name: role - role: + theforeman.foreman.role: name: "Provisioner" description: "Only provision on libvirt" locations: diff --git a/plugins/modules/scap_content.py b/plugins/modules/scap_content.py index 54d234cd..fd93179c 100644 --- a/plugins/modules/scap_content.py +++ b/plugins/modules/scap_content.py @@ -47,7 +47,7 @@ EXAMPLES = ''' - name: Create SCAP content - scap_content: + theforeman.foreman.scap_content: title: "Red Hat firefox default content" scap_file: "/home/user/Downloads/ssg-firefox-ds.xml" original_filename: "ssg-firefox-ds.xml" @@ -61,7 +61,7 @@ state: present - name: Update SCAP content - scap_content: + theforeman.foreman.scap_content: title: "Red Hat firefox default content" updated_title: "Updated scap content title" scap_file: "/home/user/Downloads/updated-ssg-firefox-ds.xml" @@ -78,7 +78,7 @@ state: present - name: Delete SCAP content - scap_content: + theforeman.foreman.scap_content: title: "Red Hat firefox default content" server_url: "https://foreman.example.com" username: "admin" diff --git a/plugins/modules/scap_tailoring_file.py b/plugins/modules/scap_tailoring_file.py index 5149aa71..aa238085 100644 --- a/plugins/modules/scap_tailoring_file.py +++ b/plugins/modules/scap_tailoring_file.py @@ -47,7 +47,7 @@ EXAMPLES = ''' - name: Create SCAP tailoring file - scap_tailoring_file: + theforeman.foreman.scap_tailoring_file: name: "Red Hat firefox default content" scap_file: "/home/user/Downloads/ssg-firefox-ds-tailoring.xml" original_filename: "ssg-firefox-ds-tailoring.xml" @@ -61,7 +61,7 @@ state: present - name: Update SCAP tailoring file - scap_tailoring_file: + theforeman.foreman.scap_tailoring_file: name: "Red Hat firefox default content" updated_name: "Updated tailoring file name" scap_file: "/home/user/Downloads/updated-ssg-firefox-ds-tailoring.xml" @@ -78,7 +78,7 @@ state: present - name: Delete SCAP tailoring file - scap_tailoring_file: + theforeman.foreman.scap_tailoring_file: name: "Red Hat firefox default content" server_url: "https://foreman.example.com" username: "admin" diff --git a/plugins/modules/scc_account.py b/plugins/modules/scc_account.py index b117e2c6..af32d468 100644 --- a/plugins/modules/scc_account.py +++ b/plugins/modules/scc_account.py @@ -79,7 +79,7 @@ EXAMPLES = ''' - name: "Create a suse customer center account" - scc_account: + theforeman.foreman.scc_account: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -90,7 +90,7 @@ state: present - name: "Update a suse customer center account" - scc_account: + theforeman.foreman.scc_account: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -98,7 +98,7 @@ state: present - name: "Delete a suse customer center account" - scc_account: + theforeman.foreman.scc_account: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/scc_product.py b/plugins/modules/scc_product.py index 40bcd610..4c3771f6 100644 --- a/plugins/modules/scc_product.py +++ b/plugins/modules/scc_product.py @@ -47,7 +47,7 @@ EXAMPLES = ''' - name: "Subscribe to suse customer center product" - scc_product: + theforeman.foreman.scc_product: friendly_name: "Product1" scc_account: "Test" organization: "Test Organization" diff --git a/plugins/modules/setting.py b/plugins/modules/setting.py index 479ed221..4c1c3dd4 100644 --- a/plugins/modules/setting.py +++ b/plugins/modules/setting.py @@ -45,7 +45,7 @@ EXAMPLES = ''' - name: "Set a Setting" - setting: + theforeman.foreman.setting: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -53,7 +53,7 @@ value: "http://localhost:8088" - name: "Reset a Setting" - setting: + theforeman.foreman.setting: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/smart_class_parameter.py b/plugins/modules/smart_class_parameter.py index 967eb790..44f28b58 100644 --- a/plugins/modules/smart_class_parameter.py +++ b/plugins/modules/smart_class_parameter.py @@ -121,7 +121,7 @@ EXAMPLES = ''' - name: "Update prometheus::server alertmanagers_config param default value" - smart_class_parameter: + theforeman.foreman.smart_class_parameter: puppetclass_name: "prometheus::server" parameter: alertmanagers_config override: true @@ -133,7 +133,7 @@ state: present - name: "Update prometheus::server alertmanagers_config param default value" - smart_class_parameter: + theforeman.foreman.smart_class_parameter: puppetclass_name: "prometheus::server" parameter: alertmanagers_config override: true diff --git a/plugins/modules/snapshot.py b/plugins/modules/snapshot.py index 4fe8f08e..f525cd38 100644 --- a/plugins/modules/snapshot.py +++ b/plugins/modules/snapshot.py @@ -58,7 +58,7 @@ EXAMPLES = ''' - name: "Create a Snapshot" - snapshot: + theforeman.foreman.snapshot: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -67,7 +67,7 @@ state: present - name: "Update a Snapshot" - snapshot: + theforeman.foreman.snapshot: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -77,7 +77,7 @@ state: present - name: "Revert a Snapshot" - snapshot: + theforeman.foreman.snapshot: username: "admin" password: "changeme" server_url: "https://foreman.example.com" @@ -86,7 +86,7 @@ state: reverted - name: "Delete a Snapshot" - snapshot: + theforeman.foreman.snapshot: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index 82d27ca7..1e0ea81a 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -150,7 +150,7 @@ EXAMPLES = ''' - name: My subnet - subnet: + theforeman.foreman.subnet: name: "My subnet" description: "My description" network: "192.168.0.0" diff --git a/plugins/modules/subscription_manifest.py b/plugins/modules/subscription_manifest.py index 32f99ebd..3a53a905 100644 --- a/plugins/modules/subscription_manifest.py +++ b/plugins/modules/subscription_manifest.py @@ -53,7 +53,7 @@ EXAMPLES = ''' - name: "Upload the RHEL developer edition manifest" - subscription_manifest: + theforeman.foreman.subscription_manifest: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/sync_plan.py b/plugins/modules/sync_plan.py index 03935750..fffdb6b2 100644 --- a/plugins/modules/sync_plan.py +++ b/plugins/modules/sync_plan.py @@ -78,7 +78,7 @@ EXAMPLES = ''' - name: "Create or update weekly RHEL sync plan" - sync_plan: + theforeman.foreman.sync_plan: username: "admin" password: "changeme" server_url: "https://foreman.example.com" diff --git a/plugins/modules/templates_import.py b/plugins/modules/templates_import.py index 053bfdf2..03763f0d 100644 --- a/plugins/modules/templates_import.py +++ b/plugins/modules/templates_import.py @@ -96,7 +96,7 @@ EXAMPLES = ''' - name: Sync templates from git repo - templates_import: + theforeman.foreman.templates_import: repo: https://github.com/theforeman/community-templates.git branch: 1.24-stable associate: new diff --git a/plugins/modules/user.py b/plugins/modules/user.py index 2325057a..da9c755a 100644 --- a/plugins/modules/user.py +++ b/plugins/modules/user.py @@ -277,7 +277,7 @@ EXAMPLES = ''' - name: Create a user - user: + theforeman.foreman.user: name: test firstname: Test lastname: Userson @@ -299,13 +299,13 @@ state: present - name: Update a user - user: + theforeman.foreman.user: name: test firstname: Tester state: present - name: Change password - user: + theforeman.foreman.user: name: test user_password: newp@ss diff --git a/plugins/modules/usergroup.py b/plugins/modules/usergroup.py index 1552c419..680d3e47 100644 --- a/plugins/modules/usergroup.py +++ b/plugins/modules/usergroup.py @@ -69,7 +69,7 @@ EXAMPLES = ''' - name: Create a user group - usergroup: + theforeman.foreman.usergroup: name: test admin: no roles: From e06dc02c648f9d664157fd9a303029834f583d30 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 11 Aug 2020 14:12:34 +0200 Subject: [PATCH 55/88] upload docs artifact so the built docs can be reviewed --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index baf16e35..016ed32a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -105,8 +105,13 @@ jobs: python-version: "3.7" - name: Install dependencies run: make doc-setup - - name: Run tests + - name: Build docs run: make doc + - name: Upload docs artifact + uses: actions/upload-artifact@v2 + with: + name: docs-html + path: docs/_build/html/ lint: runs-on: ubuntu-latest From 5d32824cb2cd54db13391028f5e811e1e126cf9a Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 11 Aug 2020 20:13:41 +0200 Subject: [PATCH 56/88] upload collection artifact --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 016ed32a..62e7b960 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -125,3 +125,8 @@ jobs: run: pip install flake8 yamllint - name: Run lint run: make lint + - name: Upload collection artifact + uses: actions/upload-artifact@v2 + with: + name: collection + path: theforeman-foreman-*.tar.gz From 5ecdb051f9c79f7a8798aa80bbd56c4951744844 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 12 Aug 2020 13:34:10 +0200 Subject: [PATCH 57/88] install libyaml-dev so that pyyaml can link to it fixes the following warning during sanity: WARNING: Skipping sanity test 'yamllint' due to missing libyaml support in PyYAML. --- .github/workflows/main.yml | 2 ++ requirements-dev.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 62e7b960..110c92eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,6 +55,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} + - name: Install libyaml-dev for PyYAML + run: sudo apt-get install -y libyaml-dev - name: Install Ansible run: pip install git+https://github.com/ansible/ansible.git@${{ matrix.ansible }} - name: Set Environment to use mazer diff --git a/requirements-dev.txt b/requirements-dev.txt index 5ab6d9de..16265c26 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,4 +8,5 @@ rpm-py-installer docker -r requirements.txt -r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.pylint.txt +-r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.yamllint.txt -r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.validate-modules.txt From 3ff8873b80438f2079eae16ed24647095b339a49 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 11 Aug 2020 15:42:50 +0200 Subject: [PATCH 58/88] add changelog --- CHANGELOG.rst | 39 +++++++++++++++++++ Makefile | 2 +- changelogs/changelog.yaml | 24 ++++++++++++ changelogs/config.yaml | 31 +++++++++++++++ changelogs/fragments/.git-keep | 0 .../836-add-reporter-to-callback.yaml | 2 + .../865-limit-inventory-per-host.yaml | 2 + .../fragments/867-add_http_proxy_module.yaml | 2 + changelogs/fragments/878-cidr-only-v4.yaml | 2 + .../fragments/901-document-return-values.yaml | 2 + docs/CHANGELOG.rst | 1 + docs/index.rst | 1 + docs/releasing.md | 10 +++-- requirements-dev.txt | 1 + 14 files changed, 114 insertions(+), 5 deletions(-) create mode 100644 CHANGELOG.rst create mode 100644 changelogs/changelog.yaml create mode 100644 changelogs/config.yaml create mode 100644 changelogs/fragments/.git-keep create mode 100644 changelogs/fragments/836-add-reporter-to-callback.yaml create mode 100644 changelogs/fragments/865-limit-inventory-per-host.yaml create mode 100644 changelogs/fragments/867-add_http_proxy_module.yaml create mode 100644 changelogs/fragments/878-cidr-only-v4.yaml create mode 100644 changelogs/fragments/901-document-return-values.yaml create mode 120000 docs/CHANGELOG.rst diff --git a/CHANGELOG.rst b/CHANGELOG.rst new file mode 100644 index 00000000..d8551b71 --- /dev/null +++ b/CHANGELOG.rst @@ -0,0 +1,39 @@ +================================ +theforeman.foreman Release Notes +================================ + +.. contents:: Topics + +This changelog describes changes after version 0.8.1. + +v1.0.1 +====== + +Release Summary +--------------- + +Documentation fixes to reflect the correct module names. + + +v1.0.0 +====== + +Release Summary +--------------- + +This is the first stable release of the ``theforeman.foreman`` collection. + + +Breaking Changes / Porting Guide +-------------------------------- + +- All modules were renamed to drop the ``foreman_`` and ``katello_`` prefixes. + Additionally to the prefix removal, the following modules were further ranamed: + + * katello_upload to content_upload + * katello_sync to repository_sync + * katello_manifest to subscription_manifest + * foreman_search_facts to resource_info + * foreman_ptable to partition_table + * foreman_model to hardware_model + * foreman_environment to puppet_environment diff --git a/Makefile b/Makefile index c397de9a..ff9ff8e5 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ MANIFEST := build/collections/ansible_collections/$(NAMESPACE)/$(NAME)/MANIFEST. ROLES := $(wildcard roles/*) PLUGIN_TYPES := $(filter-out __%,$(notdir $(wildcard plugins/*))) -METADATA := galaxy.yml LICENSE README.md meta/runtime.yml requirements.txt +METADATA := galaxy.yml LICENSE README.md meta/runtime.yml requirements.txt changelogs/changelog.yaml CHANGELOG.rst $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(eval _$(PLUGIN_TYPE) := $(filter-out %__init__.py,$(wildcard plugins/$(PLUGIN_TYPE)/*.py)))) DEPENDENCIES := $(METADATA) $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(_$(PLUGIN_TYPE))) $(foreach ROLE,$(ROLES),$(wildcard $(ROLE)/*/*)) diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml new file mode 100644 index 00000000..601da0d5 --- /dev/null +++ b/changelogs/changelog.yaml @@ -0,0 +1,24 @@ +ancestor: 0.8.1 +releases: + 1.0.0: + changes: + breaking_changes: + - | + All modules were renamed to drop the ``foreman_`` and ``katello_`` prefixes. + Additionally to the prefix removal, the following modules were further ranamed: + + * katello_upload to content_upload + * katello_sync to repository_sync + * katello_manifest to subscription_manifest + * foreman_search_facts to resource_info + * foreman_ptable to partition_table + * foreman_model to hardware_model + * foreman_environment to puppet_environment + release_summary: | + This is the first stable release of the ``theforeman.foreman`` collection. + release_date: '2020-06-19' + 1.0.1: + changes: + release_summary: | + Documentation fixes to reflect the correct module names. + release_date: '2020-06-29' diff --git a/changelogs/config.yaml b/changelogs/config.yaml new file mode 100644 index 00000000..0c1fe061 --- /dev/null +++ b/changelogs/config.yaml @@ -0,0 +1,31 @@ +changelog_filename_template: ../CHANGELOG.rst +changelog_filename_version_depth: 0 +changes_file: changelog.yaml +changes_format: combined +ignore_other_fragment_extensions: true +keep_fragments: false +mention_ancestor: true +new_plugins_after_name: removed_features +notesdir: fragments +prelude_section_name: release_summary +prelude_section_title: Release Summary +sections: +- - major_changes + - Major Changes +- - minor_changes + - Minor Changes +- - breaking_changes + - Breaking Changes / Porting Guide +- - deprecated_features + - Deprecated Features +- - removed_features + - Removed Features (previously deprecated) +- - security_fixes + - Security Fixes +- - bugfixes + - Bugfixes +- - known_issues + - Known Issues +title: theforeman.foreman +trivial_section_name: trivial +use_fqcn: true diff --git a/changelogs/fragments/.git-keep b/changelogs/fragments/.git-keep new file mode 100644 index 00000000..e69de29b diff --git a/changelogs/fragments/836-add-reporter-to-callback.yaml b/changelogs/fragments/836-add-reporter-to-callback.yaml new file mode 100644 index 00000000..e9e588ed --- /dev/null +++ b/changelogs/fragments/836-add-reporter-to-callback.yaml @@ -0,0 +1,2 @@ +minor_changes: + - callback plugin - add reporter to report logs sent to Foreman (https://github.com/theforeman/foreman-ansible-modules/issues/836) diff --git a/changelogs/fragments/865-limit-inventory-per-host.yaml b/changelogs/fragments/865-limit-inventory-per-host.yaml new file mode 100644 index 00000000..b13afb76 --- /dev/null +++ b/changelogs/fragments/865-limit-inventory-per-host.yaml @@ -0,0 +1,2 @@ +minor_changes: + - inventory plugin - allow to control batch size when pulling hosts from Foreman (https://github.com/theforeman/foreman-ansible-modules/pull/865) diff --git a/changelogs/fragments/867-add_http_proxy_module.yaml b/changelogs/fragments/867-add_http_proxy_module.yaml new file mode 100644 index 00000000..7de4a8ff --- /dev/null +++ b/changelogs/fragments/867-add_http_proxy_module.yaml @@ -0,0 +1,2 @@ +major_changes: + - http_proxy - new module to manage HTTP Proxies (https://github.com/theforeman/foreman-ansible-modules/issues/867) diff --git a/changelogs/fragments/878-cidr-only-v4.yaml b/changelogs/fragments/878-cidr-only-v4.yaml new file mode 100644 index 00000000..63fcd35a --- /dev/null +++ b/changelogs/fragments/878-cidr-only-v4.yaml @@ -0,0 +1,2 @@ +minor_changes: + - subnet - Require mask/cidr only on ipv4 (https://github.com/theforeman/foreman-ansible-modules/issues/878) diff --git a/changelogs/fragments/901-document-return-values.yaml b/changelogs/fragments/901-document-return-values.yaml new file mode 100644 index 00000000..9e23b9af --- /dev/null +++ b/changelogs/fragments/901-document-return-values.yaml @@ -0,0 +1,2 @@ +minor_changes: + - document return values of modules (https://github.com/theforeman/foreman-ansible-modules/pull/901) diff --git a/docs/CHANGELOG.rst b/docs/CHANGELOG.rst new file mode 120000 index 00000000..e22698ba --- /dev/null +++ b/docs/CHANGELOG.rst @@ -0,0 +1 @@ +../CHANGELOG.rst \ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index f75e85e0..e5f3d5fe 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,6 +11,7 @@ Welcome to Foreman Ansible Modules' documentation! :caption: User documentation README + Changelog plugins/index Filters diff --git a/docs/releasing.md b/docs/releasing.md index 89e30b8a..160a5276 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -2,11 +2,13 @@ To release the collection the following steps are required: -* Create a pull request to update `galaxy.yml` with: - * Version bump - * Updated list of authors. +* Create a pull request with the following changes: + * Updated `galaxy.yml`: + * Version bump + * Updated list of authors. - You can generate that list via `git shortlog -e -s | sed -E 's/^\s+[[:digit:]]+\s+(.*)$/ - "\1"/'`. + You can generate that list via `git shortlog -e -s | sed -E 's/^\s+[[:digit:]]+\s+(.*)$/ - "\1"/'`. + * Updated changelog by running `antsibull-changelog release` -- it will pick up the version from `galaxy.yml` * After merging, tag the merge commit with `v` (i.e. v0.1.1). Please use signed tags. diff --git a/requirements-dev.txt b/requirements-dev.txt index 16265c26..e2296242 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,5 +8,6 @@ rpm-py-installer docker -r requirements.txt -r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.pylint.txt +-r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.rstcheck.txt -r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.yamllint.txt -r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.validate-modules.txt From 32c22a4ef2094aba21d66b2a1c8a476339da0b50 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 17 Aug 2020 09:38:15 +0200 Subject: [PATCH 59/88] add description parameter to activation_key Fixes: #915 --- changelogs/fragments/915-activation_key-description.yaml | 2 ++ plugins/modules/activation_key.py | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 changelogs/fragments/915-activation_key-description.yaml diff --git a/changelogs/fragments/915-activation_key-description.yaml b/changelogs/fragments/915-activation_key-description.yaml new file mode 100644 index 00000000..4e5233b4 --- /dev/null +++ b/changelogs/fragments/915-activation_key-description.yaml @@ -0,0 +1,2 @@ +minor_changes: + - activation_key - add ``description`` parameter (https://github.com/theforeman/foreman-ansible-modules/issues/915) diff --git a/plugins/modules/activation_key.py b/plugins/modules/activation_key.py index 1ba796e5..cdf43845 100644 --- a/plugins/modules/activation_key.py +++ b/plugins/modules/activation_key.py @@ -32,6 +32,10 @@ - Name of the activation key required: true type: str + description: + description: + - Description of the activation key + type: str lifecycle_environment: description: - Name of the lifecycle environment @@ -207,6 +211,7 @@ def main(): foreman_spec=dict( name=dict(required=True), new_name=dict(), + description=dict(), lifecycle_environment=dict(type='entity', flat_name='environment_id', scope=['organization']), content_view=dict(type='entity', scope=['organization']), host_collections=dict(type='entity_list', scope=['organization']), From 0bf1f3e6be0b7698c8bd55059702469e2b71c35d Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 17 Aug 2020 08:31:02 +0200 Subject: [PATCH 60/88] add version_added to all modules --- plugins/modules/activation_key.py | 1 + plugins/modules/architecture.py | 1 + plugins/modules/auth_source_ldap.py | 1 + plugins/modules/bookmark.py | 1 + plugins/modules/compute_attribute.py | 1 + plugins/modules/compute_profile.py | 1 + plugins/modules/compute_resource.py | 1 + plugins/modules/config_group.py | 1 + plugins/modules/content_credential.py | 1 + plugins/modules/content_upload.py | 1 + plugins/modules/content_view.py | 1 + plugins/modules/content_view_filter.py | 1 + plugins/modules/content_view_version.py | 1 + plugins/modules/domain.py | 1 + plugins/modules/external_usergroup.py | 1 + plugins/modules/global_parameter.py | 1 + plugins/modules/hardware_model.py | 1 + plugins/modules/host.py | 1 + plugins/modules/host_collection.py | 1 + plugins/modules/host_power.py | 1 + plugins/modules/hostgroup.py | 1 + plugins/modules/http_proxy.py | 1 + plugins/modules/image.py | 1 + plugins/modules/installation_medium.py | 1 + plugins/modules/job_template.py | 1 + plugins/modules/lifecycle_environment.py | 1 + plugins/modules/location.py | 1 + plugins/modules/operatingsystem.py | 1 + plugins/modules/organization.py | 1 + plugins/modules/os_default_template.py | 1 + plugins/modules/partition_table.py | 1 + plugins/modules/product.py | 1 + plugins/modules/provisioning_template.py | 1 + plugins/modules/puppet_environment.py | 1 + plugins/modules/realm.py | 1 + plugins/modules/redhat_manifest.py | 1 + plugins/modules/repository.py | 1 + plugins/modules/repository_set.py | 1 + plugins/modules/repository_sync.py | 1 + plugins/modules/resource_info.py | 1 + plugins/modules/role.py | 1 + plugins/modules/scap_content.py | 1 + plugins/modules/scap_tailoring_file.py | 1 + plugins/modules/scc_account.py | 1 + plugins/modules/scc_product.py | 1 + plugins/modules/setting.py | 1 + plugins/modules/smart_class_parameter.py | 1 + plugins/modules/snapshot.py | 1 + plugins/modules/subnet.py | 1 + plugins/modules/subscription_manifest.py | 1 + plugins/modules/sync_plan.py | 1 + plugins/modules/templates_import.py | 1 + plugins/modules/user.py | 1 + plugins/modules/usergroup.py | 1 + 54 files changed, 54 insertions(+) diff --git a/plugins/modules/activation_key.py b/plugins/modules/activation_key.py index cdf43845..31673648 100644 --- a/plugins/modules/activation_key.py +++ b/plugins/modules/activation_key.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: activation_key +version_added: 1.0.0 short_description: Manage Activation Keys description: - Create and manage activation keys diff --git a/plugins/modules/architecture.py b/plugins/modules/architecture.py index acf83370..f6fe65c5 100644 --- a/plugins/modules/architecture.py +++ b/plugins/modules/architecture.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: architecture +version_added: 1.0.0 short_description: Manage Architectures description: - Create, update, and delete Architectures diff --git a/plugins/modules/auth_source_ldap.py b/plugins/modules/auth_source_ldap.py index 6f7a6082..0618a32e 100644 --- a/plugins/modules/auth_source_ldap.py +++ b/plugins/modules/auth_source_ldap.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: auth_source_ldap +version_added: 1.0.0 short_description: Manage LDAP Authentication Sources description: - Create, update, and delete LDAP authentication sources diff --git a/plugins/modules/bookmark.py b/plugins/modules/bookmark.py index 6615d866..c34b7f55 100644 --- a/plugins/modules/bookmark.py +++ b/plugins/modules/bookmark.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: bookmark +version_added: 1.0.0 short_description: Manage Bookmarks description: - "Manage Bookmark Entities" diff --git a/plugins/modules/compute_attribute.py b/plugins/modules/compute_attribute.py index 718dcfc1..89894d9e 100644 --- a/plugins/modules/compute_attribute.py +++ b/plugins/modules/compute_attribute.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: compute_attribute +version_added: 1.0.0 short_description: Manage Compute Attributes description: - "Manage Compute Attributes" diff --git a/plugins/modules/compute_profile.py b/plugins/modules/compute_profile.py index e2d12918..e00df77e 100644 --- a/plugins/modules/compute_profile.py +++ b/plugins/modules/compute_profile.py @@ -23,6 +23,7 @@ DOCUMENTATION = ''' --- module: compute_profile +version_added: 1.0.0 short_description: Manage Compute Profiles description: - Create, update, and delete Compute Profiles diff --git a/plugins/modules/compute_resource.py b/plugins/modules/compute_resource.py index 33e30e9b..bb91955c 100644 --- a/plugins/modules/compute_resource.py +++ b/plugins/modules/compute_resource.py @@ -24,6 +24,7 @@ DOCUMENTATION = ''' --- module: compute_resource +version_added: 1.0.0 short_description: Manage Compute Resources description: - Create, update, and delete Compute Resources diff --git a/plugins/modules/config_group.py b/plugins/modules/config_group.py index cb105b21..d1b8e780 100644 --- a/plugins/modules/config_group.py +++ b/plugins/modules/config_group.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: config_group +version_added: 1.0.0 short_description: Manage (Puppet) Config Groups description: - Create, update, and delete (Puppet) config groups diff --git a/plugins/modules/content_credential.py b/plugins/modules/content_credential.py index 35ee570e..ae2b3230 100644 --- a/plugins/modules/content_credential.py +++ b/plugins/modules/content_credential.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: content_credential +version_added: 1.0.0 short_description: Manage Content Credentials description: - Create and manage content credentials diff --git a/plugins/modules/content_upload.py b/plugins/modules/content_upload.py index a475d69a..22fc662d 100644 --- a/plugins/modules/content_upload.py +++ b/plugins/modules/content_upload.py @@ -23,6 +23,7 @@ DOCUMENTATION = ''' --- module: content_upload +version_added: 1.0.0 short_description: Upload content to a repository description: - Allows the upload of content to a repository diff --git a/plugins/modules/content_view.py b/plugins/modules/content_view.py index 96ff36e5..6b5ce76e 100644 --- a/plugins/modules/content_view.py +++ b/plugins/modules/content_view.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: content_view +version_added: 1.0.0 short_description: Manage Content Views description: - Create and manage content views diff --git a/plugins/modules/content_view_filter.py b/plugins/modules/content_view_filter.py index d845d1ab..face7c28 100644 --- a/plugins/modules/content_view_filter.py +++ b/plugins/modules/content_view_filter.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: content_view_filter +version_added: 1.0.0 short_description: Manage Content View Filters description: - Create and manage content View filters diff --git a/plugins/modules/content_view_version.py b/plugins/modules/content_view_version.py index a0b69c0d..82ae1d9a 100644 --- a/plugins/modules/content_view_version.py +++ b/plugins/modules/content_view_version.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: content_view_version +version_added: 1.0.0 short_description: Manage Content View Versions description: - Publish, Promote or Remove a Content View Version diff --git a/plugins/modules/domain.py b/plugins/modules/domain.py index 18d56f83..27b564f7 100644 --- a/plugins/modules/domain.py +++ b/plugins/modules/domain.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: domain +version_added: 1.0.0 short_description: Manage Domains description: - Create, update, and delete Domains diff --git a/plugins/modules/external_usergroup.py b/plugins/modules/external_usergroup.py index 92e96576..b3e52ff6 100644 --- a/plugins/modules/external_usergroup.py +++ b/plugins/modules/external_usergroup.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: external_usergroup +version_added: 1.0.0 short_description: Manage External User Groups description: - Create, update, and delete external user groups diff --git a/plugins/modules/global_parameter.py b/plugins/modules/global_parameter.py index ea3b8679..00fbb953 100644 --- a/plugins/modules/global_parameter.py +++ b/plugins/modules/global_parameter.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: global_parameter +version_added: 1.0.0 short_description: Manage Global Parameters description: - "Manage Global Parameter Entities" diff --git a/plugins/modules/hardware_model.py b/plugins/modules/hardware_model.py index 47996a3d..27bf2944 100644 --- a/plugins/modules/hardware_model.py +++ b/plugins/modules/hardware_model.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: hardware_model +version_added: 1.0.0 short_description: Manage Hardware Models description: - Manage hardware models diff --git a/plugins/modules/host.py b/plugins/modules/host.py index 67dacd7f..49a6bc98 100644 --- a/plugins/modules/host.py +++ b/plugins/modules/host.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: host +version_added: 1.0.0 short_description: Manage Hosts description: - Create, update, and delete Hosts diff --git a/plugins/modules/host_collection.py b/plugins/modules/host_collection.py index 65484989..cfd2cae9 100644 --- a/plugins/modules/host_collection.py +++ b/plugins/modules/host_collection.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: host_collection +version_added: 1.0.0 short_description: Manage Host Collections description: - Create and Manage host collections diff --git a/plugins/modules/host_power.py b/plugins/modules/host_power.py index aa58674c..c594f04f 100644 --- a/plugins/modules/host_power.py +++ b/plugins/modules/host_power.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: host_power +version_added: 1.0.0 short_description: Manage Power State of Hosts description: - "Manage power state of a host" diff --git a/plugins/modules/hostgroup.py b/plugins/modules/hostgroup.py index eb13bf9e..4b52df09 100644 --- a/plugins/modules/hostgroup.py +++ b/plugins/modules/hostgroup.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: hostgroup +version_added: 1.0.0 short_description: Manage Hostgroups description: - Create, update, and delete Hostgroups diff --git a/plugins/modules/http_proxy.py b/plugins/modules/http_proxy.py index c1992108..1c9555c6 100644 --- a/plugins/modules/http_proxy.py +++ b/plugins/modules/http_proxy.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: http_proxy +version_added: 1.1.0 short_description: Manage HTTP Proxies description: - Create, update, and delete HTTP Proxies diff --git a/plugins/modules/image.py b/plugins/modules/image.py index 06807ecc..fc84a4e7 100644 --- a/plugins/modules/image.py +++ b/plugins/modules/image.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: image +version_added: 1.0.0 short_description: Manage Images description: - Create, update, and delete Images diff --git a/plugins/modules/installation_medium.py b/plugins/modules/installation_medium.py index 5ef44654..3296a68e 100644 --- a/plugins/modules/installation_medium.py +++ b/plugins/modules/installation_medium.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: installation_medium +version_added: 1.0.0 short_description: Manage Installation Media description: - Create, update, and delete Installation Media diff --git a/plugins/modules/job_template.py b/plugins/modules/job_template.py index 0db17e21..5089575e 100644 --- a/plugins/modules/job_template.py +++ b/plugins/modules/job_template.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: job_template +version_added: 1.0.0 short_description: Manage Job Templates description: - Manage Remote Execution Job Templates diff --git a/plugins/modules/lifecycle_environment.py b/plugins/modules/lifecycle_environment.py index aac075e3..a6ac287d 100644 --- a/plugins/modules/lifecycle_environment.py +++ b/plugins/modules/lifecycle_environment.py @@ -23,6 +23,7 @@ DOCUMENTATION = ''' --- module: lifecycle_environment +version_added: 1.0.0 short_description: Manage Lifecycle Environments description: - Create and manage lifecycle environments diff --git a/plugins/modules/location.py b/plugins/modules/location.py index 06f6c783..567186ca 100644 --- a/plugins/modules/location.py +++ b/plugins/modules/location.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: location +version_added: 1.0.0 short_description: Manage Locations description: - Manage Locations diff --git a/plugins/modules/operatingsystem.py b/plugins/modules/operatingsystem.py index d7d27232..99f25919 100644 --- a/plugins/modules/operatingsystem.py +++ b/plugins/modules/operatingsystem.py @@ -23,6 +23,7 @@ DOCUMENTATION = ''' --- module: operatingsystem +version_added: 1.0.0 short_description: Manage Operating Systems description: - Manage Operating Systems diff --git a/plugins/modules/organization.py b/plugins/modules/organization.py index e3c626ca..44f9dda6 100644 --- a/plugins/modules/organization.py +++ b/plugins/modules/organization.py @@ -23,6 +23,7 @@ DOCUMENTATION = ''' --- module: organization +version_added: 1.0.0 short_description: Manage Organizations description: - Manage Organizations diff --git a/plugins/modules/os_default_template.py b/plugins/modules/os_default_template.py index 2ac85dd9..1dbb51f0 100644 --- a/plugins/modules/os_default_template.py +++ b/plugins/modules/os_default_template.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: os_default_template +version_added: 1.0.0 short_description: Manage Default Template Associations To Operating Systems description: - Manage OSDefaultTemplate Entities diff --git a/plugins/modules/partition_table.py b/plugins/modules/partition_table.py index 5392c782..77966104 100644 --- a/plugins/modules/partition_table.py +++ b/plugins/modules/partition_table.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: partition_table +version_added: 1.0.0 short_description: Manage Partition Table Templates description: - Manage Partition Table Templates diff --git a/plugins/modules/product.py b/plugins/modules/product.py index a01075e4..31e1ff69 100644 --- a/plugins/modules/product.py +++ b/plugins/modules/product.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: product +version_added: 1.0.0 short_description: Manage Products description: - Create and manage products diff --git a/plugins/modules/provisioning_template.py b/plugins/modules/provisioning_template.py index c58ed38f..c6705a0a 100644 --- a/plugins/modules/provisioning_template.py +++ b/plugins/modules/provisioning_template.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: provisioning_template +version_added: 1.0.0 short_description: Manage Provisioning Templates description: - Manage Provisioning Templates diff --git a/plugins/modules/puppet_environment.py b/plugins/modules/puppet_environment.py index 7f38cfda..e0e1a5e2 100644 --- a/plugins/modules/puppet_environment.py +++ b/plugins/modules/puppet_environment.py @@ -23,6 +23,7 @@ DOCUMENTATION = ''' --- module: puppet_environment +version_added: 1.0.0 short_description: Manage Puppet Environments description: - Create, update, and delete Puppet Environments diff --git a/plugins/modules/realm.py b/plugins/modules/realm.py index 3a72888e..3382cf4c 100644 --- a/plugins/modules/realm.py +++ b/plugins/modules/realm.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: realm +version_added: 1.0.0 short_description: Manage Realms description: - Manage Realms diff --git a/plugins/modules/redhat_manifest.py b/plugins/modules/redhat_manifest.py index a4c09723..5be00386 100644 --- a/plugins/modules/redhat_manifest.py +++ b/plugins/modules/redhat_manifest.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: redhat_manifest +version_added: 1.0.0 short_description: Interact with a Red Hat Satellite Subscription Manifest description: - Download and modify a Red Hat Satellite Subscription Manifest diff --git a/plugins/modules/repository.py b/plugins/modules/repository.py index 1a10613c..129acb3a 100644 --- a/plugins/modules/repository.py +++ b/plugins/modules/repository.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: repository +version_added: 1.0.0 short_description: Manage Repositories description: - Crate and manage repositories diff --git a/plugins/modules/repository_set.py b/plugins/modules/repository_set.py index 9f35dbf4..bb046a79 100644 --- a/plugins/modules/repository_set.py +++ b/plugins/modules/repository_set.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: repository_set +version_added: 1.0.0 short_description: Enable/disable Repositories in Repository Sets description: - Enable/disable repositories in repository sets diff --git a/plugins/modules/repository_sync.py b/plugins/modules/repository_sync.py index 51241b98..0a1f4fe4 100644 --- a/plugins/modules/repository_sync.py +++ b/plugins/modules/repository_sync.py @@ -23,6 +23,7 @@ DOCUMENTATION = ''' --- module: repository_sync +version_added: 1.0.0 short_description: Sync a Repository or Product description: - Sync a repository or product diff --git a/plugins/modules/resource_info.py b/plugins/modules/resource_info.py index 5f53bbd6..5f69c3f2 100644 --- a/plugins/modules/resource_info.py +++ b/plugins/modules/resource_info.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: resource_info +version_added: 1.0.0 short_description: Gather information about resources description: - Gather information about resources diff --git a/plugins/modules/role.py b/plugins/modules/role.py index 4cbe79c0..83a6828b 100644 --- a/plugins/modules/role.py +++ b/plugins/modules/role.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: role +version_added: 1.0.0 short_description: Manage Roles description: - Create, update, and delete Roles diff --git a/plugins/modules/scap_content.py b/plugins/modules/scap_content.py index fd93179c..4378360a 100644 --- a/plugins/modules/scap_content.py +++ b/plugins/modules/scap_content.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: scap_content +version_added: 1.0.0 short_description: Manage SCAP content description: - Create, update, and delete SCAP content diff --git a/plugins/modules/scap_tailoring_file.py b/plugins/modules/scap_tailoring_file.py index aa238085..8f3b6250 100644 --- a/plugins/modules/scap_tailoring_file.py +++ b/plugins/modules/scap_tailoring_file.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: scap_tailoring_file +version_added: 1.0.0 short_description: Manage SCAP Tailoring Files description: - Create, update, and delete SCAP Tailoring Files diff --git a/plugins/modules/scc_account.py b/plugins/modules/scc_account.py index af32d468..259e9a7d 100644 --- a/plugins/modules/scc_account.py +++ b/plugins/modules/scc_account.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: scc_account +version_added: 1.0.0 short_description: Manage SUSE Customer Center Accounts description: - Manage SUSE Customer Center Accounts diff --git a/plugins/modules/scc_product.py b/plugins/modules/scc_product.py index 4c3771f6..abb935e0 100644 --- a/plugins/modules/scc_product.py +++ b/plugins/modules/scc_product.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: scc_product +version_added: 1.0.0 short_description: Subscribe SUSE Customer Center Account Products description: - Manage SUSE Customer Center Products diff --git a/plugins/modules/setting.py b/plugins/modules/setting.py index 4c1c3dd4..f5e0b126 100644 --- a/plugins/modules/setting.py +++ b/plugins/modules/setting.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: setting +version_added: 1.0.0 short_description: Manage Settings description: - Manage Settings diff --git a/plugins/modules/smart_class_parameter.py b/plugins/modules/smart_class_parameter.py index 44f28b58..c62ca4b7 100644 --- a/plugins/modules/smart_class_parameter.py +++ b/plugins/modules/smart_class_parameter.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: smart_class_parameter +version_added: 1.0.0 short_description: Manage Smart Class Parameters description: - Update Smart Class Parameters. diff --git a/plugins/modules/snapshot.py b/plugins/modules/snapshot.py index f525cd38..34043c07 100644 --- a/plugins/modules/snapshot.py +++ b/plugins/modules/snapshot.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: snapshot +version_added: 1.0.0 short_description: Manage Snapshots description: - "Manage Snapshots for Host Entities" diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index 1e0ea81a..5cf33529 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: subnet +version_added: 1.0.0 short_description: Manage Subnets description: - Create, update, and delete Subnets diff --git a/plugins/modules/subscription_manifest.py b/plugins/modules/subscription_manifest.py index 3a53a905..3b2c7893 100644 --- a/plugins/modules/subscription_manifest.py +++ b/plugins/modules/subscription_manifest.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: subscription_manifest +version_added: 1.0.0 short_description: Manage Subscription Manifests description: - Upload, refresh and delete Subscription Manifests diff --git a/plugins/modules/sync_plan.py b/plugins/modules/sync_plan.py index fffdb6b2..ee8ebece 100644 --- a/plugins/modules/sync_plan.py +++ b/plugins/modules/sync_plan.py @@ -23,6 +23,7 @@ DOCUMENTATION = ''' --- module: sync_plan +version_added: 1.0.0 short_description: Manage Sync Plans description: - Manage sync plans diff --git a/plugins/modules/templates_import.py b/plugins/modules/templates_import.py index 03763f0d..d531039c 100644 --- a/plugins/modules/templates_import.py +++ b/plugins/modules/templates_import.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: templates_import +version_added: 1.0.0 short_description: Sync Templates from a repository description: - Sync provisioning templates, report_templates, partition tables and job templates from external git repository or file system. diff --git a/plugins/modules/user.py b/plugins/modules/user.py index da9c755a..5ef6ee38 100644 --- a/plugins/modules/user.py +++ b/plugins/modules/user.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: user +version_added: 1.0.0 short_description: Manage Users description: - Create, update, and delete users diff --git a/plugins/modules/usergroup.py b/plugins/modules/usergroup.py index 680d3e47..49013ae8 100644 --- a/plugins/modules/usergroup.py +++ b/plugins/modules/usergroup.py @@ -22,6 +22,7 @@ DOCUMENTATION = ''' --- module: usergroup +version_added: 1.0.0 short_description: Manage User Groups description: - Create, update, and delete user groups From 26c165ee8632f4e0e6f1073fafd67e495a821266 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 17 Aug 2020 08:32:05 +0200 Subject: [PATCH 61/88] drop http_proxy changelog fragment, that's handled via version_added --- changelogs/fragments/867-add_http_proxy_module.yaml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 changelogs/fragments/867-add_http_proxy_module.yaml diff --git a/changelogs/fragments/867-add_http_proxy_module.yaml b/changelogs/fragments/867-add_http_proxy_module.yaml deleted file mode 100644 index 7de4a8ff..00000000 --- a/changelogs/fragments/867-add_http_proxy_module.yaml +++ /dev/null @@ -1,2 +0,0 @@ -major_changes: - - http_proxy - new module to manage HTTP Proxies (https://github.com/theforeman/foreman-ansible-modules/issues/867) From 4a44e6c3b3b5aeeab70440034726fbde583773dc Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 17 Aug 2020 09:33:26 +0200 Subject: [PATCH 62/88] update changelog for 1.0.0 with the module list --- CHANGELOG.rst | 57 ++++++++++++++ changelogs/changelog.yaml | 160 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 217 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d8551b71..ceaa01e7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -37,3 +37,60 @@ Breaking Changes / Porting Guide * foreman_ptable to partition_table * foreman_model to hardware_model * foreman_environment to puppet_environment + +New Modules +----------- + +- theforeman.foreman.activation_key - Manage Activation Keys +- theforeman.foreman.architecture - Manage Architectures +- theforeman.foreman.auth_source_ldap - Manage LDAP Authentication Sources +- theforeman.foreman.bookmark - Manage Bookmarks +- theforeman.foreman.compute_attribute - Manage Compute Attributes +- theforeman.foreman.compute_profile - Manage Compute Profiles +- theforeman.foreman.compute_resource - Manage Compute Resources +- theforeman.foreman.config_group - Manage (Puppet) Config Groups +- theforeman.foreman.content_credential - Manage Content Credentials +- theforeman.foreman.content_upload - Upload content to a repository +- theforeman.foreman.content_view - Manage Content Views +- theforeman.foreman.content_view_filter - Manage Content View Filters +- theforeman.foreman.content_view_version - Manage Content View Versions +- theforeman.foreman.domain - Manage Domains +- theforeman.foreman.external_usergroup - Manage External User Groups +- theforeman.foreman.global_parameter - Manage Global Parameters +- theforeman.foreman.hardware_model - Manage Hardware Models +- theforeman.foreman.host - Manage Hosts +- theforeman.foreman.host_collection - Manage Host Collections +- theforeman.foreman.host_power - Manage Power State of Hosts +- theforeman.foreman.hostgroup - Manage Hostgroups +- theforeman.foreman.image - Manage Images +- theforeman.foreman.installation_medium - Manage Installation Media +- theforeman.foreman.job_template - Manage Job Templates +- theforeman.foreman.lifecycle_environment - Manage Lifecycle Environments +- theforeman.foreman.location - Manage Locations +- theforeman.foreman.operatingsystem - Manage Operating Systems +- theforeman.foreman.organization - Manage Organizations +- theforeman.foreman.os_default_template - Manage Default Template Associations To Operating Systems +- theforeman.foreman.partition_table - Manage Partition Table Templates +- theforeman.foreman.product - Manage Products +- theforeman.foreman.provisioning_template - Manage Provisioning Templates +- theforeman.foreman.puppet_environment - Manage Puppet Environments +- theforeman.foreman.realm - Manage Realms +- theforeman.foreman.redhat_manifest - Interact with a Red Hat Satellite Subscription Manifest +- theforeman.foreman.repository - Manage Repositories +- theforeman.foreman.repository_set - Enable/disable Repositories in Repository Sets +- theforeman.foreman.repository_sync - Sync a Repository or Product +- theforeman.foreman.resource_info - Gather information about resources +- theforeman.foreman.role - Manage Roles +- theforeman.foreman.scap_content - Manage SCAP content +- theforeman.foreman.scap_tailoring_file - Manage SCAP Tailoring Files +- theforeman.foreman.scc_account - Manage SUSE Customer Center Accounts +- theforeman.foreman.scc_product - Subscribe SUSE Customer Center Account Products +- theforeman.foreman.setting - Manage Settings +- theforeman.foreman.smart_class_parameter - Manage Smart Class Parameters +- theforeman.foreman.snapshot - Manage Snapshots +- theforeman.foreman.subnet - Manage Subnets +- theforeman.foreman.subscription_manifest - Manage Subscription Manifests +- theforeman.foreman.sync_plan - Manage Sync Plans +- theforeman.foreman.templates_import - Sync Templates from a repository +- theforeman.foreman.user - Manage Users +- theforeman.foreman.usergroup - Manage User Groups diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 601da0d5..9589aba3 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -16,6 +16,166 @@ releases: * foreman_environment to puppet_environment release_summary: | This is the first stable release of the ``theforeman.foreman`` collection. + modules: + - description: Manage Activation Keys + name: activation_key + namespace: '' + - description: Manage Architectures + name: architecture + namespace: '' + - description: Manage LDAP Authentication Sources + name: auth_source_ldap + namespace: '' + - description: Manage Bookmarks + name: bookmark + namespace: '' + - description: Manage Compute Attributes + name: compute_attribute + namespace: '' + - description: Manage Compute Profiles + name: compute_profile + namespace: '' + - description: Manage Compute Resources + name: compute_resource + namespace: '' + - description: Manage (Puppet) Config Groups + name: config_group + namespace: '' + - description: Manage Content Credentials + name: content_credential + namespace: '' + - description: Upload content to a repository + name: content_upload + namespace: '' + - description: Manage Content Views + name: content_view + namespace: '' + - description: Manage Content View Filters + name: content_view_filter + namespace: '' + - description: Manage Content View Versions + name: content_view_version + namespace: '' + - description: Manage Domains + name: domain + namespace: '' + - description: Manage External User Groups + name: external_usergroup + namespace: '' + - description: Manage Global Parameters + name: global_parameter + namespace: '' + - description: Manage Hardware Models + name: hardware_model + namespace: '' + - description: Manage Hosts + name: host + namespace: '' + - description: Manage Host Collections + name: host_collection + namespace: '' + - description: Manage Power State of Hosts + name: host_power + namespace: '' + - description: Manage Hostgroups + name: hostgroup + namespace: '' + - description: Manage Images + name: image + namespace: '' + - description: Manage Installation Media + name: installation_medium + namespace: '' + - description: Manage Job Templates + name: job_template + namespace: '' + - description: Manage Lifecycle Environments + name: lifecycle_environment + namespace: '' + - description: Manage Locations + name: location + namespace: '' + - description: Manage Operating Systems + name: operatingsystem + namespace: '' + - description: Manage Organizations + name: organization + namespace: '' + - description: Manage Default Template Associations To Operating Systems + name: os_default_template + namespace: '' + - description: Manage Partition Table Templates + name: partition_table + namespace: '' + - description: Manage Products + name: product + namespace: '' + - description: Manage Provisioning Templates + name: provisioning_template + namespace: '' + - description: Manage Puppet Environments + name: puppet_environment + namespace: '' + - description: Manage Realms + name: realm + namespace: '' + - description: Interact with a Red Hat Satellite Subscription Manifest + name: redhat_manifest + namespace: '' + - description: Manage Repositories + name: repository + namespace: '' + - description: Enable/disable Repositories in Repository Sets + name: repository_set + namespace: '' + - description: Sync a Repository or Product + name: repository_sync + namespace: '' + - description: Gather information about resources + name: resource_info + namespace: '' + - description: Manage Roles + name: role + namespace: '' + - description: Manage SCAP content + name: scap_content + namespace: '' + - description: Manage SCAP Tailoring Files + name: scap_tailoring_file + namespace: '' + - description: Manage SUSE Customer Center Accounts + name: scc_account + namespace: '' + - description: Subscribe SUSE Customer Center Account Products + name: scc_product + namespace: '' + - description: Manage Settings + name: setting + namespace: '' + - description: Manage Smart Class Parameters + name: smart_class_parameter + namespace: '' + - description: Manage Snapshots + name: snapshot + namespace: '' + - description: Manage Subnets + name: subnet + namespace: '' + - description: Manage Subscription Manifests + name: subscription_manifest + namespace: '' + - description: Manage Sync Plans + name: sync_plan + namespace: '' + - description: Sync Templates from a repository + name: templates_import + namespace: '' + - description: Manage Users + name: user + namespace: '' + - description: Manage User Groups + name: usergroup + namespace: '' release_date: '2020-06-19' 1.0.1: changes: From db4857fe7c94b4754bf8f75f2375b4255f48912d Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 17 Aug 2020 10:35:01 +0200 Subject: [PATCH 63/88] fix want_params when the host has more than one param (#921) * fix want_params when the host has more than one param Fixes: #847 * also fix error message Co-authored-by: Matthias Dellweg <2500@gmx.de> Co-authored-by: Matthias Dellweg <2500@gmx.de> --- changelogs/fragments/847-want_params-fix.yaml | 2 ++ plugins/inventory/foreman.py | 4 ++-- tests/inventory/tests.foreman.yml | 1 + tests/test_playbooks/inventory_plugin.yml | 17 +++++++++++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/847-want_params-fix.yaml diff --git a/changelogs/fragments/847-want_params-fix.yaml b/changelogs/fragments/847-want_params-fix.yaml new file mode 100644 index 00000000..f4a48d85 --- /dev/null +++ b/changelogs/fragments/847-want_params-fix.yaml @@ -0,0 +1,2 @@ +bugfix: + - inventory plugin - fix want_params handling (https://github.com/theforeman/foreman-ansible-modules/issues/847) diff --git a/plugins/inventory/foreman.py b/plugins/inventory/foreman.py index 2028f16f..ffa3b48a 100644 --- a/plugins/inventory/foreman.py +++ b/plugins/inventory/foreman.py @@ -265,10 +265,10 @@ def _populate(self): else: for k, v in filtered_params.items(): try: - self.inventory.set_variable(host_name, p['name'], p['value']) + self.inventory.set_variable(host_name, k, v) except ValueError as e: self.display.warning("Could not set hostvar %s to '%s' for the '%s' host, skipping: %s" % - (p['name'], to_native(p['value']), host, to_native(e))) + (k, to_native(v), host, to_native(e))) # set host vars from facts if self.get_option('want_facts'): diff --git a/tests/inventory/tests.foreman.yml b/tests/inventory/tests.foreman.yml index 0a2a67bb..71603546 100644 --- a/tests/inventory/tests.foreman.yml +++ b/tests/inventory/tests.foreman.yml @@ -3,3 +3,4 @@ url: http://localhost:3000/ user: admin password: changeme validate_certs: False +want_params: True diff --git a/tests/test_playbooks/inventory_plugin.yml b/tests/test_playbooks/inventory_plugin.yml index f8f6fa80..c7a35786 100644 --- a/tests/test_playbooks/inventory_plugin.yml +++ b/tests/test_playbooks/inventory_plugin.yml @@ -82,6 +82,11 @@ organization: Default Organization location: Default Location managed: false + parameters: + - name: testparam1 + value: testvalue1 + - name: testparam2 + value: testvalue2 with_dict: "{{ foreman_hosts }}" - name: submit facts for hosts @@ -138,6 +143,18 @@ hostvars['{{ item.key }}']['foreman_operatingsystem_name'] == 'CentOS 7.7' with_dict: "{{ foreman_hosts }}" + - name: test that all hosts have the testparam1 + assert: + that: > + hostvars['{{ item.key }}']['testparam1'] == 'testvalue1' + with_dict: "{{ foreman_hosts }}" + + - name: test that all hosts have the testparam2 + assert: + that: > + hostvars['{{ item.key }}']['testparam2'] == 'testvalue2' + with_dict: "{{ foreman_hosts }}" + - name: remove Foreman container docker_container: name: foreman From 913633799306b9a3be8bce393183f39bc3c46327 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 17 Aug 2020 10:55:11 +0200 Subject: [PATCH 64/88] release 1.1.0 --- CHANGELOG.rst | 22 ++++++++++++++++++ changelogs/changelog.yaml | 23 +++++++++++++++++++ .../836-add-reporter-to-callback.yaml | 2 -- changelogs/fragments/847-want_params-fix.yaml | 2 -- .../865-limit-inventory-per-host.yaml | 2 -- changelogs/fragments/878-cidr-only-v4.yaml | 2 -- .../fragments/901-document-return-values.yaml | 2 -- .../915-activation_key-description.yaml | 2 -- galaxy.yml | 5 +++- 9 files changed, 49 insertions(+), 13 deletions(-) delete mode 100644 changelogs/fragments/836-add-reporter-to-callback.yaml delete mode 100644 changelogs/fragments/847-want_params-fix.yaml delete mode 100644 changelogs/fragments/865-limit-inventory-per-host.yaml delete mode 100644 changelogs/fragments/878-cidr-only-v4.yaml delete mode 100644 changelogs/fragments/901-document-return-values.yaml delete mode 100644 changelogs/fragments/915-activation_key-description.yaml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ceaa01e7..7ecf8619 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,28 @@ theforeman.foreman Release Notes This changelog describes changes after version 0.8.1. +v1.1.0 +====== + +Minor Changes +------------- + +- activation_key - add ``description`` parameter (https://github.com/theforeman/foreman-ansible-modules/issues/915) +- callback plugin - add reporter to report logs sent to Foreman (https://github.com/theforeman/foreman-ansible-modules/issues/836) +- document return values of modules (https://github.com/theforeman/foreman-ansible-modules/pull/901) +- inventory plugin - allow to control batch size when pulling hosts from Foreman (https://github.com/theforeman/foreman-ansible-modules/pull/865) +- subnet - Require mask/cidr only on ipv4 (https://github.com/theforeman/foreman-ansible-modules/issues/878) + +Bugfixes +-------- + +- inventory plugin - fix want_params handling (https://github.com/theforeman/foreman-ansible-modules/issues/847) + +New Modules +----------- + +- theforeman.foreman.http_proxy - Manage HTTP Proxies + v1.0.1 ====== diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 9589aba3..9e3e7bdd 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -182,3 +182,26 @@ releases: release_summary: | Documentation fixes to reflect the correct module names. release_date: '2020-06-29' + 1.1.0: + changes: + bugfixes: + - inventory plugin - fix want_params handling (https://github.com/theforeman/foreman-ansible-modules/issues/847) + minor_changes: + - activation_key - add ``description`` parameter (https://github.com/theforeman/foreman-ansible-modules/issues/915) + - callback plugin - add reporter to report logs sent to Foreman (https://github.com/theforeman/foreman-ansible-modules/issues/836) + - document return values of modules (https://github.com/theforeman/foreman-ansible-modules/pull/901) + - inventory plugin - allow to control batch size when pulling hosts from Foreman + (https://github.com/theforeman/foreman-ansible-modules/pull/865) + - subnet - Require mask/cidr only on ipv4 (https://github.com/theforeman/foreman-ansible-modules/issues/878) + fragments: + - 836-add-reporter-to-callback.yaml + - 847-want_params-fix.yaml + - 865-limit-inventory-per-host.yaml + - 878-cidr-only-v4.yaml + - 901-document-return-values.yaml + - 915-activation_key-description.yaml + modules: + - description: Manage HTTP Proxies + name: http_proxy + namespace: '' + release_date: '2020-08-17' diff --git a/changelogs/fragments/836-add-reporter-to-callback.yaml b/changelogs/fragments/836-add-reporter-to-callback.yaml deleted file mode 100644 index e9e588ed..00000000 --- a/changelogs/fragments/836-add-reporter-to-callback.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - callback plugin - add reporter to report logs sent to Foreman (https://github.com/theforeman/foreman-ansible-modules/issues/836) diff --git a/changelogs/fragments/847-want_params-fix.yaml b/changelogs/fragments/847-want_params-fix.yaml deleted file mode 100644 index f4a48d85..00000000 --- a/changelogs/fragments/847-want_params-fix.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfix: - - inventory plugin - fix want_params handling (https://github.com/theforeman/foreman-ansible-modules/issues/847) diff --git a/changelogs/fragments/865-limit-inventory-per-host.yaml b/changelogs/fragments/865-limit-inventory-per-host.yaml deleted file mode 100644 index b13afb76..00000000 --- a/changelogs/fragments/865-limit-inventory-per-host.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - inventory plugin - allow to control batch size when pulling hosts from Foreman (https://github.com/theforeman/foreman-ansible-modules/pull/865) diff --git a/changelogs/fragments/878-cidr-only-v4.yaml b/changelogs/fragments/878-cidr-only-v4.yaml deleted file mode 100644 index 63fcd35a..00000000 --- a/changelogs/fragments/878-cidr-only-v4.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - subnet - Require mask/cidr only on ipv4 (https://github.com/theforeman/foreman-ansible-modules/issues/878) diff --git a/changelogs/fragments/901-document-return-values.yaml b/changelogs/fragments/901-document-return-values.yaml deleted file mode 100644 index 9e23b9af..00000000 --- a/changelogs/fragments/901-document-return-values.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - document return values of modules (https://github.com/theforeman/foreman-ansible-modules/pull/901) diff --git a/changelogs/fragments/915-activation_key-description.yaml b/changelogs/fragments/915-activation_key-description.yaml deleted file mode 100644 index 4e5233b4..00000000 --- a/changelogs/fragments/915-activation_key-description.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - activation_key - add ``description`` parameter (https://github.com/theforeman/foreman-ansible-modules/issues/915) diff --git a/galaxy.yml b/galaxy.yml index f598e63b..c908ac09 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -27,15 +27,18 @@ authors: - "Lester Claudio " - "Manisha Singhal " - "Manuel Bonk " + - "Marcelo Moreira de Mello " - "Marek Czernek " - "Mark Hlawatschek " - "Markus Bucher " - "Matthias Dellweg <2500@gmx.de>" - "Nikhil Jain " - "Olivier " + - "Ondrej Prazak " - "Patrick Creech " - "Paul Armstrong " - "Paul Gration " + - "Peter Ondrejka " - "Philipp " - "Quirin Pamp " - "Richard " @@ -49,7 +52,7 @@ authors: - "metalcated " - "russianguppie <46544650+russianguppie@users.noreply.github.com>" - "willtome " -version: "1.0.1" +version: "1.1.0" license: - "GPL-3.0-or-later" tags: From ddc1583863d9378caed0b391e9ff39d87a2e465d Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 17 Aug 2020 11:29:28 +0200 Subject: [PATCH 65/88] sort docs descending by version noone cares about super old 0.x docs today --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bcc156de..24399a01 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -32,7 +32,7 @@ jobs: rm -rf $(basename ${GITHUB_REF}) mv docs/_build/html $(basename ${GITHUB_REF}) git show origin/develop:docs/_gh_include/header.inc > index.html - dirname */index.html | sort --version-sort | xargs -I@@ -n1 echo '' >> index.html + (echo develop; dirname v*/index.html | sort --version-sort --reverse) | xargs -I@@ -n1 echo '' >> index.html git show origin/develop:docs/_gh_include/footer.inc >> index.html git add $(basename ${GITHUB_REF}) index.html git commit -m "update docs for $(basename ${GITHUB_REF})" || true From 87027fcc13b4f9e026dd450604381a7c6529fa38 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 19 Aug 2020 11:33:51 +0200 Subject: [PATCH 66/88] use the pygments lexer from the ansible theme Fixes: #928 --- docs/conf.py | 1 + docs/requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 313588d3..ebfedc5f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -42,6 +42,7 @@ 'recommonmark', 'sphinx.ext.autodoc', 'sphinx.ext.intersphinx', + 'sphinx_ansible_theme.ext.pygments_lexer', ] # Add any paths that contain templates here, relative to this directory. diff --git a/docs/requirements.txt b/docs/requirements.txt index e08dca47..8f9d390e 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,4 +1,5 @@ antsibull>=0.17.0 ansible-base>=2.10.0rc2 sphinx-rtd-theme +sphinx-ansible-theme recommonmark From b41f089adf18d264ec7bd158fbe4337af959d745 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg <2500@gmx.de> Date: Wed, 26 Aug 2020 09:01:08 +0200 Subject: [PATCH 67/88] Disable pylint checkers incompatible with py27 --- plugins/callback/foreman.py | 2 ++ plugins/inventory/foreman.py | 4 ++++ plugins/module_utils/foreman_helper.py | 3 +++ 3 files changed, 9 insertions(+) diff --git a/plugins/callback/foreman.py b/plugins/callback/foreman.py index 5e2793f9..8d8dfa8f 100644 --- a/plugins/callback/foreman.py +++ b/plugins/callback/foreman.py @@ -4,6 +4,8 @@ # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) +# pylint: disable=super-with-arguments + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/inventory/foreman.py b/plugins/inventory/foreman.py index ffa3b48a..6a17be58 100644 --- a/plugins/inventory/foreman.py +++ b/plugins/inventory/foreman.py @@ -2,6 +2,10 @@ # Copyright (C) 2016 Guido Günther , Daniel Lobato Garcia # Copyright (c) 2018 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +# pylint: disable=raise-missing-from +# pylint: disable=super-with-arguments + from __future__ import (absolute_import, division, print_function) __metaclass__ = type diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index f7bea626..e32b1663 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -1,6 +1,9 @@ # -*- coding: utf-8 -*- # (c) Matthias Dellweg (ATIX AG) 2017 +# pylint: disable=raise-missing-from +# pylint: disable=super-with-arguments + from __future__ import absolute_import, division, print_function __metaclass__ = type From 94e184c1f92ebaa1d2d5bf050f91b2698140d068 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 25 Aug 2020 13:02:03 +0200 Subject: [PATCH 68/88] update list of possible template kinds in provisioning_template Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1871978 --- changelogs/fragments/bz1871978-template_kinds.yaml | 2 ++ plugins/modules/provisioning_template.py | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/bz1871978-template_kinds.yaml diff --git a/changelogs/fragments/bz1871978-template_kinds.yaml b/changelogs/fragments/bz1871978-template_kinds.yaml new file mode 100644 index 00000000..b008676b --- /dev/null +++ b/changelogs/fragments/bz1871978-template_kinds.yaml @@ -0,0 +1,2 @@ +minor_changes: + - provisioning_template - update list of possible template kinds (https://bugzilla.redhat.com/show_bug.cgi?id=1871978) diff --git a/plugins/modules/provisioning_template.py b/plugins/modules/provisioning_template.py index c6705a0a..031ce793 100644 --- a/plugins/modules/provisioning_template.py +++ b/plugins/modules/provisioning_template.py @@ -40,15 +40,19 @@ - The provisioning template kind required: false choices: + - Bootdisk + - cloud-init - finish - iPXE - job_template + - kexec - POAP - provision - ptable - - PXELinux - PXEGrub - PXEGrub2 + - PXELinux + - registration - script - snippet - user_data @@ -253,15 +257,19 @@ def main(): ), foreman_spec=dict( kind=dict(choices=[ + 'Bootdisk', + 'cloud-init', 'finish', 'iPXE', 'job_template', + 'kexec', 'POAP', 'provision', 'ptable', - 'PXELinux', 'PXEGrub', 'PXEGrub2', + 'PXELinux', + 'registration', 'script', 'snippet', 'user_data', From 8fd20e0f7d6b80088169881cc1531bdae4185262 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 25 Aug 2020 15:05:00 +0200 Subject: [PATCH 69/88] host: add compute_attributes parameter --- .../932-host-add-compute_attributes.yaml | 2 ++ plugins/modules/host.py | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 changelogs/fragments/932-host-add-compute_attributes.yaml diff --git a/changelogs/fragments/932-host-add-compute_attributes.yaml b/changelogs/fragments/932-host-add-compute_attributes.yaml new file mode 100644 index 00000000..a2c1dbff --- /dev/null +++ b/changelogs/fragments/932-host-add-compute_attributes.yaml @@ -0,0 +1,2 @@ +minor_changes: + - host - add ``compute_attributes`` parameter to module (https://bugzilla.redhat.com/show_bug.cgi?id=1871815) diff --git a/plugins/modules/host.py b/plugins/modules/host.py index 49a6bc98..99ec2d07 100644 --- a/plugins/modules/host.py +++ b/plugins/modules/host.py @@ -109,6 +109,12 @@ - The image to use when I(provision_method=image). type: str required: false + compute_attributes: + description: + - Additional compute resource specific attributes. + - When this parameter is set, the module will not be idempotent. + type: dict + required: false extends_documentation_fragment: - theforeman.foreman.foreman - theforeman.foreman.foreman.entity_state @@ -145,6 +151,27 @@ managed: false state: present +- name: "Create a VM with 2 CPUs and 4GB RAM" + theforeman.foreman.host: + username: "admin" + password: "changeme" + server_url: "https://foreman.example.com" + name: "new_host" + compute_attributes: + cpus: 2 + memory_mb: 4096 + state: present + +- name: "Create a VM and start it after creation" + theforeman.foreman.host: + username: "admin" + password: "changeme" + server_url: "https://foreman.example.com" + name: "new_host" + compute_attributes: + start: "1" + state: present + - name: "Delete a host" theforeman.foreman.host: username: "admin" @@ -195,6 +222,7 @@ def main(): owner_type=dict(type='invisible'), provision_method=dict(choices=['build', 'image', 'bootdisk']), image=dict(type='entity'), + compute_attributes=dict(type='dict'), ), mutually_exclusive=[ ['owner', 'owner_group'] From 15db065de93584b561aec4bee3990aaf3341ac23 Mon Sep 17 00:00:00 2001 From: Mark Hlawatschek Date: Mon, 31 Aug 2020 15:20:49 +0000 Subject: [PATCH 70/88] fix quoting for search values --- plugins/modules/image.py | 2 +- tests/test_playbooks/fixtures/image-0.yml | 634 ++++++++++--------- tests/test_playbooks/fixtures/image-1.yml | 631 ++++++++++--------- tests/test_playbooks/fixtures/image-2.yml | 731 ++++++++++++---------- tests/test_playbooks/fixtures/image-3.yml | 632 ++++++++++--------- tests/test_playbooks/fixtures/image-4.yml | 629 ++++++++++--------- tests/test_playbooks/fixtures/image-5.yml | 631 ++++++++++--------- tests/test_playbooks/fixtures/image-6.yml | 456 ++++++++------ tests/test_playbooks/fixtures/image-7.yml | 456 ++++++++------ tests/test_playbooks/image.yml | 20 +- 10 files changed, 2567 insertions(+), 2255 deletions(-) diff --git a/plugins/modules/image.py b/plugins/modules/image.py index fc84a4e7..efe255c8 100644 --- a/plugins/modules/image.py +++ b/plugins/modules/image.py @@ -125,7 +125,7 @@ def main(): operatingsystem_id = module.lookup_entity('operatingsystem')['id'] module.set_entity('entity', module.find_resource( 'images', - search="name={0},operatingsystem={1}".format(module.foreman_params['name'], operatingsystem_id), + search='name="{0}",operatingsystem="{1}"'.format(module.foreman_params['name'], operatingsystem_id), params=scope, failsafe=True, )) diff --git a/tests/test_playbooks/fixtures/image-0.yml b/tests/test_playbooks/fixtures/image-0.yml index 1aa42313..4594b13e 100644 --- a/tests/test_playbooks/fixtures/image-0.yml +++ b/tests/test_playbooks/fixtures/image-0.yml @@ -2,352 +2,370 @@ 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)'] + 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: !!python/unicode '{"result":"ok","status":200,"version":"1.24.2","api_version":2}'} + body: + string: !!python/unicode '{"result":"ok","status":200,"version":"1.24.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'''] - content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:20 GMT'] - etag: [W/"39b73f2292fd196be82f6d5e7da4a321"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=10000'] - server: [Apache] - set-cookie: [_session_id=142b01a02db0e064076623d1ccb2c698; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [4c63d325-57ec-4e3d-bc09-900471ba7250] - x-runtime: ['0.092673'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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''' + content-type: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=10000 + status: + - 200 OK + strict-transport-security: + - max-age=631139040; includeSubdomains + 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: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Cookie: [_session_id=142b01a02db0e064076623d1ccb2c698] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 - response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:22 UTC\",\"updated_at\":\"2020-03-12 - 22:07:22 UTC\",\"id\":9,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['416'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:20 GMT'] - etag: [W/"5bc15df818ec0fff0b4b4e2f68461c09-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9999'] - 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: [485eceeb-079d-4a79-9916-2f7a3231384f] - x-runtime: ['0.019109'] - 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=142b01a02db0e064076623d1ccb2c698] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + body: + string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-08-31 + 15:14:59 UTC\",\"updated_at\":\"2020-08-31 15:16:22 UTC\",\"id\":8,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:20 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9998'] - 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: [cd75b218-f3a6-4c05-ab04-548d3135d106] - x-runtime: ['0.018966'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '463' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9999 + 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-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=142b01a02db0e064076623d1ccb2c698] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/architectures?per_page=4294967296&search=name%3D%22MY1024%22 + uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"created_at\":\"2020-03-12 22:07:26 UTC\",\"updated_at\":\"2020-03-12 22:07:26 - UTC\",\"name\":\"MY1024\",\"id\":4}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['274'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:20 GMT'] - etag: [W/"f1768664a30ad88092cdabdaf1ea419f-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9997'] - 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: [a3a2e188-7e32-45b3-bbc2-5b294ebac38e] - x-runtime: ['0.016220'] - 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=142b01a02db0e064076623d1ccb2c698] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 - response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse + whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-08-31 15:15:00 UTC\",\"updated_at\":\"2020-08-31 + 15:15:00 UTC\",\"id\":13,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:20 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9996'] - 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: [2e98e985-a674-4126-81a2-12a497548994] - x-runtime: ['0.018687'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '417' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9998 + 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-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=142b01a02db0e064076623d1ccb2c698] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 + uri: https://foreman.example.org/api/compute_resources/8/images?per_page=4294967296&search=name%3D%22MYOS+1%22%2Coperatingsystem%3D%2213%22 response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYOS 1\\\",operatingsystem=\\\"13\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:22 UTC\",\"updated_at\":\"2020-03-12 - 22:07:22 UTC\",\"id\":9,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n"} + []\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['416'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:21 GMT'] - etag: [W/"5bc15df818ec0fff0b4b4e2f68461c09-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9995'] - 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: [57064fbc-5eb9-455d-9e9d-6f46727e1772] - x-runtime: ['0.018925'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '195' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9997 + 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-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=142b01a02db0e064076623d1ccb2c698] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images?per_page=4294967296&search=name%3DMYOS1%2Coperatingsystem%3D9 + uri: https://foreman.example.org/api/architectures?per_page=4294967296&search=name%3D%22MY1024%22 response: - body: {string: !!python/unicode "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=MYOS1,operatingsystem=9\",\n + body: + string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n"} + [{\"created_at\":\"2020-08-31 15:16:21 UTC\",\"updated_at\":\"2020-08-31 15:16:21 + UTC\",\"name\":\"MY1024\",\"id\":6}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['185'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:21 GMT'] - etag: [W/"3ba195a288ac72f9aaabd772a37ce6a8-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9994'] - 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: [1f733afa-a8ac-4409-90cd-995ba4fd5f7c] - x-runtime: ['0.024109'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '274' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9996 + 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-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK - request: body: !!python/unicode '{"image": {"username": "myosadmin", "operatingsystem_id": - 9, "compute_resource_id": 4, "uuid": "MYOStemplate", "architecture_id": 4, "name": - "MYOS1"}}' + 13, "compute_resource_id": 8, "uuid": "MYOStemplate", "architecture_id": 6, + "name": "MYOS 1"}}' headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['150'] - Content-Type: [application/json] - Cookie: [_session_id=142b01a02db0e064076623d1ccb2c698] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '152' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/api/compute_resources/4/images + uri: https://foreman.example.org/api/compute_resources/8/images response: - body: {string: !!python/unicode '{"operatingsystem_id":9,"operatingsystem_name":"MYOS - SP1","compute_resource_id":4,"compute_resource_name":"MYCR","architecture_id":4,"architecture_name":"MY1024","uuid":"MYOStemplate","username":"myosadmin","created_at":"2020-03-12 - 22:18:21 UTC","updated_at":"2020-03-12 22:18:21 UTC","id":6,"name":"MYOS1"}'} + body: + string: !!python/unicode '{"operatingsystem_id":13,"operatingsystem_name":"MYOS + SP1","compute_resource_id":8,"compute_resource_name":"MYCR","architecture_id":6,"architecture_name":"MY1024","uuid":"MYOStemplate","username":"myosadmin","created_at":"2020-08-31 + 15:17:29 UTC","updated_at":"2020-08-31 15:17:29 UTC","id":11,"name":"MYOS + 1"}' 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: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:21 GMT'] - etag: [W/"31fb357673e850a92f88a3b1eb09c957"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9993'] - server: [Apache] - set-cookie: [request_method=POST; path=/; secure; HttpOnly; SameSite=Lax] - status: [201 Created] - 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-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [a87962ba-2480-4363-878c-8f0c87c00d99] - x-runtime: ['0.053283'] - x-xss-protection: [1; mode=block] - status: {code: 201, message: Created} + 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: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9995 + status: + - 201 Created + 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: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/image-1.yml b/tests/test_playbooks/fixtures/image-1.yml index fa242ba9..36133520 100644 --- a/tests/test_playbooks/fixtures/image-1.yml +++ b/tests/test_playbooks/fixtures/image-1.yml @@ -2,349 +2,368 @@ 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)'] + 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: !!python/unicode '{"result":"ok","status":200,"version":"1.24.2","api_version":2}'} + body: + string: !!python/unicode '{"result":"ok","status":200,"version":"1.24.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'''] - content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:21 GMT'] - etag: [W/"39b73f2292fd196be82f6d5e7da4a321"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=10000'] - server: [Apache] - set-cookie: [_session_id=110e9ba49fc3505fcf5aec91ef3e5192; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [bf5261da-506f-4720-91a5-de8a231ffa8a] - x-runtime: ['0.094979'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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''' + content-type: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=10000 + status: + - 200 OK + strict-transport-security: + - max-age=631139040; includeSubdomains + 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: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Cookie: [_session_id=110e9ba49fc3505fcf5aec91ef3e5192] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 - response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:22 UTC\",\"updated_at\":\"2020-03-12 - 22:07:22 UTC\",\"id\":9,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['416'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:22 GMT'] - etag: [W/"5bc15df818ec0fff0b4b4e2f68461c09-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9999'] - 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: [3d53e611-99aa-4628-bcfe-98288887b0b4] - x-runtime: ['0.018849'] - 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=110e9ba49fc3505fcf5aec91ef3e5192] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + body: + string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-08-31 + 15:14:59 UTC\",\"updated_at\":\"2020-08-31 15:16:22 UTC\",\"id\":8,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:23 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9998'] - 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: [85fffc8d-6f09-496a-bcb3-a3d03c8675fd] - x-runtime: ['0.021919'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '463' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9999 + 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-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=110e9ba49fc3505fcf5aec91ef3e5192] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/architectures?per_page=4294967296&search=name%3D%22MY1024%22 + uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"created_at\":\"2020-03-12 22:07:26 UTC\",\"updated_at\":\"2020-03-12 22:07:26 - UTC\",\"name\":\"MY1024\",\"id\":4}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['274'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:23 GMT'] - etag: [W/"f1768664a30ad88092cdabdaf1ea419f-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9997'] - 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: [53a338ac-136d-43fe-8ec6-05866396a4b1] - x-runtime: ['0.016432'] - 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=110e9ba49fc3505fcf5aec91ef3e5192] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 - response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse + whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-08-31 15:15:00 UTC\",\"updated_at\":\"2020-08-31 + 15:15:00 UTC\",\"id\":13,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:23 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9996'] - 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: [15cc165e-cd17-4d84-85fb-bc62abf7faec] - x-runtime: ['0.018016'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '417' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9998 + 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-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=110e9ba49fc3505fcf5aec91ef3e5192] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 + uri: https://foreman.example.org/api/compute_resources/8/images?per_page=4294967296&search=name%3D%22MYOS+1%22%2Coperatingsystem%3D%2213%22 response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYOS 1\\\",operatingsystem=\\\"13\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:22 UTC\",\"updated_at\":\"2020-03-12 - 22:07:22 UTC\",\"id\":9,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n"} + [{\"operatingsystem_id\":13,\"operatingsystem_name\":\"MYOS SP1\",\"compute_resource_id\":8,\"compute_resource_name\":\"MYCR\",\"architecture_id\":6,\"architecture_name\":\"MY1024\",\"uuid\":\"MYOStemplate\",\"username\":\"myosadmin\",\"created_at\":\"2020-08-31 + 15:17:29 UTC\",\"updated_at\":\"2020-08-31 15:17:29 UTC\",\"id\":11,\"name\":\"MYOS + 1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['416'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:23 GMT'] - etag: [W/"5bc15df818ec0fff0b4b4e2f68461c09-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9995'] - 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: [834cdcf2-432c-41e8-8b7b-0abc30f4f610] - x-runtime: ['0.019505'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '505' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9997 + 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-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=110e9ba49fc3505fcf5aec91ef3e5192] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images?per_page=4294967296&search=name%3DMYOS1%2Coperatingsystem%3D9 + uri: https://foreman.example.org/api/compute_resources/8/images/11 response: - body: {string: !!python/unicode "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=MYOS1,operatingsystem=9\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"operatingsystem_id\":9,\"operatingsystem_name\":\"MYOS SP1\",\"compute_resource_id\":4,\"compute_resource_name\":\"MYCR\",\"architecture_id\":4,\"architecture_name\":\"MY1024\",\"uuid\":\"MYOStemplate\",\"username\":\"myosadmin\",\"created_at\":\"2020-03-12 - 22:18:21 UTC\",\"updated_at\":\"2020-03-12 22:18:21 UTC\",\"id\":6,\"name\":\"MYOS1\"}]\n}\n"} + body: + string: !!python/unicode '{"operatingsystem_id":13,"operatingsystem_name":"MYOS + SP1","compute_resource_id":8,"compute_resource_name":"MYCR","architecture_id":6,"architecture_name":"MY1024","uuid":"MYOStemplate","username":"myosadmin","created_at":"2020-08-31 + 15:17:29 UTC","updated_at":"2020-08-31 15:17:29 UTC","id":11,"name":"MYOS + 1"}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['492'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:23 GMT'] - etag: [W/"988e6118521e0a3551db0630f5381bef-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9994'] - 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: [f95e1d27-e71d-4b51-8883-ea78d83de34a] - x-runtime: ['0.027080'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '310' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9996 + 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-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=110e9ba49fc3505fcf5aec91ef3e5192] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images/6 + uri: https://foreman.example.org/api/architectures?per_page=4294967296&search=name%3D%22MY1024%22 response: - body: {string: !!python/unicode '{"operatingsystem_id":9,"operatingsystem_name":"MYOS - SP1","compute_resource_id":4,"compute_resource_name":"MYCR","architecture_id":4,"architecture_name":"MY1024","uuid":"MYOStemplate","username":"myosadmin","created_at":"2020-03-12 - 22:18:21 UTC","updated_at":"2020-03-12 22:18:21 UTC","id":6,"name":"MYOS1"}'} + body: + string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": + [{\"created_at\":\"2020-08-31 15:16:21 UTC\",\"updated_at\":\"2020-08-31 15:16:21 + UTC\",\"name\":\"MY1024\",\"id\":6}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['307'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:23 GMT'] - etag: [W/"31fb357673e850a92f88a3b1eb09c957-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9993'] - 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: [4b21d88b-7f17-4fcc-8945-6964303d49c9] - x-runtime: ['0.023247'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '274' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9995 + 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-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/image-2.yml b/tests/test_playbooks/fixtures/image-2.yml index 5a2b1ed4..954d81bd 100644 --- a/tests/test_playbooks/fixtures/image-2.yml +++ b/tests/test_playbooks/fixtures/image-2.yml @@ -2,395 +2,434 @@ 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)'] + 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: !!python/unicode '{"result":"ok","status":200,"version":"1.24.2","api_version":2}'} + body: + string: !!python/unicode '{"result":"ok","status":200,"version":"1.24.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'''] - content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:24 GMT'] - etag: [W/"39b73f2292fd196be82f6d5e7da4a321"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=10000'] - server: [Apache] - set-cookie: [_session_id=13fa9dfc7cff698c4d96c02e38eeb00f; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [a2af0e4b-caee-40a8-8a24-9eda05316bc2] - x-runtime: ['0.094057'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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''' + content-type: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=10000 + status: + - 200 OK + strict-transport-security: + - max-age=631139040; includeSubdomains + 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: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Cookie: [_session_id=13fa9dfc7cff698c4d96c02e38eeb00f] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 - response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:22 UTC\",\"updated_at\":\"2020-03-12 - 22:07:22 UTC\",\"id\":9,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['416'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:24 GMT'] - etag: [W/"5bc15df818ec0fff0b4b4e2f68461c09-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9999'] - 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: [9848fb8c-483f-4829-bd8f-25fe85e47e35] - x-runtime: ['0.019252'] - 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=13fa9dfc7cff698c4d96c02e38eeb00f] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + body: + string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-08-31 + 15:14:59 UTC\",\"updated_at\":\"2020-08-31 15:16:22 UTC\",\"id\":8,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:24 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9998'] - 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: [403af2bb-f38f-4f45-a734-641569c102bf] - x-runtime: ['0.019205'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '463' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9999 + 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-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=13fa9dfc7cff698c4d96c02e38eeb00f] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/architectures?per_page=4294967296&search=name%3D%22MY1024%22 + uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"created_at\":\"2020-03-12 22:07:26 UTC\",\"updated_at\":\"2020-03-12 22:07:26 - UTC\",\"name\":\"MY1024\",\"id\":4}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['274'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:24 GMT'] - etag: [W/"f1768664a30ad88092cdabdaf1ea419f-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9997'] - 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: [14e31033-69db-4d2d-8d90-32b98f4d266a] - x-runtime: ['0.017100'] - 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=13fa9dfc7cff698c4d96c02e38eeb00f] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 - response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse + whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-08-31 15:15:00 UTC\",\"updated_at\":\"2020-08-31 + 15:15:00 UTC\",\"id\":13,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:24 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9996'] - 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: [df172e98-c40c-4465-98e5-d9c1d4a84bf5] - x-runtime: ['0.019617'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '417' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9998 + 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-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=13fa9dfc7cff698c4d96c02e38eeb00f] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 + uri: https://foreman.example.org/api/compute_resources/8/images?per_page=4294967296&search=name%3D%22MYOS+1%22%2Coperatingsystem%3D%2213%22 response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYOS 1\\\",operatingsystem=\\\"13\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:22 UTC\",\"updated_at\":\"2020-03-12 - 22:07:22 UTC\",\"id\":9,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n"} + [{\"operatingsystem_id\":13,\"operatingsystem_name\":\"MYOS SP1\",\"compute_resource_id\":8,\"compute_resource_name\":\"MYCR\",\"architecture_id\":6,\"architecture_name\":\"MY1024\",\"uuid\":\"MYOStemplate\",\"username\":\"myosadmin\",\"created_at\":\"2020-08-31 + 15:17:29 UTC\",\"updated_at\":\"2020-08-31 15:17:29 UTC\",\"id\":11,\"name\":\"MYOS + 1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['416'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:24 GMT'] - etag: [W/"5bc15df818ec0fff0b4b4e2f68461c09-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9995'] - 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: [2e83ab26-f602-422b-9a3b-1f3fe479ce3e] - x-runtime: ['0.017834'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '505' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9997 + 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-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=13fa9dfc7cff698c4d96c02e38eeb00f] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images?per_page=4294967296&search=name%3DMYOS1%2Coperatingsystem%3D9 + uri: https://foreman.example.org/api/compute_resources/8/images/11 response: - body: {string: !!python/unicode "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=MYOS1,operatingsystem=9\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"operatingsystem_id\":9,\"operatingsystem_name\":\"MYOS SP1\",\"compute_resource_id\":4,\"compute_resource_name\":\"MYCR\",\"architecture_id\":4,\"architecture_name\":\"MY1024\",\"uuid\":\"MYOStemplate\",\"username\":\"myosadmin\",\"created_at\":\"2020-03-12 - 22:18:21 UTC\",\"updated_at\":\"2020-03-12 22:18:21 UTC\",\"id\":6,\"name\":\"MYOS1\"}]\n}\n"} + body: + string: !!python/unicode '{"operatingsystem_id":13,"operatingsystem_name":"MYOS + SP1","compute_resource_id":8,"compute_resource_name":"MYCR","architecture_id":6,"architecture_name":"MY1024","uuid":"MYOStemplate","username":"myosadmin","created_at":"2020-08-31 + 15:17:29 UTC","updated_at":"2020-08-31 15:17:29 UTC","id":11,"name":"MYOS + 1"}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['492'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:24 GMT'] - etag: [W/"988e6118521e0a3551db0630f5381bef-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9994'] - 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: [aaf588fd-c921-4a1f-9aec-93e244bf9237] - x-runtime: ['0.028002'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '310' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9996 + 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-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=13fa9dfc7cff698c4d96c02e38eeb00f] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images/6 + uri: https://foreman.example.org/api/architectures?per_page=4294967296&search=name%3D%22MY1024%22 response: - body: {string: !!python/unicode '{"operatingsystem_id":9,"operatingsystem_name":"MYOS - SP1","compute_resource_id":4,"compute_resource_name":"MYCR","architecture_id":4,"architecture_name":"MY1024","uuid":"MYOStemplate","username":"myosadmin","created_at":"2020-03-12 - 22:18:21 UTC","updated_at":"2020-03-12 22:18:21 UTC","id":6,"name":"MYOS1"}'} + body: + string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": + [{\"created_at\":\"2020-08-31 15:16:21 UTC\",\"updated_at\":\"2020-08-31 15:16:21 + UTC\",\"name\":\"MY1024\",\"id\":6}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['307'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:24 GMT'] - etag: [W/"31fb357673e850a92f88a3b1eb09c957-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9993'] - 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: [a84218a5-f18f-4ee5-a7e0-4330e1d5b525] - x-runtime: ['0.022858'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '274' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9995 + 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-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK - request: body: !!python/unicode '{"image": {"user_data": true, "uuid": "MYOStemplate-new", - "compute_resource_id": 4}}' + "compute_resource_id": 8}}' headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['84'] - Content-Type: [application/json] - Cookie: [_session_id=13fa9dfc7cff698c4d96c02e38eeb00f] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '84' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/compute_resources/4/images/6 + uri: https://foreman.example.org/api/compute_resources/8/images/11 response: - body: {string: !!python/unicode '{"operatingsystem_id":9,"operatingsystem_name":"MYOS - SP1","compute_resource_id":4,"compute_resource_name":"MYCR","architecture_id":4,"architecture_name":"MY1024","uuid":"MYOStemplate-new","username":"myosadmin","created_at":"2020-03-12 - 22:18:21 UTC","updated_at":"2020-03-12 22:18:24 UTC","id":6,"name":"MYOS1"}'} + body: + string: !!python/unicode '{"operatingsystem_id":13,"operatingsystem_name":"MYOS + SP1","compute_resource_id":8,"compute_resource_name":"MYCR","architecture_id":6,"architecture_name":"MY1024","uuid":"MYOStemplate-new","username":"myosadmin","created_at":"2020-08-31 + 15:17:29 UTC","updated_at":"2020-08-31 15:17:33 UTC","id":11,"name":"MYOS + 1"}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['311'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:24 GMT'] - etag: [W/"1b331cd806dd0821e84be7e1d6ab7ae2-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9992'] - server: [Apache] - set-cookie: [request_method=PUT; 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: [c7e283df-47df-46a4-bcf6-6ecffc2551fc] - x-runtime: ['0.037581'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '314' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9994 + 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-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/image-3.yml b/tests/test_playbooks/fixtures/image-3.yml index 9cd9899d..c32fcd8b 100644 --- a/tests/test_playbooks/fixtures/image-3.yml +++ b/tests/test_playbooks/fixtures/image-3.yml @@ -2,351 +2,369 @@ 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)'] + 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: !!python/unicode '{"result":"ok","status":200,"version":"1.24.2","api_version":2}'} + body: + string: !!python/unicode '{"result":"ok","status":200,"version":"1.24.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'''] - content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:25 GMT'] - etag: [W/"39b73f2292fd196be82f6d5e7da4a321"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=10000'] - server: [Apache] - set-cookie: [_session_id=0a674e8ffe5356ad98d79999bfb78dd3; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [5272d820-6301-4a94-b192-b78842d76ebd] - x-runtime: ['0.095675'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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''' + content-type: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=10000 + status: + - 200 OK + strict-transport-security: + - max-age=631139040; includeSubdomains + 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: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Cookie: [_session_id=0a674e8ffe5356ad98d79999bfb78dd3] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MY2NDOS%22 - response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MY2NDOS\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MY2NDOS\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:23 UTC\",\"updated_at\":\"2020-03-12 - 22:07:23 UTC\",\"id\":10,\"name\":\"MY2NDOS\",\"title\":\"MY2NDOS\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['417'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:25 GMT'] - etag: [W/"fe511f13ddbde3b23d6c55e4219c5ff4-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9999'] - 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: [a799389f-cf66-4386-a831-60211e65aa34] - x-runtime: ['0.018839'] - 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=0a674e8ffe5356ad98d79999bfb78dd3] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + body: + string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-08-31 + 15:14:59 UTC\",\"updated_at\":\"2020-08-31 15:16:22 UTC\",\"id\":8,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:25 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9998'] - 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: [b7f9f786-7924-42e2-aec3-b629d5ed2936] - x-runtime: ['0.018036'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '463' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9999 + 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-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=0a674e8ffe5356ad98d79999bfb78dd3] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/architectures?per_page=4294967296&search=name%3D%22MY1024%22 + uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MY2NDOS%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MY2NDOS\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"created_at\":\"2020-03-12 22:07:26 UTC\",\"updated_at\":\"2020-03-12 22:07:26 - UTC\",\"name\":\"MY1024\",\"id\":4}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['274'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:25 GMT'] - etag: [W/"f1768664a30ad88092cdabdaf1ea419f-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9997'] - 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: [ae77a6d8-af9e-4e83-8c4b-824490465015] - x-runtime: ['0.020849'] - 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=0a674e8ffe5356ad98d79999bfb78dd3] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 - response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + [{\"description\":\"MY2NDOS\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse + whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-08-31 15:15:02 UTC\",\"updated_at\":\"2020-08-31 + 15:15:02 UTC\",\"id\":14,\"name\":\"MY2NDOS\",\"title\":\"MY2NDOS\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:26 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9996'] - 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: [418f3983-2d3e-43bb-bd0c-e7a8e576ee85] - x-runtime: ['0.018671'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '417' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9998 + 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-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=0a674e8ffe5356ad98d79999bfb78dd3] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/operatingsystems?per_page=4294967296&search=title%3D%22MY2NDOS%22 + uri: https://foreman.example.org/api/compute_resources/8/images?per_page=4294967296&search=name%3D%22MYOS+1%22%2Coperatingsystem%3D%2214%22 response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MY2NDOS\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYOS 1\\\",operatingsystem=\\\"14\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MY2NDOS\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:23 UTC\",\"updated_at\":\"2020-03-12 - 22:07:23 UTC\",\"id\":10,\"name\":\"MY2NDOS\",\"title\":\"MY2NDOS\"}]\n}\n"} + []\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['417'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:26 GMT'] - etag: [W/"fe511f13ddbde3b23d6c55e4219c5ff4-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9995'] - 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: [1e3b317b-bc5c-4753-837c-4543d3e966b4] - x-runtime: ['0.017655'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '195' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9997 + 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-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=0a674e8ffe5356ad98d79999bfb78dd3] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images?per_page=4294967296&search=name%3DMYOS1%2Coperatingsystem%3D10 + uri: https://foreman.example.org/api/architectures?per_page=4294967296&search=name%3D%22MY1024%22 response: - body: {string: !!python/unicode "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=MYOS1,operatingsystem=10\",\n + body: + string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n"} + [{\"created_at\":\"2020-08-31 15:16:21 UTC\",\"updated_at\":\"2020-08-31 15:16:21 + UTC\",\"name\":\"MY1024\",\"id\":6}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['186'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:27 GMT'] - etag: [W/"bceeffd3568cd9238dc01e3cfab8bb45-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9994'] - 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: [63da127b-fc79-47b4-8093-f24885f7dd2e] - x-runtime: ['0.026713'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '274' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9996 + 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-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK - request: body: !!python/unicode '{"image": {"username": "myosadmin", "operatingsystem_id": - 10, "compute_resource_id": 4, "uuid": "MY2NDOStemplate", "architecture_id": - 4, "name": "MYOS1"}}' + 14, "compute_resource_id": 8, "uuid": "MY2NDOStemplate", "architecture_id": + 6, "name": "MYOS 1"}}' headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['154'] - Content-Type: [application/json] - Cookie: [_session_id=0a674e8ffe5356ad98d79999bfb78dd3] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '155' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.org/api/compute_resources/4/images + uri: https://foreman.example.org/api/compute_resources/8/images response: - body: {string: !!python/unicode '{"operatingsystem_id":10,"operatingsystem_name":"MY2NDOS","compute_resource_id":4,"compute_resource_name":"MYCR","architecture_id":4,"architecture_name":"MY1024","uuid":"MY2NDOStemplate","username":"myosadmin","created_at":"2020-03-12 - 22:18:27 UTC","updated_at":"2020-03-12 22:18:27 UTC","id":7,"name":"MYOS1"}'} + body: + string: !!python/unicode '{"operatingsystem_id":14,"operatingsystem_name":"MY2NDOS","compute_resource_id":8,"compute_resource_name":"MYCR","architecture_id":6,"architecture_name":"MY1024","uuid":"MY2NDOStemplate","username":"myosadmin","created_at":"2020-08-31 + 15:17:34 UTC","updated_at":"2020-08-31 15:17:34 UTC","id":12,"name":"MYOS + 1"}' 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: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:27 GMT'] - etag: [W/"ac117d792f3dc7e0a26de6b4d368f919"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9993'] - server: [Apache] - set-cookie: [request_method=POST; path=/; secure; HttpOnly; SameSite=Lax] - status: [201 Created] - 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-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [0bc68753-0386-425e-b74d-6d3fd576b108] - x-runtime: ['0.032955'] - x-xss-protection: [1; mode=block] - status: {code: 201, message: Created} + 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: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9995 + status: + - 201 Created + 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: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/image-4.yml b/tests/test_playbooks/fixtures/image-4.yml index d002ce20..f877d91a 100644 --- a/tests/test_playbooks/fixtures/image-4.yml +++ b/tests/test_playbooks/fixtures/image-4.yml @@ -2,348 +2,367 @@ 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)'] + 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: !!python/unicode '{"result":"ok","status":200,"version":"1.24.2","api_version":2}'} + body: + string: !!python/unicode '{"result":"ok","status":200,"version":"1.24.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'''] - content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:28 GMT'] - etag: [W/"39b73f2292fd196be82f6d5e7da4a321"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=10000'] - server: [Apache] - set-cookie: [_session_id=0ae8136fefb371512debba3bc03923aa; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [b5e710e2-58a0-4123-910a-42bebe09ff98] - x-runtime: ['0.093712'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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''' + content-type: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=10000 + status: + - 200 OK + strict-transport-security: + - max-age=631139040; includeSubdomains + 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: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Cookie: [_session_id=0ae8136fefb371512debba3bc03923aa] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MY2NDOS%22 - response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MY2NDOS\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MY2NDOS\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:23 UTC\",\"updated_at\":\"2020-03-12 - 22:07:23 UTC\",\"id\":10,\"name\":\"MY2NDOS\",\"title\":\"MY2NDOS\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['417'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:28 GMT'] - etag: [W/"fe511f13ddbde3b23d6c55e4219c5ff4-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9999'] - 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: [1399fc79-84b1-4dda-8c8b-11b2a2fa3b93] - x-runtime: ['0.019126'] - 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=0ae8136fefb371512debba3bc03923aa] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + body: + string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-08-31 + 15:14:59 UTC\",\"updated_at\":\"2020-08-31 15:16:22 UTC\",\"id\":8,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:28 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9998'] - 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: [c53f173c-3a65-4490-909a-ec596a489cdc] - x-runtime: ['0.021096'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '463' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9999 + 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-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=0ae8136fefb371512debba3bc03923aa] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/architectures?per_page=4294967296&search=name%3D%22MY1024%22 + uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MY2NDOS%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MY2NDOS\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"created_at\":\"2020-03-12 22:07:26 UTC\",\"updated_at\":\"2020-03-12 22:07:26 - UTC\",\"name\":\"MY1024\",\"id\":4}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['274'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:28 GMT'] - etag: [W/"f1768664a30ad88092cdabdaf1ea419f-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9997'] - 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: [d5ac63cb-94b2-44ae-b675-8b4339f5114b] - x-runtime: ['0.017478'] - 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=0ae8136fefb371512debba3bc03923aa] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 - response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + [{\"description\":\"MY2NDOS\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse + whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-08-31 15:15:02 UTC\",\"updated_at\":\"2020-08-31 + 15:15:02 UTC\",\"id\":14,\"name\":\"MY2NDOS\",\"title\":\"MY2NDOS\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:28 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9996'] - 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: [0632a74f-8cc4-4ae5-b2c0-8dabdcacb971] - x-runtime: ['0.018446'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '417' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9998 + 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-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=0ae8136fefb371512debba3bc03923aa] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/operatingsystems?per_page=4294967296&search=title%3D%22MY2NDOS%22 + uri: https://foreman.example.org/api/compute_resources/8/images?per_page=4294967296&search=name%3D%22MYOS+1%22%2Coperatingsystem%3D%2214%22 response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MY2NDOS\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYOS 1\\\",operatingsystem=\\\"14\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MY2NDOS\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:23 UTC\",\"updated_at\":\"2020-03-12 - 22:07:23 UTC\",\"id\":10,\"name\":\"MY2NDOS\",\"title\":\"MY2NDOS\"}]\n}\n"} + [{\"operatingsystem_id\":14,\"operatingsystem_name\":\"MY2NDOS\",\"compute_resource_id\":8,\"compute_resource_name\":\"MYCR\",\"architecture_id\":6,\"architecture_name\":\"MY1024\",\"uuid\":\"MY2NDOStemplate\",\"username\":\"myosadmin\",\"created_at\":\"2020-08-31 + 15:17:34 UTC\",\"updated_at\":\"2020-08-31 15:17:34 UTC\",\"id\":12,\"name\":\"MYOS + 1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['417'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:28 GMT'] - etag: [W/"fe511f13ddbde3b23d6c55e4219c5ff4-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9995'] - 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: [676f107f-d8f5-449c-9b8e-b7aca47a139e] - x-runtime: ['0.016579'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '507' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9997 + 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-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=0ae8136fefb371512debba3bc03923aa] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images?per_page=4294967296&search=name%3DMYOS1%2Coperatingsystem%3D10 + uri: https://foreman.example.org/api/compute_resources/8/images/12 response: - body: {string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=MYOS1,operatingsystem=10\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"operatingsystem_id\":10,\"operatingsystem_name\":\"MY2NDOS\",\"compute_resource_id\":4,\"compute_resource_name\":\"MYCR\",\"architecture_id\":4,\"architecture_name\":\"MY1024\",\"uuid\":\"MY2NDOStemplate\",\"username\":\"myosadmin\",\"created_at\":\"2020-03-12 - 22:18:27 UTC\",\"updated_at\":\"2020-03-12 22:18:27 UTC\",\"id\":7,\"name\":\"MYOS1\"}]\n}\n"} + body: + string: !!python/unicode '{"operatingsystem_id":14,"operatingsystem_name":"MY2NDOS","compute_resource_id":8,"compute_resource_name":"MYCR","architecture_id":6,"architecture_name":"MY1024","uuid":"MY2NDOStemplate","username":"myosadmin","created_at":"2020-08-31 + 15:17:34 UTC","updated_at":"2020-08-31 15:17:34 UTC","id":12,"name":"MYOS + 1"}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['496'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:28 GMT'] - etag: [W/"7fcc2b679cbcdd0d0bab55bc3af81d4d-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9994'] - 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: [a343c94d-9f26-4f0a-82a3-496bcc7b24df] - x-runtime: ['0.027187'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '312' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9996 + 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-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=0ae8136fefb371512debba3bc03923aa] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images/7 + uri: https://foreman.example.org/api/architectures?per_page=4294967296&search=name%3D%22MY1024%22 response: - body: {string: !!python/unicode '{"operatingsystem_id":10,"operatingsystem_name":"MY2NDOS","compute_resource_id":4,"compute_resource_name":"MYCR","architecture_id":4,"architecture_name":"MY1024","uuid":"MY2NDOStemplate","username":"myosadmin","created_at":"2020-03-12 - 22:18:27 UTC","updated_at":"2020-03-12 22:18:27 UTC","id":7,"name":"MYOS1"}'} + body: + string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": + [{\"created_at\":\"2020-08-31 15:16:21 UTC\",\"updated_at\":\"2020-08-31 15:16:21 + UTC\",\"name\":\"MY1024\",\"id\":6}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['310'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:28 GMT'] - etag: [W/"ac117d792f3dc7e0a26de6b4d368f919-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9993'] - 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: [e9ac62b3-9ee1-458a-afa7-b99068958d42] - x-runtime: ['0.022495'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '274' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9995 + 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-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/image-5.yml b/tests/test_playbooks/fixtures/image-5.yml index 1661a5aa..bb630951 100644 --- a/tests/test_playbooks/fixtures/image-5.yml +++ b/tests/test_playbooks/fixtures/image-5.yml @@ -2,349 +2,368 @@ 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)'] + 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: !!python/unicode '{"result":"ok","status":200,"version":"1.24.2","api_version":2}'} + body: + string: !!python/unicode '{"result":"ok","status":200,"version":"1.24.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'''] - content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:29 GMT'] - etag: [W/"39b73f2292fd196be82f6d5e7da4a321"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=10000'] - server: [Apache] - set-cookie: [_session_id=95def109a0456712bdef7378e77a82db; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [3dbdc730-09a3-46f6-8f5a-2aad9dbe6ada] - x-runtime: ['1.095427'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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''' + content-type: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=10000 + status: + - 200 OK + strict-transport-security: + - max-age=631139040; includeSubdomains + 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: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Cookie: [_session_id=95def109a0456712bdef7378e77a82db] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 - response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:22 UTC\",\"updated_at\":\"2020-03-12 - 22:07:22 UTC\",\"id\":9,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['416'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:30 GMT'] - etag: [W/"5bc15df818ec0fff0b4b4e2f68461c09-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9999'] - 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: [2fa54b95-c375-4416-8c95-15a82938123c] - x-runtime: ['0.018913'] - 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=95def109a0456712bdef7378e77a82db] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + body: + string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-08-31 + 15:14:59 UTC\",\"updated_at\":\"2020-08-31 15:16:22 UTC\",\"id\":8,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:30 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9998'] - 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: [dfeb6c4b-6f2f-4ef7-b3a3-f901a163ac78] - x-runtime: ['0.019341'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '463' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9999 + 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-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=95def109a0456712bdef7378e77a82db] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/architectures?per_page=4294967296&search=name%3D%22MY1024%22 + uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"created_at\":\"2020-03-12 22:07:26 UTC\",\"updated_at\":\"2020-03-12 22:07:26 - UTC\",\"name\":\"MY1024\",\"id\":4}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['274'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:31 GMT'] - etag: [W/"f1768664a30ad88092cdabdaf1ea419f-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9997'] - 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: [4220378d-3b25-46df-8b96-a70d44d0f373] - x-runtime: ['0.018485'] - 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=95def109a0456712bdef7378e77a82db] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] - method: GET - uri: https://foreman.example.org/api/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 - response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse + whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-08-31 15:15:00 UTC\",\"updated_at\":\"2020-08-31 + 15:15:00 UTC\",\"id\":13,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:31 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9996'] - 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: [847f18bb-c06d-4323-890f-92cbdea8fa1b] - x-runtime: ['0.017377'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '417' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9998 + 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-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=95def109a0456712bdef7378e77a82db] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 + uri: https://foreman.example.org/api/compute_resources/8/images?per_page=4294967296&search=name%3D%22MYOS+1%22%2Coperatingsystem%3D%2213%22 response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n + body: + string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYOS 1\\\",operatingsystem=\\\"13\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:22 UTC\",\"updated_at\":\"2020-03-12 - 22:07:22 UTC\",\"id\":9,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n"} + [{\"operatingsystem_id\":13,\"operatingsystem_name\":\"MYOS SP1\",\"compute_resource_id\":8,\"compute_resource_name\":\"MYCR\",\"architecture_id\":6,\"architecture_name\":\"MY1024\",\"uuid\":\"MYOStemplate-new\",\"username\":\"myosadmin\",\"created_at\":\"2020-08-31 + 15:17:29 UTC\",\"updated_at\":\"2020-08-31 15:17:33 UTC\",\"id\":11,\"name\":\"MYOS + 1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['416'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:31 GMT'] - etag: [W/"5bc15df818ec0fff0b4b4e2f68461c09-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9995'] - 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: [595babce-a5f6-44c7-bd23-8953b6598562] - x-runtime: ['0.017322'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '509' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9997 + 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-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=95def109a0456712bdef7378e77a82db] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images?per_page=4294967296&search=name%3DMYOS1%2Coperatingsystem%3D9 + uri: https://foreman.example.org/api/compute_resources/8/images/11 response: - body: {string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=MYOS1,operatingsystem=9\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"operatingsystem_id\":9,\"operatingsystem_name\":\"MYOS SP1\",\"compute_resource_id\":4,\"compute_resource_name\":\"MYCR\",\"architecture_id\":4,\"architecture_name\":\"MY1024\",\"uuid\":\"MYOStemplate-new\",\"username\":\"myosadmin\",\"created_at\":\"2020-03-12 - 22:18:21 UTC\",\"updated_at\":\"2020-03-12 22:18:24 UTC\",\"id\":6,\"name\":\"MYOS1\"}]\n}\n"} + body: + string: !!python/unicode '{"operatingsystem_id":13,"operatingsystem_name":"MYOS + SP1","compute_resource_id":8,"compute_resource_name":"MYCR","architecture_id":6,"architecture_name":"MY1024","uuid":"MYOStemplate-new","username":"myosadmin","created_at":"2020-08-31 + 15:17:29 UTC","updated_at":"2020-08-31 15:17:33 UTC","id":11,"name":"MYOS + 1"}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['496'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:31 GMT'] - etag: [W/"e1d6c84020a5800a6d41e502374204e1-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9994'] - 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: [0d1e06fd-5672-4a86-bbad-15369483ba93] - x-runtime: ['0.030506'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '314' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9996 + 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-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=95def109a0456712bdef7378e77a82db] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images/6 + uri: https://foreman.example.org/api/architectures?per_page=4294967296&search=name%3D%22MY1024%22 response: - body: {string: !!python/unicode '{"operatingsystem_id":9,"operatingsystem_name":"MYOS - SP1","compute_resource_id":4,"compute_resource_name":"MYCR","architecture_id":4,"architecture_name":"MY1024","uuid":"MYOStemplate-new","username":"myosadmin","created_at":"2020-03-12 - 22:18:21 UTC","updated_at":"2020-03-12 22:18:24 UTC","id":6,"name":"MYOS1"}'} + body: + string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MY1024\\\"\",\n + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": + [{\"created_at\":\"2020-08-31 15:16:21 UTC\",\"updated_at\":\"2020-08-31 15:16:21 + UTC\",\"name\":\"MY1024\",\"id\":6}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['311'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:31 GMT'] - etag: [W/"1b331cd806dd0821e84be7e1d6ab7ae2-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9993'] - 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: [f180eea0-1808-4483-85cc-b032d128824e] - x-runtime: ['0.022394'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '274' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9995 + 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-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/image-6.yml b/tests/test_playbooks/fixtures/image-6.yml index af3ac351..3237a726 100644 --- a/tests/test_playbooks/fixtures/image-6.yml +++ b/tests/test_playbooks/fixtures/image-6.yml @@ -2,216 +2,306 @@ 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)'] + 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: !!python/unicode '{"result":"ok","status":200,"version":"1.24.2","api_version":2}'} + body: + string: !!python/unicode '{"result":"ok","status":200,"version":"1.24.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'''] - content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:32 GMT'] - etag: [W/"39b73f2292fd196be82f6d5e7da4a321"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=10000'] - server: [Apache] - set-cookie: [_session_id=2aa17b96563f352c54490103ef324c10; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [91a2bded-bed9-47de-b3a5-1e1597ad120a] - x-runtime: ['0.092800'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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''' + content-type: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=10000 + status: + - 200 OK + strict-transport-security: + - max-age=631139040; includeSubdomains + 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: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Cookie: [_session_id=2aa17b96563f352c54490103ef324c10] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 + uri: https://foreman.example.org/api/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:22 UTC\",\"updated_at\":\"2020-03-12 - 22:07:22 UTC\",\"id\":9,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n"} + body: + string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A + compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-08-31 + 15:14:59 UTC\",\"updated_at\":\"2020-08-31 15:16:22 UTC\",\"id\":8,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['416'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:32 GMT'] - etag: [W/"5bc15df818ec0fff0b4b4e2f68461c09-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9999'] - 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: [331c6c19-3089-4608-ad1a-639cd9c9ca45] - x-runtime: ['0.018944'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '463' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9999 + 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-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=2aa17b96563f352c54490103ef324c10] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 + uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MYOS+SP1%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + body: + string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MYOS SP1\\\"\",\n + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": + [{\"description\":\"MYOS SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse + whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-08-31 15:15:00 UTC\",\"updated_at\":\"2020-08-31 + 15:15:00 UTC\",\"id\":13,\"name\":\"MYOS\",\"title\":\"MYOS SP1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:32 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9998'] - 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: [5a6444bb-070b-4125-959b-a603fd43ff21] - x-runtime: ['0.017878'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '417' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9998 + 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-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=2aa17b96563f352c54490103ef324c10] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images?per_page=4294967296&search=name%3DMYOS1%2Coperatingsystem%3D9 + uri: https://foreman.example.org/api/compute_resources/8/images?per_page=4294967296&search=name%3D%22MYOS+1%22%2Coperatingsystem%3D%2213%22 response: - body: {string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=MYOS1,operatingsystem=9\",\n + body: + string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYOS 1\\\",operatingsystem=\\\"13\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"operatingsystem_id\":9,\"operatingsystem_name\":\"MYOS SP1\",\"compute_resource_id\":4,\"compute_resource_name\":\"MYCR\",\"architecture_id\":4,\"architecture_name\":\"MY1024\",\"uuid\":\"MYOStemplate-new\",\"username\":\"myosadmin\",\"created_at\":\"2020-03-12 - 22:18:21 UTC\",\"updated_at\":\"2020-03-12 22:18:24 UTC\",\"id\":6,\"name\":\"MYOS1\"}]\n}\n"} + [{\"operatingsystem_id\":13,\"operatingsystem_name\":\"MYOS SP1\",\"compute_resource_id\":8,\"compute_resource_name\":\"MYCR\",\"architecture_id\":6,\"architecture_name\":\"MY1024\",\"uuid\":\"MYOStemplate-new\",\"username\":\"myosadmin\",\"created_at\":\"2020-08-31 + 15:17:29 UTC\",\"updated_at\":\"2020-08-31 15:17:33 UTC\",\"id\":11,\"name\":\"MYOS + 1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['496'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:32 GMT'] - etag: [W/"e1d6c84020a5800a6d41e502374204e1-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9997'] - 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: [879318c7-42db-48dc-9ad8-e1a772f73173] - x-runtime: ['0.030491'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '509' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9997 + 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-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] - Content-Length: ['0'] - Cookie: [_session_id=2aa17b96563f352c54490103ef324c10] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/api/compute_resources/4/images/6 + uri: https://foreman.example.org/api/compute_resources/8/images/11 response: - body: {string: !!python/unicode '{"id":6,"operatingsystem_id":9,"compute_resource_id":4,"architecture_id":4,"uuid":"MYOStemplate-new","username":"myosadmin","name":"MYOS1","created_at":"2020-03-12T22:18:21.220Z","updated_at":"2020-03-12T22:18:24.815Z","iam_role":null,"user_data":true,"password":null}'} + body: + string: !!python/unicode '{"id":11,"operatingsystem_id":13,"compute_resource_id":8,"architecture_id":6,"uuid":"MYOStemplate-new","username":"myosadmin","name":"MYOS + 1","created_at":"2020-08-31T15:17:29.296Z","updated_at":"2020-08-31T15:17:33.213Z","iam_role":null,"user_data":true,"password":null}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['268'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:32 GMT'] - etag: [W/"a6cbeb64752c442baddc8d1fcc02c44c-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9996'] - server: [Apache] - set-cookie: [request_method=DELETE; 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: [a67e5b94-13c8-4850-bc61-7ab6740f8ea3] - x-runtime: ['0.037720'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '271' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9996 + 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-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/image-7.yml b/tests/test_playbooks/fixtures/image-7.yml index 48893fa5..72c8e6d4 100644 --- a/tests/test_playbooks/fixtures/image-7.yml +++ b/tests/test_playbooks/fixtures/image-7.yml @@ -2,216 +2,306 @@ 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)'] + 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: !!python/unicode '{"result":"ok","status":200,"version":"1.24.2","api_version":2}'} + body: + string: !!python/unicode '{"result":"ok","status":200,"version":"1.24.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'''] - content-type: [application/json; charset=utf-8] - date: ['Thu, 12 Mar 2020 22:18:33 GMT'] - etag: [W/"39b73f2292fd196be82f6d5e7da4a321"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=10000'] - server: [Apache] - set-cookie: [_session_id=f0e58e16537bd1e7e10d40e9ee07395e; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [90163df5-fbfd-4ea2-ae84-4ca01002c004] - x-runtime: ['0.094693'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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''' + content-type: + - application/json; charset=utf-8 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=10000 + status: + - 200 OK + strict-transport-security: + - max-age=631139040; includeSubdomains + 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: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Cookie: [_session_id=f0e58e16537bd1e7e10d40e9ee07395e] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/operatingsystems?per_page=4294967296&search=title%3D%22MY2NDOS%22 + uri: https://foreman.example.org/api/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 response: - body: {string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MY2NDOS\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"MY2NDOS\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-03-12 22:07:23 UTC\",\"updated_at\":\"2020-03-12 - 22:07:23 UTC\",\"id\":10,\"name\":\"MY2NDOS\",\"title\":\"MY2NDOS\"}]\n}\n"} + body: + string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": + {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A + compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-08-31 + 15:14:59 UTC\",\"updated_at\":\"2020-08-31 15:16:22 UTC\",\"id\":8,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['417'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:33 GMT'] - etag: [W/"fe511f13ddbde3b23d6c55e4219c5ff4-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9999'] - 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: [eb4d30ee-d799-43cc-a176-e61efc4b6dcd] - x-runtime: ['0.019328'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '463' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9999 + 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-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=f0e58e16537bd1e7e10d40e9ee07395e] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources?per_page=4294967296&search=name%3D%22MYCR%22 + uri: https://foreman.example.org/api/operatingsystems?per_page=4294967296&search=title%3D%22MY2NDOS%22 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYCR\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"A - compute_resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2020-03-12 - 22:07:21 UTC\",\"updated_at\":\"2020-03-12 22:07:28 UTC\",\"id\":4,\"name\":\"MYCR\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"spice\",\"set_console_password\":true}]\n}\n"} + body: + string: !!python/unicode "{\n \"total\": 8,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"title=\\\"MY2NDOS\\\"\",\n + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": + [{\"description\":\"MY2NDOS\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse + whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-08-31 15:15:02 UTC\",\"updated_at\":\"2020-08-31 + 15:15:02 UTC\",\"id\":14,\"name\":\"MY2NDOS\",\"title\":\"MY2NDOS\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['463'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:33 GMT'] - etag: [W/"096749dd4b608066246a9b2fccabf171-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9998'] - 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: [310e899b-77e9-4154-b87d-74a6b3c0790e] - x-runtime: ['0.018143'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '417' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9998 + 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-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=f0e58e16537bd1e7e10d40e9ee07395e] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/compute_resources/4/images?per_page=4294967296&search=name%3DMYOS1%2Coperatingsystem%3D10 + uri: https://foreman.example.org/api/compute_resources/8/images?per_page=4294967296&search=name%3D%22MYOS+1%22%2Coperatingsystem%3D%2214%22 response: - body: {string: !!python/unicode "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=MYOS1,operatingsystem=10\",\n + body: + string: !!python/unicode "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": + 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"MYOS 1\\\",operatingsystem=\\\"14\\\"\",\n \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"operatingsystem_id\":10,\"operatingsystem_name\":\"MY2NDOS\",\"compute_resource_id\":4,\"compute_resource_name\":\"MYCR\",\"architecture_id\":4,\"architecture_name\":\"MY1024\",\"uuid\":\"MY2NDOStemplate\",\"username\":\"myosadmin\",\"created_at\":\"2020-03-12 - 22:18:27 UTC\",\"updated_at\":\"2020-03-12 22:18:27 UTC\",\"id\":7,\"name\":\"MYOS1\"}]\n}\n"} + [{\"operatingsystem_id\":14,\"operatingsystem_name\":\"MY2NDOS\",\"compute_resource_id\":8,\"compute_resource_name\":\"MYCR\",\"architecture_id\":6,\"architecture_name\":\"MY1024\",\"uuid\":\"MY2NDOStemplate\",\"username\":\"myosadmin\",\"created_at\":\"2020-08-31 + 15:17:34 UTC\",\"updated_at\":\"2020-08-31 15:17:34 UTC\",\"id\":12,\"name\":\"MYOS + 1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['496'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:33 GMT'] - etag: [W/"b9e9c6a34e0514ca7ffbd5a025d94a60-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9997'] - 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: [8bf6835e-19ed-418a-bf6f-4501e5b03cd0] - x-runtime: ['0.026696'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '507' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9997 + 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-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] - Content-Length: ['0'] - Cookie: [_session_id=f0e58e16537bd1e7e10d40e9ee07395e] - User-Agent: ['apypie (https://github.com/Apipie/apypie)'] + 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/api/compute_resources/4/images/7 + uri: https://foreman.example.org/api/compute_resources/8/images/12 response: - body: {string: !!python/unicode '{"id":7,"operatingsystem_id":10,"compute_resource_id":4,"architecture_id":4,"uuid":"MY2NDOStemplate","username":"myosadmin","name":"MYOS1","created_at":"2020-03-12T22:18:27.113Z","updated_at":"2020-03-12T22:18:27.113Z","iam_role":null,"user_data":false,"password":null}'} + body: + string: !!python/unicode '{"id":12,"operatingsystem_id":14,"compute_resource_id":8,"architecture_id":6,"uuid":"MY2NDOStemplate","username":"myosadmin","name":"MYOS + 1","created_at":"2020-08-31T15:17:34.683Z","updated_at":"2020-08-31T15:17:34.683Z","iam_role":null,"user_data":false,"password":null}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - connection: [Keep-Alive] - content-length: ['269'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 12 Mar 2020 22:18:33 GMT'] - etag: [W/"c20f59991444a94248bd422f824f276e-gzip"] - foreman_api_version: ['2'] - foreman_current_location: [; ANY] - foreman_current_organization: [; ANY] - foreman_version: [1.24.2] - keep-alive: ['timeout=5, max=9996'] - server: [Apache] - set-cookie: [request_method=DELETE; 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: [afc4bc36-8ce4-450b-923f-7751381f5d47] - x-runtime: ['0.030595'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + cache-control: + - max-age=0, private, must-revalidate + connection: + - Keep-Alive + content-length: + - '271' + content-security-policy: + - 'default-src ''self''; child-src ''self''; connect-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 + foreman_api_version: + - '2' + foreman_current_location: + - ; ANY + foreman_current_organization: + - ; ANY + foreman_version: + - 1.24.2 + keep-alive: + - timeout=5, max=9996 + 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-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/image.yml b/tests/test_playbooks/image.yml index 043779bd..4f30fd93 100644 --- a/tests/test_playbooks/image.yml +++ b/tests/test_playbooks/image.yml @@ -50,7 +50,7 @@ compute_resource_state: present - include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MYOStemplate" image_username: "myosadmin" image_operatingsystem: "MYOS SP1" @@ -59,7 +59,7 @@ image_state: absent - include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MY2NDOStemplate" image_username: "myosadmin" image_operatingsystem: "MY2NDOS" @@ -80,7 +80,7 @@ - name: Create MYIMAGE include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MYOStemplate" image_username: "myosadmin" image_operatingsystem: "MYOS SP1" @@ -91,7 +91,7 @@ - name: Do not change MYIMAGE include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MYOStemplate" image_username: "myosadmin" image_operatingsystem: "MYOS SP1" @@ -102,7 +102,7 @@ - name: Modify MYIMAGE include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MYOStemplate-new" image_username: "myosadmin" image_operatingsystem: "MYOS SP1" @@ -114,7 +114,7 @@ - name: Create MY2NDIMAGE with same name include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MY2NDOStemplate" image_username: "myosadmin" image_operatingsystem: "MY2NDOS" @@ -125,7 +125,7 @@ - name: Do not change MY2NDIMAGE include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MY2NDOStemplate" image_username: "myosadmin" image_operatingsystem: "MY2NDOS" @@ -136,7 +136,7 @@ - name: Do not change MYIMAGE include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MYOStemplate-new" image_username: "myosadmin" image_operatingsystem: "MYOS SP1" @@ -147,7 +147,7 @@ - name: Delete MYIMAGE include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MYOStemplate" image_username: "myosadmin" image_operatingsystem: "MYOS SP1" @@ -159,7 +159,7 @@ - name: Delete MY2NDIMAGE include_tasks: tasks/image.yml vars: - image_name: "MYOS1" + image_name: "MYOS 1" image_uuid: "MY2NDOStemplate-new" image_username: "myosadmin" image_operatingsystem: "MY2NDOS" From 91ef150ab3a5046741c7f84ebcd1544a5449a614 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 1 Sep 2020 09:26:11 +0200 Subject: [PATCH 71/88] add changelog for issue #927 --- changelogs/fragments/927-image-quoting.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/927-image-quoting.yaml diff --git a/changelogs/fragments/927-image-quoting.yaml b/changelogs/fragments/927-image-quoting.yaml new file mode 100644 index 00000000..130ebf86 --- /dev/null +++ b/changelogs/fragments/927-image-quoting.yaml @@ -0,0 +1,2 @@ +bugfixes: + - image - fix quoting of search values (https://github.com/theforeman/foreman-ansible-modules/issues/927) From c5efa384ad7938e32f449756e8f14f624513b9c0 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 31 Aug 2020 16:20:52 +0200 Subject: [PATCH 72/88] pin cryptography to pre 3.1 on python 3.5 and older 3.1 emits funny deprecation warnings on 3.5 and that confuses sanity --- requirements-dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index e2296242..2461bed1 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,6 +6,7 @@ ansible_runner python-debian rpm-py-installer docker +cryptography<3.1; python_version < '3.6' -r requirements.txt -r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.pylint.txt -r https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.rstcheck.txt From d828eb4851f51dda887cda3046cd49f815df5472 Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Wed, 26 Aug 2020 16:06:26 +0200 Subject: [PATCH 73/88] possibility to pass flags to test_ and record_ makefile entries --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ff9ff8e5..70799133 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ PYTHON_VERSION = $(shell python -c 'import sys; print("{}.{}".format(sys.version COLLECTION_COMMAND ?= ansible-galaxy SANITY_OPTS = --venv TEST = +FLAGS = PYTEST = pytest -n 4 --boxed -v default: help @@ -57,11 +58,11 @@ test-other: $(PYTEST) -k 'not test_crud.py' test_%: FORCE $(MANIFEST) | tests/test_playbooks/vars/server.yml - pytest -v 'tests/test_crud.py::test_crud[$*]' 'tests/test_crud.py::test_check_mode[$*]' + pytest -v 'tests/test_crud.py::test_crud[$*]' 'tests/test_crud.py::test_check_mode[$*]' $(FLAGS) record_%: FORCE $(MANIFEST) $(RM) tests/test_playbooks/fixtures/$*-*.yml - pytest -v 'tests/test_crud.py::test_crud[$*]' --record + pytest -v 'tests/test_crud.py::test_crud[$*]' --record $(FLAGS) clean_%: FORCE $(MANIFEST) ansible-playbook --tags teardown,cleanup -i tests/inventory/hosts 'tests/test_playbooks/$*.yml' From 7f3f6eb864875476c2f143764e1ba6d2efa341e7 Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 2 Sep 2020 14:31:02 +0200 Subject: [PATCH 74/88] added option "caching_enabled" to vmware (#939) --- .../939-compute_resource-added_caching_enabled.yaml | 2 ++ plugins/modules/compute_resource.py | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/939-compute_resource-added_caching_enabled.yaml diff --git a/changelogs/fragments/939-compute_resource-added_caching_enabled.yaml b/changelogs/fragments/939-compute_resource-added_caching_enabled.yaml new file mode 100644 index 00000000..564be580 --- /dev/null +++ b/changelogs/fragments/939-compute_resource-added_caching_enabled.yaml @@ -0,0 +1,2 @@ +minor_changes: + - compute_resource - added ``caching_enabled`` option for VMware compute resources diff --git a/plugins/modules/compute_resource.py b/plugins/modules/compute_resource.py index bb91955c..cd38f2bc 100644 --- a/plugins/modules/compute_resource.py +++ b/plugins/modules/compute_resource.py @@ -116,6 +116,10 @@ description: - verify ssl from provider I(provider=proxmox) type: bool + caching_enabled: + description: + - enable caching for I(provider=vmware) + type: bool extends_documentation_fragment: - theforeman.foreman.foreman - theforeman.foreman.foreman.entity_state_with_defaults @@ -173,6 +177,7 @@ - ACME provider: vmware provider_params: + caching_enabled: false url: vsphere.example.com user: admin password: secret @@ -308,7 +313,7 @@ def get_provider_info(provider): return 'Proxmox', ['url', 'user', 'password', 'ssl_verify_peer'] elif provider_name == 'vmware': - return 'Vmware', ['url', 'user', 'password', 'datacenter'] + return 'Vmware', ['url', 'user', 'password', 'datacenter', 'caching_enabled'] elif provider_name == 'ec2': return 'EC2', ['user', 'password', 'region'] @@ -337,6 +342,7 @@ def main(): 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'), @@ -360,6 +366,7 @@ def main(): tenant=dict(), app_ident=dict(), datacenter=dict(), + caching_enabled=dict(type='bool'), use_v4=dict(type='bool'), ovirt_quota=dict(), project=dict(), From 5c729214b90721b2461f8c3b7929fca8141808ee Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 31 Aug 2020 14:47:20 +0200 Subject: [PATCH 75/88] update the list of supported repository params Fixes: #935 --- .../fragments/935-repository-params.yaml | 2 + plugins/modules/repository.py | 62 ++++++++++++++++++- 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/935-repository-params.yaml diff --git a/changelogs/fragments/935-repository-params.yaml b/changelogs/fragments/935-repository-params.yaml new file mode 100644 index 00000000..61cc552e --- /dev/null +++ b/changelogs/fragments/935-repository-params.yaml @@ -0,0 +1,2 @@ +minor_changes: + - repository - update supported parameters (https://github.com/theforeman/foreman-ansible-modules/issues/935) diff --git a/plugins/modules/repository.py b/plugins/modules/repository.py index 129acb3a..df6e5d37 100644 --- a/plugins/modules/repository.py +++ b/plugins/modules/repository.py @@ -33,6 +33,11 @@ - Name of the repository required: true type: str + description: + description: + - Description of the repository + required: false + type: str product: description: - Product to which the repository lives in @@ -44,7 +49,7 @@ type: str content_type: description: - - The content type of the repository (e.g. yum) + - The content type of the repository required: true choices: - deb @@ -53,6 +58,7 @@ - ostree - puppet - yum + - ansible_collection type: str url: description: @@ -116,6 +122,11 @@ default: true type: bool required: false + verify_ssl_on_sync: + description: + - verify the upstream certifcates are signed by a trusted CA + type: bool + required: false upstream_username: description: - username to access upstream repository @@ -157,6 +168,36 @@ - only available for I(content_type=deb) type: str required: false + unprotected: + description: + - publish the repository via HTTP + type: bool + required: false + checksum_type: + description: + - Checksum of the repository + type: str + required: false + choices: + - sha1 + - sha256 + ignorable_content: + description: + - List of content units to ignore while syncing a yum repository. + - Must be subset of rpm,drpm,srpm,distribution,erratum. + type: list + elements: str + required: false + ansible_collection_requirements: + description: + - Contents of requirement yaml file to sync from URL + type: str + required: false + auto_enabled: + description: + - repositories will be automatically enabled on a registered host subscribed to this product + type: bool + required: false extends_documentation_fragment: - theforeman.foreman.foreman - theforeman.foreman.foreman.entity_state_with_defaults @@ -220,7 +261,7 @@ def main(): product=dict(type='entity', scope=['organization'], required=True), label=dict(), name=dict(required=True), - content_type=dict(required=True, choices=['docker', 'ostree', 'yum', 'puppet', 'file', 'deb']), + content_type=dict(required=True, choices=['docker', 'ostree', 'yum', 'puppet', 'file', 'deb', 'ansible_collection']), url=dict(), ignore_global_proxy=dict(type='bool'), http_proxy_policy=dict(choices=['global_default_http_proxy', 'none', 'use_selected_http_proxy']), @@ -231,6 +272,7 @@ def main(): ssl_client_key=dict(type='entity', resource_type='content_credentials', scope=['organization']), download_policy=dict(choices=['background', 'immediate', 'on_demand']), mirror_on_sync=dict(type='bool', default=True), + verify_ssl_on_sync=dict(type='bool'), upstream_username=dict(), upstream_password=dict(no_log=True), docker_upstream_name=dict(), @@ -239,6 +281,12 @@ def main(): deb_releases=dict(), deb_components=dict(), deb_architectures=dict(), + description=dict(), + unprotected=dict(type='bool'), + checksum_type=dict(choices=['sha1', 'sha256']), + ignorable_content=dict(type='list', elements='str'), + ansible_collection_requirements=dict(), + auto_enabled=dict(type='bool'), ), argument_spec=dict( state=dict(default='present', choices=['present_with_defaults', 'present', 'absent']), @@ -256,6 +304,16 @@ def main(): if invalid_list: module.fail_json(msg="({0}) can only be used with content_type 'deb'".format(",".join(invalid_list))) + if module.foreman_params['content_type'] != 'ansible_collection': + invalid_list = [key for key in ['ansible_collection_requirements'] if key in module.foreman_params] + if invalid_list: + module.fail_json(msg="({0}) can only be used with content_type 'ansible_collection'".format(",".join(invalid_list))) + + if module.foreman_params['content_type'] != 'yum': + invalid_list = [key for key in ['ignorable_content'] if key in module.foreman_params] + if invalid_list: + module.fail_json(msg="({0}) can only be used with content_type 'yum'".format(",".join(invalid_list))) + if 'ignore_global_proxy' in module.foreman_params and 'http_proxy_policy' not in module.foreman_params: module.foreman_params['http_proxy_policy'] = 'none' if module.foreman_params['ignore_global_proxy'] else 'global_default_http_proxy' From 50a461f204fabec664ece7b0c2ba2c9f2934e8f5 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 2 Sep 2020 16:58:29 +0200 Subject: [PATCH 76/88] adjust parameter handling code to use single API call --- plugins/module_utils/foreman_helper.py | 65 ++++++++++++++++++++++---- plugins/modules/domain.py | 4 +- plugins/modules/subnet.py | 4 +- tests/test_foreman_spec_helper.py | 2 +- 4 files changed, 62 insertions(+), 13 deletions(-) diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index e32b1663..f02bd684 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -11,6 +11,7 @@ import hashlib import json import os +import operator import re import time import traceback @@ -47,6 +48,8 @@ parameter_type=dict(default='string', choices=['string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json']), ) +parameter_ansible_spec = {k: v for (k, v) in parameter_foreman_spec.items() if k != 'id'} + _PLUGIN_RESOURCES = { 'discovery': 'discovery_rules', 'katello': 'subscriptions', @@ -178,6 +181,27 @@ def __init__(self, **kwargs): super(TaxonomyMixin, self).__init__(foreman_spec=foreman_spec, **kwargs) +class ParametersMixin(object): + def __init__(self, **kwargs): + self.entity_name = kwargs.pop('entity_name', self.entity_name_from_class) + foreman_spec = dict( + parameters=dict(type='list', elements='dict', options=parameter_ansible_spec, flat_name='{0}_parameters_attributes'.format(self.entity_name)), + ) + foreman_spec.update(kwargs.pop('foreman_spec', {})) + super(ParametersMixin, self).__init__(foreman_spec=foreman_spec, **kwargs) + + def run(self, **kwargs): + entity = self.lookup_entity('entity') + if not self.desired_absent: + if entity and 'parameters' in entity: + entity['parameters'] = parameters_list_to_str_list(entity['parameters']) + parameters = self.foreman_params.get('parameters') + if parameters is not None: + self.foreman_params['parameters'] = parameters_list_to_str_list(parameters) + + return super(ParametersMixin, self).run(**kwargs) + + class NestedParametersMixin(object): def __init__(self, **kwargs): foreman_spec = dict( @@ -219,7 +243,7 @@ def ensure_scoped_parameters(self, scope): 'parameters', None, current_parameter, state="absent", foreman_spec=parameter_foreman_spec, params=scope) -class HostMixin(NestedParametersMixin): +class HostMixin(ParametersMixin): def __init__(self, **kwargs): foreman_spec = dict( compute_resource=dict(type='entity'), @@ -227,7 +251,6 @@ def __init__(self, **kwargs): domain=dict(type='entity'), subnet=dict(type='entity'), subnet6=dict(type='entity', resource_type='subnets'), - parameters=dict(type='nested_list', foreman_spec=parameter_foreman_spec), root_pass=dict(no_log=True), realm=dict(type='entity'), architecture=dict(type='entity'), @@ -697,13 +720,25 @@ def _update_entity(self, resource, desired_entity, current_entity, params, forem desired_entity = _flatten_entity(desired_entity, foreman_spec) current_entity = _flatten_entity(current_entity, foreman_spec) for key, value in desired_entity.items(): + foreman_type = foreman_spec[key].get('type', 'str') + new_value = value + old_value = current_entity.get(key) # String comparison needs extra care in face of unicode - if foreman_spec[key].get('type', 'str') == 'str': - if to_native(current_entity.get(key)) != to_native(value): - payload[key] = value - else: - if current_entity.get(key) != value: - payload[key] = value + if foreman_type == 'str': + old_value = to_native(old_value) + new_value = to_native(new_value) + # ideally the type check would happen via foreman_spec.elements + # however this is not set for flattened entries and setting it + # confuses _flatten_entity + elif foreman_type == 'list' and value and isinstance(value[0], dict): + if 'name' in value[0]: + sort_key = 'name' + else: + sort_key = list(value[0].keys())[0] + new_value = sorted(new_value, key=operator.itemgetter(sort_key)) + old_value = sorted(old_value, key=operator.itemgetter(sort_key)) + if new_value != old_value: + payload[key] = value if payload: payload['id'] = current_entity['id'] if not self.check_mode: @@ -1151,6 +1186,10 @@ def _foreman_spec_helper(spec): if flat_name: foreman_value['flat_name'] = flat_name foreman_spec[flat_name] = {} + # When translating to a flat name, the flattened entry should get the same "type" + # as Ansible expects so that comparison still works for non-strings + if argument_value.get('type') is not None: + foreman_spec[flat_name]['type'] = argument_value['type'] foreman_spec[key] = foreman_value @@ -1191,6 +1230,16 @@ def parameter_value_to_str(value, parameter_type): return parameter_string +# Helper for converting lists of parameters +def parameters_list_to_str_list(parameters): + filtered_params = [] + for param in parameters: + new_param = {k: v for (k, v) in param.items() if k in parameter_ansible_spec.keys()} + new_param['value'] = parameter_value_to_str(new_param['value'], new_param['parameter_type']) + filtered_params.append(new_param) + return filtered_params + + # Helper for templates def parse_template(template_content, module): if not HAS_PYYAML: diff --git a/plugins/modules/domain.py b/plugins/modules/domain.py index 27b564f7..0ab8cac0 100644 --- a/plugins/modules/domain.py +++ b/plugins/modules/domain.py @@ -85,10 +85,10 @@ elements: dict ''' -from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicEntityAnsibleModule, NestedParametersMixin +from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ForemanTaxonomicEntityAnsibleModule, ParametersMixin -class ForemanDomainModule(NestedParametersMixin, ForemanTaxonomicEntityAnsibleModule): +class ForemanDomainModule(ParametersMixin, ForemanTaxonomicEntityAnsibleModule): pass diff --git a/plugins/modules/subnet.py b/plugins/modules/subnet.py index 5cf33529..f79a1d93 100644 --- a/plugins/modules/subnet.py +++ b/plugins/modules/subnet.py @@ -193,7 +193,7 @@ import traceback from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ( - ForemanTaxonomicEntityAnsibleModule, NestedParametersMixin, missing_required_lib + ForemanTaxonomicEntityAnsibleModule, ParametersMixin, missing_required_lib ) try: import ipaddress @@ -203,7 +203,7 @@ IPADDRESS_IMP_ERR = traceback.format_exc() -class ForemanSubnetModule(NestedParametersMixin, ForemanTaxonomicEntityAnsibleModule): +class ForemanSubnetModule(ParametersMixin, ForemanTaxonomicEntityAnsibleModule): pass diff --git a/tests/test_foreman_spec_helper.py b/tests/test_foreman_spec_helper.py index 733d3350..ae82195c 100644 --- a/tests/test_foreman_spec_helper.py +++ b/tests/test_foreman_spec_helper.py @@ -44,7 +44,7 @@ def test_full_entity(): 'quarter': {'type': 'entity', 'flat_name': 'quarter_id', 'resource_type': 'edges'}, 'quarter_id': {}, 'houses': {'type': 'entity_list', 'flat_name': 'house_ids', 'resource_type': 'houses'}, - 'house_ids': {}, + 'house_ids': {'type': 'list'}, 'prices': {'type': 'nested_list', 'ensure': False}, 'tenant': {'type': 'invisible'}, } From b3efc584a8383d53c46357cd3d33001a0235f037 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 08:57:59 +0200 Subject: [PATCH 77/88] re-record subnet --- tests/test_playbooks/fixtures/subnet-0.yml | 207 +------------ tests/test_playbooks/fixtures/subnet-1.yml | 143 +-------- tests/test_playbooks/fixtures/subnet-10.yml | 60 +--- tests/test_playbooks/fixtures/subnet-11.yml | 30 +- tests/test_playbooks/fixtures/subnet-12.yml | 124 ++------ tests/test_playbooks/fixtures/subnet-13.yml | 186 ++++------- tests/test_playbooks/fixtures/subnet-14.yml | 60 +--- tests/test_playbooks/fixtures/subnet-15.yml | 30 +- tests/test_playbooks/fixtures/subnet-16.yml | 48 +-- tests/test_playbooks/fixtures/subnet-17.yml | 82 +---- tests/test_playbooks/fixtures/subnet-18.yml | 60 +--- tests/test_playbooks/fixtures/subnet-19.yml | 60 +--- tests/test_playbooks/fixtures/subnet-2.yml | 66 +--- tests/test_playbooks/fixtures/subnet-20.yml | 264 ++++------------ tests/test_playbooks/fixtures/subnet-21.yml | 260 ++++------------ tests/test_playbooks/fixtures/subnet-22.yml | 234 ++++---------- tests/test_playbooks/fixtures/subnet-23.yml | 60 +--- tests/test_playbooks/fixtures/subnet-24.yml | 30 +- tests/test_playbooks/fixtures/subnet-3.yml | 322 ++------------------ tests/test_playbooks/fixtures/subnet-4.yml | 143 +-------- tests/test_playbooks/fixtures/subnet-5.yml | 245 ++------------- tests/test_playbooks/fixtures/subnet-6.yml | 60 +--- tests/test_playbooks/fixtures/subnet-7.yml | 30 +- tests/test_playbooks/fixtures/subnet-8.yml | 48 +-- tests/test_playbooks/fixtures/subnet-9.yml | 60 +--- 25 files changed, 440 insertions(+), 2472 deletions(-) diff --git a/tests/test_playbooks/fixtures/subnet-0.yml b/tests/test_playbooks/fixtures/subnet-0.yml index 09895268..74918c4f 100644 --- a/tests/test_playbooks/fixtures/subnet-0.yml +++ b/tests/test_playbooks/fixtures/subnet-0.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:09 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=52106e5e8d03dde888c8002c41afdeef; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - e49f49a3-dcca-4a98-8a68-506292756f57 - X-Runtime: - - '0.137823' X-XSS-Protection: - 1; mode=block content-length: @@ -78,15 +64,13 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=52106e5e8d03dde888c8002c41afdeef User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: @@ -100,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:09 GMT - ETag: - - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,14 +94,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,10 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - c960739d-6989-41bc-8149-adf8da2861c4 - X-Runtime: - - '0.015413' X-XSS-Protection: - 1; mode=block content-length: @@ -143,7 +115,10 @@ interactions: message: OK - request: body: '{"subnet": {"name": "Test Subnet", "network_type": "IPv4", "network": "192.168.200.0", - "cidr": 27, "mask": "255.255.255.224", "ipam": "DHCP", "boot_mode": "DHCP"}}' + "cidr": 27, "mask": "255.255.255.224", "ipam": "DHCP", "boot_mode": "DHCP", + "subnet_parameters_attributes": [{"name": "subnet_param1", "value": "value1", + "parameter_type": "string"}, {"name": "subnet_param2", "value": "value2", "parameter_type": + "string"}]}}' headers: Accept: - application/json;version=2 @@ -152,20 +127,20 @@ interactions: Connection: - keep-alive Content-Length: - - '163' + - '345' Content-Type: - application/json - Cookie: - - _session_id=52106e5e8d03dde888c8002c41afdeef User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","ipam":"DHCP","boot_mode":"DHCP","id":30,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","id":47,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","id":48,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -177,10 +152,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:09 GMT - ETag: - - W/"4a1f48804cfd945a200b58a4b10a657f" Foreman_api_version: - '2' Foreman_current_location: @@ -191,14 +162,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -207,158 +174,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 57d866da-6e3f-4353-810f-1bc3c462fc48 - X-Runtime: - - '0.054328' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"parameter": {"name": "subnet_param1", "value": "value1", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=52106e5e8d03dde888c8002c41afdeef - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/api/subnets/1/parameters - response: - body: - string: '{"priority":40,"created_at":"2020-07-17 07:19:09 UTC","updated_at":"2020-07-17 - 07:19:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"}' - 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 - Date: - - Fri, 17 Jul 2020 07:19:09 GMT - ETag: - - W/"f07594ca92728d693944d05c405d6380" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.1.0 - Keep-Alive: - - timeout=15, max=97 - Server: - - Apache - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-Request-Id: - - c4b39def-ea09-4f31-990d-1e62fc765272 - X-Runtime: - - '0.042314' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"parameter": {"name": "subnet_param2", "value": "value2", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=52106e5e8d03dde888c8002c41afdeef - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/api/subnets/1/parameters - response: - body: - string: '{"priority":40,"created_at":"2020-07-17 07:19:09 UTC","updated_at":"2020-07-17 - 07:19:09 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}' - 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 - Date: - - Fri, 17 Jul 2020 07:19:09 GMT - ETag: - - W/"03c1cf51e29ef2ce2fdaa4b3e9690dfd" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.1.0 - Keep-Alive: - - timeout=15, max=96 - Server: - - Apache - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-Request-Id: - - 7d2d89b3-8cbe-43dd-a8a3-c92272f6f859 - X-Runtime: - - '0.035841' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-1.yml b/tests/test_playbooks/fixtures/subnet-1.yml index f3323930..7bc6f2d2 100644 --- a/tests/test_playbooks/fixtures/subnet-1.yml +++ b/tests/test_playbooks/fixtures/subnet-1.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:09 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=a4a2b08a9df541e2efb5a395e2aa62bd; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - f586f88d-f686-4649-82e4-3c22a9eb1fee - X-Runtime: - - '0.135906' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a4a2b08a9df541e2efb5a395e2aa62bd User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:10 UTC\",\"updated_at\":\"2020-09-03 06:57:10 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":30,\"name\":\"Test Subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:10 GMT - ETag: - - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 74399524-683b-415f-99da-e6e9236e886c - X-Runtime: - - '0.020741' X-XSS-Protection: - 1; mode=block content-length: - - '867' + - '868' status: code: 200 message: OK @@ -160,19 +132,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a4a2b08a9df541e2efb5a395e2aa62bd User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/1 + uri: https://foreman.example.org/api/subnets/30 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","ipam":"DHCP","boot_mode":"DHCP","id":30,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","id":47,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","id":48,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -184,10 +154,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:10 GMT - ETag: - - W/"ad6e1a158056182197062f179bb0cdd5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,14 +164,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -214,91 +176,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - e3e463e2-4d2a-4230-8f96-51dd0cff4fc6 - X-Runtime: - - '0.036376' X-XSS-Protection: - 1; mode=block content-length: - - '1102' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=a4a2b08a9df541e2efb5a395e2aa62bd - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/subnets/1/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ - \ \"order\": null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"\ - 2020-07-17 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"id\"\ - :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"\ - },{\"priority\":40,\"created_at\":\"2020-07-17 07:19:09 UTC\",\"updated_at\"\ - :\"2020-07-17 07:19:09 UTC\",\"id\":2,\"name\":\"subnet_param2\",\"parameter_type\"\ - :\"string\",\"value\":\"value2\"}]\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 - Date: - - Fri, 17 Jul 2020 07:19:10 GMT - ETag: - - W/"c7a36eb53595df51a1b3a404b46c4f28-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.1.0 - Keep-Alive: - - timeout=15, max=97 - Server: - - Apache - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-Request-Id: - - 1d348a97-7924-4ce2-80b6-12931d223cb6 - X-Runtime: - - '0.023482' - X-XSS-Protection: - - 1; mode=block - content-length: - - '492' + - '1105' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-10.yml b/tests/test_playbooks/fixtures/subnet-10.yml index 7158d2ab..4212e409 100644 --- a/tests/test_playbooks/fixtures/subnet-10.yml +++ b/tests/test_playbooks/fixtures/subnet-10.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:15 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=0e99cf559840a6f9d4002a6836058c96; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - f058c370-c4ed-4f08-b67c-d3c54c9e2054 - X-Runtime: - - '0.133483' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=0e99cf559840a6f9d4002a6836058c96 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:14 UTC\",\"updated_at\":\"2020-07-17 07:19:14 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":2,\"name\":\"Test Subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:16 UTC\",\"updated_at\":\"2020-09-03 06:57:16 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":31,\"name\":\"Test Subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:15 GMT - ETag: - - W/"2d32d7018b6f2297e1ea1bc8e2955c85-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 48d24bc9-06e0-4304-97c1-76c293dfa7c5 - X-Runtime: - - '0.016874' X-XSS-Protection: - 1; mode=block content-length: - - '867' + - '868' status: code: 200 message: OK @@ -162,16 +134,14 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=0e99cf559840a6f9d4002a6836058c96 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/subnets/2 + uri: https://foreman.example.org/api/subnets/31 response: body: - string: '{"id":2,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test - Subnet","vlanid":null,"created_at":"2020-07-17T07:19:14.547Z","updated_at":"2020-07-17T07:19:14.547Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test + string: '{"id":31,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test + Subnet","vlanid":null,"created_at":"2020-09-03T06:57:16.731Z","updated_at":"2020-09-03T06:57:16.731Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test Subnet (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: Cache-Control: @@ -184,10 +154,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:15 GMT - ETag: - - W/"1bd1dcef39fc272473973a4ef9215f7a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,14 +164,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -214,14 +176,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - e9ab8f7a-f782-457e-83cc-76ad77d94a4c - X-Runtime: - - '0.036189' X-XSS-Protection: - 1; mode=block content-length: - - '544' + - '545' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-11.yml b/tests/test_playbooks/fixtures/subnet-11.yml index 8eadf436..4678aa94 100644 --- a/tests/test_playbooks/fixtures/subnet-11.yml +++ b/tests/test_playbooks/fixtures/subnet-11.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:16 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=f076abe3bf009b2c120b2802a6a0585b; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 3c95931c-9638-442e-9601-f54bff2c46b9 - X-Runtime: - - '0.132803' X-XSS-Protection: - 1; mode=block content-length: @@ -78,15 +64,13 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f076abe3bf009b2c120b2802a6a0585b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: @@ -100,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:16 GMT - ETag: - - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,14 +94,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,10 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - a736cada-2f15-45ac-816f-c0b42175b017 - X-Runtime: - - '0.015991' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/subnet-12.yml b/tests/test_playbooks/fixtures/subnet-12.yml index a0a6f84c..e6e8ce02 100644 --- a/tests/test_playbooks/fixtures/subnet-12.yml +++ b/tests/test_playbooks/fixtures/subnet-12.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:16 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=d6a1749c60be17e8ef77467ab2f93fe5; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - cdf5f2fb-16ed-4b81-b635-4266557c3d1e - X-Runtime: - - '0.131679' X-XSS-Protection: - 1; mode=block content-length: @@ -78,25 +64,15 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ - \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ - \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ - :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ - :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ - name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ - id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ - :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ - ,\"id\":3}]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -108,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:16 GMT - ETag: - - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -122,14 +94,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -138,14 +106,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 78facd59-3e89-4219-8bbc-b9e7c4dc14cc - X-Runtime: - - '0.018210' X-XSS-Protection: - 1; mode=block content-length: - - '666' + - '177' status: code: 200 message: OK @@ -158,8 +122,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET @@ -188,10 +150,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:16 GMT - ETag: - - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -202,14 +160,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -218,10 +172,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 9d4f41bd-b8cb-4b45-b86a-c4c31755b817 - X-Runtime: - - '0.016886' X-XSS-Protection: - 1; mode=block content-length: @@ -238,8 +188,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET @@ -268,10 +216,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:16 GMT - ETag: - - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -282,14 +226,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -298,10 +238,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 1c65b0d8-be63-481d-ba64-9376d0e6e515 - X-Runtime: - - '0.019476' X-XSS-Protection: - 1; mode=block content-length: @@ -318,17 +254,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -340,10 +282,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:16 GMT - ETag: - - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -354,14 +292,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -370,14 +304,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - fc49b335-e566-4fc9-acce-304e77b6266a - X-Runtime: - - '0.014377' X-XSS-Protection: - 1; mode=block content-length: - - '177' + - '666' status: code: 200 message: OK @@ -396,16 +326,14 @@ interactions: - '208' Content-Type: - application/json - Cookie: - - _session_id=d6a1749c60be17e8ef77467ab2f93fe5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:16 UTC","updated_at":"2020-07-17 07:19:16 UTC","ipam":"DHCP","boot_mode":"DHCP","id":3,"name":"Test + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:19 UTC","updated_at":"2020-09-03 06:57:19 UTC","ipam":"DHCP","boot_mode":"DHCP","id":32,"name":"Test Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":1,"tftp_name":"centos7-foreman-2-1.yatsu.example.com","httpboot_id":1,"httpboot_name":"centos7-foreman-2-1.yatsu.example.com","externalipam_id":null,"externalipam_name":null,"dns_id":1,"template_id":null,"template_name":null,"dhcp":null,"tftp":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"httpboot":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"externalipam":null,"dns":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: @@ -418,10 +346,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:16 GMT - ETag: - - W/"a333c3801e7155ef68b38a6f147c5228" Foreman_api_version: - '2' Foreman_current_location: @@ -432,14 +356,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -448,10 +368,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 63d9834f-0c59-4578-a1fd-b6bfa0b37f72 - X-Runtime: - - '0.049662' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-13.yml b/tests/test_playbooks/fixtures/subnet-13.yml index 6493d393..f26d22b4 100644 --- a/tests/test_playbooks/fixtures/subnet-13.yml +++ b/tests/test_playbooks/fixtures/subnet-13.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:17 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=f1d670d9b89e951579048d107f2c2bf6; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - b29d0151-d2be-4ad1-bb9d-95b6e396d9d1 - X-Runtime: - - '0.134167' X-XSS-Protection: - 1; mode=block content-length: @@ -78,25 +64,31 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ - \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ - \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ - :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ - :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ - name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ - id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ - :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ - ,\"id\":3}]}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:19 UTC\",\"updated_at\":\"2020-09-03 06:57:19 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":32,\"name\":\"Test Subnet\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":1,\"tftp_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"httpboot_id\":1,\"httpboot_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":1,\"template_id\"\ + :null,\"template_name\":null,\"dhcp\":null,\"tftp\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + httpboot\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"\ + url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"externalipam\"\ + :null,\"dns\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"\ + url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"template\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -108,10 +100,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:17 GMT - ETag: - - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -122,14 +110,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -138,14 +122,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - bff6b352-46d0-4204-b20f-c8b2e7946768 - X-Runtime: - - '0.018960' X-XSS-Protection: - 1; mode=block content-length: - - '666' + - '1259' status: code: 200 message: OK @@ -158,25 +138,15 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets/32 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ - \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ - \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ - :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ - :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ - name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ - id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ - :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ - ,\"id\":3}]}]\n}\n" + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:19 UTC","updated_at":"2020-09-03 06:57:19 UTC","ipam":"DHCP","boot_mode":"DHCP","id":32,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":1,"tftp_name":"centos7-foreman-2-1.yatsu.example.com","httpboot_id":1,"httpboot_name":"centos7-foreman-2-1.yatsu.example.com","externalipam_id":null,"externalipam_name":null,"dns_id":1,"template_id":null,"template_name":null,"dhcp":null,"tftp":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"httpboot":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"externalipam":null,"dns":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -188,10 +158,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:17 GMT - ETag: - - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -202,14 +168,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -218,14 +180,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 3f71af2b-2587-4ec7-a328-77a97eced754 - X-Runtime: - - '0.017318' X-XSS-Protection: - 1; mode=block content-length: - - '666' + - '1161' status: code: 200 message: OK @@ -238,8 +196,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET @@ -268,10 +224,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:17 GMT - ETag: - - W/"d18d072f9ac2f8b4dbd67dd285228455-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -282,14 +234,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -298,10 +246,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 017e41d1-772c-4285-aac0-ef565a8bcb15 - X-Runtime: - - '0.017733' X-XSS-Protection: - 1; mode=block content-length: @@ -318,33 +262,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ - :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ - ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:16 UTC\",\"updated_at\":\"2020-07-17 07:19:16 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":3,\"name\":\"Test Subnet\",\"description\"\ - :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ - :null,\"tftp_id\":1,\"tftp_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ - ,\"httpboot_id\":1,\"httpboot_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ - ,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":1,\"template_id\"\ - :null,\"template_name\":null,\"dhcp\":null,\"tftp\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ - ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ - httpboot\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"\ - url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"externalipam\"\ - :null,\"dns\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"\ - url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"template\"\ - :null}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -356,10 +290,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:17 GMT - ETag: - - W/"52f8d285ee08faf0b279257d771084d3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -370,14 +300,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -386,14 +312,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 8e9c21e4-fcd4-4882-8c21-9efb4d34bf03 - X-Runtime: - - '0.023096' X-XSS-Protection: - 1; mode=block content-length: - - '1258' + - '666' status: code: 200 message: OK @@ -406,17 +328,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f1d670d9b89e951579048d107f2c2bf6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/3 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:16 UTC","updated_at":"2020-07-17 07:19:16 UTC","ipam":"DHCP","boot_mode":"DHCP","id":3,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":1,"tftp_name":"centos7-foreman-2-1.yatsu.example.com","httpboot_id":1,"httpboot_name":"centos7-foreman-2-1.yatsu.example.com","externalipam_id":null,"externalipam_name":null,"dns_id":1,"template_id":null,"template_name":null,"dhcp":null,"tftp":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"httpboot":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"externalipam":null,"dns":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -428,10 +356,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:17 GMT - ETag: - - W/"a333c3801e7155ef68b38a6f147c5228-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -442,14 +366,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -458,14 +378,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - aa833c48-1c11-4b91-93cd-4dacc4012fbf - X-Runtime: - - '0.026188' X-XSS-Protection: - 1; mode=block content-length: - - '1160' + - '666' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-14.yml b/tests/test_playbooks/fixtures/subnet-14.yml index 5a081005..ae457945 100644 --- a/tests/test_playbooks/fixtures/subnet-14.yml +++ b/tests/test_playbooks/fixtures/subnet-14.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:18 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=992f2797525f1a06763f2385ebeea504; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 8d04d685-78c9-4a46-8654-2a06aa324e2d - X-Runtime: - - '0.144105' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=992f2797525f1a06763f2385ebeea504 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:16 UTC\",\"updated_at\":\"2020-07-17 07:19:16 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":3,\"name\":\"Test Subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:19 UTC\",\"updated_at\":\"2020-09-03 06:57:19 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":32,\"name\":\"Test Subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":1,\"tftp_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ ,\"httpboot_id\":1,\"httpboot_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ @@ -116,10 +100,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:18 GMT - ETag: - - W/"52f8d285ee08faf0b279257d771084d3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -130,14 +110,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -146,14 +122,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 69691ea8-335a-46d0-b5c1-b5924a2876ac - X-Runtime: - - '0.024383' X-XSS-Protection: - 1; mode=block content-length: - - '1258' + - '1259' status: code: 200 message: OK @@ -168,16 +140,14 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=992f2797525f1a06763f2385ebeea504 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/subnets/3 + uri: https://foreman.example.org/api/subnets/32 response: body: - string: '{"id":3,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test - Subnet","vlanid":null,"created_at":"2020-07-17T07:19:16.904Z","updated_at":"2020-07-17T07:19:16.904Z","dhcp_id":null,"tftp_id":1,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":1,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":1,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test + string: '{"id":32,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test + Subnet","vlanid":null,"created_at":"2020-09-03T06:57:19.388Z","updated_at":"2020-09-03T06:57:19.388Z","dhcp_id":null,"tftp_id":1,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":1,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":1,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test Subnet (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: Cache-Control: @@ -190,10 +160,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:18 GMT - ETag: - - W/"368a6912ddadce98bf353327244d6d51-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -204,14 +170,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -220,14 +182,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 17c5dcc0-3614-408a-96d7-9900d1b7c96c - X-Runtime: - - '0.039617' X-XSS-Protection: - 1; mode=block content-length: - - '535' + - '536' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-15.yml b/tests/test_playbooks/fixtures/subnet-15.yml index f8501479..4678aa94 100644 --- a/tests/test_playbooks/fixtures/subnet-15.yml +++ b/tests/test_playbooks/fixtures/subnet-15.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:18 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=7a6dd95699851579185cfe9628adf943; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - df554c52-f70b-4ca6-98c8-676f5bf893f6 - X-Runtime: - - '0.137415' X-XSS-Protection: - 1; mode=block content-length: @@ -78,15 +64,13 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7a6dd95699851579185cfe9628adf943 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: @@ -100,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:18 GMT - ETag: - - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,14 +94,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,10 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 5cdb8fe3-3740-4d9e-8b6a-dbecc295abf9 - X-Runtime: - - '0.015882' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/subnet-16.yml b/tests/test_playbooks/fixtures/subnet-16.yml index c0103f88..97b0f100 100644 --- a/tests/test_playbooks/fixtures/subnet-16.yml +++ b/tests/test_playbooks/fixtures/subnet-16.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:19 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=7484068ad52e636277e96a70e8efe499; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - e138466b-f6a1-4951-ba99-2e4b92f7cb15 - X-Runtime: - - '0.134294' X-XSS-Protection: - 1; mode=block content-length: @@ -78,15 +64,13 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7484068ad52e636277e96a70e8efe499 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22My+test+subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"My test subnet\\\"\",\n \"sort\"\ : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: @@ -100,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:19 GMT - ETag: - - W/"7b6b383d97c570b105ed88f061c0d169-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,14 +94,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,10 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 3ce89101-090f-47dd-8756-b1e1c91e1758 - X-Runtime: - - '0.015109' X-XSS-Protection: - 1; mode=block content-length: @@ -156,16 +128,14 @@ interactions: - '166' Content-Type: - application/json - Cookie: - - _session_id=7484068ad52e636277e96a70e8efe499 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:19 UTC","updated_at":"2020-07-17 07:19:19 UTC","ipam":"DHCP","boot_mode":"DHCP","id":4,"name":"My + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:22 UTC","updated_at":"2020-09-03 06:57:22 UTC","ipam":"DHCP","boot_mode":"DHCP","id":33,"name":"My test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: @@ -178,10 +148,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:19 GMT - ETag: - - W/"137eb7ebe20c0f25781d44f9da6791d2" Foreman_api_version: - '2' Foreman_current_location: @@ -192,14 +158,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -208,10 +170,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 004fca95-8424-4fbc-972e-0f389adffab0 - X-Runtime: - - '0.059494' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-17.yml b/tests/test_playbooks/fixtures/subnet-17.yml index 94017ebd..f161b14a 100644 --- a/tests/test_playbooks/fixtures/subnet-17.yml +++ b/tests/test_playbooks/fixtures/subnet-17.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:19 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=ca825eca815fc84bb15b896c671df51e; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 7d689590-5dbf-479a-b4fb-5d977b52c419 - X-Runtime: - - '0.137478' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ca825eca815fc84bb15b896c671df51e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22My+test+subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"My test subnet\\\"\",\n \"sort\"\ : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:19 UTC\",\"updated_at\":\"2020-07-17 07:19:19 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":4,\"name\":\"My test subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:22 UTC\",\"updated_at\":\"2020-09-03 06:57:22 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":33,\"name\":\"My test subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:19 GMT - ETag: - - W/"66212780c2dabeb8a9f5996d002897b5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 780912b2-a7b5-4228-a685-39761d512659 - X-Runtime: - - '0.032322' X-XSS-Protection: - 1; mode=block content-length: - - '873' + - '874' status: code: 200 message: OK @@ -160,16 +132,14 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ca825eca815fc84bb15b896c671df51e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/4 + uri: https://foreman.example.org/api/subnets/33 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:19 UTC","updated_at":"2020-07-17 07:19:19 UTC","ipam":"DHCP","boot_mode":"DHCP","id":4,"name":"My + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:22 UTC","updated_at":"2020-09-03 06:57:22 UTC","ipam":"DHCP","boot_mode":"DHCP","id":33,"name":"My test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: @@ -182,10 +152,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:19 GMT - ETag: - - W/"137eb7ebe20c0f25781d44f9da6791d2-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -196,14 +162,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -212,14 +174,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 968244ce-6bfc-4b73-9a26-57d92f1b3929 - X-Runtime: - - '0.025584' X-XSS-Protection: - 1; mode=block content-length: - - '772' + - '773' status: code: 200 message: OK @@ -236,16 +194,14 @@ interactions: - '42' Content-Type: - application/json - Cookie: - - _session_id=ca825eca815fc84bb15b896c671df51e User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/subnets/4 + uri: https://foreman.example.org/api/subnets/33 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:19 UTC","updated_at":"2020-07-17 07:19:20 UTC","ipam":"DHCP","boot_mode":"DHCP","id":4,"name":"My + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:22 UTC","updated_at":"2020-09-03 06:57:22 UTC","ipam":"DHCP","boot_mode":"DHCP","id":33,"name":"My new test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: @@ -258,10 +214,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:20 GMT - ETag: - - W/"62edad2025f17900e4b65034408d762a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -272,14 +224,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -288,14 +236,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 59f7ee95-ccf0-4bb2-84b7-42e6cd4b658b - X-Runtime: - - '0.049309' X-XSS-Protection: - 1; mode=block content-length: - - '776' + - '777' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-18.yml b/tests/test_playbooks/fixtures/subnet-18.yml index 8c5f1d0f..3d283786 100644 --- a/tests/test_playbooks/fixtures/subnet-18.yml +++ b/tests/test_playbooks/fixtures/subnet-18.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:20 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=2da60f54fb220bca00c2a25296ab691e; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 132f0b7a-b391-46e1-962e-fd1fe7992946 - X-Runtime: - - '0.140056' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2da60f54fb220bca00c2a25296ab691e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22My+new+test+subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"My new test subnet\\\"\",\n \"sort\"\ : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:19 UTC\",\"updated_at\":\"2020-07-17 07:19:20 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":4,\"name\":\"My new test subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:22 UTC\",\"updated_at\":\"2020-09-03 06:57:22 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":33,\"name\":\"My new test subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:20 GMT - ETag: - - W/"ab5961b378584fd64b0f7f1328697139-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 9432a900-4a59-49f9-8a0f-a1de53c33dfa - X-Runtime: - - '0.016910' X-XSS-Protection: - 1; mode=block content-length: - - '881' + - '882' status: code: 200 message: OK @@ -160,16 +132,14 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2da60f54fb220bca00c2a25296ab691e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/4 + uri: https://foreman.example.org/api/subnets/33 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:19 UTC","updated_at":"2020-07-17 07:19:20 UTC","ipam":"DHCP","boot_mode":"DHCP","id":4,"name":"My + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:22 UTC","updated_at":"2020-09-03 06:57:22 UTC","ipam":"DHCP","boot_mode":"DHCP","id":33,"name":"My new test subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: @@ -182,10 +152,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:20 GMT - ETag: - - W/"62edad2025f17900e4b65034408d762a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -196,14 +162,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -212,14 +174,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 8bacb50d-703f-4ffd-90df-e6e3a5a2407f - X-Runtime: - - '0.023755' X-XSS-Protection: - 1; mode=block content-length: - - '776' + - '777' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-19.yml b/tests/test_playbooks/fixtures/subnet-19.yml index b0e381f0..514c2bb0 100644 --- a/tests/test_playbooks/fixtures/subnet-19.yml +++ b/tests/test_playbooks/fixtures/subnet-19.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=b278c1de7f0c13c91997ba2b085fd0b0; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - bf8b94b9-5a38-46f7-94e3-50e9ff32bc25 - X-Runtime: - - '0.134544' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b278c1de7f0c13c91997ba2b085fd0b0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22My+new+test+subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"My new test subnet\\\"\",\n \"sort\"\ : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:19 UTC\",\"updated_at\":\"2020-07-17 07:19:20 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":4,\"name\":\"My new test subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:22 UTC\",\"updated_at\":\"2020-09-03 06:57:22 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":33,\"name\":\"My new test subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"ab5961b378584fd64b0f7f1328697139-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 87194d0a-c373-4f57-a4d4-c45b1d309d52 - X-Runtime: - - '0.017648' X-XSS-Protection: - 1; mode=block content-length: - - '881' + - '882' status: code: 200 message: OK @@ -162,16 +134,14 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=b278c1de7f0c13c91997ba2b085fd0b0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/subnets/4 + uri: https://foreman.example.org/api/subnets/33 response: body: - string: '{"id":4,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"My - new test subnet","vlanid":null,"created_at":"2020-07-17T07:19:19.381Z","updated_at":"2020-07-17T07:19:20.023Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"My + string: '{"id":33,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"My + new test subnet","vlanid":null,"created_at":"2020-09-03T06:57:22.052Z","updated_at":"2020-09-03T06:57:22.738Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"My new test subnet (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: Cache-Control: @@ -184,10 +154,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"18b952c932ba203a0c26b329736e4cd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,14 +164,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -214,14 +176,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 5bce87f0-888d-4505-937b-34f3e6984597 - X-Runtime: - - '0.037388' X-XSS-Protection: - 1; mode=block content-length: - - '558' + - '559' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-2.yml b/tests/test_playbooks/fixtures/subnet-2.yml index d2845a16..7bc6f2d2 100644 --- a/tests/test_playbooks/fixtures/subnet-2.yml +++ b/tests/test_playbooks/fixtures/subnet-2.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:10 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=1fa67f28744784af0734a4011cb46ee7; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 43372399-7273-48a8-b343-4e86798ad064 - X-Runtime: - - '0.139570' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1fa67f28744784af0734a4011cb46ee7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:10 UTC\",\"updated_at\":\"2020-09-03 06:57:10 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":30,\"name\":\"Test Subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:10 GMT - ETag: - - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - dfe73b09-f9a9-42fb-a986-c4d9495d28bf - X-Runtime: - - '0.018299' X-XSS-Protection: - 1; mode=block content-length: - - '867' + - '868' status: code: 200 message: OK @@ -160,19 +132,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1fa67f28744784af0734a4011cb46ee7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/1 + uri: https://foreman.example.org/api/subnets/30 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","ipam":"DHCP","boot_mode":"DHCP","id":30,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","id":47,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","id":48,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -184,10 +154,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:10 GMT - ETag: - - W/"ad6e1a158056182197062f179bb0cdd5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,14 +164,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -214,14 +176,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - dcf3effa-bcc7-4b34-801f-6f96f05eabf9 - X-Runtime: - - '0.030987' X-XSS-Protection: - 1; mode=block content-length: - - '1102' + - '1105' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-20.yml b/tests/test_playbooks/fixtures/subnet-20.yml index a2f1f253..0a3674b8 100644 --- a/tests/test_playbooks/fixtures/subnet-20.yml +++ b/tests/test_playbooks/fixtures/subnet-20.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 73479514-b93f-46ab-9c69-3336c9d6c8fd - X-Runtime: - - '0.137378' X-XSS-Protection: - 1; mode=block content-length: @@ -78,21 +64,15 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ - \ 07:10:06 UTC\",\"updated_at\":\"2020-07-17 07:10:06 UTC\",\"id\":16,\"name\"\ - :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ - }]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"349ab26506db8d6a1b98584cb8886cbc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,14 +94,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -134,14 +106,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - b393d887-e21a-4c93-8815-eb720dfc06cb - X-Runtime: - - '0.017382' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '179' status: code: 200 message: OK @@ -154,20 +122,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ - \ 07:10:08 UTC\",\"updated_at\":\"2020-07-17 07:10:08 UTC\",\"id\":17,\"name\"\ - :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 06:57:05 UTC\",\"updated_at\":\"2020-09-03 06:57:05 UTC\",\"id\":41,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ }]\n}\n" headers: Cache-Control: @@ -180,10 +146,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"2d70e9ddf57eeaca3621c5cdf328de7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -194,14 +156,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -210,10 +168,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - ced82e05-cf2a-47e9-a5f1-e5324c81c25a - X-Runtime: - - '0.014916' X-XSS-Protection: - 1; mode=block content-length: @@ -230,20 +184,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ - by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ - parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:02\ - \ UTC\",\"updated_at\":\"2020-07-17 07:10:02 UTC\",\"id\":13,\"name\":\"Foo\"\ - ,\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 06:57:07 UTC\",\"updated_at\":\"2020-09-03 06:57:07 UTC\",\"id\":42,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -255,10 +208,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"ed09a20f032748b050bc867149918e5b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -269,14 +218,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -285,14 +230,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 7451efc0-7794-49a8-9c86-f6b2fb42892f - X-Runtime: - - '0.015442' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '389' status: code: 200 message: OK @@ -305,20 +246,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :\"13\",\"parent_id\":13,\"parent_name\":\"Foo\",\"created_at\":\"2020-07-17\ - \ 07:10:04 UTC\",\"updated_at\":\"2020-07-17 07:10:04 UTC\",\"id\":14,\"name\"\ - :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 06:57:02\ + \ UTC\",\"updated_at\":\"2020-09-03 06:57:02 UTC\",\"id\":38,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -330,10 +269,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"1c8e086567f548fd92d713cd75ca5179-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -344,14 +279,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -360,14 +291,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 7dbfabd3-6749-4269-9a4b-021ddab4d433 - X-Runtime: - - '0.017201' X-XSS-Protection: - 1; mode=block content-length: - - '362' + - '355' status: code: 200 message: OK @@ -380,20 +307,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ - by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ - parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:05\ - \ UTC\",\"updated_at\":\"2020-07-17 07:10:05 UTC\",\"id\":15,\"name\":\"Bar\"\ - ,\"title\":\"Bar\",\"description\":null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"38\",\"parent_id\":38,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 06:57:03 UTC\",\"updated_at\":\"2020-09-03 06:57:03 UTC\",\"id\":39,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -405,10 +330,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"bbd6f13df5f1b3a22ce68811f2efb683-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -419,14 +340,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -435,14 +352,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 739cf47b-d547-4ff6-8b7e-237046dcca09 - X-Runtime: - - '0.015614' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '362' status: code: 200 message: OK @@ -455,21 +368,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-07-17 07:19:07 UTC\",\"updated_at\":\"2020-07-17\ - \ 07:19:07 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ - :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ - }}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 06:57:04\ + \ UTC\",\"updated_at\":\"2020-09-03 06:57:04 UTC\",\"id\":40,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -481,10 +391,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"fc0167eaa28b655b9f1a2f74de16bbb1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -495,14 +401,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=94 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -511,14 +413,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 01759da2-2ed9-4c04-8ed1-1c1d976c3c84 - X-Runtime: - - '0.018398' X-XSS-Protection: - 1; mode=block content-length: - - '440' + - '355' status: code: 200 message: OK @@ -531,19 +429,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22bar.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"bar.example.com\\\"\",\n \"sort\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-07-17 07:19:08 UTC\",\"updated_at\":\"2020-07-17\ - \ 07:19:08 UTC\",\"id\":3,\"name\":\"bar.example.com\",\"dns_id\":1,\"dns\"\ + :null,\"created_at\":\"2020-09-03 06:57:08 UTC\",\"updated_at\":\"2020-09-03\ + \ 06:57:08 UTC\",\"id\":12,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ }}]\n}\n" headers: @@ -557,10 +453,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"95fd374282b627cbeca46dee7d428047-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -571,14 +463,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=93 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -587,14 +475,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - fa6fd277-fbdc-42b2-93c6-a555edaf5038 - X-Runtime: - - '0.021610' X-XSS-Protection: - 1; mode=block content-length: - - '440' + - '441' status: code: 200 message: OK @@ -607,17 +491,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22bar.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ - \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"bar.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 06:57:09 UTC\",\"updated_at\":\"2020-09-03\ + \ 06:57:09 UTC\",\"id\":13,\"name\":\"bar.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -629,10 +515,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"442782b5c35a312d29eef0d20d99ec4e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -643,14 +525,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=92 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -659,14 +537,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - d0b37228-05d4-42ed-be0e-1148b7fc4fec - X-Runtime: - - '0.023830' X-XSS-Protection: - 1; mode=block content-length: - - '179' + - '441' status: code: 200 message: OK @@ -675,8 +549,8 @@ interactions: "network_type": "IPv4", "network": "192.168.200.0", "cidr": 27, "mask": "255.255.255.224", "gateway": "192.168.200.1", "dns_primary": "1.1.1.1", "dns_secondary": "1.1.1.2", "ipam": "Internal DB", "from": "192.168.200.10", "to": "192.168.200.20", "vlanid": - 42, "mtu": 9000, "domain_ids": [2, 3], "boot_mode": "Static", "location_ids": - [13, 14, 15], "organization_ids": [16, 17]}}' + 42, "mtu": 9000, "domain_ids": [12, 13], "boot_mode": "Static", "location_ids": + [38, 39, 40], "organization_ids": [41, 42]}}' headers: Accept: - application/json;version=2 @@ -685,21 +559,19 @@ interactions: Connection: - keep-alive Content-Length: - - '455' + - '457' Content-Type: - application/json - Cookie: - - _session_id=fa7187d331020ee6ddc1ce4b357c9d58 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-07-17 - 07:19:22 UTC","updated_at":"2020-07-17 07:19:22 UTC","ipam":"Internal DB","boot_mode":"Static","id":5,"name":"Test - Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[{"id":2,"name":"foo.example.com"},{"id":3,"name":"bar.example.com"}],"interfaces":[],"parameters":[],"locations":[{"id":13,"name":"Foo","title":"Foo","description":null},{"id":14,"name":"Baz","title":"Foo/Baz","description":null},{"id":15,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":16,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":17,"name":"Test + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-09-03 + 06:57:24 UTC","updated_at":"2020-09-03 06:57:24 UTC","ipam":"Internal DB","boot_mode":"Static","id":34,"name":"Test + Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[{"id":12,"name":"foo.example.com"},{"id":13,"name":"bar.example.com"}],"interfaces":[],"parameters":[],"locations":[{"id":38,"name":"Foo","title":"Foo","description":null},{"id":39,"name":"Baz","title":"Foo/Baz","description":null},{"id":40,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":41,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":42,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -712,10 +584,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:21 GMT - ETag: - - W/"77d2a5ec7ba6d83f406ca2f8bc996b61" Foreman_api_version: - '2' Foreman_current_location: @@ -726,14 +594,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=91 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -742,10 +606,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 3d0a9ac0-4b4c-42aa-a746-d519982e1b57 - X-Runtime: - - '0.118509' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-21.yml b/tests/test_playbooks/fixtures/subnet-21.yml index 2ad74cab..b47efb6e 100644 --- a/tests/test_playbooks/fixtures/subnet-21.yml +++ b/tests/test_playbooks/fixtures/subnet-21.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:22 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=2f5695b6d7fef452118cf0a92c5e173c; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - c5d6d449-6660-478d-bd3f-a39f63d7940b - X-Runtime: - - '0.138309' X-XSS-Protection: - 1; mode=block content-length: @@ -78,21 +64,26 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ - \ 07:10:06 UTC\",\"updated_at\":\"2020-07-17 07:10:06 UTC\",\"id\":16,\"name\"\ - :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ - }]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\"\ + ,\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\"\ + ,\"to\":\"192.168.200.20\",\"created_at\":\"2020-09-03 06:57:24 UTC\",\"updated_at\"\ + :\"2020-09-03 06:57:24 UTC\",\"ipam\":\"Internal DB\",\"boot_mode\":\"Static\"\ + ,\"id\":34,\"name\":\"Test Subnet 2\",\"description\":\"My subnet description\"\ + ,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"\ + tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"\ + externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\"\ + :null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"\ + externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +95,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:22 GMT - ETag: - - W/"349ab26506db8d6a1b98584cb8886cbc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,14 +105,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -134,14 +117,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - a4a82ff6-770e-4e03-a285-9dbcb1c7026e - X-Runtime: - - '0.017395' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '943' status: code: 200 message: OK @@ -154,21 +133,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets/34 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ - \ 07:10:08 UTC\",\"updated_at\":\"2020-07-17 07:10:08 UTC\",\"id\":17,\"name\"\ - :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ - }]\n}\n" + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-09-03 + 06:57:24 UTC","updated_at":"2020-09-03 06:57:24 UTC","ipam":"Internal DB","boot_mode":"Static","id":34,"name":"Test + Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[{"id":13,"name":"bar.example.com"},{"id":12,"name":"foo.example.com"}],"interfaces":[],"parameters":[],"locations":[{"id":40,"name":"Bar","title":"Bar","description":null},{"id":38,"name":"Foo","title":"Foo","description":null},{"id":39,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":41,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":42,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -180,10 +155,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:22 GMT - ETag: - - W/"2d70e9ddf57eeaca3621c5cdf328de7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -194,14 +165,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -210,14 +177,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 6996c895-46e2-4d4f-b739-5f839adaf4ff - X-Runtime: - - '0.014122' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '1252' status: code: 200 message: OK @@ -230,20 +193,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ - by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ - parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:02\ - \ UTC\",\"updated_at\":\"2020-07-17 07:10:02 UTC\",\"id\":13,\"name\":\"Foo\"\ - ,\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 06:57:05 UTC\",\"updated_at\":\"2020-09-03 06:57:05 UTC\",\"id\":41,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -255,10 +217,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:22 GMT - ETag: - - W/"ed09a20f032748b050bc867149918e5b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -269,14 +227,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -285,14 +239,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 60cac344-6141-44f6-ba42-8fdb05f79fc7 - X-Runtime: - - '0.014882' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '389' status: code: 200 message: OK @@ -305,20 +255,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :\"13\",\"parent_id\":13,\"parent_name\":\"Foo\",\"created_at\":\"2020-07-17\ - \ 07:10:04 UTC\",\"updated_at\":\"2020-07-17 07:10:04 UTC\",\"id\":14,\"name\"\ - :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 06:57:07 UTC\",\"updated_at\":\"2020-09-03 06:57:07 UTC\",\"id\":42,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -330,10 +279,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:22 GMT - ETag: - - W/"1c8e086567f548fd92d713cd75ca5179-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -344,14 +289,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -360,14 +301,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 9a85b8d5-6bc7-4679-a171-872eb2fadd63 - X-Runtime: - - '0.017109' X-XSS-Protection: - 1; mode=block content-length: - - '362' + - '389' status: code: 200 message: OK @@ -380,20 +317,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ - parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:05\ - \ UTC\",\"updated_at\":\"2020-07-17 07:10:05 UTC\",\"id\":15,\"name\":\"Bar\"\ - ,\"title\":\"Bar\",\"description\":null}]\n}\n" + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 06:57:02\ + \ UTC\",\"updated_at\":\"2020-09-03 06:57:02 UTC\",\"id\":38,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -405,10 +340,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:22 GMT - ETag: - - W/"bbd6f13df5f1b3a22ce68811f2efb683-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -419,14 +350,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -435,10 +362,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 2cbcb51c-64d7-43bb-886e-22ff839090e2 - X-Runtime: - - '0.014801' X-XSS-Protection: - 1; mode=block content-length: @@ -455,28 +378,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ - \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ - :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ - ,\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\"\ - ,\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\"\ - ,\"to\":\"192.168.200.20\",\"created_at\":\"2020-07-17 07:19:22 UTC\",\"updated_at\"\ - :\"2020-07-17 07:19:22 UTC\",\"ipam\":\"Internal DB\",\"boot_mode\":\"Static\"\ - ,\"id\":5,\"name\":\"Test Subnet 2\",\"description\":\"My subnet description\"\ - ,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"\ - tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"\ - externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\"\ - :null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"\ - externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"38\",\"parent_id\":38,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 06:57:03 UTC\",\"updated_at\":\"2020-09-03 06:57:03 UTC\",\"id\":39,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -488,10 +401,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:22 GMT - ETag: - - W/"91878fe2401946e312dd037be104c964-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -502,14 +411,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=94 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -518,14 +423,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 1251c443-704a-44b2-a93b-70ec3c883467 - X-Runtime: - - '0.016617' X-XSS-Protection: - 1; mode=block content-length: - - '942' + - '362' status: code: 200 message: OK @@ -538,19 +439,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/5 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-07-17 - 07:19:22 UTC","updated_at":"2020-07-17 07:19:22 UTC","ipam":"Internal DB","boot_mode":"Static","id":5,"name":"Test - Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[{"id":3,"name":"bar.example.com"},{"id":2,"name":"foo.example.com"}],"interfaces":[],"parameters":[],"locations":[{"id":15,"name":"Bar","title":"Bar","description":null},{"id":13,"name":"Foo","title":"Foo","description":null},{"id":14,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":16,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":17,"name":"Test - Org2","title":"Test Org2","description":"A test organization"}]}' + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 06:57:04\ + \ UTC\",\"updated_at\":\"2020-09-03 06:57:04 UTC\",\"id\":40,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -562,10 +462,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:22 GMT - ETag: - - W/"915ba00c59e3c619a467ef8fa2359da4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -576,14 +472,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=93 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -592,14 +484,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 4d552930-7a42-4416-ab66-14ec3daf6e46 - X-Runtime: - - '0.029820' X-XSS-Protection: - 1; mode=block content-length: - - '1249' + - '355' status: code: 200 message: OK @@ -616,18 +504,16 @@ interactions: - '30' Content-Type: - application/json - Cookie: - - _session_id=2f5695b6d7fef452118cf0a92c5e173c User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/subnets/5 + uri: https://foreman.example.org/api/subnets/34 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-07-17 - 07:19:22 UTC","updated_at":"2020-07-17 07:19:22 UTC","ipam":"Internal DB","boot_mode":"Static","id":5,"name":"Test - Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[{"id":15,"name":"Bar","title":"Bar","description":null},{"id":13,"name":"Foo","title":"Foo","description":null},{"id":14,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":16,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":17,"name":"Test + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-09-03 + 06:57:24 UTC","updated_at":"2020-09-03 06:57:24 UTC","ipam":"Internal DB","boot_mode":"Static","id":34,"name":"Test + Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[{"id":40,"name":"Bar","title":"Bar","description":null},{"id":38,"name":"Foo","title":"Foo","description":null},{"id":39,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":41,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":42,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -640,10 +526,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:22 GMT - ETag: - - W/"9f3c1eec2685001cd570c4d9f1b77101-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -654,14 +536,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=92 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -670,14 +548,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 8e16f7bc-a975-44ad-b1cb-af7e1b7bfb85 - X-Runtime: - - '0.040647' X-XSS-Protection: - 1; mode=block content-length: - - '1182' + - '1183' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-22.yml b/tests/test_playbooks/fixtures/subnet-22.yml index 2d1edba9..f2b977e9 100644 --- a/tests/test_playbooks/fixtures/subnet-22.yml +++ b/tests/test_playbooks/fixtures/subnet-22.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:23 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - f6e238e0-d780-4461-991f-955a2d27b75d - X-Runtime: - - '0.149034' X-XSS-Protection: - 1; mode=block content-length: @@ -78,21 +64,26 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ - \ 07:10:06 UTC\",\"updated_at\":\"2020-07-17 07:10:06 UTC\",\"id\":16,\"name\"\ - :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ - }]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\"\ + ,\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\"\ + ,\"to\":\"192.168.200.20\",\"created_at\":\"2020-09-03 06:57:24 UTC\",\"updated_at\"\ + :\"2020-09-03 06:57:24 UTC\",\"ipam\":\"Internal DB\",\"boot_mode\":\"Static\"\ + ,\"id\":34,\"name\":\"Test Subnet 2\",\"description\":\"My subnet description\"\ + ,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"\ + tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"\ + externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\"\ + :null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"\ + externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +95,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:23 GMT - ETag: - - W/"349ab26506db8d6a1b98584cb8886cbc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,14 +105,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -134,14 +117,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 9db87cd1-0c7b-458d-be79-dbf030ee3c8e - X-Runtime: - - '0.017074' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '943' status: code: 200 message: OK @@ -154,21 +133,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets/34 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17\ - \ 07:10:08 UTC\",\"updated_at\":\"2020-07-17 07:10:08 UTC\",\"id\":17,\"name\"\ - :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ - }]\n}\n" + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-09-03 + 06:57:24 UTC","updated_at":"2020-09-03 06:57:24 UTC","ipam":"Internal DB","boot_mode":"Static","id":34,"name":"Test + Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[{"id":40,"name":"Bar","title":"Bar","description":null},{"id":38,"name":"Foo","title":"Foo","description":null},{"id":39,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":41,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":42,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -180,10 +155,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:23 GMT - ETag: - - W/"2d70e9ddf57eeaca3621c5cdf328de7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -194,14 +165,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -210,14 +177,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 7b628da1-bfc2-4c83-a5f8-ddaef13724e4 - X-Runtime: - - '0.016592' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '1183' status: code: 200 message: OK @@ -230,20 +193,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ - by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ - parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:02\ - \ UTC\",\"updated_at\":\"2020-07-17 07:10:02 UTC\",\"id\":13,\"name\":\"Foo\"\ - ,\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 06:57:05 UTC\",\"updated_at\":\"2020-09-03 06:57:05 UTC\",\"id\":41,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -255,10 +217,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:23 GMT - ETag: - - W/"ed09a20f032748b050bc867149918e5b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -269,14 +227,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -285,14 +239,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - facc6e6b-8b61-443a-86f6-0def0761508a - X-Runtime: - - '0.016287' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '389' status: code: 200 message: OK @@ -305,20 +255,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :\"13\",\"parent_id\":13,\"parent_name\":\"Foo\",\"created_at\":\"2020-07-17\ - \ 07:10:04 UTC\",\"updated_at\":\"2020-07-17 07:10:04 UTC\",\"id\":14,\"name\"\ - :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 06:57:07 UTC\",\"updated_at\":\"2020-09-03 06:57:07 UTC\",\"id\":42,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -330,10 +279,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:23 GMT - ETag: - - W/"1c8e086567f548fd92d713cd75ca5179-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -344,14 +289,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -360,14 +301,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - a917092f-12f1-4552-8279-5cc40365185b - X-Runtime: - - '0.016593' X-XSS-Protection: - 1; mode=block content-length: - - '362' + - '389' status: code: 200 message: OK @@ -380,20 +317,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ - parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-07-17 07:10:05\ - \ UTC\",\"updated_at\":\"2020-07-17 07:10:05 UTC\",\"id\":15,\"name\":\"Bar\"\ - ,\"title\":\"Bar\",\"description\":null}]\n}\n" + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 06:57:02\ + \ UTC\",\"updated_at\":\"2020-09-03 06:57:02 UTC\",\"id\":38,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -405,10 +340,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:23 GMT - ETag: - - W/"bbd6f13df5f1b3a22ce68811f2efb683-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -419,14 +350,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -435,10 +362,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - e14c8cff-82f0-479b-bea6-f2b83b23daec - X-Runtime: - - '0.015275' X-XSS-Protection: - 1; mode=block content-length: @@ -455,28 +378,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ - \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ - :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ - ,\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\"\ - ,\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\"\ - ,\"to\":\"192.168.200.20\",\"created_at\":\"2020-07-17 07:19:22 UTC\",\"updated_at\"\ - :\"2020-07-17 07:19:22 UTC\",\"ipam\":\"Internal DB\",\"boot_mode\":\"Static\"\ - ,\"id\":5,\"name\":\"Test Subnet 2\",\"description\":\"My subnet description\"\ - ,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"\ - tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"\ - externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\"\ - :null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"\ - externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"38\",\"parent_id\":38,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 06:57:03 UTC\",\"updated_at\":\"2020-09-03 06:57:03 UTC\",\"id\":39,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -488,10 +401,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:23 GMT - ETag: - - W/"91878fe2401946e312dd037be104c964-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -502,14 +411,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=94 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -518,14 +423,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 2b6eccab-f9f1-47f4-adad-7eb555ea5375 - X-Runtime: - - '0.016716' X-XSS-Protection: - 1; mode=block content-length: - - '942' + - '362' status: code: 200 message: OK @@ -538,19 +439,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=e24ca95c22d9ec66cf26c76c0f3fdde6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/5 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":42,"mtu":9000,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","created_at":"2020-07-17 - 07:19:22 UTC","updated_at":"2020-07-17 07:19:22 UTC","ipam":"Internal DB","boot_mode":"Static","id":5,"name":"Test - Subnet 2","description":"My subnet description","network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[{"id":15,"name":"Bar","title":"Bar","description":null},{"id":13,"name":"Foo","title":"Foo","description":null},{"id":14,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":16,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":17,"name":"Test - Org2","title":"Test Org2","description":"A test organization"}]}' + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 06:57:04\ + \ UTC\",\"updated_at\":\"2020-09-03 06:57:04 UTC\",\"id\":40,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -562,10 +462,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:23 GMT - ETag: - - W/"9f3c1eec2685001cd570c4d9f1b77101-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -576,14 +472,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=93 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -592,14 +484,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - cba25bd0-027f-41a8-bb69-4dc47a46ba7a - X-Runtime: - - '0.025724' X-XSS-Protection: - 1; mode=block content-length: - - '1182' + - '355' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-23.yml b/tests/test_playbooks/fixtures/subnet-23.yml index adc5b673..bfe82dd6 100644 --- a/tests/test_playbooks/fixtures/subnet-23.yml +++ b/tests/test_playbooks/fixtures/subnet-23.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:24 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=9d7ac821c2fcb6162b630ff2abb5404e; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - fea1a9ee-4a69-41d0-ad6c-e4324da742ae - X-Runtime: - - '0.152779' X-XSS-Protection: - 1; mode=block content-length: @@ -78,23 +64,21 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=9d7ac821c2fcb6162b630ff2abb5404e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":42,\"mtu\":9000,\"gateway\":\"192.168.200.1\"\ ,\"dns_primary\":\"1.1.1.1\",\"dns_secondary\":\"1.1.1.2\",\"from\":\"192.168.200.10\"\ - ,\"to\":\"192.168.200.20\",\"created_at\":\"2020-07-17 07:19:22 UTC\",\"updated_at\"\ - :\"2020-07-17 07:19:22 UTC\",\"ipam\":\"Internal DB\",\"boot_mode\":\"Static\"\ - ,\"id\":5,\"name\":\"Test Subnet 2\",\"description\":\"My subnet description\"\ + ,\"to\":\"192.168.200.20\",\"created_at\":\"2020-09-03 06:57:24 UTC\",\"updated_at\"\ + :\"2020-09-03 06:57:24 UTC\",\"ipam\":\"Internal DB\",\"boot_mode\":\"Static\"\ + ,\"id\":34,\"name\":\"Test Subnet 2\",\"description\":\"My subnet description\"\ ,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"\ tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"\ externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\"\ @@ -111,10 +95,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:24 GMT - ETag: - - W/"91878fe2401946e312dd037be104c964-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -125,14 +105,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -141,14 +117,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - c9b2d340-6e4a-4808-afd6-af4081d93416 - X-Runtime: - - '0.030434' X-XSS-Protection: - 1; mode=block content-length: - - '942' + - '943' status: code: 200 message: OK @@ -163,16 +135,14 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=9d7ac821c2fcb6162b630ff2abb5404e User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/subnets/5 + uri: https://foreman.example.org/api/subnets/34 response: body: - string: '{"id":5,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test - Subnet 2","vlanid":42,"created_at":"2020-07-17T07:19:22.047Z","updated_at":"2020-07-17T07:19:22.047Z","dhcp_id":null,"tftp_id":null,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","dns_id":null,"boot_mode":"Static","ipam":"Internal + string: '{"id":34,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test + Subnet 2","vlanid":42,"created_at":"2020-09-03T06:57:24.893Z","updated_at":"2020-09-03T06:57:24.893Z","dhcp_id":null,"tftp_id":null,"gateway":"192.168.200.1","dns_primary":"1.1.1.1","dns_secondary":"1.1.1.2","from":"192.168.200.10","to":"192.168.200.20","dns_id":null,"boot_mode":"Static","ipam":"Internal DB","description":"My subnet description","mtu":9000,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test Subnet 2 (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: @@ -186,10 +156,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:24 GMT - ETag: - - W/"1e2f677574b6a80b68fea7f12c56ebba-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -200,14 +166,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -216,14 +178,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 4b2a60e8-c5f2-41db-99a1-71c0eb4470f4 - X-Runtime: - - '0.068059' X-XSS-Protection: - 1; mode=block content-length: - - '619' + - '620' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-24.yml b/tests/test_playbooks/fixtures/subnet-24.yml index 63d7fb92..482fc0d1 100644 --- a/tests/test_playbooks/fixtures/subnet-24.yml +++ b/tests/test_playbooks/fixtures/subnet-24.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:24 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=b5700518b00dfeaddf7fc8d58c758951; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 19ebda98-27a1-4958-80fa-51e829d8e75b - X-Runtime: - - '0.137988' X-XSS-Protection: - 1; mode=block content-length: @@ -78,15 +64,13 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b5700518b00dfeaddf7fc8d58c758951 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet 2\\\"\",\n \"sort\":\ \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: @@ -100,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:24 GMT - ETag: - - W/"442782b5c35a312d29eef0d20d99ec4e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,14 +94,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,10 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 2491f261-ce5d-45e3-82f8-16b427b4c45b - X-Runtime: - - '0.016393' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/subnet-3.yml b/tests/test_playbooks/fixtures/subnet-3.yml index f6d325d1..22d609cd 100644 --- a/tests/test_playbooks/fixtures/subnet-3.yml +++ b/tests/test_playbooks/fixtures/subnet-3.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:11 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=4ba88bcb2f38649276494c6a9806d07d; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 530697e1-ba2c-424e-bca9-520db9222749 - X-Runtime: - - '0.136694' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4ba88bcb2f38649276494c6a9806d07d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:10 UTC\",\"updated_at\":\"2020-09-03 06:57:10 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":30,\"name\":\"Test Subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:11 GMT - ETag: - - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - bb0f6390-909d-496c-a299-7a0a07bc734a - X-Runtime: - - '0.016606' X-XSS-Protection: - 1; mode=block content-length: - - '867' + - '868' status: code: 200 message: OK @@ -160,19 +132,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4ba88bcb2f38649276494c6a9806d07d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/1 + uri: https://foreman.example.org/api/subnets/30 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","ipam":"DHCP","boot_mode":"DHCP","id":30,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","id":47,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","id":48,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -184,10 +154,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:11 GMT - ETag: - - W/"ad6e1a158056182197062f179bb0cdd5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,14 +164,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -214,96 +176,17 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 8ebcc744-f0c3-4ceb-a0fc-27de05fd77d0 - X-Runtime: - - '0.027392' X-XSS-Protection: - 1; mode=block content-length: - - '1102' + - '1105' status: code: 200 message: OK - request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=4ba88bcb2f38649276494c6a9806d07d - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/subnets/1/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ - \ \"order\": null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"\ - 2020-07-17 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"id\"\ - :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"\ - },{\"priority\":40,\"created_at\":\"2020-07-17 07:19:09 UTC\",\"updated_at\"\ - :\"2020-07-17 07:19:09 UTC\",\"id\":2,\"name\":\"subnet_param2\",\"parameter_type\"\ - :\"string\",\"value\":\"value2\"}]\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 - Date: - - Fri, 17 Jul 2020 07:19:11 GMT - ETag: - - W/"c7a36eb53595df51a1b3a404b46c4f28-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.1.0 - Keep-Alive: - - timeout=15, max=97 - Server: - - Apache - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-Request-Id: - - 16219f02-dd8d-4dfb-94fd-a91a7c192c39 - X-Runtime: - - '0.019176' - X-XSS-Protection: - - 1; mode=block - content-length: - - '492' - status: - code: 200 - message: OK -- request: - body: '{"parameter": {"value": "new_value1"}}' + body: '{"subnet": {"subnet_parameters_attributes": [{"name": "subnet_param1", + "value": "new_value1", "parameter_type": "string"}, {"name": "subnet_param3", + "value": "value3", "parameter_type": "string"}]}}' headers: Accept: - application/json;version=2 @@ -312,95 +195,20 @@ interactions: Connection: - keep-alive Content-Length: - - '38' + - '198' Content-Type: - application/json - Cookie: - - _session_id=4ba88bcb2f38649276494c6a9806d07d User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/subnets/1/parameters/1 - response: - body: - string: '{"priority":40,"created_at":"2020-07-17 07:19:09 UTC","updated_at":"2020-07-17 - 07:19:11 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"new_value1"}' - 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 - Date: - - Fri, 17 Jul 2020 07:19:11 GMT - ETag: - - W/"953e22694954ae6bbcc3f53fdf70f857-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.1.0 - Keep-Alive: - - timeout=15, max=96 - Server: - - Apache - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-Request-Id: - - 78614eed-790d-4811-adc0-d421b99d2a9c - X-Runtime: - - '0.040446' - X-XSS-Protection: - - 1; mode=block - content-length: - - '170' - status: - code: 200 - message: OK -- request: - body: '{"parameter": {"name": "subnet_param3", "value": "value3", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=4ba88bcb2f38649276494c6a9806d07d - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/api/subnets/1/parameters + uri: https://foreman.example.org/api/subnets/30 response: body: - string: '{"priority":40,"created_at":"2020-07-17 07:19:11 UTC","updated_at":"2020-07-17 - 07:19:11 UTC","id":3,"name":"subnet_param3","parameter_type":"string","value":"value3"}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","ipam":"DHCP","boot_mode":"DHCP","id":30,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:12 UTC","id":47,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":40,"created_at":"2020-09-03 + 06:57:12 UTC","updated_at":"2020-09-03 06:57:12 UTC","id":49,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -412,10 +220,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:11 GMT - ETag: - - W/"dae6dd66c1734230c7a61a218afeee02" Foreman_api_version: - '2' Foreman_current_location: @@ -425,85 +229,11 @@ interactions: Foreman_version: - 2.1.0 Keep-Alive: - - timeout=15, max=95 - Server: - - Apache - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-Request-Id: - - 4d04da2f-f39b-4e45-b971-defcdbc700d4 - X-Runtime: - - '0.037139' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Cookie: - - _session_id=4ba88bcb2f38649276494c6a9806d07d - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/api/subnets/1/parameters/2 - response: - body: - string: '{"id":2,"name":"subnet_param2","value":"value2","reference_id":1,"created_at":"2020-07-17T07:19:09.515Z","updated_at":"2020-07-17T07:19:09.515Z","priority":40,"hidden_value":"*****","key_type":"string","searchable_value":"value2"}' - 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 - Date: - - Fri, 17 Jul 2020 07:19:11 GMT - ETag: - - W/"4b1fdf496ae9d47f41dd9a5553af602a-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.1.0 - Keep-Alive: - - timeout=15, max=94 - Server: - - Apache + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -512,14 +242,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - ee400e62-b57d-4a1c-af6c-b30101505e12 - X-Runtime: - - '0.029729' X-XSS-Protection: - 1; mode=block content-length: - - '230' + - '1109' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-4.yml b/tests/test_playbooks/fixtures/subnet-4.yml index 77219f66..27e38b9d 100644 --- a/tests/test_playbooks/fixtures/subnet-4.yml +++ b/tests/test_playbooks/fixtures/subnet-4.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:11 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=5a5310895cb647593e906a069f65c884; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - dde6aa33-5373-414d-85ce-cf273eb09017 - X-Runtime: - - '0.135699' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5a5310895cb647593e906a069f65c884 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:10 UTC\",\"updated_at\":\"2020-09-03 06:57:10 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":30,\"name\":\"Test Subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:12 GMT - ETag: - - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - d8bbd1e1-ce4d-43a9-97c7-497397716d3b - X-Runtime: - - '0.017323' X-XSS-Protection: - 1; mode=block content-length: - - '867' + - '868' status: code: 200 message: OK @@ -160,19 +132,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5a5310895cb647593e906a069f65c884 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/1 + uri: https://foreman.example.org/api/subnets/30 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:11 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":40,"created_at":"2020-07-17 - 07:19:11 UTC","updated_at":"2020-07-17 07:19:11 UTC","id":3,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","ipam":"DHCP","boot_mode":"DHCP","id":30,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:12 UTC","id":47,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":40,"created_at":"2020-09-03 + 06:57:12 UTC","updated_at":"2020-09-03 06:57:12 UTC","id":49,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -184,10 +154,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:12 GMT - ETag: - - W/"5e6d29f2ae6e5057a5df0c4a7c663b44-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,14 +164,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -214,91 +176,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 1870e393-eb37-43dc-bf2b-225c5ad9874e - X-Runtime: - - '0.027681' X-XSS-Protection: - 1; mode=block content-length: - - '1106' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=5a5310895cb647593e906a069f65c884 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/subnets/1/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ - \ \"order\": null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"\ - 2020-07-17 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:11 UTC\",\"id\"\ - :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"\ - },{\"priority\":40,\"created_at\":\"2020-07-17 07:19:11 UTC\",\"updated_at\"\ - :\"2020-07-17 07:19:11 UTC\",\"id\":3,\"name\":\"subnet_param3\",\"parameter_type\"\ - :\"string\",\"value\":\"value3\"}]\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 - Date: - - Fri, 17 Jul 2020 07:19:12 GMT - ETag: - - W/"1905256a5201c2f6486d9d0e9163b54c-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.1.0 - Keep-Alive: - - timeout=15, max=97 - Server: - - Apache - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-Request-Id: - - 41b5dcad-c538-48ce-9292-5aa093330cf4 - X-Runtime: - - '0.019420' - X-XSS-Protection: - - 1; mode=block - content-length: - - '496' + - '1109' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-5.yml b/tests/test_playbooks/fixtures/subnet-5.yml index 6efe9cbe..d968236c 100644 --- a/tests/test_playbooks/fixtures/subnet-5.yml +++ b/tests/test_playbooks/fixtures/subnet-5.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:12 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=42f0b301237640911d7bbddbf0998ab5; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 906179e3-7bd3-4449-ac8f-51f283f08ebf - X-Runtime: - - '0.133507' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=42f0b301237640911d7bbddbf0998ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:10 UTC\",\"updated_at\":\"2020-09-03 06:57:10 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":30,\"name\":\"Test Subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:12 GMT - ETag: - - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - cc3e2a7b-e01b-4bbd-9d6d-6e74c1f3043c - X-Runtime: - - '0.016398' X-XSS-Protection: - 1; mode=block content-length: - - '867' + - '868' status: code: 200 message: OK @@ -160,19 +132,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=42f0b301237640911d7bbddbf0998ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/1 + uri: https://foreman.example.org/api/subnets/30 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:09 UTC","ipam":"DHCP","boot_mode":"DHCP","id":1,"name":"Test - Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-07-17 - 07:19:09 UTC","updated_at":"2020-07-17 07:19:11 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":40,"created_at":"2020-07-17 - 07:19:11 UTC","updated_at":"2020-07-17 07:19:11 UTC","id":3,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[],"organizations":[]}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","ipam":"DHCP","boot_mode":"DHCP","id":30,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[{"priority":40,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:12 UTC","id":47,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":40,"created_at":"2020-09-03 + 06:57:12 UTC","updated_at":"2020-09-03 06:57:12 UTC","id":49,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -184,10 +154,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:12 GMT - ETag: - - W/"5e6d29f2ae6e5057a5df0c4a7c663b44-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,14 +164,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -214,96 +176,15 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 94f9d7fd-b172-41ea-ac7e-8096cacf5e92 - X-Runtime: - - '0.025442' X-XSS-Protection: - 1; mode=block content-length: - - '1106' + - '1109' status: code: 200 message: OK - request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=42f0b301237640911d7bbddbf0998ab5 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/subnets/1/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ - \ \"order\": null\n },\n \"results\": [{\"priority\":40,\"created_at\":\"\ - 2020-07-17 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:11 UTC\",\"id\"\ - :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"\ - },{\"priority\":40,\"created_at\":\"2020-07-17 07:19:11 UTC\",\"updated_at\"\ - :\"2020-07-17 07:19:11 UTC\",\"id\":3,\"name\":\"subnet_param3\",\"parameter_type\"\ - :\"string\",\"value\":\"value3\"}]\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 - Date: - - Fri, 17 Jul 2020 07:19:12 GMT - ETag: - - W/"1905256a5201c2f6486d9d0e9163b54c-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.1.0 - Keep-Alive: - - timeout=15, max=97 - Server: - - Apache - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-Request-Id: - - 354feefd-1121-49bb-801c-6ca4abc1cb7c - X-Runtime: - - '0.018204' - X-XSS-Protection: - - 1; mode=block - content-length: - - '496' - status: - code: 200 - message: OK -- request: - body: null + body: '{"subnet": {"subnet_parameters_attributes": []}}' headers: Accept: - application/json;version=2 @@ -312,88 +193,18 @@ interactions: Connection: - keep-alive Content-Length: - - '0' - Cookie: - - _session_id=42f0b301237640911d7bbddbf0998ab5 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/api/subnets/1/parameters/1 - response: - body: - string: '{"id":1,"name":"subnet_param1","value":"new_value1","reference_id":1,"created_at":"2020-07-17T07:19:09.466Z","updated_at":"2020-07-17T07:19:11.434Z","priority":40,"hidden_value":"*****","key_type":"string","searchable_value":"new_value1"}' - 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''' + - '48' Content-Type: - - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:12 GMT - ETag: - - W/"ebeed6894b9b9be8f40d5a7b62fb8da0-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.1.0 - Keep-Alive: - - timeout=15, max=96 - Server: - - Apache - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Vary: - - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Frame-Options: - - sameorigin - X-Permitted-Cross-Domain-Policies: - - none - X-Request-Id: - - 9d1ca726-c76a-49d7-aaaf-c7e03e5c4f55 - X-Runtime: - - '0.030359' - X-XSS-Protection: - - 1; mode=block - content-length: - - '238' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Cookie: - - _session_id=42f0b301237640911d7bbddbf0998ab5 + - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/api/subnets/1/parameters/3 + method: PUT + uri: https://foreman.example.org/api/subnets/30 response: body: - string: '{"id":3,"name":"subnet_param3","value":"value3","reference_id":1,"created_at":"2020-07-17T07:19:11.481Z","updated_at":"2020-07-17T07:19:11.481Z","priority":40,"hidden_value":"*****","key_type":"string","searchable_value":"value3"}' + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:10 UTC","updated_at":"2020-09-03 06:57:10 UTC","ipam":"DHCP","boot_mode":"DHCP","id":30,"name":"Test + Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -405,10 +216,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:12 GMT - ETag: - - W/"22af311ca55e7d19c6a6586999ec3c9c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -418,15 +225,11 @@ interactions: Foreman_version: - 2.1.0 Keep-Alive: - - timeout=15, max=95 - Server: - - Apache + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -435,14 +238,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - f3d0a9be-fefc-4840-ba9d-ecb7b9f1b3fb - X-Runtime: - - '0.030661' X-XSS-Protection: - 1; mode=block content-length: - - '230' + - '770' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-6.yml b/tests/test_playbooks/fixtures/subnet-6.yml index cccc1c04..19851a2b 100644 --- a/tests/test_playbooks/fixtures/subnet-6.yml +++ b/tests/test_playbooks/fixtures/subnet-6.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:13 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=46fbcd86ee74776f0edb3ceb0003a0b9; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 041366f2-92f2-41eb-96fa-121bd817d045 - X-Runtime: - - '0.143262' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=46fbcd86ee74776f0edb3ceb0003a0b9 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:09 UTC\",\"updated_at\":\"2020-07-17 07:19:09 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":1,\"name\":\"Test Subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:10 UTC\",\"updated_at\":\"2020-09-03 06:57:10 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":30,\"name\":\"Test Subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:13 GMT - ETag: - - W/"f570efb5de8c3137a2f1da8f75f1736a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 2e0f8df0-781c-4dd8-a963-ffee24464458 - X-Runtime: - - '0.017289' X-XSS-Protection: - 1; mode=block content-length: - - '867' + - '868' status: code: 200 message: OK @@ -162,16 +134,14 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=46fbcd86ee74776f0edb3ceb0003a0b9 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/subnets/1 + uri: https://foreman.example.org/api/subnets/30 response: body: - string: '{"id":1,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test - Subnet","vlanid":null,"created_at":"2020-07-17T07:19:09.408Z","updated_at":"2020-07-17T07:19:09.408Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test + string: '{"id":30,"network":"192.168.200.0","mask":"255.255.255.224","priority":null,"name":"Test + Subnet","vlanid":null,"created_at":"2020-09-03T06:57:10.685Z","updated_at":"2020-09-03T06:57:10.685Z","dhcp_id":null,"tftp_id":null,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"dns_id":null,"boot_mode":"DHCP","ipam":"DHCP","description":null,"mtu":1500,"template_id":null,"httpboot_id":null,"nic_delay":null,"externalipam_id":null,"externalipam_group":null,"to_label":"Test Subnet (192.168.200.0/27)","type":"Subnet::Ipv4"}' headers: Cache-Control: @@ -184,10 +154,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:13 GMT - ETag: - - W/"6ad423adcab8e6e2a3497c3ef21769a3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,14 +164,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -214,14 +176,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - b6e2689a-6870-4058-8cb5-cc55249e27f3 - X-Runtime: - - '0.039744' X-XSS-Protection: - 1; mode=block content-length: - - '544' + - '545' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/subnet-7.yml b/tests/test_playbooks/fixtures/subnet-7.yml index 741cfd16..4678aa94 100644 --- a/tests/test_playbooks/fixtures/subnet-7.yml +++ b/tests/test_playbooks/fixtures/subnet-7.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:13 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=ec8b5e1932011df913620ebc109640d7; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 960e14e0-75ce-4f6f-9019-ea157fee7a54 - X-Runtime: - - '0.143395' X-XSS-Protection: - 1; mode=block content-length: @@ -78,15 +64,13 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ec8b5e1932011df913620ebc109640d7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: @@ -100,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:13 GMT - ETag: - - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,14 +94,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,10 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 152cf9d3-6a8f-49d8-b62a-c3add7070119 - X-Runtime: - - '0.014997' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/subnet-8.yml b/tests/test_playbooks/fixtures/subnet-8.yml index 797ea88e..e92a3355 100644 --- a/tests/test_playbooks/fixtures/subnet-8.yml +++ b/tests/test_playbooks/fixtures/subnet-8.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:14 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=6a53164fb55fe2402106b4e305e62038; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 54466b60-31fc-4f18-a5fb-91c5085fe597 - X-Runtime: - - '0.137288' X-XSS-Protection: - 1; mode=block content-length: @@ -78,15 +64,13 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=6a53164fb55fe2402106b4e305e62038 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: @@ -100,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:14 GMT - ETag: - - W/"073f3aef59c83a0aed48443e2dc9e982-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,14 +94,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -130,10 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 86e560a1-1c57-478e-bb82-5941507bb6bf - X-Runtime: - - '0.015529' X-XSS-Protection: - 1; mode=block content-length: @@ -155,16 +127,14 @@ interactions: - '163' Content-Type: - application/json - Cookie: - - _session_id=6a53164fb55fe2402106b4e305e62038 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST uri: https://foreman.example.org/api/subnets response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:14 UTC","updated_at":"2020-07-17 07:19:14 UTC","ipam":"DHCP","boot_mode":"DHCP","id":2,"name":"Test + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:16 UTC","updated_at":"2020-09-03 06:57:16 UTC","ipam":"DHCP","boot_mode":"DHCP","id":31,"name":"Test Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: @@ -177,10 +147,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:14 GMT - ETag: - - W/"eb0fdc78e3254c8a2a5d9060710daf3f" Foreman_api_version: - '2' Foreman_current_location: @@ -191,14 +157,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: - chunked - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -207,10 +169,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - a5a7dcef-3ae5-4cc9-a563-8cf320c36429 - X-Runtime: - - '0.043713' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/subnet-9.yml b/tests/test_playbooks/fixtures/subnet-9.yml index 056cafb3..ad832d41 100644 --- a/tests/test_playbooks/fixtures/subnet-9.yml +++ b/tests/test_playbooks/fixtures/subnet-9.yml @@ -26,10 +26,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:14 GMT - ETag: - - W/"8eeb944fdccee712d04e92b9f81fd9c1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -40,16 +36,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=4862b608fe42973a08e4f9f0b4540975; path=/; secure; HttpOnly; SameSite=Lax Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -58,10 +48,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 4536d494-d9a0-4e64-bf49-a82e0d18689d - X-Runtime: - - '0.135208' X-XSS-Protection: - 1; mode=block content-length: @@ -78,22 +64,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4862b608fe42973a08e4f9f0b4540975 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+Subnet%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"Test Subnet\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ - :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-07-17\ - \ 07:19:14 UTC\",\"updated_at\":\"2020-07-17 07:19:14 UTC\",\"ipam\":\"DHCP\"\ - ,\"boot_mode\":\"DHCP\",\"id\":2,\"name\":\"Test Subnet\",\"description\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 06:57:16 UTC\",\"updated_at\":\"2020-09-03 06:57:16 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":31,\"name\":\"Test Subnet\",\"description\"\ :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ @@ -110,10 +94,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:15 GMT - ETag: - - W/"2d32d7018b6f2297e1ea1bc8e2955c85-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -124,14 +104,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -140,14 +116,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - a81994e6-f73e-4122-9ade-f0d3638d301e - X-Runtime: - - '0.016405' X-XSS-Protection: - 1; mode=block content-length: - - '867' + - '868' status: code: 200 message: OK @@ -160,16 +132,14 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=4862b608fe42973a08e4f9f0b4540975 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/subnets/2 + uri: https://foreman.example.org/api/subnets/31 response: body: - string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-07-17 - 07:19:14 UTC","updated_at":"2020-07-17 07:19:14 UTC","ipam":"DHCP","boot_mode":"DHCP","id":2,"name":"Test + string: '{"network":"192.168.200.0","network_type":"IPv4","cidr":27,"mask":"255.255.255.224","priority":null,"vlanid":null,"mtu":1500,"gateway":null,"dns_primary":null,"dns_secondary":null,"from":null,"to":null,"created_at":"2020-09-03 + 06:57:16 UTC","updated_at":"2020-09-03 06:57:16 UTC","ipam":"DHCP","boot_mode":"DHCP","id":31,"name":"Test Subnet","description":null,"network_address":"192.168.200.0/27","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"domains":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' headers: Cache-Control: @@ -182,10 +152,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Fri, 17 Jul 2020 07:19:15 GMT - ETag: - - W/"eb0fdc78e3254c8a2a5d9060710daf3f-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -196,14 +162,10 @@ interactions: - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: - Accept-Encoding - Via: - - 1.1 centos7-foreman-2-1.yatsu.example.com X-Content-Type-Options: - nosniff X-Download-Options: @@ -212,14 +174,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Request-Id: - - 3fa39637-97f1-4911-98d9-217d4af8ec87 - X-Runtime: - - '0.021618' X-XSS-Protection: - 1; mode=block content-length: - - '769' + - '770' status: code: 200 message: OK From 4445feb772c94578f71f312ef92469a1df7ab2ea Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 09:16:38 +0200 Subject: [PATCH 78/88] re-record domain --- tests/test_playbooks/fixtures/domain-0.yml | 188 ++------ tests/test_playbooks/fixtures/domain-1.yml | 192 +++----- tests/test_playbooks/fixtures/domain-10.yml | 385 +++------------- tests/test_playbooks/fixtures/domain-11.yml | 266 +++-------- tests/test_playbooks/fixtures/domain-12.yml | 188 ++------ tests/test_playbooks/fixtures/domain-13.yml | 226 +++------- tests/test_playbooks/fixtures/domain-14.yml | 196 +++------ tests/test_playbooks/fixtures/domain-15.yml | 76 +--- tests/test_playbooks/fixtures/domain-16.yml | 76 +--- tests/test_playbooks/fixtures/domain-17.yml | 46 +- tests/test_playbooks/fixtures/domain-2.yml | 266 +++-------- tests/test_playbooks/fixtures/domain-3.yml | 238 +++------- tests/test_playbooks/fixtures/domain-4.yml | 78 +--- tests/test_playbooks/fixtures/domain-5.yml | 228 +--------- tests/test_playbooks/fixtures/domain-6.yml | 228 +++------- tests/test_playbooks/fixtures/domain-7.yml | 275 +++--------- tests/test_playbooks/fixtures/domain-8.yml | 464 +++----------------- tests/test_playbooks/fixtures/domain-9.yml | 275 +++--------- 18 files changed, 797 insertions(+), 3094 deletions(-) diff --git a/tests/test_playbooks/fixtures/domain-0.yml b/tests/test_playbooks/fixtures/domain-0.yml index 76db32bf..0841c259 100644 --- a/tests/test_playbooks/fixtures/domain-0.yml +++ b/tests/test_playbooks/fixtures/domain-0.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:04 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=08a20d6cc02651047744bc32ffe04626; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 521d5c64-3792-48b5-99df-1132c67a622b - X-Runtime: - - '0.083874' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,15 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=08a20d6cc02651047744bc32ffe04626 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:04 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +91,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +106,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3b92c3c1-68d3-4062-88f7-74f38ae17cbc - X-Runtime: - - '0.016039' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '177' status: code: 200 message: OK @@ -156,20 +122,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=08a20d6cc02651047744bc32ffe04626 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + 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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +146,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:04 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +153,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +168,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 05bb3c77-2a72-4dc4-94aa-2526f2a96616 - X-Runtime: - - '0.014878' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '413' status: code: 200 message: OK @@ -233,21 +184,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=08a20d6cc02651047744bc32ffe04626 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +207,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:04 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +214,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,16 +229,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 43b98cfd-0f93-4eef-a0ea-3b82d358129f - X-Runtime: - - '0.016124' X-XSS-Protection: - 1; mode=block content-length: - - '413' + - '385' status: code: 200 message: OK @@ -311,17 +245,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=08a20d6cc02651047744bc32ffe04626 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -333,10 +269,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:04 GMT - ETag: - - W/"0d2834ebadb9f84003b6cdeca1fe5c7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -344,13 +276,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -363,22 +291,16 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - be0079cf-a1e1-4b8b-acfd-5ca3a9096669 - X-Runtime: - - '0.015485' X-XSS-Protection: - 1; mode=block content-length: - - '177' + - '416' status: code: 200 message: OK - request: - body: '{"domain": {"name": "example.com", "location_ids": [4, 5], "organization_ids": - [3]}}' + body: '{"domain": {"name": "example.com", "location_ids": [43, 44], "organization_ids": + [45]}}' headers: Accept: - application/json;version=2 @@ -387,21 +309,19 @@ interactions: Connection: - keep-alive Content-Length: - - '84' + - '87' Content-Type: - application/json - Cookie: - - _session_id=08a20d6cc02651047744bc32ffe04626 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST uri: https://foreman.example.org/api/domains response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:04 UTC","updated_at":"2020-05-05 - 10:36:04 UTC","id":4,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test + string: '{"fullname":null,"created_at":"2020-09-03 07:16:13 UTC","updated_at":"2020-09-03 + 07:16:13 UTC","id":14,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: @@ -414,10 +334,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:04 GMT - ETag: - - W/"82315db1d3cde56602621df5cbd52ae2" Foreman_api_version: - '2' Foreman_current_location: @@ -425,13 +341,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -444,12 +356,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 342df4cc-28c4-4366-9303-de268fad4356 - X-Runtime: - - '0.064269' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/domain-1.yml b/tests/test_playbooks/fixtures/domain-1.yml index 460d63a7..5abee81b 100644 --- a/tests/test_playbooks/fixtures/domain-1.yml +++ b/tests/test_playbooks/fixtures/domain-1.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=b0f37f85476d68800376a0989b10ba19; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c2222433-f122-4adc-8776-41083d19d58a - X-Runtime: - - '0.102986' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b0f37f85476d68800376a0989b10ba19 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:13 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:13 UTC\",\"id\":14,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f26f27fa-a875-4014-9206-d5f412ec9ef3 - X-Runtime: - - '0.017350' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '326' status: code: 200 message: OK @@ -156,20 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b0f37f85476d68800376a0989b10ba19 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/14 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:13 UTC","updated_at":"2020-09-03 + 07:16:13 UTC","id":14,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +147,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +154,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +169,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 506d1358-1018-4d26-a846-207a790ebf5c - X-Runtime: - - '0.016118' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '489' status: code: 200 message: OK @@ -233,21 +185,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b0f37f85476d68800376a0989b10ba19 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +209,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +216,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +231,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 80bcdc5c-f138-41bd-b941-02bdc28a13c3 - X-Runtime: - - '0.017387' X-XSS-Protection: - 1; mode=block content-length: @@ -311,20 +247,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b0f37f85476d68800376a0989b10ba19 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:04 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:04 UTC\",\"id\":4,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ - :null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,10 +270,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"144cbc733f40c2721949cfec46926fea-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -347,13 +277,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +292,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b59acde3-a663-4015-9327-0359673b4d21 - X-Runtime: - - '0.016854' X-XSS-Protection: - 1; mode=block content-length: - - '325' + - '385' status: code: 200 message: OK @@ -388,19 +308,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b0f37f85476d68800376a0989b10ba19 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/4 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:04 UTC","updated_at":"2020-05-05 - 10:36:04 UTC","id":4,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -412,10 +332,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"82315db1d3cde56602621df5cbd52ae2-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -423,13 +339,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -442,16 +354,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 229336cc-03ec-46f1-9d59-9d9bde1dad81 - X-Runtime: - - '0.024348' X-XSS-Protection: - 1; mode=block content-length: - - '485' + - '416' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-10.yml b/tests/test_playbooks/fixtures/domain-10.yml index 994b9268..4c1b412d 100644 --- a/tests/test_playbooks/fixtures/domain-10.yml +++ b/tests/test_playbooks/fixtures/domain-10.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:11 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=93bba5d060ba49e6e75a4ad7685fdbb3; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a0653eea-dd96-4f26-9246-8db970c5ff45 - X-Runtime: - - '0.080369' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=93bba5d060ba49e6e75a4ad7685fdbb3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:17 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:17 UTC\",\"id\":15,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:11 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d02866c7-1534-4bf8-ad13-117c103c5d8b - X-Runtime: - - '0.015772' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '326' status: code: 200 message: OK @@ -156,20 +125,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=93bba5d060ba49e6e75a4ad7685fdbb3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/15 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:20 UTC","id":50,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":30,"created_at":"2020-09-03 + 07:16:20 UTC","updated_at":"2020-09-03 07:16:20 UTC","id":52,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +149,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:11 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +156,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cbe3327b-9761-4a0f-b222-900c98d3eecf - X-Runtime: - - '0.015668' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '828' status: code: 200 message: OK @@ -233,21 +187,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=93bba5d060ba49e6e75a4ad7685fdbb3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +211,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:11 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +218,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +233,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7423e4ed-9e65-41d3-a3b0-d5ff0c77ec77 - X-Runtime: - - '0.016007' X-XSS-Protection: - 1; mode=block content-length: @@ -311,20 +249,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=93bba5d060ba49e6e75a4ad7685fdbb3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:07 UTC\",\"id\":5,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ - :null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,10 +272,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:11 GMT - ETag: - - W/"91dee03d846f410746872ef5da51daeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -347,13 +279,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +294,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 95f97a86-b91e-43ea-b056-37e38ae3d819 - X-Runtime: - - '0.015623' X-XSS-Protection: - 1; mode=block content-length: - - '325' + - '385' status: code: 200 message: OK @@ -388,21 +310,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=93bba5d060ba49e6e75a4ad7685fdbb3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/5 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":5,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":30,"created_at":"2020-05-05 - 10:36:10 UTC","updated_at":"2020-05-05 10:36:10 UTC","id":3,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -414,10 +334,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:11 GMT - ETag: - - W/"390913cacb131919fa3a34517113e3fd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -425,13 +341,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -444,100 +356,15 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 47f36e40-530f-4369-9f94-34e65d08f892 - X-Runtime: - - '0.029123' X-XSS-Protection: - 1; mode=block content-length: - - '822' + - '416' status: code: 200 message: OK - request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=93bba5d060ba49e6e75a4ad7685fdbb3 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/domains/5/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ - \ \"order\": null\n },\n \"results\": [{\"priority\":30,\"created_at\":\"\ - 2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05 10:36:09 UTC\",\"id\"\ - :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"\ - },{\"priority\":30,\"created_at\":\"2020-05-05 10:36:10 UTC\",\"updated_at\"\ - :\"2020-05-05 10:36:10 UTC\",\"id\":3,\"name\":\"subnet_param3\",\"parameter_type\"\ - :\"string\",\"value\":\"value3\"}]\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 - Date: - - Tue, 05 May 2020 10:36:11 GMT - ETag: - - W/"9decb5b7211b9330dc8901a9d7f32e5b-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=94 - 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: - - 9a5f9fb0-db1a-4691-953f-bbd94a0531ce - X-Runtime: - - '0.976113' - X-XSS-Protection: - - 1; mode=block - content-length: - - '496' - status: - code: 200 - message: OK -- request: - body: null + body: '{"domain": {"domain_parameters_attributes": []}}' headers: Accept: - application/json;version=2 @@ -546,90 +373,20 @@ interactions: Connection: - keep-alive Content-Length: - - '0' - Cookie: - - _session_id=93bba5d060ba49e6e75a4ad7685fdbb3 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/api/domains/5/parameters/1 - response: - body: - string: '{"id":1,"name":"subnet_param1","value":"new_value1","reference_id":5,"created_at":"2020-05-05T10:36:07.908Z","updated_at":"2020-05-05T10:36:09.989Z","priority":30,"hidden_value":"*****","key_type":"string","searchable_value":"new_value1"}' - 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''' + - '48' Content-Type: - - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:12 GMT - ETag: - - W/"efa9a152974501ff1a8c570f530239cc-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=93 - 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: - - 017c0dea-3558-429f-ad58-569493c65a74 - X-Runtime: - - '0.095791' - X-XSS-Protection: - - 1; mode=block - content-length: - - '238' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Cookie: - - _session_id=93bba5d060ba49e6e75a4ad7685fdbb3 + - application/json User-Agent: - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/api/domains/5/parameters/3 + method: PUT + uri: https://foreman.example.org/api/domains/15 response: body: - string: '{"id":3,"name":"subnet_param3","value":"value3","reference_id":5,"created_at":"2020-05-05T10:36:10.048Z","updated_at":"2020-05-05T10:36:10.048Z","priority":30,"hidden_value":"*****","key_type":"string","searchable_value":"value3"}' + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -641,10 +398,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:12 GMT - ETag: - - W/"64cd43630fc7e6e274ddc834bf90cf4f-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -652,13 +405,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - - timeout=15, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -671,16 +420,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7bb08199-2d45-435d-b6b5-b265362deba9 - X-Runtime: - - '0.037739' X-XSS-Protection: - 1; mode=block content-length: - - '230' + - '489' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-11.yml b/tests/test_playbooks/fixtures/domain-11.yml index 65ee83ad..14100d7f 100644 --- a/tests/test_playbooks/fixtures/domain-11.yml +++ b/tests/test_playbooks/fixtures/domain-11.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:12 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=69231f3c4752b9ae82f041ec05d6db2d; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2e07eb01-bb60-495d-bc72-c5b33bdd80bb - X-Runtime: - - '0.112857' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=69231f3c4752b9ae82f041ec05d6db2d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:17 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:17 UTC\",\"id\":15,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3c1216ee-a68c-43b0-9bb8-ee7ec79dfee3 - X-Runtime: - - '0.022056' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '326' status: code: 200 message: OK @@ -156,20 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=69231f3c4752b9ae82f041ec05d6db2d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/15 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +147,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +154,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +169,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bf5861c0-963c-4bdd-9242-39de5cd4598e - X-Runtime: - - '0.019850' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '489' status: code: 200 message: OK @@ -233,21 +185,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=69231f3c4752b9ae82f041ec05d6db2d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +209,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +216,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +231,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0799e8b0-a764-4cfd-86ab-2ab0cc57239a - X-Runtime: - - '0.021338' X-XSS-Protection: - 1; mode=block content-length: @@ -311,20 +247,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=69231f3c4752b9ae82f041ec05d6db2d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:07 UTC\",\"id\":5,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ - :null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,10 +270,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"91dee03d846f410746872ef5da51daeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -347,13 +277,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +292,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5ea1923b-f769-4b5a-a970-8d9861d347dd - X-Runtime: - - '0.027994' X-XSS-Protection: - 1; mode=block content-length: - - '325' + - '385' status: code: 200 message: OK @@ -388,19 +308,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=69231f3c4752b9ae82f041ec05d6db2d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/5 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":5,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -412,10 +332,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"f9e7bebbaaf47a8da388de54b12cad5b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -423,87 +339,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - 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: - - 48d1b63d-6b22-4af4-91f8-07c802b55537 - X-Runtime: - - '0.048346' - X-XSS-Protection: - - 1; mode=block - content-length: - - '485' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=69231f3c4752b9ae82f041ec05d6db2d - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/domains/5/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ - \ \"order\": null\n },\n \"results\": []\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 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"b0ebd79c430c4781172af39880582aed-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=94 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -516,16 +354,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 421a2096-fcde-4ff8-b885-36794881883c - X-Runtime: - - '0.019568' X-XSS-Protection: - 1; mode=block content-length: - - '159' + - '416' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-12.yml b/tests/test_playbooks/fixtures/domain-12.yml index 6dd1b9d8..44b50f2c 100644 --- a/tests/test_playbooks/fixtures/domain-12.yml +++ b/tests/test_playbooks/fixtures/domain-12.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=d3d93ae856411e719b5011cf3da2908c; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6dcf7b8c-9985-4a48-b730-24e6b3f49c01 - X-Runtime: - - '0.096179' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,15 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d3d93ae856411e719b5011cf3da2908c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foobar.example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foobar.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +91,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +106,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5ccb3b96-bb8b-4d70-ae55-68431e9e3c7d - X-Runtime: - - '0.019974' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '184' status: code: 200 message: OK @@ -156,20 +122,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d3d93ae856411e719b5011cf3da2908c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + 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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +146,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +153,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +168,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - efdc0d08-0e22-4642-ad3f-5954500a7f0c - X-Runtime: - - '0.020886' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '413' status: code: 200 message: OK @@ -233,21 +184,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d3d93ae856411e719b5011cf3da2908c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +207,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +214,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,16 +229,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9d5a9441-ea1b-4aa9-9210-91d28ad46841 - X-Runtime: - - '0.021592' X-XSS-Protection: - 1; mode=block content-length: - - '413' + - '385' status: code: 200 message: OK @@ -311,17 +245,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d3d93ae856411e719b5011cf3da2908c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22foobar.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"foobar.example.com\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -333,10 +269,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"c73488dfda76b5f6076fe8d1615d27a5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -344,13 +276,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -363,22 +291,16 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 21dc1c23-1f5d-4243-977d-744836fd2674 - X-Runtime: - - '0.017706' X-XSS-Protection: - 1; mode=block content-length: - - '184' + - '416' status: code: 200 message: OK - request: - body: '{"domain": {"name": "foobar.example.com", "location_ids": [4, 5], "organization_ids": - [3]}}' + body: '{"domain": {"name": "foobar.example.com", "location_ids": [43, 44], "organization_ids": + [45]}}' headers: Accept: - application/json;version=2 @@ -387,21 +309,19 @@ interactions: Connection: - keep-alive Content-Length: - - '91' + - '94' Content-Type: - application/json - Cookie: - - _session_id=d3d93ae856411e719b5011cf3da2908c User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST uri: https://foreman.example.org/api/domains response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:13 UTC","updated_at":"2020-05-05 - 10:36:13 UTC","id":6,"name":"foobar.example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test + string: '{"fullname":null,"created_at":"2020-09-03 07:16:23 UTC","updated_at":"2020-09-03 + 07:16:23 UTC","id":16,"name":"foobar.example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: @@ -414,10 +334,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:13 GMT - ETag: - - W/"45c7ed66c0996825152502088908e625" Foreman_api_version: - '2' Foreman_current_location: @@ -425,13 +341,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -444,12 +356,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f7053737-2603-42aa-868d-fcb7d0ffd774 - X-Runtime: - - '0.093561' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/domain-13.yml b/tests/test_playbooks/fixtures/domain-13.yml index aa4eab34..32977d24 100644 --- a/tests/test_playbooks/fixtures/domain-13.yml +++ b/tests/test_playbooks/fixtures/domain-13.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:14 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=a001e294a6d53d2a65853b033513d508; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 48b8cbca-62ba-48d7-8b08-19f7f8a07cc5 - X-Runtime: - - '0.090220' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a001e294a6d53d2a65853b033513d508 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foobar.example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foobar.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:23 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:23 UTC\",\"id\":16,\"name\":\"foobar.example.com\",\"dns_id\":null,\"\ + dns\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:14 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 30a97804-a026-4c76-aab7-8160df634393 - X-Runtime: - - '0.021171' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '340' status: code: 200 message: OK @@ -156,20 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a001e294a6d53d2a65853b033513d508 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/16 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:23 UTC","updated_at":"2020-09-03 + 07:16:23 UTC","id":16,"name":"foobar.example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +147,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:14 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +154,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +169,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0fb6abb0-9c7c-4fbe-90d4-17a90be72c23 - X-Runtime: - - '0.019439' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '496' status: code: 200 message: OK @@ -233,21 +185,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a001e294a6d53d2a65853b033513d508 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +209,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:14 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +216,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +231,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 45040e36-3cc4-4ece-bae1-8b7270a78ad4 - X-Runtime: - - '0.020782' X-XSS-Protection: - 1; mode=block content-length: @@ -311,20 +247,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a001e294a6d53d2a65853b033513d508 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22foobar.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"foobar.example.com\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:13 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:13 UTC\",\"id\":6,\"name\":\"foobar.example.com\",\"dns_id\":null,\"\ - dns\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,10 +270,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:14 GMT - ETag: - - W/"38b84750a16742646a76ffa68d275f19-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -347,13 +277,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +292,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b40f9214-6d5b-4230-9ab1-a9befab79478 - X-Runtime: - - '0.017985' X-XSS-Protection: - 1; mode=block content-length: - - '339' + - '385' status: code: 200 message: OK @@ -388,19 +308,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a001e294a6d53d2a65853b033513d508 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/6 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:13 UTC","updated_at":"2020-05-05 - 10:36:13 UTC","id":6,"name":"foobar.example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -412,10 +332,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:14 GMT - ETag: - - W/"45c7ed66c0996825152502088908e625-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -423,13 +339,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -442,16 +354,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 63ed7c1c-dcfe-47c8-a092-962e47e983cd - X-Runtime: - - '0.025735' X-XSS-Protection: - 1; mode=block content-length: - - '492' + - '416' status: code: 200 message: OK @@ -468,18 +374,16 @@ interactions: - '42' Content-Type: - application/json - Cookie: - - _session_id=a001e294a6d53d2a65853b033513d508 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/domains/6 + uri: https://foreman.example.org/api/domains/16 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:13 UTC","updated_at":"2020-05-05 - 10:36:14 UTC","id":6,"name":"barbaz.example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test + string: '{"fullname":null,"created_at":"2020-09-03 07:16:23 UTC","updated_at":"2020-09-03 + 07:16:24 UTC","id":16,"name":"barbaz.example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: @@ -492,10 +396,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:14 GMT - ETag: - - W/"d9c2805abc905364561082955ec0b1a4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -503,13 +403,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=94 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -522,16 +418,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 442718aa-0599-4236-b70f-c1031bafe70e - X-Runtime: - - '0.057254' X-XSS-Protection: - 1; mode=block content-length: - - '492' + - '496' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-14.yml b/tests/test_playbooks/fixtures/domain-14.yml index 64d99def..32c0caac 100644 --- a/tests/test_playbooks/fixtures/domain-14.yml +++ b/tests/test_playbooks/fixtures/domain-14.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:15 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=75c7ca47d99113b9814da14f85579fb2; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a54b9c21-85dc-451e-b947-cf0870119440 - X-Runtime: - - '0.086934' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=75c7ca47d99113b9814da14f85579fb2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22barbaz.example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"barbaz.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:23 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:24 UTC\",\"id\":16,\"name\":\"barbaz.example.com\",\"dns_id\":null,\"\ + dns\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:15 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8019f75f-2f6a-4858-a140-b112f35e44be - X-Runtime: - - '0.019374' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '340' status: code: 200 message: OK @@ -156,20 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=75c7ca47d99113b9814da14f85579fb2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/16 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:23 UTC","updated_at":"2020-09-03 + 07:16:24 UTC","id":16,"name":"barbaz.example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +147,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:15 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +154,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +169,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 39193c61-c829-4d5d-8a43-c35d427f1a4c - X-Runtime: - - '0.018737' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '496' status: code: 200 message: OK @@ -233,21 +185,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=75c7ca47d99113b9814da14f85579fb2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +209,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:15 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +216,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +231,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 03da294b-f102-4f30-a535-1761c0ab3ec8 - X-Runtime: - - '0.020356' X-XSS-Protection: - 1; mode=block content-length: @@ -311,20 +247,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=75c7ca47d99113b9814da14f85579fb2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22barbaz.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"barbaz.example.com\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:13 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:14 UTC\",\"id\":6,\"name\":\"barbaz.example.com\",\"dns_id\":null,\"\ - dns\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,10 +270,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:15 GMT - ETag: - - W/"91a5c89cb0112ff8f712bbd05b0cc7ad-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -347,13 +277,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +292,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3a931df5-ec36-4f39-8382-7c541489aa60 - X-Runtime: - - '0.020220' X-XSS-Protection: - 1; mode=block content-length: - - '339' + - '385' status: code: 200 message: OK @@ -388,19 +308,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=75c7ca47d99113b9814da14f85579fb2 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/6 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:13 UTC","updated_at":"2020-05-05 - 10:36:14 UTC","id":6,"name":"barbaz.example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -412,10 +332,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:15 GMT - ETag: - - W/"d9c2805abc905364561082955ec0b1a4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -423,13 +339,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -442,16 +354,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7f024ef1-11a0-4b12-a931-a64f85fa6a8d - X-Runtime: - - '0.032412' X-XSS-Protection: - 1; mode=block content-length: - - '492' + - '416' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-15.yml b/tests/test_playbooks/fixtures/domain-15.yml index a7934eeb..48b87129 100644 --- a/tests/test_playbooks/fixtures/domain-15.yml +++ b/tests/test_playbooks/fixtures/domain-15.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:15 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=5b47c66c1fc55f094378e236ca089eae; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 71e4d898-7733-4e39-9c33-997840bddb4c - X-Runtime: - - '0.083183' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5b47c66c1fc55f094378e236ca089eae User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/domains?search=name%3D%22barbaz.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"barbaz.example.com\\\"\",\n \"sort\"\ : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:13 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:14 UTC\",\"id\":6,\"name\":\"barbaz.example.com\",\"dns_id\":null,\"\ + :null,\"created_at\":\"2020-09-03 07:16:23 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:24 UTC\",\"id\":16,\"name\":\"barbaz.example.com\",\"dns_id\":null,\"\ dns\":null}]\n}\n" headers: Cache-Control: @@ -103,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:15 GMT - ETag: - - W/"91a5c89cb0112ff8f712bbd05b0cc7ad-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -133,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - de9aca36-e1e0-4195-af73-21a8d4485273 - X-Runtime: - - '0.021823' X-XSS-Protection: - 1; mode=block content-length: - - '339' + - '340' status: code: 200 message: OK @@ -157,15 +127,13 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=5b47c66c1fc55f094378e236ca089eae User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/domains/6 + uri: https://foreman.example.org/api/domains/16 response: body: - string: '{"id":6,"name":"barbaz.example.com","fullname":null,"created_at":"2020-05-05T10:36:13.886Z","updated_at":"2020-05-05T10:36:14.613Z","dns_id":null}' + string: '{"id":16,"name":"barbaz.example.com","fullname":null,"created_at":"2020-09-03T07:16:23.719Z","updated_at":"2020-09-03T07:16:24.529Z","dns_id":null}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -177,10 +145,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:15 GMT - ETag: - - W/"5d49b2110af70751e49da5c67ec7fe40-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -188,13 +152,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -207,16 +167,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0387220d-2227-4679-87ff-0808172a5328 - X-Runtime: - - '0.041098' X-XSS-Protection: - 1; mode=block content-length: - - '146' + - '147' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-16.yml b/tests/test_playbooks/fixtures/domain-16.yml index 4824fe78..4c4c0df9 100644 --- a/tests/test_playbooks/fixtures/domain-16.yml +++ b/tests/test_playbooks/fixtures/domain-16.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:16 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=d35d91a106ebf5df8e3829b51d9ed1a6; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1e015b57-165f-4019-b083-d25a9828a9a2 - X-Runtime: - - '0.076054' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d35d91a106ebf5df8e3829b51d9ed1a6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:07 UTC\",\"id\":5,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ + :null,\"created_at\":\"2020-09-03 07:16:17 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:17 UTC\",\"id\":15,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ :null}]\n}\n" headers: Cache-Control: @@ -103,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:16 GMT - ETag: - - W/"91dee03d846f410746872ef5da51daeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -114,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -133,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9c061061-1a74-4058-a0ec-938f3c80d66d - X-Runtime: - - '0.014927' X-XSS-Protection: - 1; mode=block content-length: - - '325' + - '326' status: code: 200 message: OK @@ -157,15 +127,13 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=d35d91a106ebf5df8e3829b51d9ed1a6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/domains/5 + uri: https://foreman.example.org/api/domains/15 response: body: - string: '{"id":5,"name":"example.com","fullname":null,"created_at":"2020-05-05T10:36:07.846Z","updated_at":"2020-05-05T10:36:07.846Z","dns_id":null}' + string: '{"id":15,"name":"example.com","fullname":null,"created_at":"2020-09-03T07:16:17.930Z","updated_at":"2020-09-03T07:16:17.930Z","dns_id":null}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -177,10 +145,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:16 GMT - ETag: - - W/"111cb694688ad68e5b1954733fc2f6cd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -188,13 +152,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -207,16 +167,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ba148221-ecb2-4d7e-9c1b-847cc7437470 - X-Runtime: - - '0.038391' X-XSS-Protection: - 1; mode=block content-length: - - '139' + - '140' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-17.yml b/tests/test_playbooks/fixtures/domain-17.yml index 588a4fb0..c879f2c7 100644 --- a/tests/test_playbooks/fixtures/domain-17.yml +++ b/tests/test_playbooks/fixtures/domain-17.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:16 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=ca0cc5d6a8592bdd31f7fd7ebfd73796; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - abae016a-504d-49db-968f-693c7a62090f - X-Runtime: - - '0.074890' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,15 +64,13 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ca0cc5d6a8592bdd31f7fd7ebfd73796 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: @@ -100,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:16 GMT - ETag: - - W/"0d2834ebadb9f84003b6cdeca1fe5c7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -111,13 +91,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -130,12 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cb022c93-d497-4b9f-b9e3-d2a9f9bf0d28 - X-Runtime: - - '0.013765' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/domain-2.yml b/tests/test_playbooks/fixtures/domain-2.yml index 4e44eb53..1147eb16 100644 --- a/tests/test_playbooks/fixtures/domain-2.yml +++ b/tests/test_playbooks/fixtures/domain-2.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=c7e514bfd801a2ebb2ace965e459a3a7; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9cfef0e8-2032-427e-8160-b397288c2934 - X-Runtime: - - '0.099358' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c7e514bfd801a2ebb2ace965e459a3a7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:13 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:13 UTC\",\"id\":14,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9e08565c-24de-4adc-b835-32306f12f7d7 - X-Runtime: - - '0.016932' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '326' status: code: 200 message: OK @@ -156,20 +125,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c7e514bfd801a2ebb2ace965e459a3a7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/14 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:13 UTC","updated_at":"2020-09-03 + 07:16:13 UTC","id":14,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +147,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +154,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +169,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5d076f8b-321e-40c3-8e3d-b43a9eeec313 - X-Runtime: - - '0.016320' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '489' status: code: 200 message: OK @@ -233,21 +185,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c7e514bfd801a2ebb2ace965e459a3a7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +209,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +216,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +231,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 97dbdba4-dd98-42eb-abec-6a3294b550ac - X-Runtime: - - '0.018556' X-XSS-Protection: - 1; mode=block content-length: @@ -311,25 +247,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c7e514bfd801a2ebb2ace965e459a3a7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-0.yatsu.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-0.yatsu.example.com\\\ - \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"created_at\":\"2020-04-09 11:13:26 UTC\",\"updated_at\":\"2020-04-09\ - \ 11:13:26 UTC\",\"name\":\"centos7-foreman-2-0.yatsu.example.com\",\"id\"\ - :1,\"url\":\"https://centos7-foreman-2-0.yatsu.example.com:8443\",\"features\"\ - :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ - name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ - id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ - :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ - ,\"id\":3}]}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -341,10 +270,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"97d76b7ac56c43eb0fd9ddd70085ecc1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -352,13 +277,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -371,16 +292,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b2cd9995-a228-4cfa-8a0d-c74a5e213e51 - X-Runtime: - - '0.020496' X-XSS-Protection: - 1; mode=block content-length: - - '666' + - '385' status: code: 200 message: OK @@ -393,20 +308,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c7e514bfd801a2ebb2ace965e459a3a7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:04 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:04 UTC\",\"id\":4,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ - :null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -418,10 +332,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"144cbc733f40c2721949cfec46926fea-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -429,13 +339,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -448,16 +354,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d9264c4c-e1fa-467e-a2c0-d4b85180041a - X-Runtime: - - '0.017051' X-XSS-Protection: - 1; mode=block content-length: - - '325' + - '416' status: code: 200 message: OK @@ -470,19 +370,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c7e514bfd801a2ebb2ace965e459a3a7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/4 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:04 UTC","updated_at":"2020-05-05 - 10:36:04 UTC","id":4,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -494,10 +398,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"82315db1d3cde56602621df5cbd52ae2-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -505,13 +405,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=94 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -524,16 +420,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1f65e97d-7393-4796-8cac-ef48df7d06df - X-Runtime: - - '0.026918' X-XSS-Protection: - 1; mode=block content-length: - - '485' + - '666' status: code: 200 message: OK @@ -550,18 +440,16 @@ interactions: - '25' Content-Type: - application/json - Cookie: - - _session_id=c7e514bfd801a2ebb2ace965e459a3a7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/domains/4 + uri: https://foreman.example.org/api/domains/14 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:04 UTC","updated_at":"2020-05-05 - 10:36:05 UTC","id":4,"name":"example.com","dns_id":1,"dns":{"name":"centos7-foreman-2-0.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-0.yatsu.example.com:8443"},"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test + string: '{"fullname":null,"created_at":"2020-09-03 07:16:13 UTC","updated_at":"2020-09-03 + 07:16:15 UTC","id":14,"name":"example.com","dns_id":1,"dns":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: @@ -574,10 +462,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:05 GMT - ETag: - - W/"18ce608a484bcaad6ddfea6d05be64b4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -585,13 +469,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=93 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -604,16 +484,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c8bc01a1-0da7-4392-914b-113d912301f4 - X-Runtime: - - '0.057554' X-XSS-Protection: - 1; mode=block content-length: - - '592' + - '596' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-3.yml b/tests/test_playbooks/fixtures/domain-3.yml index b0b72eab..5defc82e 100644 --- a/tests/test_playbooks/fixtures/domain-3.yml +++ b/tests/test_playbooks/fixtures/domain-3.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:06 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=2f607445c00f3ba6bede20931f91c635; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d19627bc-781e-40b4-b48a-6437126d2215 - X-Runtime: - - '0.105706' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f607445c00f3ba6bede20931f91c635 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:13 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:15 UTC\",\"id\":14,\"name\":\"example.com\",\"dns_id\":1,\"dns\":{\"\ + name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +88,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:06 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +95,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +110,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cfc1166b-a817-4025-b514-57663ab6c40a - X-Runtime: - - '0.021060' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '433' status: code: 200 message: OK @@ -156,20 +126,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f607445c00f3ba6bede20931f91c635 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/14 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:13 UTC","updated_at":"2020-09-03 + 07:16:15 UTC","id":14,"name":"example.com","dns_id":1,"dns":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +148,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:06 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +155,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +170,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d325544d-1f87-49c9-b241-5201a55f4e9e - X-Runtime: - - '0.018434' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '596' status: code: 200 message: OK @@ -233,21 +186,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f607445c00f3ba6bede20931f91c635 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +210,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:06 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +217,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +232,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c7e7df62-d2e1-4e28-951c-5d7d70285000 - X-Runtime: - - '0.018868' X-XSS-Protection: - 1; mode=block content-length: @@ -311,25 +248,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f607445c00f3ba6bede20931f91c635 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-0.yatsu.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-0.yatsu.example.com\\\ - \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"created_at\":\"2020-04-09 11:13:26 UTC\",\"updated_at\":\"2020-04-09\ - \ 11:13:26 UTC\",\"name\":\"centos7-foreman-2-0.yatsu.example.com\",\"id\"\ - :1,\"url\":\"https://centos7-foreman-2-0.yatsu.example.com:8443\",\"features\"\ - :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ - name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ - id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ - :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ - ,\"id\":3}]}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -341,10 +271,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:06 GMT - ETag: - - W/"97d76b7ac56c43eb0fd9ddd70085ecc1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -352,13 +278,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -371,16 +293,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2ab8f5f1-87ea-4368-a968-7cb355ee2b11 - X-Runtime: - - '0.020508' X-XSS-Protection: - 1; mode=block content-length: - - '666' + - '385' status: code: 200 message: OK @@ -393,21 +309,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f607445c00f3ba6bede20931f91c635 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:04 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:05 UTC\",\"id\":4,\"name\":\"example.com\",\"dns_id\":1,\"dns\":{\"\ - name\":\"centos7-foreman-2-0.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-0.yatsu.example.com:8443\"\ - }}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -419,10 +333,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:06 GMT - ETag: - - W/"7ec48fae8cb10bd15653156ee22326a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -430,13 +340,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -449,16 +355,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - df12f4bd-8cc4-49d4-8e52-e45a25e3d9c1 - X-Runtime: - - '0.019477' X-XSS-Protection: - 1; mode=block content-length: - - '432' + - '416' status: code: 200 message: OK @@ -471,19 +371,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=2f607445c00f3ba6bede20931f91c635 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/4 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:04 UTC","updated_at":"2020-05-05 - 10:36:05 UTC","id":4,"name":"example.com","dns_id":1,"dns":{"name":"centos7-foreman-2-0.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-0.yatsu.example.com:8443"},"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -495,10 +399,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:06 GMT - ETag: - - W/"18ce608a484bcaad6ddfea6d05be64b4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -506,13 +406,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=94 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -525,16 +421,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5ab9ece6-7a55-431d-90f7-a2754d5acc3b - X-Runtime: - - '0.028300' X-XSS-Protection: - 1; mode=block content-length: - - '592' + - '666' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-4.yml b/tests/test_playbooks/fixtures/domain-4.yml index 9f66e5ea..101638a0 100644 --- a/tests/test_playbooks/fixtures/domain-4.yml +++ b/tests/test_playbooks/fixtures/domain-4.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:07 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=b667f396cdaa62c8586c58e9a3a581d0; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 14e98e2e-e147-4c89-a6eb-cbba949ebd75 - X-Runtime: - - '0.081838' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,20 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=b667f396cdaa62c8586c58e9a3a581d0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:04 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:05 UTC\",\"id\":4,\"name\":\"example.com\",\"dns_id\":1,\"dns\":{\"\ - name\":\"centos7-foreman-2-0.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-0.yatsu.example.com:8443\"\ + :null,\"created_at\":\"2020-09-03 07:16:13 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:15 UTC\",\"id\":14,\"name\":\"example.com\",\"dns_id\":1,\"dns\":{\"\ + name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ }}]\n}\n" headers: Cache-Control: @@ -104,10 +88,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:07 GMT - ETag: - - W/"7ec48fae8cb10bd15653156ee22326a9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +95,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +110,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 02041ee3-3246-4cf6-b6ee-3cd922979aba - X-Runtime: - - '0.017456' X-XSS-Protection: - 1; mode=block content-length: - - '432' + - '433' status: code: 200 message: OK @@ -158,15 +128,13 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=b667f396cdaa62c8586c58e9a3a581d0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.org/api/domains/4 + uri: https://foreman.example.org/api/domains/14 response: body: - string: '{"id":4,"name":"example.com","fullname":null,"created_at":"2020-05-05T10:36:04.608Z","updated_at":"2020-05-05T10:36:05.970Z","dns_id":1}' + string: '{"id":14,"name":"example.com","fullname":null,"created_at":"2020-09-03T07:16:13.796Z","updated_at":"2020-09-03T07:16:15.438Z","dns_id":1}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -178,10 +146,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:07 GMT - ETag: - - W/"b09d99b4a9ae07fc87981f490015af58-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,13 +153,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -208,16 +168,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1efca5b9-289f-46d8-827a-7629757a1c4f - X-Runtime: - - '0.052146' X-XSS-Protection: - 1; mode=block content-length: - - '136' + - '137' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-5.yml b/tests/test_playbooks/fixtures/domain-5.yml index 26af9abb..e7636ce9 100644 --- a/tests/test_playbooks/fixtures/domain-5.yml +++ b/tests/test_playbooks/fixtures/domain-5.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:07 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=ced3657324eb2158883eb1c8dc2ed433; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 866c1597-42b7-44a1-b8df-16a89683204b - X-Runtime: - - '0.078807' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,15 +64,13 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ced3657324eb2158883eb1c8dc2ed433 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: @@ -100,10 +84,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:07 GMT - ETag: - - W/"0d2834ebadb9f84003b6cdeca1fe5c7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -111,13 +91,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -130,12 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 855c6d36-0a7c-42dd-9977-b238c6cce904 - X-Runtime: - - '0.014999' X-XSS-Protection: - 1; mode=block content-length: @@ -144,7 +114,9 @@ interactions: code: 200 message: OK - request: - body: '{"domain": {"name": "example.com", "location_ids": [], "organization_ids": + body: '{"domain": {"name": "example.com", "domain_parameters_attributes": [{"name": + "subnet_param1", "value": "value1", "parameter_type": "string"}, {"name": "subnet_param2", + "value": "value2", "parameter_type": "string"}], "location_ids": [], "organization_ids": []}}' headers: Accept: @@ -154,19 +126,19 @@ interactions: Connection: - keep-alive Content-Length: - - '79' + - '261' Content-Type: - application/json - Cookie: - - _session_id=ced3657324eb2158883eb1c8dc2ed433 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST uri: https://foreman.example.org/api/domains response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":5,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[],"organizations":[]}' + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":50,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":51,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -178,10 +150,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:07 GMT - ETag: - - W/"33c66a911abd47f962ce6c93b25ecab9" Foreman_api_version: - '2' Foreman_current_location: @@ -189,165 +157,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 201 Created - 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-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 22672531-64b6-44ed-a972-616b08a8dce5 - X-Runtime: - - '0.041105' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"parameter": {"name": "subnet_param1", "value": "value1", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=ced3657324eb2158883eb1c8dc2ed433 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/api/domains/5/parameters - response: - body: - string: '{"priority":30,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"}' - 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 - Date: - - Tue, 05 May 2020 10:36:07 GMT - ETag: - - W/"2593f4563c44022923887b5fda4746c7" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=97 - Server: - - Apache - Status: - - 201 Created - 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-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3c7a43cc-2292-4787-be18-85f2313847f3 - X-Runtime: - - '0.058465' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"parameter": {"name": "subnet_param2", "value": "value2", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=ced3657324eb2158883eb1c8dc2ed433 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/api/domains/5/parameters - response: - body: - string: '{"priority":30,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}' - 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 - Date: - - Tue, 05 May 2020 10:36:07 GMT - ETag: - - W/"d19da8e3b448c8d488f97b964b56222d" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=96 - Server: - - Apache - Status: - - 201 Created Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -360,12 +172,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b751be88-6cc3-473d-b7b1-219fdd0415d9 - X-Runtime: - - '0.035434' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/domain-6.yml b/tests/test_playbooks/fixtures/domain-6.yml index 85840846..5d02bf7d 100644 --- a/tests/test_playbooks/fixtures/domain-6.yml +++ b/tests/test_playbooks/fixtures/domain-6.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:08 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=909d68b4203558bd532a13f4c5e59229; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e6423f40-6e70-4b1f-88f2-802651947f72 - X-Runtime: - - '0.082515' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=909d68b4203558bd532a13f4c5e59229 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:17 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:17 UTC\",\"id\":15,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:08 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - aab19b0b-dc10-47e1-b633-9673090ae339 - X-Runtime: - - '0.015919' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '326' status: code: 200 message: OK @@ -156,20 +125,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=909d68b4203558bd532a13f4c5e59229 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/15 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":50,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":51,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +146,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:08 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +153,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +168,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d4befe9f-fd6e-4262-a5ff-24c505d1f104 - X-Runtime: - - '0.016063' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '563' status: code: 200 message: OK @@ -233,21 +184,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=909d68b4203558bd532a13f4c5e59229 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +208,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:08 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +215,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +230,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2ff57c43-8936-43fe-baf2-45e537e83515 - X-Runtime: - - '0.018459' X-XSS-Protection: - 1; mode=block content-length: @@ -311,20 +246,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=909d68b4203558bd532a13f4c5e59229 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:07 UTC\",\"id\":5,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ - :null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,10 +269,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:08 GMT - ETag: - - W/"91dee03d846f410746872ef5da51daeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -347,13 +276,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +291,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 44090041-977e-4671-9ae5-7f21c283a3d1 - X-Runtime: - - '0.017386' X-XSS-Protection: - 1; mode=block content-length: - - '325' + - '385' status: code: 200 message: OK @@ -388,18 +307,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=909d68b4203558bd532a13f4c5e59229 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/5 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":5,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:07 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:07 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[],"organizations":[]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -411,10 +331,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:08 GMT - ETag: - - W/"a797bddc5f97956d61025b42c02e2c35-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -422,13 +338,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -441,21 +353,15 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 42cbac2c-a4f6-4cb4-996d-bd1505ba7b3f - X-Runtime: - - '0.028665' X-XSS-Protection: - 1; mode=block content-length: - - '560' + - '416' status: code: 200 message: OK - request: - body: '{"domain": {"location_ids": [4, 5], "organization_ids": [3]}}' + body: '{"domain": {"location_ids": [43, 44], "organization_ids": [45]}}' headers: Accept: - application/json;version=2 @@ -464,23 +370,21 @@ interactions: Connection: - keep-alive Content-Length: - - '61' + - '64' Content-Type: - application/json - Cookie: - - _session_id=909d68b4203558bd532a13f4c5e59229 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/domains/5 + uri: https://foreman.example.org/api/domains/15 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":5,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:07 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:07 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":50,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":51,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: @@ -493,10 +397,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:08 GMT - ETag: - - W/"ec740f70d53ce645001354dffce50ae1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -504,13 +404,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=94 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -523,16 +419,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ed23cd52-a867-4b42-bc7e-e8512998fe79 - X-Runtime: - - '0.073840' X-XSS-Protection: - 1; mode=block content-length: - - '818' + - '824' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-7.yml b/tests/test_playbooks/fixtures/domain-7.yml index 93d05860..62d6050a 100644 --- a/tests/test_playbooks/fixtures/domain-7.yml +++ b/tests/test_playbooks/fixtures/domain-7.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=dfaa4c97c3c22d5bfb5da52f8427e8ef; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d3661510-8c3e-45f4-805d-3fa2524fdcdc - X-Runtime: - - '0.094459' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dfaa4c97c3c22d5bfb5da52f8427e8ef User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:17 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:17 UTC\",\"id\":15,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a3f6bc3f-5050-4c47-8130-df30e1e1466e - X-Runtime: - - '0.015873' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '326' status: code: 200 message: OK @@ -156,20 +125,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dfaa4c97c3c22d5bfb5da52f8427e8ef User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/15 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":50,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":51,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +149,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +156,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2056d69e-550d-4fa1-aa70-350bc2641bbe - X-Runtime: - - '0.016034' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '824' status: code: 200 message: OK @@ -233,21 +187,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dfaa4c97c3c22d5bfb5da52f8427e8ef User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +211,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +218,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +233,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c8b4a78e-763e-46c5-9f61-c5984f5259ed - X-Runtime: - - '0.016594' X-XSS-Protection: - 1; mode=block content-length: @@ -311,20 +249,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dfaa4c97c3c22d5bfb5da52f8427e8ef User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:07 UTC\",\"id\":5,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ - :null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,10 +272,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"91dee03d846f410746872ef5da51daeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -347,13 +279,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +294,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bb86d2af-9c01-4f09-a241-152799958d31 - X-Runtime: - - '0.016326' X-XSS-Protection: - 1; mode=block content-length: - - '325' + - '385' status: code: 200 message: OK @@ -388,21 +310,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dfaa4c97c3c22d5bfb5da52f8427e8ef User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/5 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":5,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:07 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:07 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -414,10 +334,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"ec740f70d53ce645001354dffce50ae1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -425,92 +341,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - 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: - - 32ba123d-3ee6-4293-a30c-8caa1d2aa425 - X-Runtime: - - '0.027612' - X-XSS-Protection: - - 1; mode=block - content-length: - - '818' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=dfaa4c97c3c22d5bfb5da52f8427e8ef - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/domains/5/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ - \ \"order\": null\n },\n \"results\": [{\"priority\":30,\"created_at\":\"\ - 2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05 10:36:07 UTC\",\"id\"\ - :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"\ - },{\"priority\":30,\"created_at\":\"2020-05-05 10:36:07 UTC\",\"updated_at\"\ - :\"2020-05-05 10:36:07 UTC\",\"id\":2,\"name\":\"subnet_param2\",\"parameter_type\"\ - :\"string\",\"value\":\"value2\"}]\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 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"b2806ee67953d4e103ef3370e9660b80-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=94 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -523,16 +356,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1d2960e2-4ecc-4a55-acf0-a3b65655528c - X-Runtime: - - '0.019885' X-XSS-Protection: - 1; mode=block content-length: - - '492' + - '416' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-8.yml b/tests/test_playbooks/fixtures/domain-8.yml index 83f4f6f2..d1109f67 100644 --- a/tests/test_playbooks/fixtures/domain-8.yml +++ b/tests/test_playbooks/fixtures/domain-8.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7833e62b-9a6f-4127-86cd-98a661b8182d - X-Runtime: - - '0.078230' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:17 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:17 UTC\",\"id\":15,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 15eb9565-9f02-4cef-b62c-8f6d26e4653c - X-Runtime: - - '0.015235' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '326' status: code: 200 message: OK @@ -156,20 +125,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/15 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":50,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:17 UTC","id":51,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +149,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +156,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 53d9afc2-0cd2-45c9-a64e-aa381d380a9c - X-Runtime: - - '0.014976' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '824' status: code: 200 message: OK @@ -233,21 +187,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +211,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +218,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +233,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 11bc7fd4-eb65-4bb5-b1e4-e02eb7bcc923 - X-Runtime: - - '0.016764' X-XSS-Protection: - 1; mode=block content-length: @@ -311,20 +249,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:07 UTC\",\"id\":5,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ - :null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,10 +272,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"91dee03d846f410746872ef5da51daeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -347,13 +279,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +294,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7c42f74e-3790-461a-88f0-59ab05d6c67c - X-Runtime: - - '0.015450' X-XSS-Protection: - 1; mode=block content-length: - - '325' + - '385' status: code: 200 message: OK @@ -388,21 +310,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/5 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":5,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:07 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:07 UTC","id":2,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -414,10 +334,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"ec740f70d53ce645001354dffce50ae1-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -425,13 +341,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -444,100 +356,17 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ff44c6a5-caff-4a5c-968a-6305d08b0545 - X-Runtime: - - '0.028386' X-XSS-Protection: - 1; mode=block content-length: - - '818' + - '416' status: code: 200 message: OK - request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/domains/5/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ - \ \"order\": null\n },\n \"results\": [{\"priority\":30,\"created_at\":\"\ - 2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05 10:36:07 UTC\",\"id\"\ - :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"\ - },{\"priority\":30,\"created_at\":\"2020-05-05 10:36:07 UTC\",\"updated_at\"\ - :\"2020-05-05 10:36:07 UTC\",\"id\":2,\"name\":\"subnet_param2\",\"parameter_type\"\ - :\"string\",\"value\":\"value2\"}]\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 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"b2806ee67953d4e103ef3370e9660b80-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=94 - 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: - - 0dd212ed-a009-4f67-ad20-326a05085e20 - X-Runtime: - - '0.019472' - X-XSS-Protection: - - 1; mode=block - content-length: - - '492' - status: - code: 200 - message: OK -- request: - body: '{"parameter": {"value": "new_value1"}}' + body: '{"domain": {"domain_parameters_attributes": [{"name": "subnet_param1", + "value": "new_value1", "parameter_type": "string"}, {"name": "subnet_param3", + "value": "value3", "parameter_type": "string"}]}}' headers: Accept: - application/json;version=2 @@ -546,169 +375,22 @@ interactions: Connection: - keep-alive Content-Length: - - '38' + - '198' Content-Type: - application/json - Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.org/api/domains/5/parameters/1 - response: - body: - string: '{"priority":30,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"new_value1"}' - 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 - Date: - - Tue, 05 May 2020 10:36:09 GMT - ETag: - - W/"7199c6d34f51ceb84a2ec4998f8854e8-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=93 - 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: - - 4ff194f2-3938-48fe-b56f-2ea4ef266421 - X-Runtime: - - '0.055156' - X-XSS-Protection: - - 1; mode=block - content-length: - - '170' - status: - code: 200 - message: OK -- request: - body: '{"parameter": {"name": "subnet_param3", "value": "value3", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.org/api/domains/5/parameters + uri: https://foreman.example.org/api/domains/15 response: body: - string: '{"priority":30,"created_at":"2020-05-05 10:36:10 UTC","updated_at":"2020-05-05 - 10:36:10 UTC","id":3,"name":"subnet_param3","parameter_type":"string","value":"value3"}' - 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 - Date: - - Tue, 05 May 2020 10:36:10 GMT - ETag: - - W/"6cda9df261ea499ea091c340de94e2b5" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=92 - Server: - - Apache - Status: - - 201 Created - 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-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0e8e4130-7caa-4ebf-aa10-ead808e73a13 - X-Runtime: - - '0.044248' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Cookie: - - _session_id=7c5efb99282f73440e79eba72a05e883 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.org/api/domains/5/parameters/2 - response: - body: - string: '{"id":2,"name":"subnet_param2","value":"value2","reference_id":5,"created_at":"2020-05-05T10:36:07.956Z","updated_at":"2020-05-05T10:36:07.956Z","priority":30,"hidden_value":"*****","key_type":"string","searchable_value":"value2"}' + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:20 UTC","id":50,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":30,"created_at":"2020-09-03 + 07:16:20 UTC","updated_at":"2020-09-03 07:16:20 UTC","id":52,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -720,10 +402,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:10 GMT - ETag: - - W/"8f7f71151a73e095574e5b8ae4bfef83-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -731,13 +409,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - - timeout=15, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -750,16 +424,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 529578b1-fb54-4b40-8c33-3ce5ee764267 - X-Runtime: - - '0.038199' X-XSS-Protection: - 1; mode=block content-length: - - '230' + - '828' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/domain-9.yml b/tests/test_playbooks/fixtures/domain-9.yml index d5f23568..7cd7d670 100644 --- a/tests/test_playbooks/fixtures/domain-9.yml +++ b/tests/test_playbooks/fixtures/domain-9.yml @@ -14,24 +14,18 @@ interactions: uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"2.0.0","api_version":2}' + string: '{"result":"ok","status":200,"version":"2.1.0","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '62' 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 - Date: - - Tue, 05 May 2020 10:36:10 GMT - ETag: - - W/"5333a4f19fe57bf721efcb0df50d7c0c" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=338f38c184f7746da8b65337b03b0300; 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: @@ -58,14 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9c1fd744-84ce-4511-9f9e-c8f452ad77f9 - X-Runtime: - - '0.078408' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,21 +64,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=338f38c184f7746da8b65337b03b0300 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%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\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:01 UTC\",\"updated_at\":\"2020-04-09 11:56:01 UTC\",\"id\":3,\"name\"\ - :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ - A test organization\"}]\n}\n" + : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:16:17 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:16:17 UTC\",\"id\":15,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -104,10 +87,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:10 GMT - ETag: - - W/"402df357595470dcc00b750bbf2f08f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -115,13 +94,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=99 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -134,16 +109,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 61db5ed9-780f-4fc3-bc16-cfdf190a1d4d - X-Runtime: - - '0.016688' X-XSS-Protection: - 1; mode=block content-length: - - '412' + - '326' status: code: 200 message: OK @@ -156,20 +125,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=338f38c184f7746da8b65337b03b0300 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains/15 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ - : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ - :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-04-09\ - \ 11:56:02 UTC\",\"updated_at\":\"2020-04-09 11:56:02 UTC\",\"id\":4,\"name\"\ - :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" + string: '{"fullname":null,"created_at":"2020-09-03 07:16:17 UTC","updated_at":"2020-09-03 + 07:16:17 UTC","id":15,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-09-03 + 07:16:17 UTC","updated_at":"2020-09-03 07:16:20 UTC","id":50,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":30,"created_at":"2020-09-03 + 07:16:20 UTC","updated_at":"2020-09-03 07:16:20 UTC","id":52,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[{"id":43,"name":"Test + Location","title":"Test Location","description":null},{"id":44,"name":"Sublocation","title":"Test + Location/Sublocation","description":null}],"organizations":[{"id":45,"name":"Test + Organization","title":"Test Organization","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,10 +149,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:10 GMT - ETag: - - W/"395dd40442ebc2ffa0f4dc0a4690bc4b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -192,13 +156,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=98 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -211,16 +171,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 15db34cf-d464-41c9-9098-f8a6515f0a3a - X-Runtime: - - '0.015017' X-XSS-Protection: - 1; mode=block content-length: - - '384' + - '828' status: code: 200 message: OK @@ -233,21 +187,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=338f38c184f7746da8b65337b03b0300 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ - : [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"\ - created_at\":\"2020-05-05 10:28:37 UTC\",\"updated_at\":\"2020-05-05 10:28:37\ - \ UTC\",\"id\":5,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ - ,\"description\":null}]\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\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:12 UTC\",\"updated_at\":\"2020-09-03 07:16:12 UTC\",\"id\":45,\"name\"\ + :\"Test Organization\",\"title\":\"Test Organization\",\"description\":\"\ + A test organization\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,10 +211,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:10 GMT - ETag: - - W/"aef26129a875dff99d561c940bc0b838-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -270,13 +218,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=97 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -289,12 +233,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e7c99a94-93e4-4c14-8dfa-a9ce50578230 - X-Runtime: - - '0.016744' X-XSS-Protection: - 1; mode=block content-length: @@ -311,20 +249,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=338f38c184f7746da8b65337b03b0300 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains?search=name%3D%22example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296 response: body: string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": \"name=\\\"example.com\\\"\",\n \"sort\": {\n\ - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ - :null,\"created_at\":\"2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05\ - \ 10:36:07 UTC\",\"id\":5,\"name\":\"example.com\",\"dns_id\":null,\"dns\"\ - :null}]\n}\n" + : 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:16:09 UTC\",\"updated_at\":\"2020-09-03 07:16:09 UTC\",\"id\":43,\"name\"\ + :\"Test Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,10 +272,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:10 GMT - ETag: - - W/"91dee03d846f410746872ef5da51daeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -347,13 +279,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=96 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -366,16 +294,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 07946efe-b806-442a-93be-cf0a2545a479 - X-Runtime: - - '0.015847' X-XSS-Protection: - 1; mode=block content-length: - - '325' + - '385' status: code: 200 message: OK @@ -388,21 +310,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=338f38c184f7746da8b65337b03b0300 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.org/api/domains/5 + uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSublocation%22&per_page=4294967296 response: body: - string: '{"fullname":null,"created_at":"2020-05-05 10:36:07 UTC","updated_at":"2020-05-05 - 10:36:07 UTC","id":5,"name":"example.com","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[{"priority":30,"created_at":"2020-05-05 - 10:36:07 UTC","updated_at":"2020-05-05 10:36:09 UTC","id":1,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":30,"created_at":"2020-05-05 - 10:36:10 UTC","updated_at":"2020-05-05 10:36:10 UTC","id":3,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"locations":[{"id":4,"name":"Test - Location","title":"Test Location","description":null},{"id":5,"name":"Sublocation","title":"Test - Location/Sublocation","description":null}],"organizations":[{"id":3,"name":"Test - Organization","title":"Test Organization","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Test Location/Sublocation\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"ancestry\":\"43\",\"parent_id\":43,\"parent_name\":\"Test Location\"\ + ,\"created_at\":\"2020-09-03 07:16:10 UTC\",\"updated_at\":\"2020-09-03 07:16:10\ + \ UTC\",\"id\":44,\"name\":\"Sublocation\",\"title\":\"Test Location/Sublocation\"\ + ,\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -414,10 +334,6 @@ interactions: style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Tue, 05 May 2020 10:36:10 GMT - ETag: - - W/"390913cacb131919fa3a34517113e3fd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -425,92 +341,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 2.0.0 + - 2.1.0 Keep-Alive: - timeout=15, max=95 - 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: - - d4aa6f75-c557-44bb-bbee-0a76a357d19a - X-Runtime: - - '0.028309' - X-XSS-Protection: - - 1; mode=block - content-length: - - '822' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=338f38c184f7746da8b65337b03b0300 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.org/api/domains/5/parameters?per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\"\ - : 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \ - \ \"order\": null\n },\n \"results\": [{\"priority\":30,\"created_at\":\"\ - 2020-05-05 10:36:07 UTC\",\"updated_at\":\"2020-05-05 10:36:09 UTC\",\"id\"\ - :1,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"\ - },{\"priority\":30,\"created_at\":\"2020-05-05 10:36:10 UTC\",\"updated_at\"\ - :\"2020-05-05 10:36:10 UTC\",\"id\":3,\"name\":\"subnet_param3\",\"parameter_type\"\ - :\"string\",\"value\":\"value3\"}]\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 - Date: - - Tue, 05 May 2020 10:36:10 GMT - ETag: - - W/"9decb5b7211b9330dc8901a9d7f32e5b-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 2.0.0 - Keep-Alive: - - timeout=15, max=94 - Server: - - Apache - Status: - - 200 OK Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -523,16 +356,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2e7a3a37-87a3-4ec0-b242-fc7d7de6bfd3 - X-Runtime: - - '0.019417' X-XSS-Protection: - 1; mode=block content-length: - - '496' + - '416' status: code: 200 message: OK From 3f6108e2bfb258789ccac0665103315b1024be13 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 09:49:32 +0200 Subject: [PATCH 79/88] use the right flat_name for hostgroup parameters --- plugins/modules/hostgroup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/modules/hostgroup.py b/plugins/modules/hostgroup.py index 4b52df09..aa52c473 100644 --- a/plugins/modules/hostgroup.py +++ b/plugins/modules/hostgroup.py @@ -145,6 +145,7 @@ ensure_puppetclasses, HostMixin, ForemanTaxonomicEntityAnsibleModule, + parameter_ansible_spec, ) @@ -159,6 +160,8 @@ def main(): description=dict(), parent=dict(type='entity'), organization=dict(type='entity', required=False, ensure=False), + # parameters is already in the HostMixin, but the flat_name detection does not work for hostgroups + parameters=dict(type='list', elements='dict', options=parameter_ansible_spec, flat_name='group_parameters_attributes'), ), argument_spec=dict( updated_name=dict(), From d67139e06646bc9edb9dd01be658775cb27d68a9 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 09:58:50 +0200 Subject: [PATCH 80/88] re-record hostgroup --- tests/test_playbooks/fixtures/hostgroup-0.yml | 1056 +++++---------- tests/test_playbooks/fixtures/hostgroup-1.yml | 1139 +++++------------ .../test_playbooks/fixtures/hostgroup-10.yml | 767 ++++------- .../test_playbooks/fixtures/hostgroup-11.yml | 730 ++++------- .../test_playbooks/fixtures/hostgroup-12.yml | 586 +++------ .../test_playbooks/fixtures/hostgroup-13.yml | 549 +++----- .../test_playbooks/fixtures/hostgroup-14.yml | 418 ++---- .../test_playbooks/fixtures/hostgroup-15.yml | 215 +--- .../test_playbooks/fixtures/hostgroup-16.yml | 169 +-- .../test_playbooks/fixtures/hostgroup-17.yml | 158 +-- .../test_playbooks/fixtures/hostgroup-18.yml | 122 +- .../test_playbooks/fixtures/hostgroup-19.yml | 238 +--- tests/test_playbooks/fixtures/hostgroup-2.yml | 918 ++++--------- .../test_playbooks/fixtures/hostgroup-20.yml | 238 ++-- .../test_playbooks/fixtures/hostgroup-21.yml | 199 ++- .../test_playbooks/fixtures/hostgroup-22.yml | 192 ++- .../test_playbooks/fixtures/hostgroup-23.yml | 192 ++- .../test_playbooks/fixtures/hostgroup-24.yml | 197 +-- .../test_playbooks/fixtures/hostgroup-25.yml | 198 ++- .../test_playbooks/fixtures/hostgroup-26.yml | 201 +-- .../test_playbooks/fixtures/hostgroup-27.yml | 193 ++- .../test_playbooks/fixtures/hostgroup-28.yml | 197 +-- .../test_playbooks/fixtures/hostgroup-29.yml | 193 ++- tests/test_playbooks/fixtures/hostgroup-3.yml | 992 +++++--------- .../test_playbooks/fixtures/hostgroup-30.yml | 193 ++- .../test_playbooks/fixtures/hostgroup-31.yml | 131 +- .../test_playbooks/fixtures/hostgroup-32.yml | 134 +- tests/test_playbooks/fixtures/hostgroup-4.yml | 952 +++++--------- tests/test_playbooks/fixtures/hostgroup-5.yml | 918 ++++--------- tests/test_playbooks/fixtures/hostgroup-6.yml | 134 +- tests/test_playbooks/fixtures/hostgroup-7.yml | 801 ++++-------- tests/test_playbooks/fixtures/hostgroup-8.yml | 761 ++++------- tests/test_playbooks/fixtures/hostgroup-9.yml | 725 ++++------- 33 files changed, 4678 insertions(+), 10128 deletions(-) diff --git a/tests/test_playbooks/fixtures/hostgroup-0.yml b/tests/test_playbooks/fixtures/hostgroup-0.yml index cf816d78..6e85043c 100644 --- a/tests/test_playbooks/fixtures/hostgroup-0.yml +++ b/tests/test_playbooks/fixtures/hostgroup-0.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f; 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: - - 31c9635c-4f31-40ab-8b5a-9e73597e15f4 - X-Runtime: - - '0.127584' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,17 +64,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,14 +102,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"396d8c1d0d394fdd698ebcb071369922-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -111,13 +113,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -130,16 +128,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - abb909c8-1d02-483d-becc-851fc3b4b35e - X-Runtime: - - '0.014454' X-XSS-Protection: - 1; mode=block content-length: - - '181' + - '1816' status: code: 200 message: OK @@ -152,19 +144,21 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":54,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -172,14 +166,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -187,13 +177,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -206,16 +192,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cf49b500-4dc0-4b45-b7da-cb42fa998780 - X-Runtime: - - '0.014995' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '2530' status: code: 200 message: OK @@ -228,19 +208,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -248,14 +228,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -263,13 +239,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -282,12 +254,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2a9a9c2a-3746-47f3-9a21-333e09f1462b - X-Runtime: - - '0.015270' X-XSS-Protection: - 1; mode=block content-length: @@ -304,18 +270,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -323,14 +290,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -338,13 +301,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -357,16 +316,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cc9daa3b-8248-4366-b750-b60bd2abd308 - X-Runtime: - - '0.015185' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '389' status: code: 200 message: OK @@ -379,18 +332,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -398,14 +351,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -413,13 +362,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -432,16 +377,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4736608a-c9c9-478f-b84d-23836539ceaa - X-Runtime: - - '0.016403' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '355' status: code: 200 message: OK @@ -454,18 +393,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -473,14 +412,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -488,13 +423,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -507,16 +438,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d9888725-3f86-4357-b1ec-bb7b1df066f2 - X-Runtime: - - '0.015264' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '362' status: code: 200 message: OK @@ -529,18 +454,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/compute_resources?search=name%3D%22libvirt-cr%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"libvirt-cr\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"url\":\"qemu:///system\",\"created_at\":\"2019-12-17 - 09:43:10 UTC\",\"updated_at\":\"2019-12-17 09:43:10 UTC\",\"id\":1,\"name\":\"libvirt-cr\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"vnc\",\"set_console_password\":true}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -548,14 +473,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"e4476ae74dba7b8c8ad7d2f7b0380614-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -563,13 +484,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -582,16 +499,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 471acaeb-432b-4d9c-8dde-513d9a690375 - X-Runtime: - - '0.016184' X-XSS-Protection: - 1; mode=block content-length: - - '429' + - '355' status: code: 200 message: OK @@ -604,18 +515,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 + uri: https://foreman.example.org/api/compute_resources?search=name%3D%22libvirt-cr%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":13,\"name\":\"myprofile\"}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"libvirt-cr\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"url\":\"qemu:///system\",\"created_at\":\"2020-09-03 07:54:29 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:54:29 UTC\",\"id\":1,\"name\":\"libvirt-cr\"\ + ,\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\"\ + :\"vnc\",\"set_console_password\":true}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -623,14 +535,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"d49156c259116b4c536af902973688fd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -638,13 +546,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -657,16 +561,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 762fcb91-55b9-4b2a-97f8-afaebcce6d59 - X-Runtime: - - '0.015421' X-XSS-Protection: - 1; mode=block content-length: - - '281' + - '429' status: code: 200 message: OK @@ -679,18 +577,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\ + id\":4,\"name\":\"myprofile\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -698,14 +595,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -713,13 +606,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -732,16 +621,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8eeaabad-04b9-413f-988f-dbdd7689f8b2 - X-Runtime: - - '0.018239' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '280' status: code: 200 message: OK @@ -754,19 +637,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -774,14 +657,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -789,13 +668,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -808,16 +683,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7c1a4ebb-5b7c-4776-968d-57dd84d5839f - X-Runtime: - - '0.016997' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '441' status: code: 200 message: OK @@ -830,18 +699,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -849,14 +725,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -864,13 +736,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -883,16 +751,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f2e3c677-4e92-4bb0-902c-f1fa4e137d07 - X-Runtime: - - '0.014679' X-XSS-Protection: - 1; mode=block content-length: - - '274' + - '870' status: code: 200 message: OK @@ -905,19 +767,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -925,14 +785,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -940,13 +796,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -959,16 +811,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 582cfbc8-ba9f-4c15-ad87-1084e9885609 - X-Runtime: - - '0.015387' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '274' status: code: 200 message: OK @@ -981,19 +827,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1001,14 +847,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1016,13 +858,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1035,16 +873,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bcceac07-d557-4270-b2f2-fe1ec61e82c0 - X-Runtime: - - '0.015740' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '416' status: code: 200 message: OK @@ -1057,19 +889,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1077,14 +908,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1092,13 +919,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1111,16 +934,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b0ab750f-ddbb-4af6-80b8-b951865c9b4c - X-Runtime: - - '0.016841' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '354' status: code: 200 message: OK @@ -1133,18 +950,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments?search=name%3D%22production%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:12 UTC\",\"updated_at\":\"2019-12-05 14:16:12 UTC\",\"name\":\"production\",\"id\":1}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1152,14 +969,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"cf28a337f192c9d512a6f95fea68323e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1167,13 +980,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1186,16 +995,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e5bf0dd8-5d83-4af9-a0dd-077d71d39b6b - X-Runtime: - - '0.023892' X-XSS-Protection: - 1; mode=block content-length: - - '282' + - '325' status: code: 200 message: OK @@ -1208,18 +1011,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":28,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\ + name\":\"production\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1227,14 +1029,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"c5439e7f6e6e8d7a61243a367332891f-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1242,13 +1040,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=84 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1261,16 +1055,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3b2fe698-cec8-4b90-9a63-f0f98ec6124c - X-Runtime: - - '0.017961' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '282' status: code: 200 message: OK @@ -1283,18 +1071,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:13 UTC\",\"updated_at\":\"2020-01-08 14:16:13 UTC\",\"id\":29,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1302,14 +1089,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"2dc22932ee562267fa915a580c5c48e3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1317,13 +1100,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=83 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=83 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1336,16 +1115,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - dcdb5255-69a0-4839-bc66-f20adee65b8c - X-Runtime: - - '0.017592' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1358,19 +1131,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1378,14 +1149,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1393,13 +1160,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=82 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=82 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1412,16 +1175,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b4babe99-bacf-4cd1-82fb-e694875d468a - X-Runtime: - - '0.018577' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '301' status: code: 200 message: OK @@ -1434,19 +1191,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1454,14 +1215,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1469,13 +1226,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=81 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=81 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1488,16 +1241,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 00d20ded-74b3-4f62-8b5c-1746bfd2e29c - X-Runtime: - - '0.017986' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1510,17 +1257,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1528,14 +1281,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"396d8c1d0d394fdd698ebcb071369922-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1543,13 +1292,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=80 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=80 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1562,26 +1307,15 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ae164ad8-7582-4706-b0c1-21dd06e0d9c6 - X-Runtime: - - '0.014279' X-XSS-Protection: - 1; mode=block content-length: - - '181' + - '666' status: code: 200 message: OK - request: - body: '{"hostgroup": {"name": "New host group", "description": "New host group", - "environment_id": 1, "compute_profile_id": 13, "compute_resource_id": 1, "operatingsystem_id": - 17, "architecture_id": 1, "pxe_loader": "Grub2 UEFI", "medium_id": 19, "ptable_id": - 126, "subnet_id": 10, "domain_id": 20, "config_group_ids": [28, 29], "puppet_proxy_id": - 1, "puppet_ca_proxy_id": 1, "location_ids": [5, 42, 43], "organization_ids": - [44, 45]}}' + body: '{"hostgroup": {"organization_ids": [51, 52]}}' headers: Accept: - application/json;version=2 @@ -1590,25 +1324,25 @@ interactions: Connection: - keep-alive Content-Length: - - '428' + - '45' Content-Type: - application/json - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f User-Agent: - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.com/api/hostgroups + method: PUT + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:14 UTC","updated_at":"2020-01-08 14:16:14 UTC","id":290,"name":"New - host group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null},{"id":43,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":54,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -1617,14 +1351,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: - - Wed, 08 Jan 2020 14:16:14 GMT - ETag: - - W/"baad2f23c31c8ac78133241fe589a9a3" Foreman_api_version: - '2' Foreman_current_location: @@ -1632,171 +1362,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=79 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created + - timeout=15, max=79 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-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e7b3072f-0848-4e9e-9c1a-1fd7cfb4e6a8 - X-Runtime: - - '0.274423' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"parameter": {"name": "subnet_param1", "value": "value1", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f; request_method=POST - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.com/api/hostgroups/290/parameters - response: - body: - string: '{"priority":60,"created_at":"2020-01-08 14:16:15 UTC","updated_at":"2020-01-08 - 14:16:15 UTC","id":349,"name":"subnet_param1","parameter_type":"string","value":"value1"}' - 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: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:15 GMT - ETag: - - W/"dadc28b3952361810eede3b655056c12" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=78 - Server: - - Apache - Status: - - 201 Created - 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-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8f5153c7-b3ab-4401-a96a-5d5e03f1b7e9 - X-Runtime: - - '0.119895' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"parameter": {"name": "subnet_param2", "value": "value2", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=a49709a40a9ed8dc8644511a587d635f; request_method=POST - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.com/api/hostgroups/290/parameters - response: - body: - string: '{"priority":60,"created_at":"2020-01-08 14:16:15 UTC","updated_at":"2020-01-08 - 14:16:15 UTC","id":350,"name":"subnet_param2","parameter_type":"string","value":"value2"}' - 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: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:15 GMT - ETag: - - W/"af8c62bea0c0c3217fc259b1a814749e" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=77 - Server: - - Apache - Status: - - 201 Created - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -1805,15 +1377,11 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 454281e4-6290-4475-b0fc-053b965c1250 - X-Runtime: - - '0.084093' X-XSS-Protection: - 1; mode=block + content-length: + - '2699' status: - code: 201 - message: Created + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/hostgroup-1.yml b/tests/test_playbooks/fixtures/hostgroup-1.yml index cff2a70b..76860656 100644 --- a/tests/test_playbooks/fixtures/hostgroup-1.yml +++ b/tests/test_playbooks/fixtures/hostgroup-1.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:15 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389; 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: - - b1b4944f-c57e-4b04-a90c-9b9bb9817544 - X-Runtime: - - '0.129860' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,18 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\ + :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\ + :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\ + :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\ + :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\ + \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\ + :\"New host group with puppet classes\",\"title\":\"New host group with puppet\ + \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\ + :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\ + :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\ + :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\ + :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\ + :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -97,14 +103,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: - - Wed, 08 Jan 2020 14:16:15 GMT - ETag: - - W/"d07e43950ec5053fd6f59bbc2e46f06e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -112,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -131,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 209c3f3a-34cc-4bf1-8360-c2512de58978 - X-Runtime: - - '0.019223' X-XSS-Protection: - 1; mode=block content-length: - - '201' + - '1876' status: code: 200 message: OK @@ -153,19 +145,22 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups/3 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host + group with puppet classes","title":"New host group with puppet classes","description":"New + host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -173,14 +168,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: - - Wed, 08 Jan 2020 14:16:15 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -188,13 +179,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -207,16 +194,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 906e435c-43bd-4440-832f-5181a7556722 - X-Runtime: - - '0.017688' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '2570' status: code: 200 message: OK @@ -229,19 +210,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -249,14 +230,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: - - Wed, 08 Jan 2020 14:16:15 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -264,13 +241,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -283,12 +256,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f6b8434c-8f0d-4fe6-9317-7af3e8c3dd24 - X-Runtime: - - '0.023479' X-XSS-Protection: - 1; mode=block content-length: @@ -305,18 +272,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -324,14 +292,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: - - Wed, 08 Jan 2020 14:16:15 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -339,13 +303,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -358,16 +318,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8b0c7399-b5f4-47e5-a54f-d7f920d9ac62 - X-Runtime: - - '0.025641' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '389' status: code: 200 message: OK @@ -380,18 +334,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -399,14 +353,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: - - Wed, 08 Jan 2020 14:16:15 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -414,13 +364,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -433,16 +379,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 05a4bbda-6d10-475a-a708-8d6d665f60e5 - X-Runtime: - - '0.027452' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '355' status: code: 200 message: OK @@ -455,18 +395,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -474,14 +414,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -489,13 +425,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -508,16 +440,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 71961dbc-cd1c-40c7-8f6b-4bc0891ba9a9 - X-Runtime: - - '0.021021' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '362' status: code: 200 message: OK @@ -530,18 +456,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/compute_resources?search=name%3D%22libvirt-cr%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"libvirt-cr\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"url\":\"qemu:///system\",\"created_at\":\"2019-12-17 - 09:43:10 UTC\",\"updated_at\":\"2019-12-17 09:43:10 UTC\",\"id\":1,\"name\":\"libvirt-cr\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"vnc\",\"set_console_password\":true}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -549,14 +475,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"e4476ae74dba7b8c8ad7d2f7b0380614-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -564,13 +486,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -583,16 +501,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 48b1a4fb-e28d-4d84-ae65-82cfec0bea12 - X-Runtime: - - '0.015993' X-XSS-Protection: - 1; mode=block content-length: - - '429' + - '355' status: code: 200 message: OK @@ -605,18 +517,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 + uri: https://foreman.example.org/api/compute_resources?search=name%3D%22libvirt-cr%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":13,\"name\":\"myprofile\"}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"libvirt-cr\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"url\":\"qemu:///system\",\"created_at\":\"2020-09-03 07:54:29 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:54:29 UTC\",\"id\":1,\"name\":\"libvirt-cr\"\ + ,\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\"\ + :\"vnc\",\"set_console_password\":true}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -624,14 +537,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"d49156c259116b4c536af902973688fd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -639,13 +548,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -658,16 +563,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c36674c4-3135-41c2-bb2d-83a46dd82b42 - X-Runtime: - - '0.015049' X-XSS-Protection: - 1; mode=block content-length: - - '281' + - '429' status: code: 200 message: OK @@ -680,18 +579,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\ + id\":4,\"name\":\"myprofile\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -699,14 +597,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -714,13 +608,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -733,16 +623,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4dd32412-91b4-4212-a519-0c9cde9a6254 - X-Runtime: - - '0.015915' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '280' status: code: 200 message: OK @@ -755,19 +639,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -775,14 +659,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -790,13 +670,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -809,16 +685,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6fc637df-9721-41b5-880b-e55c2997657a - X-Runtime: - - '0.015581' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '441' status: code: 200 message: OK @@ -831,18 +701,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -850,14 +727,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -865,13 +738,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -884,16 +753,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9d51d8ca-b47f-4143-98d9-a143aa79c6c8 - X-Runtime: - - '0.013646' X-XSS-Protection: - 1; mode=block content-length: - - '274' + - '870' status: code: 200 message: OK @@ -906,19 +769,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -926,14 +787,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -941,13 +798,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -960,16 +813,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d157b7ef-c7a3-4abb-afd5-7977404a056e - X-Runtime: - - '0.014291' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '274' status: code: 200 message: OK @@ -982,19 +829,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1002,14 +849,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1017,13 +860,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1036,16 +875,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 411c5d67-ec47-419c-94e5-d3929ccba6dc - X-Runtime: - - '0.014211' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '416' status: code: 200 message: OK @@ -1058,19 +891,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1078,14 +910,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1093,13 +921,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1112,16 +936,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 41356c39-68f3-40c1-9d8e-f2638f17b91f - X-Runtime: - - '0.022050' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '354' status: code: 200 message: OK @@ -1134,18 +952,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments?search=name%3D%22production%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:12 UTC\",\"updated_at\":\"2019-12-05 14:16:12 UTC\",\"name\":\"production\",\"id\":1}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1153,14 +971,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"cf28a337f192c9d512a6f95fea68323e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1168,13 +982,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1187,16 +997,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d308fca4-371f-4400-9301-caae74b96924 - X-Runtime: - - '0.015478' X-XSS-Protection: - 1; mode=block content-length: - - '282' + - '325' status: code: 200 message: OK @@ -1209,18 +1013,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":28,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\ + name\":\"production\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1228,14 +1031,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"c5439e7f6e6e8d7a61243a367332891f-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1243,13 +1042,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=84 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1262,16 +1057,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f30b30af-e5f2-44ae-8b8e-be0802229dca - X-Runtime: - - '0.016049' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '282' status: code: 200 message: OK @@ -1284,18 +1073,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:13 UTC\",\"updated_at\":\"2020-01-08 14:16:13 UTC\",\"id\":29,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1303,14 +1091,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"2dc22932ee562267fa915a580c5c48e3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1318,13 +1102,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=83 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=83 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1337,16 +1117,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b369c3f5-28a4-462f-93bb-78b4fdc5ddc8 - X-Runtime: - - '0.016028' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1359,19 +1133,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1379,14 +1151,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1394,13 +1162,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=82 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=82 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1413,16 +1177,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8b39719d-6b97-487f-9f47-57bc1941ae30 - X-Runtime: - - '0.026053' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '301' status: code: 200 message: OK @@ -1435,19 +1193,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1455,14 +1217,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1470,13 +1228,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=81 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=81 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1489,16 +1243,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - dbd62426-cf9f-4b56-9059-67ecce2927ee - X-Runtime: - - '0.019770' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1511,18 +1259,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1530,14 +1283,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"d07e43950ec5053fd6f59bbc2e46f06e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1545,13 +1294,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=80 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=80 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1564,26 +1309,15 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 47d3e09c-4fa9-4cc9-852e-e8af6b61bca5 - X-Runtime: - - '0.015759' X-XSS-Protection: - 1; mode=block content-length: - - '201' + - '666' status: code: 200 message: OK - request: - body: '{"hostgroup": {"name": "New host group with puppet classes", "description": - "New host group", "environment_id": 1, "compute_profile_id": 13, "compute_resource_id": - 1, "operatingsystem_id": 17, "architecture_id": 1, "pxe_loader": "Grub2 UEFI", - "medium_id": 19, "ptable_id": 126, "subnet_id": 10, "domain_id": 20, "config_group_ids": - [28, 29], "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids": [5, - 42, 43], "organization_ids": [44, 45]}}' + body: '{"hostgroup": {"organization_ids": [51, 52]}}' headers: Accept: - application/json;version=2 @@ -1592,26 +1326,26 @@ interactions: Connection: - keep-alive Content-Length: - - '448' + - '45' Content-Type: - application/json - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.com/api/hostgroups + method: PUT + uri: https://foreman.example.org/api/hostgroups/3 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":291,"name":"New - host group with puppet classes","title":"New host group with puppet classes","description":"New - host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null},{"id":43,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host + group with puppet classes","title":"New host group with puppet classes","description":"New + host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -1620,168 +1354,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''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"519f9cdb0e5efdf3f760761036474b49" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=79 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created - 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-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d06d797b-6eb0-4d17-a46a-735b9ebfc132 - X-Runtime: - - '0.167383' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"parameter": {"name": "subnet_param1", "value": "value1", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389; request_method=POST - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.com/api/hostgroups/291/parameters - response: - body: - string: '{"priority":60,"created_at":"2020-01-08 14:16:16 UTC","updated_at":"2020-01-08 - 14:16:16 UTC","id":351,"name":"subnet_param1","parameter_type":"string","value":"value1"}' - 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: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"9a6707f0d2dbbe99b966ddd2a9a12a1a" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=78 - Server: - - Apache - Status: - - 201 Created - 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-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7aeaacde-e317-43bd-b616-da4b7d995561 - X-Runtime: - - '0.041732' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"parameter": {"name": "subnet_param2", "value": "value2", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389; request_method=POST - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.com/api/hostgroups/291/parameters - response: - body: - string: '{"priority":60,"created_at":"2020-01-08 14:16:16 UTC","updated_at":"2020-01-08 - 14:16:16 UTC","id":352,"name":"subnet_param2","parameter_type":"string","value":"value2"}' - 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''' + img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self''; + style-src ''unsafe-inline'' ''self''' Content-Type: - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"ecb94867a0e625c4f6d14b011b5d8e5b" Foreman_api_version: - '2' Foreman_current_location: @@ -1789,17 +1365,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=77 - Server: - - Apache - Status: - - 201 Created + - timeout=15, max=79 Strict-Transport-Security: - max-age=631139040; includeSubdomains - Transfer-Encoding: - - chunked + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -1808,17 +1380,13 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1b5f7a64-0813-4746-9204-786d11f136a0 - X-Runtime: - - '0.043409' X-XSS-Protection: - 1; mode=block + content-length: + - '2739' status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -1828,18 +1396,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389; request_method=POST User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Aredis_exporter%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Aredis_exporter%22&per_page=4294967296 response: body: - string: "{\n \"total\": 48,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - {\"prometheus\":[{\"id\":31,\"name\":\"prometheus::redis_exporter\",\"created_at\":\"2019-12-17T09:44:47.780Z\",\"updated_at\":\"2019-12-17T09:44:47.780Z\"}]}\n}\n" + string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : {\"prometheus\":[{\"id\":33,\"name\":\"prometheus::redis_exporter\",\"created_at\"\ + :\"2020-09-03T07:55:19.882Z\",\"updated_at\":\"2020-09-03T07:55:19.882Z\"\ + }]}\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1847,14 +1415,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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"da35fab4786e40622739eb7eb143d70d-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1862,16 +1426,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=76 - 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=78 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1884,12 +1441,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f5296279-1401-4887-9926-8823edbaf737 - X-Runtime: - - '0.025279' X-XSS-Protection: - 1; mode=block content-length: @@ -1898,7 +1449,7 @@ interactions: code: 200 message: OK - request: - body: '{"puppetclass_id": 31}' + body: '{"puppetclass_id": 33}' headers: Accept: - application/json;version=2 @@ -1910,32 +1461,24 @@ interactions: - '22' Content-Type: - application/json - Cookie: - - _session_id=03c64ade894c8cf73bbf5547b7220389 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/hostgroups/291/puppetclass_ids + uri: https://foreman.example.org/api/hostgroups/3/puppetclass_ids response: body: - string: '{"hostgroup_id":291,"puppetclass_id":31}' + string: '{"hostgroup_id":3,"puppetclass_id":33}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '40' Content-Security-Policy: - 'default-src ''self''; child-src ''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: - - Wed, 08 Jan 2020 14:16:16 GMT - ETag: - - W/"5fbc9ad01369cf95f931e901034d31f6" Foreman_api_version: - '2' Foreman_current_location: @@ -1943,17 +1486,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=75 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=77 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -1962,14 +1501,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 46bd6d7b-d069-4ed4-bc02-4893d82c4fa2 - X-Runtime: - - '0.048185' X-XSS-Protection: - 1; mode=block + content-length: + - '38' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-10.yml b/tests/test_playbooks/fixtures/hostgroup-10.yml index 7d346fbf..150ff5bc 100644 --- a/tests/test_playbooks/fixtures/hostgroup-10.yml +++ b/tests/test_playbooks/fixtures/hostgroup-10.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,92 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - 5a09451f-fc4c-4f0c-b6cb-fc3168e1a1e2 - X-Runtime: - - '0.123314' - 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=902783fd66673f99a8c209cb5f9c69f6 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":126,\"ptable_name\":\"Part table\",\"medium_id\":19,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:23 UTC\",\"updated_at\":\"2020-01-08 14:16:23 UTC\",\"id\":292,\"name\":\"Nested - New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested - group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"96f63b596e24c8b8ceb29866b762a029-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -137,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4bd07c9c-0f89-44eb-9ab6-ac6532ee3acc - X-Runtime: - - '0.038537' X-XSS-Protection: - 1; mode=block content-length: - - '1422' + - '62' status: code: 200 message: OK @@ -159,18 +64,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New - host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New\ + \ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n\ + \ \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -178,14 +81,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"401075855baaf0a44aaf33b2834142c8-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -193,13 +92,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -212,12 +107,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0bb34993-1873-4c21-8df0-9e64c825529d - X-Runtime: - - '0.013290' X-XSS-Protection: - 1; mode=block content-length: @@ -234,19 +123,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -254,14 +143,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -269,13 +154,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -288,12 +169,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b2ecf0a5-5a73-4783-81b9-4fe57fd46c52 - X-Runtime: - - '0.014037' X-XSS-Protection: - 1; mode=block content-length: @@ -310,19 +185,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -330,14 +205,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -345,13 +216,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -364,12 +231,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6d355549-21a2-4c15-afeb-abc27d7a1ff9 - X-Runtime: - - '0.013814' X-XSS-Protection: - 1; mode=block content-length: @@ -386,18 +247,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -405,14 +266,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -420,13 +277,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -439,16 +292,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 22781303-0ad1-481b-94d1-91e04cec2677 - X-Runtime: - - '0.014305' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '355' status: code: 200 message: OK @@ -461,18 +308,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -480,14 +327,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -495,13 +338,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -514,16 +353,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2acd25c6-5273-4b24-9be6-d244f34b91d6 - X-Runtime: - - '0.015625' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '362' status: code: 200 message: OK @@ -536,18 +369,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -555,14 +388,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -570,13 +399,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -589,12 +414,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d2123982-2aec-4a48-99a5-435db4bf710b - X-Runtime: - - '0.014790' X-XSS-Protection: - 1; mode=block content-length: @@ -611,18 +430,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -630,14 +450,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -645,13 +461,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -664,16 +476,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f49de482-3dd2-4b91-bd61-19dc01f988c1 - X-Runtime: - - '0.016555' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '441' status: code: 200 message: OK @@ -686,19 +492,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -706,14 +518,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -721,13 +529,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -740,16 +544,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8e028f76-25b5-4885-8664-40ebf99a6476 - X-Runtime: - - '0.016362' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '870' status: code: 200 message: OK @@ -762,18 +560,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -781,14 +578,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -796,13 +589,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -815,12 +604,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7b7c22b0-6169-4669-baf1-e866578d66c6 - X-Runtime: - - '0.014197' X-XSS-Protection: - 1; mode=block content-length: @@ -837,19 +620,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -857,14 +640,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -872,13 +651,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -891,16 +666,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - abc3fee5-f66c-4194-bce4-6186b9f1d3d8 - X-Runtime: - - '0.014833' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '416' status: code: 200 message: OK @@ -913,19 +682,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -933,14 +701,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -948,13 +712,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -967,12 +727,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d44418c0-c4de-4e12-b093-3004d86c30d3 - X-Runtime: - - '0.014835' X-XSS-Protection: - 1; mode=block content-length: @@ -989,19 +743,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1009,14 +762,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1024,13 +773,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1043,16 +788,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a0cb5680-d1e2-4593-a868-9c99e9337574 - X-Runtime: - - '0.015248' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '325' status: code: 200 message: OK @@ -1065,19 +804,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1085,14 +828,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1100,13 +839,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1119,16 +854,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0459d1c4-4445-4d68-8a62-625aa1d1e60e - X-Runtime: - - '0.018306' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1141,19 +870,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1161,14 +894,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1176,13 +905,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1195,16 +920,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a21e6ebd-b785-4a06-b21f-5c2d58d7c3a9 - X-Runtime: - - '0.017836' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1217,18 +936,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group+with+nested+parent%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group with nested parent\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\ + ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\ + \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\ + \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\ + puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1236,14 +975,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"827379f501a55dd9913d708cc1359b8c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1251,13 +986,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=84 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1270,25 +1001,19 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0d452bc3-9446-41c5-8071-db5fe710a055 - X-Runtime: - - '0.014407' X-XSS-Protection: - 1; mode=block content-length: - - '200' + - '1873' status: code: 200 message: OK - request: body: '{"hostgroup": {"name": "New host group with nested parent", "description": - "Nested group", "parent_id": 292, "operatingsystem_id": 17, "architecture_id": - 1, "pxe_loader": "Grub2 UEFI", "medium_id": 19, "ptable_id": 126, "subnet_id": - 10, "domain_id": 20, "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids": - [5, 42, 43], "organization_ids": [44, 45]}}' + "Nested group", "parent_id": 4, "operatingsystem_id": 2, "architecture_id": + 1, "pxe_loader": "Grub2 UEFI", "medium_id": 12, "ptable_id": 127, "subnet_id": + 35, "domain_id": 17, "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids": + [46, 47, 48], "organization_ids": [51, 52]}}' headers: Accept: - application/json;version=2 @@ -1297,25 +1022,23 @@ interactions: Connection: - keep-alive Content-Length: - - '360' + - '358' Content-Type: - application/json - Cookie: - - _session_id=902783fd66673f99a8c209cb5f9c69f6 User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/hostgroups + uri: https://foreman.example.org/api/hostgroups response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290/292","parent_id":292,"parent_name":"New - host group/Nested New host group","ptable_id":126,"ptable_name":"Part table","medium_id":19,"medium_name":"TestOS - Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:25 UTC","updated_at":"2020-01-08 14:16:25 UTC","id":293,"name":"New - host group with nested parent","title":"New host group/Nested New host group/New - host group with nested parent","description":"Nested group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null},{"id":43,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2/4","parent_id":4,"parent_name":"New + host group/Nested New host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS + Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:02 UTC","updated_at":"2020-09-03 07:57:02 UTC","id":5,"name":"New host + group with nested parent","title":"New host group/Nested New host group/New + host group with nested parent","description":"Nested group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null},{"id":48,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -1324,14 +1047,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: - - Wed, 08 Jan 2020 14:16:25 GMT - ETag: - - W/"9e88273ded3b2346e977514ee40a309a" Foreman_api_version: - '2' Foreman_current_location: @@ -1339,15 +1058,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=83 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -1360,12 +1073,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8c863df4-c69d-4469-8415-785670372d0e - X-Runtime: - - '0.143259' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/hostgroup-11.yml b/tests/test_playbooks/fixtures/hostgroup-11.yml index 24fb9ca9..d674f05e 100644 --- a/tests/test_playbooks/fixtures/hostgroup-11.yml +++ b/tests/test_playbooks/fixtures/hostgroup-11.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03; 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: - - 8f09a37a-2ba8-4e27-8dba-e5c4d0c06641 - X-Runtime: - - '0.122090' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,24 +64,39 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":126,\"ptable_name\":\"Part table\",\"medium_id\":19,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:23 UTC\",\"updated_at\":\"2020-01-08 14:16:23 UTC\",\"id\":292,\"name\":\"Nested - New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested - group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New\ + \ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n\ + \ \"order\": null\n },\n \"results\": [{\"subnet_id\":35,\"subnet_name\"\ + :\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS\ + \ 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":\"2/4\",\"parent_id\":4,\"parent_name\":\"New\ + \ host group/Nested New host group\",\"ptable_id\":127,\"ptable_name\":\"\ + Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\ + :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\ + :null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\ + :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\ + \ 07:57:02 UTC\",\"updated_at\":\"2020-09-03 07:57:02 UTC\",\"id\":5,\"name\"\ + :\"New host group with nested parent\",\"title\":\"New host group/Nested New\ + \ host group/New host group with nested parent\",\"description\":\"Nested\ + \ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -103,14 +104,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"1b626e214b3aa719b30b3b009c576864-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,13 +115,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -137,16 +130,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 800f1517-8054-4d1a-aa61-a1d7cd164ad2 - X-Runtime: - - '0.037834' X-XSS-Protection: - 1; mode=block content-length: - - '1422' + - '1977' status: code: 200 message: OK @@ -159,25 +146,21 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups/5 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New - host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290/292\",\"parent_id\":292,\"parent_name\":\"New - host group/Nested New host group\",\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:25 UTC\",\"updated_at\":\"2020-01-08 14:16:25 UTC\",\"id\":293,\"name\":\"New - host group with nested parent\",\"title\":\"New host group/Nested New host - group/New host group with nested parent\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2/4","parent_id":4,"parent_name":"New + host group/Nested New host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS + Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:02 UTC","updated_at":"2020-09-03 07:57:02 UTC","id":5,"name":"New host + group with nested parent","title":"New host group/Nested New host group/New + host group with nested parent","description":"Nested group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -185,14 +168,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"5798779a9c9467938f247a9c586a6c4d-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -200,13 +179,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -219,16 +194,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 85eb0253-2a17-4179-85c5-3cb2d18ccb79 - X-Runtime: - - '0.048065' X-XSS-Protection: - 1; mode=block content-length: - - '1528' + - '2218' status: code: 200 message: OK @@ -241,23 +210,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/293 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290/292","parent_id":292,"parent_name":"New - host group/Nested New host group","ptable_id":126,"ptable_name":"Part table","medium_id":19,"medium_name":"TestOS - Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:25 UTC","updated_at":"2020-01-08 14:16:25 UTC","id":293,"name":"New - host group with nested parent","title":"New host group/Nested New host group/New - host group with nested parent","description":"Nested group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test - Org2","title":"Test Org2","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -265,14 +230,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"0d748fe4207b862ac68d4ee80ad41e88-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -280,13 +241,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -299,16 +256,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 041efb3d-3507-488b-90c7-d0233a82da1a - X-Runtime: - - '0.058276' X-XSS-Protection: - 1; mode=block content-length: - - '1768' + - '389' status: code: 200 message: OK @@ -321,19 +272,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -341,14 +292,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -356,13 +303,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -375,12 +318,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 95b25ddd-7279-4b63-b0e6-aac631633aa0 - X-Runtime: - - '0.014143' X-XSS-Protection: - 1; mode=block content-length: @@ -397,19 +334,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -417,14 +353,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -432,13 +364,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -451,16 +379,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a288e43e-49c9-4bf1-ad6b-92960c065ab8 - X-Runtime: - - '0.014753' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '355' status: code: 200 message: OK @@ -473,18 +395,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -492,14 +414,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -507,13 +425,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -526,16 +440,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 31292c4e-e265-48ba-946b-aa268f8539e0 - X-Runtime: - - '0.015247' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '362' status: code: 200 message: OK @@ -548,18 +456,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -567,14 +475,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -582,13 +486,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -601,16 +501,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5b09b9be-6db8-4454-943e-ddd0122e58ab - X-Runtime: - - '0.015841' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '355' status: code: 200 message: OK @@ -623,18 +517,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -642,14 +537,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -657,13 +548,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -676,16 +563,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4f0cba12-35b8-4b5d-810e-26b177932420 - X-Runtime: - - '0.014563' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '441' status: code: 200 message: OK @@ -698,18 +579,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -717,14 +605,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -732,13 +616,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -751,16 +631,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b0a9b667-ff74-4ea1-aecb-3434bf7b893c - X-Runtime: - - '0.017107' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '870' status: code: 200 message: OK @@ -773,19 +647,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -793,14 +665,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -808,13 +676,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -827,16 +691,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 00cfee63-abef-4976-9173-1f4e0302ec3d - X-Runtime: - - '0.015947' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '274' status: code: 200 message: OK @@ -849,18 +707,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -868,14 +727,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -883,13 +738,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -902,16 +753,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6d0a126b-c38a-4395-8892-ca9c0b6c4245 - X-Runtime: - - '0.014029' X-XSS-Protection: - 1; mode=block content-length: - - '274' + - '416' status: code: 200 message: OK @@ -924,19 +769,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -944,14 +788,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -959,13 +799,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -978,16 +814,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0f31836e-e76f-4d8e-9526-a117a2e5a493 - X-Runtime: - - '0.014597' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '354' status: code: 200 message: OK @@ -1000,19 +830,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1020,14 +849,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1035,13 +860,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1054,16 +875,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2ccb7dcf-9438-436a-b3ff-9a485cecd57a - X-Runtime: - - '0.014663' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '325' status: code: 200 message: OK @@ -1076,19 +891,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1096,14 +915,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1111,13 +926,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1130,16 +941,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 800a4946-edcb-42ea-9225-8cc21b6f4fa5 - X-Runtime: - - '0.014882' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '666' status: code: 200 message: OK @@ -1152,19 +957,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1172,14 +981,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1187,13 +992,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1206,16 +1007,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e1ffc7ff-0de1-4f30-acd6-432ef8dbafa3 - X-Runtime: - - '0.017399' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1228,19 +1023,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=24e952051efa8dc2e0b71f1672c4cb03 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\ + ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\ + \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\ + \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\ + puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1248,14 +1062,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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1263,13 +1073,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=84 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1282,16 +1088,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 861bda40-0247-454a-9f9a-0df7a42d3927 - X-Runtime: - - '0.017110' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '1873' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-12.yml b/tests/test_playbooks/fixtures/hostgroup-12.yml index 6160f73d..5c5be4d3 100644 --- a/tests/test_playbooks/fixtures/hostgroup-12.yml +++ b/tests/test_playbooks/fixtures/hostgroup-12.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:26 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,90 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - e2d8f0c6-33fe-4209-bdff-1f833beeae80 - X-Runtime: - - '0.126859' - 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=12f460e868ba3991ab8a64e5ec18c39c - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"91818f01ec98f950d8e03457bdfb0b69-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3858d348-5694-45b3-a38f-a2f67268bffb - X-Runtime: - - '0.030941' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '62' status: code: 200 message: OK @@ -157,18 +64,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group - 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\ + \ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -176,14 +81,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"7f3614970260cf3465bcea263f084b0a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -191,13 +92,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -210,12 +107,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1441d592-5fd5-4fb7-83b5-36ad536714ae - X-Runtime: - - '0.013885' X-XSS-Protection: - 1; mode=block content-length: @@ -232,19 +123,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -252,14 +143,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -267,13 +154,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -286,12 +169,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f3968983-a10c-449d-aef3-fb6e1056d125 - X-Runtime: - - '0.014847' X-XSS-Protection: - 1; mode=block content-length: @@ -308,19 +185,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -328,14 +205,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -343,13 +216,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -362,12 +231,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 22f2d87b-c743-4c05-9785-e447178dda71 - X-Runtime: - - '0.014534' X-XSS-Protection: - 1; mode=block content-length: @@ -384,18 +247,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -403,14 +266,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -418,13 +277,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -437,16 +292,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f73d2748-a69b-43e8-a739-192ad5d96949 - X-Runtime: - - '0.014708' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '355' status: code: 200 message: OK @@ -459,18 +308,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -478,14 +327,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -493,13 +338,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -512,16 +353,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2383edf9-ad8c-4c30-95e7-3c0a60798c65 - X-Runtime: - - '0.015336' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '362' status: code: 200 message: OK @@ -534,18 +369,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -553,14 +388,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -568,13 +399,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -587,12 +414,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7bfb5b4d-b901-4e2f-9ea3-cbd62563a77e - X-Runtime: - - '0.013997' X-XSS-Protection: - 1; mode=block content-length: @@ -609,18 +430,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -628,14 +448,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -643,13 +459,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -662,12 +474,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 312c65d2-4691-4b61-bed5-ae42f6880d7a - X-Runtime: - - '0.014031' X-XSS-Protection: - 1; mode=block content-length: @@ -684,19 +490,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -704,14 +510,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -719,13 +521,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -738,16 +536,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 98815459-e5fa-4fac-8e1e-e3c124f1fe10 - X-Runtime: - - '0.017248' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '416' status: code: 200 message: OK @@ -760,19 +552,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -780,14 +571,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -795,13 +582,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -814,12 +597,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7ca08aa9-b87a-4706-b130-4b08f9e7dd95 - X-Runtime: - - '0.023148' X-XSS-Protection: - 1; mode=block content-length: @@ -836,19 +613,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -856,14 +632,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -871,13 +643,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -890,16 +658,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 097bca95-eca5-4c02-8733-629180db5fa7 - X-Runtime: - - '0.019620' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '325' status: code: 200 message: OK @@ -912,17 +674,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22Nested+New+host+group+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Nested New host group 2\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -930,14 +712,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"53ed131e239c20719e37e4c05cd099cd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -945,13 +723,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -964,23 +738,17 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 346339e3-ca41-4f71-8d25-b67733139a3f - X-Runtime: - - '0.018503' X-XSS-Protection: - 1; mode=block content-length: - - '190' + - '1816' status: code: 200 message: OK - request: - body: '{"hostgroup": {"name": "Nested New host group 2", "parent_id": 290, "operatingsystem_id": - 17, "architecture_id": 1, "pxe_loader": "PXELinux BIOS", "medium_id": 19, "ptable_id": - 126, "location_ids": [5, 42, 43], "organization_ids": [44, 45]}}' + body: '{"hostgroup": {"name": "Nested New host group 2", "parent_id": 2, "operatingsystem_id": + 2, "architecture_id": 1, "pxe_loader": "PXELinux BIOS", "medium_id": 12, "ptable_id": + 127, "location_ids": [46, 47, 48], "organization_ids": [51, 52]}}' headers: Accept: - application/json;version=2 @@ -989,24 +757,22 @@ interactions: Connection: - keep-alive Content-Length: - - '241' + - '239' Content-Type: - application/json - Cookie: - - _session_id=12f460e868ba3991ab8a64e5ec18c39c User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/hostgroups + uri: https://foreman.example.org/api/hostgroups response: body: - string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290","parent_id":290,"parent_name":"New - host group","ptable_id":126,"ptable_name":"Part table","medium_id":19,"medium_name":"TestOS - Mirror","pxe_loader":"PXELinux BIOS","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:27 UTC","updated_at":"2020-01-08 14:16:27 UTC","id":294,"name":"Nested - New host group 2","title":"New host group/Nested New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null},{"id":43,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New + host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS + Mirror","pxe_loader":"PXELinux BIOS","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:04 UTC","updated_at":"2020-09-03 07:57:04 UTC","id":6,"name":"Nested + New host group 2","title":"New host group/Nested New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null},{"id":48,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -1015,14 +781,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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"9f3119fe079b42241f4733811d1ab3e0" Foreman_api_version: - '2' Foreman_current_location: @@ -1030,15 +792,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -1051,12 +807,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 471de525-0308-44a0-b4dc-ce27eb8f0dc0 - X-Runtime: - - '0.166068' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/hostgroup-13.yml b/tests/test_playbooks/fixtures/hostgroup-13.yml index 5391ea91..4ad84b21 100644 --- a/tests/test_playbooks/fixtures/hostgroup-13.yml +++ b/tests/test_playbooks/fixtures/hostgroup-13.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:27 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0; 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: - - 6628e587-e140-49c8-8a19-f8cba8e16a8b - X-Runtime: - - '0.124156' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\ + \ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\ + ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"PXELinux BIOS\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:04 UTC\",\"updated_at\":\"2020-09-03 07:57:04\ + \ UTC\",\"id\":6,\"name\":\"Nested New host group 2\",\"title\":\"New host\ + \ group/Nested New host group 2\",\"description\":null,\"puppet_proxy_id\"\ + :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\ + puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\ + inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"\ + inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":35,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +103,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"937eca577d237d54138b4b777c3d4ee4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 48357631-fd43-4717-9d5f-37e34cf3f97c - X-Runtime: - - '0.027421' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1872' status: code: 200 message: OK @@ -157,23 +145,20 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups/6 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group - 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":126,\"ptable_name\":\"Part table\",\"medium_id\":19,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"PXELinux BIOS\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:27 UTC\",\"updated_at\":\"2020-01-08 14:16:27 UTC\",\"id\":294,\"name\":\"Nested - New host group 2\",\"title\":\"New host group/Nested New host group 2\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New + host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS + Mirror","pxe_loader":"PXELinux BIOS","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:04 UTC","updated_at":"2020-09-03 07:57:04 UTC","id":6,"name":"Nested + New host group 2","title":"New host group/Nested New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,14 +166,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"369981507b9784d6213a258cf78b8f2e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -196,13 +177,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -215,16 +192,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8060c564-b3f5-4429-ad9a-8ee81af08401 - X-Runtime: - - '0.043675' X-XSS-Protection: - 1; mode=block content-length: - - '1431' + - '2145' status: code: 200 message: OK @@ -237,22 +208,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/294 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290","parent_id":290,"parent_name":"New - host group","ptable_id":126,"ptable_name":"Part table","medium_id":19,"medium_name":"TestOS - Mirror","pxe_loader":"PXELinux BIOS","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:27 UTC","updated_at":"2020-01-08 14:16:27 UTC","id":294,"name":"Nested - New host group 2","title":"New host group/Nested New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test - Org2","title":"Test Org2","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -260,14 +228,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"2bf19dadfb74be8481679aaef888d02b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -275,13 +239,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -294,16 +254,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bfaac417-c9d1-49e6-a1e8-f9e6d05088ea - X-Runtime: - - '0.055910' X-XSS-Protection: - 1; mode=block content-length: - - '1703' + - '389' status: code: 200 message: OK @@ -316,19 +270,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -336,14 +290,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -351,13 +301,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -370,12 +316,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 15eff141-fb88-4311-b9d8-83635d894e7b - X-Runtime: - - '0.013374' X-XSS-Protection: - 1; mode=block content-length: @@ -392,19 +332,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -412,14 +351,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -427,13 +362,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -446,16 +377,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6c357112-700f-497c-b361-7af15f9e0f15 - X-Runtime: - - '0.018064' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '355' status: code: 200 message: OK @@ -468,18 +393,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -487,14 +412,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -502,13 +423,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -521,16 +438,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3559bb40-e2f5-41dc-aeed-78bbd7261609 - X-Runtime: - - '0.015190' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '362' status: code: 200 message: OK @@ -543,18 +454,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -562,14 +473,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -577,13 +484,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -596,16 +499,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b0707a2f-be5d-42b0-9bdb-940f75fb234d - X-Runtime: - - '0.018681' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '355' status: code: 200 message: OK @@ -618,18 +515,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -637,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -652,13 +544,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -671,16 +559,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 35db11d5-29c3-45cf-9874-92fcd8249009 - X-Runtime: - - '0.015069' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '274' status: code: 200 message: OK @@ -693,18 +575,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -712,14 +595,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -727,13 +606,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -746,16 +621,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 77335737-d981-4b9f-b291-cb79ebfbd484 - X-Runtime: - - '0.014184' X-XSS-Protection: - 1; mode=block content-length: - - '274' + - '416' status: code: 200 message: OK @@ -768,19 +637,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -788,14 +656,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -803,13 +667,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -822,16 +682,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4c405cab-1e12-4d5d-ba54-51a7f5c6e2d2 - X-Runtime: - - '0.017752' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '354' status: code: 200 message: OK @@ -844,19 +698,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -864,14 +717,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -879,13 +728,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -898,16 +743,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d79eea1d-88e6-4eaa-b603-d1b638848aea - X-Runtime: - - '0.015304' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '325' status: code: 200 message: OK @@ -920,19 +759,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f609031179e05c45f4368fe4f12ca5a0 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -940,14 +797,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -955,13 +808,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -974,16 +823,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - dd328510-d7b3-4680-b41e-370717356337 - X-Runtime: - - '0.015219' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '1816' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-14.yml b/tests/test_playbooks/fixtures/hostgroup-14.yml index 25b236c8..fdcd7b23 100644 --- a/tests/test_playbooks/fixtures/hostgroup-14.yml +++ b/tests/test_playbooks/fixtures/hostgroup-14.yml @@ -11,89 +11,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=790fb1fb75fffb180188271ca098d023; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - 2a678560-5a29-4349-8dc2-e0c5173ee1c2 - X-Runtime: - - '0.121230' - 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=790fb1fb75fffb180188271ca098d023 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +22,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"937eca577d237d54138b4b777c3d4ee4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 23e6e85e-1415-45af-ad8c-d6d6ea606cae - X-Runtime: - - '0.028018' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '62' status: code: 200 message: OK @@ -157,25 +64,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=790fb1fb75fffb180188271ca098d023 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/290 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:14 UTC","updated_at":"2020-01-08 14:16:14 UTC","id":290,"name":"New - host group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:15 UTC","updated_at":"2020-01-08 14:16:15 UTC","id":349,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:15 UTC","updated_at":"2020-01-08 14:16:15 UTC","id":350,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test - Org2","title":"Test Org2","description":"A test organization"}]}' + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -183,14 +102,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"7944329b0b4a4c672a42b8badb45953a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,13 +113,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -217,16 +128,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5c4abc4d-bc9e-4151-99ad-2978bf499df0 - X-Runtime: - - '0.048136' X-XSS-Protection: - 1; mode=block content-length: - - '2239' + - '1816' status: code: 200 message: OK @@ -239,19 +144,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=790fb1fb75fffb180188271ca098d023 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/290/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":60,\"created_at\":\"2020-01-08 14:16:15 - UTC\",\"updated_at\":\"2020-01-08 14:16:15 UTC\",\"id\":349,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"},{\"priority\":60,\"created_at\":\"2020-01-08 - 14:16:15 UTC\",\"updated_at\":\"2020-01-08 14:16:15 UTC\",\"id\":350,\"name\":\"subnet_param2\",\"parameter_type\":\"string\",\"value\":\"value2\"}]\n}\n" + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":54,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,14 +168,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: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"331954b47da895232a74976c3386b67e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -274,13 +179,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -293,21 +194,17 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6ec254d8-06d3-4602-8327-b1928ff8a587 - X-Runtime: - - '0.017149' X-XSS-Protection: - 1; mode=block content-length: - - '496' + - '2699' status: code: 200 message: OK - request: - body: '{"parameter": {"value": "new_value1"}}' + body: '{"hostgroup": {"group_parameters_attributes": [{"name": "subnet_param1", + "value": "new_value1", "parameter_type": "string"}, {"name": "subnet_param3", + "value": "value3", "parameter_type": "string"}]}}' headers: Accept: - application/json;version=2 @@ -316,173 +213,26 @@ interactions: Connection: - keep-alive Content-Length: - - '38' + - '200' Content-Type: - application/json - Cookie: - - _session_id=790fb1fb75fffb180188271ca098d023 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/hostgroups/290/parameters/349 - response: - body: - string: '{"priority":60,"created_at":"2020-01-08 14:16:15 UTC","updated_at":"2020-01-08 - 14:16:29 UTC","id":349,"name":"subnet_param1","parameter_type":"string","value":"new_value1"}' - 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: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:28 GMT - ETag: - - W/"a0224a9c8586f2081360aa7ecb2075bb-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Set-Cookie: - - request_method=PUT; 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: - - 2c1046ca-3aee-4e3b-8421-19aca5971aa0 - X-Runtime: - - '0.050956' - X-XSS-Protection: - - 1; mode=block - content-length: - - '172' - status: - code: 200 - message: OK -- request: - body: '{"parameter": {"name": "subnet_param3", "value": "value3", "parameter_type": - "string"}}' - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '87' - Content-Type: - - application/json - Cookie: - - _session_id=790fb1fb75fffb180188271ca098d023; request_method=PUT - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: POST - uri: https://foreman.example.com/api/hostgroups/290/parameters - response: - body: - string: '{"priority":60,"created_at":"2020-01-08 14:16:29 UTC","updated_at":"2020-01-08 - 14:16:29 UTC","id":353,"name":"subnet_param3","parameter_type":"string","value":"value3"}' - 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: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:29 GMT - ETag: - - W/"987232a72c91f2a70330ac6b0c95891f" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created - 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-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - de914ee2-325d-4816-8a46-c8cb55e7a7ab - X-Runtime: - - '0.045292' - X-XSS-Protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Cookie: - - _session_id=790fb1fb75fffb180188271ca098d023; request_method=POST - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: DELETE - uri: https://foreman.example.com/api/hostgroups/290/parameters/350 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: '{"id":350,"name":"subnet_param2","value":"value2","reference_id":290,"created_at":"2020-01-08T14:16:15.303Z","updated_at":"2020-01-08T14:16:15.303Z","priority":60,"hidden_value":"*****","key_type":"string"}' + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03 + 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -490,14 +240,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: - - Wed, 08 Jan 2020 14:16:29 GMT - ETag: - - W/"492cae8edf126be657254021ff3605a3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -505,15 +251,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -526,16 +266,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d67c1bc9-3dd0-4a3a-a55c-fb85ec419cc5 - X-Runtime: - - '0.044660' X-XSS-Protection: - 1; mode=block content-length: - - '206' + - '2703' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-15.yml b/tests/test_playbooks/fixtures/hostgroup-15.yml index b4807128..6635cc86 100644 --- a/tests/test_playbooks/fixtures/hostgroup-15.yml +++ b/tests/test_playbooks/fixtures/hostgroup-15.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:29 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,90 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=a6162fc590c404b672305dec0d7a0a78; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - c80cdc35-a814-43fb-be80-d7779c45eeb7 - X-Runtime: - - '0.121073' - 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=a6162fc590c404b672305dec0d7a0a78 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:29 GMT - ETag: - - W/"937eca577d237d54138b4b777c3d4ee4-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 282ea227-3bc7-487d-b219-ad17aec23c62 - X-Runtime: - - '0.027299' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '62' status: code: 200 message: OK @@ -157,25 +64,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a6162fc590c404b672305dec0d7a0a78 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/290 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:14 UTC","updated_at":"2020-01-08 14:16:14 UTC","id":290,"name":"New - host group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:15 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":349,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:29 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":353,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test - Org2","title":"Test Org2","description":"A test organization"}]}' + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -183,14 +102,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: - - Wed, 08 Jan 2020 14:16:29 GMT - ETag: - - W/"293823a32597f7a360961882846b65cb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,13 +113,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -217,16 +128,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9576f6e3-506e-4dac-beb3-56b68185e666 - X-Runtime: - - '0.050515' X-XSS-Protection: - 1; mode=block content-length: - - '2243' + - '1816' status: code: 200 message: OK @@ -239,19 +144,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a6162fc590c404b672305dec0d7a0a78 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/290/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":60,\"created_at\":\"2020-01-08 14:16:15 - UTC\",\"updated_at\":\"2020-01-08 14:16:29 UTC\",\"id\":349,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"},{\"priority\":60,\"created_at\":\"2020-01-08 - 14:16:29 UTC\",\"updated_at\":\"2020-01-08 14:16:29 UTC\",\"id\":353,\"name\":\"subnet_param3\",\"parameter_type\":\"string\",\"value\":\"value3\"}]\n}\n" + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03 + 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,14 +168,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: - - Wed, 08 Jan 2020 14:16:29 GMT - ETag: - - W/"bd9fffac803ce7006847c454ffce56ff-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -274,13 +179,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -293,16 +194,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cd0b8ac4-5ab6-4949-b98e-a24c38884345 - X-Runtime: - - '0.027576' X-XSS-Protection: - 1; mode=block content-length: - - '500' + - '2703' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-16.yml b/tests/test_playbooks/fixtures/hostgroup-16.yml index 222cfc9d..a0e804a2 100644 --- a/tests/test_playbooks/fixtures/hostgroup-16.yml +++ b/tests/test_playbooks/fixtures/hostgroup-16.yml @@ -11,84 +11,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:30 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=d9a377ec1b5225eec17992e3e5fbbe2d; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - 11f3cf36-d1c6-41a2-af17-36255e393189 - X-Runtime: - - '0.122033' - 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=d9a377ec1b5225eec17992e3e5fbbe2d - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22Super+New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Super New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -96,14 +22,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: - - Wed, 08 Jan 2020 14:16:30 GMT - ETag: - - W/"5e39e54f231d15e0aa816b8027450b7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -111,13 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -130,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c371e3b3-fdd7-4f53-bf81-d75afce53c4f - X-Runtime: - - '0.015857' X-XSS-Protection: - 1; mode=block content-length: - - '187' + - '62' status: code: 200 message: OK @@ -152,17 +64,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=d9a377ec1b5225eec17992e3e5fbbe2d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22Super+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Super+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Super New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Super New host group\\\"\",\n \"\ + sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n\ + }\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -170,14 +81,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: - - Wed, 08 Jan 2020 14:16:30 GMT - ETag: - - W/"5e39e54f231d15e0aa816b8027450b7b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -185,13 +92,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -204,12 +107,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f356353b-ca28-4679-9f0c-b998179254cf - X-Runtime: - - '0.015653' X-XSS-Protection: - 1; mode=block content-length: @@ -230,17 +127,15 @@ interactions: - '47' Content-Type: - application/json - Cookie: - - _session_id=d9a377ec1b5225eec17992e3e5fbbe2d User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/hostgroups + uri: https://foreman.example.org/api/hostgroups response: body: - string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:30 UTC","updated_at":"2020-01-08 14:16:30 UTC","id":295,"name":"Super - New host group","title":"Super New host group","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' + string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:07 UTC","updated_at":"2020-09-03 07:57:07 UTC","id":7,"name":"Super + New host group","title":"Super New host group","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -248,14 +143,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: - - Wed, 08 Jan 2020 14:16:30 GMT - ETag: - - W/"7c652927b0171cc824412c25c7ecfcc0" Foreman_api_version: - '2' Foreman_current_location: @@ -263,15 +154,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -284,12 +169,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 67779658-c650-4663-a7cf-e4cab2924ef5 - X-Runtime: - - '0.052957' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/hostgroup-17.yml b/tests/test_playbooks/fixtures/hostgroup-17.yml index 1e42955b..8f7dd3b9 100644 --- a/tests/test_playbooks/fixtures/hostgroup-17.yml +++ b/tests/test_playbooks/fixtures/hostgroup-17.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:30 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=dd837ae6189466f1ed2c404afe9cc42f; 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: - - 9332293f-71d5-4ba0-b3e2-d03337cfe6fb - X-Runtime: - - '0.121158' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,33 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dd837ae6189466f1ed2c404afe9cc42f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22Super+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Super+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Super New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":null,\"subnet_name\":null,\"operatingsystem_id\":null,\"operatingsystem_name\":null,\"domain_id\":null,\"domain_name\":null,\"environment_id\":null,\"environment_name\":null,\"compute_profile_id\":null,\"compute_profile_name\":null,\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":null,\"ptable_name\":null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\":null,\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":null,\"architecture_id\":null,\"architecture_name\":null,\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:30 UTC\",\"updated_at\":\"2020-01-08 14:16:30 UTC\",\"id\":295,\"name\":\"Super - New host group\",\"title\":\"Super New host group\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":null,\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":null,\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":null,\"puppet_ca_proxy\":null,\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Super New host group\\\"\",\n \"\ + sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"\ + subnet_id\":null,\"subnet_name\":null,\"operatingsystem_id\":null,\"operatingsystem_name\"\ + :null,\"domain_id\":null,\"domain_name\":null,\"environment_id\":null,\"environment_name\"\ + :null,\"compute_profile_id\":null,\"compute_profile_name\":null,\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":null,\"ptable_name\"\ + :null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\":null,\"subnet6_id\"\ + :null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\"\ + :null,\"architecture_id\":null,\"architecture_name\":null,\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:57:07 UTC\",\"updated_at\"\ + :\"2020-09-03 07:57:07 UTC\",\"id\":7,\"name\":\"Super New host group\",\"\ + title\":\"Super New host group\",\"description\":null,\"puppet_proxy_id\"\ + :null,\"puppet_proxy_name\":null,\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\"\ + :null,\"puppet_proxy\":null,\"puppet_ca_proxy\":null,\"inherited_compute_profile_id\"\ + :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\ + :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\ + :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\ + :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\ + :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +98,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: - - Wed, 08 Jan 2020 14:16:30 GMT - ETag: - - W/"220d7c4c9d2e3d276b8c5228b34b052b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +109,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,16 +124,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 364fe485-6123-415f-9359-5db524ae3bfb - X-Runtime: - - '0.017298' X-XSS-Protection: - 1; mode=block content-length: - - '1118' + - '1475' status: code: 200 message: OK @@ -154,17 +140,15 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dd837ae6189466f1ed2c404afe9cc42f User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/295 + uri: https://foreman.example.org/api/hostgroups/7 response: body: - string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:30 UTC","updated_at":"2020-01-08 14:16:30 UTC","id":295,"name":"Super - New host group","title":"Super New host group","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' + string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:07 UTC","updated_at":"2020-09-03 07:57:07 UTC","id":7,"name":"Super + New host group","title":"Super New host group","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -172,14 +156,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: - - Wed, 08 Jan 2020 14:16:30 GMT - ETag: - - W/"7c652927b0171cc824412c25c7ecfcc0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -187,13 +167,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -206,16 +182,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 993ac403-f22a-4f9a-bda6-c4c4421bf5f8 - X-Runtime: - - '0.027933' X-XSS-Protection: - 1; mode=block content-length: - - '1069' + - '1426' status: code: 200 message: OK @@ -232,17 +202,15 @@ interactions: - '49' Content-Type: - application/json - Cookie: - - _session_id=dd837ae6189466f1ed2c404afe9cc42f User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/hostgroups/295 + uri: https://foreman.example.org/api/hostgroups/7 response: body: - string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:30 UTC","updated_at":"2020-01-08 14:16:30 UTC","id":295,"name":"Super - New host group 2","title":"Super New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' + string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:07 UTC","updated_at":"2020-09-03 07:57:08 UTC","id":7,"name":"Super + New host group 2","title":"Super New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +218,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: - - Wed, 08 Jan 2020 14:16:30 GMT - ETag: - - W/"c22da70f4143020b42f3d9d1e59c3366-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,15 +229,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -286,16 +244,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3676988e-8f99-4f51-a19d-c57a1054c172 - X-Runtime: - - '0.056224' X-XSS-Protection: - 1; mode=block content-length: - - '1073' + - '1430' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-18.yml b/tests/test_playbooks/fixtures/hostgroup-18.yml index 02ebcec6..9b218dfd 100644 --- a/tests/test_playbooks/fixtures/hostgroup-18.yml +++ b/tests/test_playbooks/fixtures/hostgroup-18.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:31 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=94ec7a636141295372ab2cfe26a02756; 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: - - ba359df3-39cb-4884-b6d2-6e0c5dea470a - X-Runtime: - - '0.121497' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,19 +64,33 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=94ec7a636141295372ab2cfe26a02756 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22Super+New+host+group+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Super+New+host+group+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Super New host group 2\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":null,\"subnet_name\":null,\"operatingsystem_id\":null,\"operatingsystem_name\":null,\"domain_id\":null,\"domain_name\":null,\"environment_id\":null,\"environment_name\":null,\"compute_profile_id\":null,\"compute_profile_name\":null,\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":null,\"ptable_name\":null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\":null,\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":null,\"architecture_id\":null,\"architecture_name\":null,\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:30 UTC\",\"updated_at\":\"2020-01-08 14:16:30 UTC\",\"id\":295,\"name\":\"Super - New host group 2\",\"title\":\"Super New host group 2\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":null,\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":null,\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":null,\"puppet_ca_proxy\":null,\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Super New host group 2\\\"\",\n \ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":null,\"subnet_name\":null,\"operatingsystem_id\":null,\"\ + operatingsystem_name\":null,\"domain_id\":null,\"domain_name\":null,\"environment_id\"\ + :null,\"environment_name\":null,\"compute_profile_id\":null,\"compute_profile_name\"\ + :null,\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\"\ + :null,\"ptable_name\":null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\"\ + :null,\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"\ + compute_resource_name\":null,\"architecture_id\":null,\"architecture_name\"\ + :null,\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03 07:57:07\ + \ UTC\",\"updated_at\":\"2020-09-03 07:57:08 UTC\",\"id\":7,\"name\":\"Super\ + \ New host group 2\",\"title\":\"Super New host group 2\",\"description\"\ + :null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":null,\"puppet_ca_proxy_id\"\ + :null,\"puppet_ca_proxy_name\":null,\"puppet_proxy\":null,\"puppet_ca_proxy\"\ + :null,\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"\ + inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -98,14 +98,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: - - Wed, 08 Jan 2020 14:16:31 GMT - ETag: - - W/"1457858aa2b32a5c6c132bf3727155d0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -113,13 +109,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -132,16 +124,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 70f84e61-e35a-4394-be16-532e9876eb4e - X-Runtime: - - '0.016396' X-XSS-Protection: - 1; mode=block content-length: - - '1124' + - '1481' status: code: 200 message: OK @@ -156,17 +142,15 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=94ec7a636141295372ab2cfe26a02756 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/hostgroups/295 + uri: https://foreman.example.org/api/hostgroups/7 response: body: - string: '{"id":295,"name":"Super New host group 2","created_at":"2020-01-08T14:16:30.276Z","updated_at":"2020-01-08T14:16:30.861Z","environment_id":null,"operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"Super + string: '{"id":7,"name":"Super New host group 2","created_at":"2020-09-03T07:57:07.695Z","updated_at":"2020-09-03T07:57:08.415Z","environment_id":null,"operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"Super New host group 2","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=Super - New host group 2","subnet6_id":null,"pxe_loader":null,"description":null,"compute_resource_id":null,"openscap_proxy_id":null}' + New host group 2","subnet6_id":null,"pxe_loader":null,"description":null,"compute_resource_id":null}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -174,14 +158,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: - - Wed, 08 Jan 2020 14:16:31 GMT - ETag: - - W/"31e87979d010a63d76843f855eb52ab6-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -189,15 +169,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -210,16 +184,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 21b57380-6176-42e9-aeef-9cf84e7ad2e1 - X-Runtime: - - '0.033713' X-XSS-Protection: - 1; mode=block content-length: - - '650' + - '623' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-19.yml b/tests/test_playbooks/fixtures/hostgroup-19.yml index a8f9f7de..e5f06a11 100644 --- a/tests/test_playbooks/fixtures/hostgroup-19.yml +++ b/tests/test_playbooks/fixtures/hostgroup-19.yml @@ -11,89 +11,10 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:31 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=5df883977fc235150160ce15a2a7e3cd; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - 6bca7b0f-178f-4429-a0a6-7eebf211db97 - X-Runtime: - - '0.122439' - 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=5df883977fc235150160ce15a2a7e3cd - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +22,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: - - Wed, 08 Jan 2020 14:16:31 GMT - ETag: - - W/"937eca577d237d54138b4b777c3d4ee4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - dc9b0a4a-9539-48ea-b740-1af46b427fd5 - X-Runtime: - - '0.028149' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '62' status: code: 200 message: OK @@ -157,18 +64,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5df883977fc235150160ce15a2a7e3cd User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+1%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group - 1\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\ + \ 1\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -176,14 +81,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: - - Wed, 08 Jan 2020 14:16:31 GMT - ETag: - - W/"1f519a4f0ce6a5b608828af7e9a969f9-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -191,13 +92,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -210,12 +107,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9e4ed4d0-6991-44b6-ba7b-c5f113392f43 - X-Runtime: - - '0.013522' X-XSS-Protection: - 1; mode=block content-length: @@ -232,17 +123,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=5df883977fc235150160ce15a2a7e3cd User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22Nested+New+host+group+1%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Nested New host group 1\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +161,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: - - Wed, 08 Jan 2020 14:16:31 GMT - ETag: - - W/"823207c22521db1afef5eb86b87d4cb2-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,13 +172,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -284,21 +187,15 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 94573968-ed42-4ac4-bff7-d30484f12429 - X-Runtime: - - '0.013574' X-XSS-Protection: - 1; mode=block content-length: - - '190' + - '1816' status: code: 200 message: OK - request: - body: '{"hostgroup": {"name": "Nested New host group 1", "parent_id": 290}}' + body: '{"hostgroup": {"name": "Nested New host group 1", "parent_id": 2}}' headers: Accept: - application/json;version=2 @@ -307,23 +204,22 @@ interactions: Connection: - keep-alive Content-Length: - - '68' + - '66' Content-Type: - application/json - Cookie: - - _session_id=5df883977fc235150160ce15a2a7e3cd User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/hostgroups + uri: https://foreman.example.org/api/hostgroups response: body: string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS - 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290","parent_id":290,"parent_name":"New + 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS - Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:32 UTC","updated_at":"2020-01-08 14:16:32 UTC","id":296,"name":"Nested - New host group 1","title":"New host group/Nested New host group 1","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' + Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:09 UTC","updated_at":"2020-09-03 07:57:09 UTC","id":8,"name":"Nested + New host group 1","title":"New host group/Nested New host group 1","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":12,"inherited_ptable_id":127,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2 + UEFI","parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -331,14 +227,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: - - Wed, 08 Jan 2020 14:16:31 GMT - ETag: - - W/"88979cd317e1b34d12b6f3fe04378a22" Foreman_api_version: - '2' Foreman_current_location: @@ -346,15 +238,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -367,12 +253,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d3ad06a2-4f2d-4179-9570-3c7a95844dbe - X-Runtime: - - '0.148501' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/hostgroup-2.yml b/tests/test_playbooks/fixtures/hostgroup-2.yml index cb9b264e..89d595e3 100644 --- a/tests/test_playbooks/fixtures/hostgroup-2.yml +++ b/tests/test_playbooks/fixtures/hostgroup-2.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e; 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: - - d72c5476-1069-4846-bb34-aa166fa4c9cf - X-Runtime: - - '0.124385' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,24 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:16 UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":291,\"name\":\"New - host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New - host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\ + :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\ + :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\ + :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\ + :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\ + \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\ + :\"New host group with puppet classes\",\"title\":\"New host group with puppet\ + \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\ + :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\ + :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\ + :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\ + :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\ + :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -103,14 +103,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"ce199feab220c05bfa680a21bedd5648-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -137,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 95c8c960-88f8-4b0d-bedf-f6efccdfda8e - X-Runtime: - - '0.026671' X-XSS-Protection: - 1; mode=block content-length: - - '1413' + - '1876' status: code: 200 message: OK @@ -159,25 +145,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/291 + uri: https://foreman.example.org/api/hostgroups/3 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":291,"name":"New - host group with puppet classes","title":"New host group with puppet classes","description":"New - host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":351,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":352,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":31,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":31,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host + group with puppet classes","title":"New host group with puppet classes","description":"New + host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -186,14 +170,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"cc570e29f8edc04c77d9fe97f9323bed-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -201,13 +181,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -220,16 +196,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c62a7fc9-6f8a-44e9-8879-31e0fde91985 - X-Runtime: - - '0.056594' X-XSS-Protection: - 1; mode=block content-length: - - '2423' + - '2883' status: code: 200 message: OK @@ -242,19 +212,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -262,14 +232,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -277,13 +243,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -296,12 +258,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2d7ed3a1-6b01-46cd-b73e-c91f1bc943f9 - X-Runtime: - - '0.018238' X-XSS-Protection: - 1; mode=block content-length: @@ -318,19 +274,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -338,14 +294,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -353,13 +305,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -372,12 +320,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7082327f-e7a2-4953-8d9e-6925940bc2d9 - X-Runtime: - - '0.019439' X-XSS-Protection: - 1; mode=block content-length: @@ -394,18 +336,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -413,14 +355,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -428,13 +366,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -447,16 +381,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0f90658b-fbf9-4d5e-8957-eed3632960dd - X-Runtime: - - '0.017704' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '355' status: code: 200 message: OK @@ -469,18 +397,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -488,14 +416,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -503,13 +427,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -522,16 +442,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e7dbdd8b-fd60-4d81-9866-1064792bbe07 - X-Runtime: - - '0.017628' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '362' status: code: 200 message: OK @@ -544,18 +458,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -563,14 +477,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -578,13 +488,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -597,12 +503,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 19b613de-f1ab-48fd-8e42-b000ebdcf9f4 - X-Runtime: - - '0.016430' X-XSS-Protection: - 1; mode=block content-length: @@ -619,18 +519,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 + uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":13,\"name\":\"myprofile\"}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\ + id\":4,\"name\":\"myprofile\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -638,14 +537,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"d49156c259116b4c536af902973688fd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -653,13 +548,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -672,16 +563,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2f3cb5bc-aed8-4f29-9701-32b489bd3a86 - X-Runtime: - - '0.015258' X-XSS-Protection: - 1; mode=block content-length: - - '281' + - '280' status: code: 200 message: OK @@ -694,18 +579,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -713,14 +599,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -728,13 +610,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -747,16 +625,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4843bf6b-7c03-465b-b22e-aefdf402471f - X-Runtime: - - '0.016504' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '441' status: code: 200 message: OK @@ -769,19 +641,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -789,14 +667,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -804,13 +678,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -823,16 +693,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b0fe7834-61e3-41ea-8cc3-14d5b6261938 - X-Runtime: - - '0.015427' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '870' status: code: 200 message: OK @@ -845,18 +709,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -864,14 +727,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -879,13 +738,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -898,12 +753,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ca015417-1efd-47d7-b639-ea21de85f4ec - X-Runtime: - - '0.013588' X-XSS-Protection: - 1; mode=block content-length: @@ -920,19 +769,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -940,14 +789,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -955,13 +800,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -974,16 +815,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - fe985d11-fa7a-41e5-bf56-8f5fb93ab0c3 - X-Runtime: - - '0.014170' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '416' status: code: 200 message: OK @@ -996,19 +831,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1016,14 +850,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1031,13 +861,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1050,12 +876,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a2d8e3cf-8b63-4017-a3ea-ae7d9b8c6245 - X-Runtime: - - '0.014203' X-XSS-Protection: - 1; mode=block content-length: @@ -1072,19 +892,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1092,14 +911,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1107,13 +922,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1126,16 +937,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a9a6cea4-66ac-4038-8937-02cd849cce14 - X-Runtime: - - '0.014752' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '325' status: code: 200 message: OK @@ -1148,18 +953,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments?search=name%3D%22production%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:12 UTC\",\"updated_at\":\"2019-12-05 14:16:12 UTC\",\"name\":\"production\",\"id\":1}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\ + name\":\"production\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1167,14 +971,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"cf28a337f192c9d512a6f95fea68323e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1182,13 +982,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1201,12 +997,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7324ea7f-ad3f-4455-aea4-0c719cd2fd9c - X-Runtime: - - '0.014079' X-XSS-Protection: - 1; mode=block content-length: @@ -1223,93 +1013,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":28,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"c5439e7f6e6e8d7a61243a367332891f-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=84 - 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: - - 370164b0-c726-4ab9-b7d3-018d3a98024e - X-Runtime: - - '0.015258' - X-XSS-Protection: - - 1; mode=block - content-length: - - '302' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:13 UTC\",\"updated_at\":\"2020-01-08 14:16:13 UTC\",\"id\":29,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1317,14 +1031,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"2dc22932ee562267fa915a580c5c48e3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1332,13 +1042,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=83 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1351,16 +1057,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2e65f1b3-36f0-4c12-a7a7-46f499a97326 - X-Runtime: - - '0.015053' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1373,19 +1073,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1393,14 +1091,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1408,13 +1102,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=82 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=83 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1427,16 +1117,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f8c265ca-beca-4897-93c1-caa83b0e50c3 - X-Runtime: - - '0.017276' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '301' status: code: 200 message: OK @@ -1449,19 +1133,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1469,14 +1157,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1484,13 +1168,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=81 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=82 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1503,16 +1183,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 906dca23-64fc-4834-ac51-d985a1180bb2 - X-Runtime: - - '0.016980' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1525,19 +1199,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/291/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":60,\"created_at\":\"2020-01-08 14:16:16 - UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":351,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"},{\"priority\":60,\"created_at\":\"2020-01-08 - 14:16:16 UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":352,\"name\":\"subnet_param2\",\"parameter_type\":\"string\",\"value\":\"value2\"}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1545,14 +1223,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"a6087bfdb75a809c1ee39b866d7aa584-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1560,13 +1234,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=80 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=81 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1579,16 +1249,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 887b6096-3df4-49a9-939a-1b140abd1730 - X-Runtime: - - '0.018816' X-XSS-Protection: - 1; mode=block content-length: - - '496' + - '666' status: code: 200 message: OK @@ -1601,18 +1265,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=bc4778e3fc14d91cf87d332e3285369e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Aredis_exporter%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Aredis_exporter%22&per_page=4294967296 response: body: - string: "{\n \"total\": 48,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - {\"prometheus\":[{\"id\":31,\"name\":\"prometheus::redis_exporter\",\"created_at\":\"2019-12-17T09:44:47.780Z\",\"updated_at\":\"2019-12-17T09:44:47.780Z\"}]}\n}\n" + string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : {\"prometheus\":[{\"id\":33,\"name\":\"prometheus::redis_exporter\",\"created_at\"\ + :\"2020-09-03T07:55:19.882Z\",\"updated_at\":\"2020-09-03T07:55:19.882Z\"\ + }]}\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1620,14 +1284,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: - - Wed, 08 Jan 2020 14:16:17 GMT - ETag: - - W/"da35fab4786e40622739eb7eb143d70d-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1635,13 +1295,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=79 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=80 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1654,12 +1310,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 651090d6-3316-4aad-a32b-e9c535578041 - X-Runtime: - - '0.015789' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/hostgroup-20.yml b/tests/test_playbooks/fixtures/hostgroup-20.yml index da996096..6e55542c 100644 --- a/tests/test_playbooks/fixtures/hostgroup-20.yml +++ b/tests/test_playbooks/fixtures/hostgroup-20.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:32 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=ac761fc16f996f981557f816ee1f099a; 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: - - d4c2e642-a348-4d53-aab3-e407ac0dcf26 - X-Runtime: - - '0.123920' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ac761fc16f996f981557f816ee1f099a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\ + \ 1\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :null,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":null,\"\ + ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:09 UTC\",\"updated_at\":\"2020-09-03 07:57:09\ + \ UTC\",\"id\":8,\"name\":\"Nested New host group 1\",\"title\":\"New host\ + \ group/Nested New host group 1\",\"description\":null,\"puppet_proxy_id\"\ + :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\ + puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\ + inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":2,\"inherited_architecture_id\"\ + :1,\"inherited_medium_id\":12,\"inherited_ptable_id\":127,\"inherited_subnet_id\"\ + :35,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :\"Grub2 UEFI\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +103,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: - - Wed, 08 Jan 2020 14:16:32 GMT - ETag: - - W/"7b5034d1d319608fb501c4bc8a985cfc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a4db8842-bed5-4535-a8b4-c978dd331304 - X-Runtime: - - '0.027159' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1877' status: code: 200 message: OK @@ -157,23 +145,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ac761fc16f996f981557f816ee1f099a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+1%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups/8 response: body: - string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group - 1\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":null,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":null,\"ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:32 UTC\",\"updated_at\":\"2020-01-08 14:16:32 UTC\",\"id\":296,\"name\":\"Nested - New host group 1\",\"title\":\"New host group/Nested New host group 1\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS + 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New + host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS + Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:09 UTC","updated_at":"2020-09-03 07:57:09 UTC","id":8,"name":"Nested + New host group 1","title":"New host group/Nested New host group 1","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":12,"inherited_ptable_id":127,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2 + UEFI","parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,14 +165,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: - - Wed, 08 Jan 2020 14:16:32 GMT - ETag: - - W/"739ec279422f70265d2897253a3d9142-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -196,13 +176,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -215,16 +191,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3c4831af-d3f9-4b61-868a-2b3440cde801 - X-Runtime: - - '0.046956' X-XSS-Protection: - 1; mode=block content-length: - - '1436' + - '1810' status: code: 200 message: OK @@ -237,20 +207,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=ac761fc16f996f981557f816ee1f099a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS - 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290","parent_id":290,"parent_name":"New - host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS - Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:32 UTC","updated_at":"2020-01-08 14:16:32 UTC","id":296,"name":"Nested - New host group 1","title":"New host group/Nested New host group 1","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' + string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -258,14 +245,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: - - Wed, 08 Jan 2020 14:16:32 GMT - ETag: - - W/"88979cd317e1b34d12b6f3fe04378a22-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -273,13 +256,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -292,16 +271,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d7128858-86bd-4b6e-9fb2-b6e105bd4c3d - X-Runtime: - - '0.059739' X-XSS-Protection: - 1; mode=block content-length: - - '1369' + - '1816' status: code: 200 message: OK @@ -318,20 +291,19 @@ interactions: - '51' Content-Type: - application/json - Cookie: - - _session_id=ac761fc16f996f981557f816ee1f099a User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/hostgroups/296 + uri: https://foreman.example.org/api/hostgroups/8 response: body: string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS - 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290","parent_id":290,"parent_name":"New + 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS - Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:32 UTC","updated_at":"2020-01-08 14:16:32 UTC","id":296,"name":"Nested - New host group 10","title":"New host group/Nested New host group 10","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' + Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:09 UTC","updated_at":"2020-09-03 07:57:10 UTC","id":8,"name":"Nested + New host group 10","title":"New host group/Nested New host group 10","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":12,"inherited_ptable_id":127,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2 + UEFI","parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -339,14 +311,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: - - Wed, 08 Jan 2020 14:16:32 GMT - ETag: - - W/"38b526c4e54962f525a414fbefd82663-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -354,15 +322,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - 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: @@ -375,16 +337,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 62e6eac2-7a75-4946-8586-68c7db127f9f - X-Runtime: - - '0.133753' X-XSS-Protection: - 1; mode=block content-length: - - '1371' + - '1812' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-21.yml b/tests/test_playbooks/fixtures/hostgroup-21.yml index 6a290d77..900c91b7 100644 --- a/tests/test_playbooks/fixtures/hostgroup-21.yml +++ b/tests/test_playbooks/fixtures/hostgroup-21.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:33 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=957008395d6be8c3a10012a851998e9d; 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: - - 46e4284e-2b48-4868-946a-562d8488f500 - X-Runtime: - - '0.135146' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=957008395d6be8c3a10012a851998e9d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+10%22&per_page=4294967296 response: body: - string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\ + \ 10\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :null,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":null,\"\ + ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:09 UTC\",\"updated_at\":\"2020-09-03 07:57:10\ + \ UTC\",\"id\":8,\"name\":\"Nested New host group 10\",\"title\":\"New host\ + \ group/Nested New host group 10\",\"description\":null,\"puppet_proxy_id\"\ + :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\ + puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\ + inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":2,\"inherited_architecture_id\"\ + :1,\"inherited_medium_id\":12,\"inherited_ptable_id\":127,\"inherited_subnet_id\"\ + :35,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :\"Grub2 UEFI\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +103,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: - - Wed, 08 Jan 2020 14:16:33 GMT - ETag: - - W/"7b5034d1d319608fb501c4bc8a985cfc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7f864328-0668-4178-87ef-b7b088788ad4 - X-Runtime: - - '0.028262' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1880' status: code: 200 message: OK @@ -157,23 +145,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=957008395d6be8c3a10012a851998e9d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+10%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups/8 response: body: - string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group - 10\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":null,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":null,\"ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:32 UTC\",\"updated_at\":\"2020-01-08 14:16:32 UTC\",\"id\":296,\"name\":\"Nested - New host group 10\",\"title\":\"New host group/Nested New host group 10\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS + 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New + host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS + Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:09 UTC","updated_at":"2020-09-03 07:57:10 UTC","id":8,"name":"Nested + New host group 10","title":"New host group/Nested New host group 10","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":12,"inherited_ptable_id":127,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2 + UEFI","parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,14 +165,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: - - Wed, 08 Jan 2020 14:16:33 GMT - ETag: - - W/"ebbe5ba0c0372d0dd9a002a24128f96d-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -196,13 +176,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -215,16 +191,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - de81a71e-3bdc-41f5-9e74-d8ced1866e9c - X-Runtime: - - '0.047584' X-XSS-Protection: - 1; mode=block content-length: - - '1439' + - '1812' status: code: 200 message: OK @@ -237,20 +207,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=957008395d6be8c3a10012a851998e9d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS - 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290","parent_id":290,"parent_name":"New - host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS - Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:32 UTC","updated_at":"2020-01-08 14:16:32 UTC","id":296,"name":"Nested - New host group 10","title":"New host group/Nested New host group 10","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}' + string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -258,14 +245,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: - - Wed, 08 Jan 2020 14:16:33 GMT - ETag: - - W/"38b526c4e54962f525a414fbefd82663-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -273,13 +256,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -292,16 +271,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a7fc6e64-99a8-4c95-9ecc-a5e0b5e87cfe - X-Runtime: - - '0.063479' X-XSS-Protection: - 1; mode=block content-length: - - '1371' + - '1816' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-22.yml b/tests/test_playbooks/fixtures/hostgroup-22.yml index fcb33d48..de6badab 100644 --- a/tests/test_playbooks/fixtures/hostgroup-22.yml +++ b/tests/test_playbooks/fixtures/hostgroup-22.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:33 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=c7173ccfbc3d3db304aef91d51777205; 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: - - eb9f7373-3832-457c-aef3-95ea213a26b0 - X-Runtime: - - '0.124246' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c7173ccfbc3d3db304aef91d51777205 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+10%22&per_page=4294967296 response: body: - string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\ + \ 10\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :null,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":null,\"\ + ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:09 UTC\",\"updated_at\":\"2020-09-03 07:57:10\ + \ UTC\",\"id\":8,\"name\":\"Nested New host group 10\",\"title\":\"New host\ + \ group/Nested New host group 10\",\"description\":null,\"puppet_proxy_id\"\ + :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\ + puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\ + inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":2,\"inherited_architecture_id\"\ + :1,\"inherited_medium_id\":12,\"inherited_ptable_id\":127,\"inherited_subnet_id\"\ + :35,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :\"Grub2 UEFI\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +103,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: - - Wed, 08 Jan 2020 14:16:34 GMT - ETag: - - W/"7b5034d1d319608fb501c4bc8a985cfc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7d46b728-f5d8-4a50-9731-437ec89758c1 - X-Runtime: - - '0.028096' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1880' status: code: 200 message: OK @@ -157,23 +145,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c7173ccfbc3d3db304aef91d51777205 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+10%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group - 10\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":null,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":null,\"ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:32 UTC\",\"updated_at\":\"2020-01-08 14:16:32 UTC\",\"id\":296,\"name\":\"Nested - New host group 10\",\"title\":\"New host group/Nested New host group 10\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,14 +183,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: - - Wed, 08 Jan 2020 14:16:34 GMT - ETag: - - W/"ebbe5ba0c0372d0dd9a002a24128f96d-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -196,13 +194,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -215,16 +209,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4ee84d08-e727-46b9-ac93-e6af87d71301 - X-Runtime: - - '0.048006' X-XSS-Protection: - 1; mode=block content-length: - - '1439' + - '1816' status: code: 200 message: OK @@ -239,18 +227,16 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=c7173ccfbc3d3db304aef91d51777205 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/hostgroups/296 + uri: https://foreman.example.org/api/hostgroups/8 response: body: - string: '{"id":296,"name":"Nested New host group 10","created_at":"2020-01-08T14:16:32.026Z","updated_at":"2020-01-08T14:16:32.806Z","environment_id":null,"operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":"290","vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New + string: '{"id":8,"name":"Nested New host group 10","created_at":"2020-09-03T07:57:09.884Z","updated_at":"2020-09-03T07:57:10.750Z","environment_id":null,"operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":"2","vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New host group/Nested New host group 10","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=New host group/Nested New host group 10","subnet6_id":null,"pxe_loader":"Grub2 - UEFI","description":null,"compute_resource_id":null,"openscap_proxy_id":null}' + UEFI","description":null,"compute_resource_id":null}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -258,14 +244,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: - - Wed, 08 Jan 2020 14:16:34 GMT - ETag: - - W/"e07f30fdfce2b3fce4a80e6adc955cb0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -273,15 +255,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -294,16 +270,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1ed86713-b616-4253-8c3b-9ca527217424 - X-Runtime: - - '0.039188' X-XSS-Protection: - 1; mode=block content-length: - - '695' + - '666' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-23.yml b/tests/test_playbooks/fixtures/hostgroup-23.yml index 8df0506c..d716e44b 100644 --- a/tests/test_playbooks/fixtures/hostgroup-23.yml +++ b/tests/test_playbooks/fixtures/hostgroup-23.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:34 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=1e2410200ae0030d55f580c08fee406a; 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: - - 8173cfa0-77dc-4005-bc9f-fd170eaa4baa - X-Runtime: - - '0.121582' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1e2410200ae0030d55f580c08fee406a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\ + \ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\ + ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"PXELinux BIOS\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:04 UTC\",\"updated_at\":\"2020-09-03 07:57:04\ + \ UTC\",\"id\":6,\"name\":\"Nested New host group 2\",\"title\":\"New host\ + \ group/Nested New host group 2\",\"description\":null,\"puppet_proxy_id\"\ + :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\ + puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\ + inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"\ + inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":35,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +103,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: - - Wed, 08 Jan 2020 14:16:34 GMT - ETag: - - W/"937eca577d237d54138b4b777c3d4ee4-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f86c33d2-7718-4cda-b0c6-5e85f3bab8a8 - X-Runtime: - - '0.026174' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1872' status: code: 200 message: OK @@ -157,23 +145,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=1e2410200ae0030d55f580c08fee406a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group - 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":126,\"ptable_name\":\"Part table\",\"medium_id\":19,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"PXELinux BIOS\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:27 UTC\",\"updated_at\":\"2020-01-08 14:16:27 UTC\",\"id\":294,\"name\":\"Nested - New host group 2\",\"title\":\"New host group/Nested New host group 2\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -181,14 +183,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: - - Wed, 08 Jan 2020 14:16:34 GMT - ETag: - - W/"369981507b9784d6213a258cf78b8f2e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -196,13 +194,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -215,16 +209,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3f013bfb-a814-42f0-b671-abc0faff95c7 - X-Runtime: - - '0.042836' X-XSS-Protection: - 1; mode=block content-length: - - '1431' + - '1816' status: code: 200 message: OK @@ -239,18 +227,16 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=1e2410200ae0030d55f580c08fee406a User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/hostgroups/294 + uri: https://foreman.example.org/api/hostgroups/6 response: body: - string: '{"id":294,"name":"Nested New host group 2","created_at":"2020-01-08T14:16:27.483Z","updated_at":"2020-01-08T14:16:27.483Z","environment_id":null,"operatingsystem_id":17,"architecture_id":1,"medium_id":19,"ptable_id":126,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":"290","vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New + string: '{"id":6,"name":"Nested New host group 2","created_at":"2020-09-03T07:57:04.408Z","updated_at":"2020-09-03T07:57:04.408Z","environment_id":null,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":"2","vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New host group/Nested New host group 2","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=New host group/Nested New host group 2","subnet6_id":null,"pxe_loader":"PXELinux - BIOS","description":null,"compute_resource_id":null,"openscap_proxy_id":null}' + BIOS","description":null,"compute_resource_id":null}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -258,14 +244,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: - - Wed, 08 Jan 2020 14:16:34 GMT - ETag: - - W/"0cb1fe2164933a9e88ccf5f142c842bf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -273,15 +255,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -294,16 +270,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f600544d-ae8f-46a6-95af-f5f361083f0d - X-Runtime: - - '0.048707' X-XSS-Protection: - 1; mode=block content-length: - - '687' + - '657' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-24.yml b/tests/test_playbooks/fixtures/hostgroup-24.yml index e55b1040..cc35a833 100644 --- a/tests/test_playbooks/fixtures/hostgroup-24.yml +++ b/tests/test_playbooks/fixtures/hostgroup-24.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:35 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,90 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=463729ff55ad6b26979a317774097fe3; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - fc1d56ab-e990-44b9-9717-81b95adec2f6 - X-Runtime: - - '0.122321' - 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=463729ff55ad6b26979a317774097fe3 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:35 GMT - ETag: - - W/"91818f01ec98f950d8e03457bdfb0b69-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - dfeb4e2c-45c3-4ccf-960a-e85d11f3eb9a - X-Runtime: - - '0.028275' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '62' status: code: 200 message: OK @@ -157,18 +64,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=463729ff55ad6b26979a317774097fe3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group - 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\ + \ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -176,14 +81,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: - - Wed, 08 Jan 2020 14:16:35 GMT - ETag: - - W/"7f3614970260cf3465bcea263f084b0a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -191,13 +92,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -210,12 +107,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7a990aae-7b51-449f-afb4-75b4e457f78f - X-Runtime: - - '0.014039' X-XSS-Protection: - 1; mode=block content-length: @@ -232,17 +123,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=463729ff55ad6b26979a317774097fe3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22Nested+New+host+group+2%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Nested New host group 2\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +161,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: - - Wed, 08 Jan 2020 14:16:35 GMT - ETag: - - W/"53ed131e239c20719e37e4c05cd099cd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,13 +172,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -284,16 +187,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2e5bcba4-fc21-424f-bb96-92e4f175a53b - X-Runtime: - - '0.014190' X-XSS-Protection: - 1; mode=block content-length: - - '190' + - '1816' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-25.yml b/tests/test_playbooks/fixtures/hostgroup-25.yml index f90ed781..7484eebb 100644 --- a/tests/test_playbooks/fixtures/hostgroup-25.yml +++ b/tests/test_playbooks/fixtures/hostgroup-25.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:35 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=090d07d394905026f8e422ecdfe19a68; 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: - - 5e88c95e-eb6e-4be0-92a7-959f6a60d501 - X-Runtime: - - '0.120738' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,24 +64,39 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=090d07d394905026f8e422ecdfe19a68 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":126,\"ptable_name\":\"Part table\",\"medium_id\":19,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:23 UTC\",\"updated_at\":\"2020-01-08 14:16:23 UTC\",\"id\":292,\"name\":\"Nested - New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested - group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New\ + \ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n\ + \ \"order\": null\n },\n \"results\": [{\"subnet_id\":35,\"subnet_name\"\ + :\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS\ + \ 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":\"2/4\",\"parent_id\":4,\"parent_name\":\"New\ + \ host group/Nested New host group\",\"ptable_id\":127,\"ptable_name\":\"\ + Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\ + :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\ + :null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\ + :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\ + \ 07:57:02 UTC\",\"updated_at\":\"2020-09-03 07:57:02 UTC\",\"id\":5,\"name\"\ + :\"New host group with nested parent\",\"title\":\"New host group/Nested New\ + \ host group/New host group with nested parent\",\"description\":\"Nested\ + \ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -103,14 +104,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: - - Wed, 08 Jan 2020 14:16:35 GMT - ETag: - - W/"1b626e214b3aa719b30b3b009c576864-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,13 +115,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -137,16 +130,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7c018ff3-b992-4768-9666-b6c3f34e4b7a - X-Runtime: - - '0.037898' X-XSS-Protection: - 1; mode=block content-length: - - '1422' + - '1977' status: code: 200 message: OK @@ -159,25 +146,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=090d07d394905026f8e422ecdfe19a68 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New - host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290/292\",\"parent_id\":292,\"parent_name\":\"New - host group/Nested New host group\",\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:25 UTC\",\"updated_at\":\"2020-01-08 14:16:25 UTC\",\"id\":293,\"name\":\"New - host group with nested parent\",\"title\":\"New host group/Nested New host - group/New host group with nested parent\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\ + ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\ + \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\ + \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\ + puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -185,14 +185,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: - - Wed, 08 Jan 2020 14:16:35 GMT - ETag: - - W/"5798779a9c9467938f247a9c586a6c4d-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -200,13 +196,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -219,16 +211,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 81beafd8-1a40-4a16-8900-5651500450e8 - X-Runtime: - - '0.037847' X-XSS-Protection: - 1; mode=block content-length: - - '1528' + - '1873' status: code: 200 message: OK @@ -243,18 +229,16 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=090d07d394905026f8e422ecdfe19a68 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/hostgroups/293 + uri: https://foreman.example.org/api/hostgroups/5 response: body: - string: '{"id":293,"name":"New host group with nested parent","created_at":"2020-01-08T14:16:25.584Z","updated_at":"2020-01-08T14:16:25.584Z","environment_id":null,"operatingsystem_id":17,"architecture_id":1,"medium_id":19,"ptable_id":126,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":"290/292","vm_defaults":null,"subnet_id":10,"domain_id":20,"puppet_proxy_id":1,"title":"New + string: '{"id":5,"name":"New host group with nested parent","created_at":"2020-09-03T07:57:02.267Z","updated_at":"2020-09-03T07:57:02.267Z","environment_id":null,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":"2/4","vm_defaults":null,"subnet_id":35,"domain_id":17,"puppet_proxy_id":1,"title":"New host group/Nested New host group/New host group with nested parent","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=New host group/Nested New host group/New host group with nested parent","subnet6_id":null,"pxe_loader":"Grub2 - UEFI","description":"Nested group","compute_resource_id":null,"openscap_proxy_id":null}' + UEFI","description":"Nested group","compute_resource_id":null}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -262,14 +246,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: - - Wed, 08 Jan 2020 14:16:35 GMT - ETag: - - W/"8898f6c3448931ac33740af12f3e83aa-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -277,15 +257,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -298,16 +272,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3ff10058-5de3-4ff0-ae9b-f573710e591e - X-Runtime: - - '0.051407' X-XSS-Protection: - 1; mode=block content-length: - - '762' + - '730' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-26.yml b/tests/test_playbooks/fixtures/hostgroup-26.yml index c1906c7b..3994fe3b 100644 --- a/tests/test_playbooks/fixtures/hostgroup-26.yml +++ b/tests/test_playbooks/fixtures/hostgroup-26.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:36 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,92 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=dec0c2a862fc137bad21289d5b28c60b; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - 76dc99e8-7a2d-450b-9d88-11e0d8f4940e - X-Runtime: - - '0.123677' - 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=dec0c2a862fc137bad21289d5b28c60b - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":126,\"ptable_name\":\"Part table\",\"medium_id\":19,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:23 UTC\",\"updated_at\":\"2020-01-08 14:16:23 UTC\",\"id\":292,\"name\":\"Nested - New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested - group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:36 GMT - ETag: - - W/"96f63b596e24c8b8ceb29866b762a029-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -137,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1000a45b-be0b-402c-8775-840abf0bae1e - X-Runtime: - - '0.037881' X-XSS-Protection: - 1; mode=block content-length: - - '1422' + - '62' status: code: 200 message: OK @@ -159,18 +64,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dec0c2a862fc137bad21289d5b28c60b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New - host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New\ + \ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n\ + \ \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -178,14 +81,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: - - Wed, 08 Jan 2020 14:16:36 GMT - ETag: - - W/"401075855baaf0a44aaf33b2834142c8-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -193,13 +92,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -212,12 +107,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c518111b-4bdb-4bb1-a9c0-22ca212da031 - X-Runtime: - - '0.013326' X-XSS-Protection: - 1; mode=block content-length: @@ -234,18 +123,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dec0c2a862fc137bad21289d5b28c60b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group+with+nested+parent%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group with nested parent\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\ + ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\ + \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\ + \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\ + puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -253,14 +162,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: - - Wed, 08 Jan 2020 14:16:36 GMT - ETag: - - W/"827379f501a55dd9913d708cc1359b8c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -268,13 +173,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -287,16 +188,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d5081189-4ee1-4c3e-80e7-9a622bc6ef4b - X-Runtime: - - '0.013239' X-XSS-Protection: - 1; mode=block content-length: - - '200' + - '1873' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-27.yml b/tests/test_playbooks/fixtures/hostgroup-27.yml index 153373fe..65443da8 100644 --- a/tests/test_playbooks/fixtures/hostgroup-27.yml +++ b/tests/test_playbooks/fixtures/hostgroup-27.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:36 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=60623398c58ef0f85539d74d71747f7d; 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: - - 365f4505-9bdc-4cce-9dcd-5446dbf33246 - X-Runtime: - - '0.123066' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=60623398c58ef0f85539d74d71747f7d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\ + ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\ + \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\ + \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\ + puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +103,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: - - Wed, 08 Jan 2020 14:16:36 GMT - ETag: - - W/"95540e50ccce9efef2f9c819f524ddc7-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 67025046-0de7-4209-ac62-a1520091291c - X-Runtime: - - '0.082911' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1873' status: code: 200 message: OK @@ -157,24 +145,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=60623398c58ef0f85539d74d71747f7d User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":126,\"ptable_name\":\"Part table\",\"medium_id\":19,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:23 UTC\",\"updated_at\":\"2020-01-08 14:16:23 UTC\",\"id\":292,\"name\":\"Nested - New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested - group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -182,14 +183,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: - - Wed, 08 Jan 2020 14:16:37 GMT - ETag: - - W/"96f63b596e24c8b8ceb29866b762a029-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -197,13 +194,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -216,16 +209,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 065327ba-c084-43b1-be70-15d1830a4cca - X-Runtime: - - '0.064702' X-XSS-Protection: - 1; mode=block content-length: - - '1422' + - '1816' status: code: 200 message: OK @@ -240,18 +227,16 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=60623398c58ef0f85539d74d71747f7d User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/hostgroups/292 + uri: https://foreman.example.org/api/hostgroups/4 response: body: - string: '{"id":292,"name":"Nested New host group","created_at":"2020-01-08T14:16:23.643Z","updated_at":"2020-01-08T14:16:23.643Z","environment_id":null,"operatingsystem_id":17,"architecture_id":1,"medium_id":19,"ptable_id":126,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":"290","vm_defaults":null,"subnet_id":10,"domain_id":20,"puppet_proxy_id":1,"title":"New + string: '{"id":4,"name":"Nested New host group","created_at":"2020-09-03T07:57:00.015Z","updated_at":"2020-09-03T07:57:00.015Z","environment_id":null,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":"2","vm_defaults":null,"subnet_id":35,"domain_id":17,"puppet_proxy_id":1,"title":"New host group/Nested New host group","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=New host group/Nested New host group","subnet6_id":null,"pxe_loader":"Grub2 UEFI","description":"Nested - group","compute_resource_id":null,"openscap_proxy_id":null}' + group","compute_resource_id":null}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,14 +244,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: - - Wed, 08 Jan 2020 14:16:37 GMT - ETag: - - W/"633655ecc5c97d770e63738185a7d438-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -274,15 +255,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -295,16 +270,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d91ddf3a-6466-4f82-8be3-fda5647eee43 - X-Runtime: - - '0.052339' X-XSS-Protection: - 1; mode=block content-length: - - '678' + - '648' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-28.yml b/tests/test_playbooks/fixtures/hostgroup-28.yml index 7067527f..fc360082 100644 --- a/tests/test_playbooks/fixtures/hostgroup-28.yml +++ b/tests/test_playbooks/fixtures/hostgroup-28.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:37 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,90 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=7fb2d1ac4ddb1eeea59e36787d680b44; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - 2eeb5322-f5ed-4f77-b7af-85f94aed2991 - X-Runtime: - - '0.128493' - 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=7fb2d1ac4ddb1eeea59e36787d680b44 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:37 GMT - ETag: - - W/"59ef3c41ea670687d0a2b011cef87e95-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e1abc3f0-7b8f-487e-a442-197f21643cfd - X-Runtime: - - '0.027761' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '62' status: code: 200 message: OK @@ -157,18 +64,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7fb2d1ac4ddb1eeea59e36787d680b44 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -176,14 +81,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: - - Wed, 08 Jan 2020 14:16:37 GMT - ETag: - - W/"8210002945fe208c948de2cc67701973-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -191,13 +92,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -210,12 +107,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 27c0d7c1-9fa8-4b28-a704-f4f0c627cdcd - X-Runtime: - - '0.013389' X-XSS-Protection: - 1; mode=block content-length: @@ -232,17 +123,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=7fb2d1ac4ddb1eeea59e36787d680b44 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22Nested+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Nested New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -250,14 +161,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: - - Wed, 08 Jan 2020 14:16:37 GMT - ETag: - - W/"30f9b2dd0ab5b80a41274a0613c688dd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -265,13 +172,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -284,16 +187,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 9c86c871-3add-41d3-95a6-9942875de721 - X-Runtime: - - '0.013732' X-XSS-Protection: - 1; mode=block content-length: - - '188' + - '1816' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-29.yml b/tests/test_playbooks/fixtures/hostgroup-29.yml index fa141d95..d7d4c05d 100644 --- a/tests/test_playbooks/fixtures/hostgroup-29.yml +++ b/tests/test_playbooks/fixtures/hostgroup-29.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:38 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=dc9159131a9408eff6822cb3b511e1fa; 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: - - 4b37c42b-9013-44e5-858e-d4c38601cc6d - X-Runtime: - - '0.122535' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dc9159131a9408eff6822cb3b511e1fa User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +102,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: - - Wed, 08 Jan 2020 14:16:38 GMT - ETag: - - W/"59ef3c41ea670687d0a2b011cef87e95-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +113,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +128,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3dce294f-2752-42d9-9008-a870f5811900 - X-Runtime: - - '0.028495' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1816' status: code: 200 message: OK @@ -157,24 +144,22 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=dc9159131a9408eff6822cb3b511e1fa User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/290 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:14 UTC","updated_at":"2020-01-08 14:16:14 UTC","id":290,"name":"New - host group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:15 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":349,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:29 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":353,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03 + 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -183,14 +168,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: - - Wed, 08 Jan 2020 14:16:38 GMT - ETag: - - W/"293823a32597f7a360961882846b65cb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,13 +179,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -217,16 +194,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cde0a6b3-667c-4ccf-a1f5-ab7739457ff6 - X-Runtime: - - '0.060466' X-XSS-Protection: - 1; mode=block content-length: - - '2243' + - '2703' status: code: 200 message: OK @@ -243,24 +214,22 @@ interactions: - '40' Content-Type: - application/json - Cookie: - - _session_id=dc9159131a9408eff6822cb3b511e1fa User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/hostgroups/290 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:14 UTC","updated_at":"2020-01-08 14:16:38 UTC","id":290,"name":"New - host group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:15 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":349,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:29 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":353,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:57:17 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03 + 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -269,14 +238,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: - - Wed, 08 Jan 2020 14:16:38 GMT - ETag: - - W/"590c7b9a9d31e894f8d551b62cfca86b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -284,15 +249,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -305,16 +264,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b23d7de1-6ea9-4440-9dd4-db120a1859fb - X-Runtime: - - '0.116284' X-XSS-Protection: - 1; mode=block content-length: - - '2243' + - '2703' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-3.yml b/tests/test_playbooks/fixtures/hostgroup-3.yml index f22d86c6..b41a1617 100644 --- a/tests/test_playbooks/fixtures/hostgroup-3.yml +++ b/tests/test_playbooks/fixtures/hostgroup-3.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e; 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: - - 307cb460-c94e-44c4-aad5-957f7d6ed68b - X-Runtime: - - '0.126741' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,24 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:16 UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":291,\"name\":\"New - host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New - host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\ + :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\ + :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\ + :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\ + :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\ + \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\ + :\"New host group with puppet classes\",\"title\":\"New host group with puppet\ + \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\ + :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\ + :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\ + :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\ + :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\ + :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -103,14 +103,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"ce199feab220c05bfa680a21bedd5648-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -137,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 69c45a24-ef82-482c-9ba5-35295c572f05 - X-Runtime: - - '0.037758' X-XSS-Protection: - 1; mode=block content-length: - - '1413' + - '1876' status: code: 200 message: OK @@ -159,25 +145,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/291 + uri: https://foreman.example.org/api/hostgroups/3 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":291,"name":"New - host group with puppet classes","title":"New host group with puppet classes","description":"New - host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":351,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":352,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":31,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":31,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host + group with puppet classes","title":"New host group with puppet classes","description":"New + host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -186,14 +170,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"cc570e29f8edc04c77d9fe97f9323bed-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -201,13 +181,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -220,16 +196,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8bc30927-095f-4317-a3d7-43a00601b2e1 - X-Runtime: - - '0.053995' X-XSS-Protection: - 1; mode=block content-length: - - '2423' + - '2883' status: code: 200 message: OK @@ -242,19 +212,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -262,14 +232,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -277,13 +243,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -296,12 +258,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b3486458-b8eb-4f25-b7d3-7756cfbcf47d - X-Runtime: - - '0.014720' X-XSS-Protection: - 1; mode=block content-length: @@ -318,19 +274,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -338,14 +294,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -353,13 +305,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -372,12 +320,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5de2e15c-b276-4be8-a333-768051c606ae - X-Runtime: - - '0.014602' X-XSS-Protection: - 1; mode=block content-length: @@ -394,18 +336,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -413,14 +355,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -428,13 +366,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -447,16 +381,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d89f78cb-2ccf-4f93-b025-0e4e94fa97ff - X-Runtime: - - '0.014676' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '355' status: code: 200 message: OK @@ -469,18 +397,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -488,14 +416,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -503,13 +427,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -522,16 +442,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0d0dc6d4-2892-4d23-8d8c-a2273120150f - X-Runtime: - - '0.016940' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '362' status: code: 200 message: OK @@ -544,18 +458,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -563,14 +477,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -578,13 +488,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -597,12 +503,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d8557735-bd5d-47d0-b54a-3b6cef3212ea - X-Runtime: - - '0.015123' X-XSS-Protection: - 1; mode=block content-length: @@ -619,18 +519,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 + uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":13,\"name\":\"myprofile\"}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\ + id\":4,\"name\":\"myprofile\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -638,14 +537,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"d49156c259116b4c536af902973688fd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -653,13 +548,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -672,16 +563,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6788d9c7-215d-4474-ac4e-b178f58361b1 - X-Runtime: - - '0.014567' X-XSS-Protection: - 1; mode=block content-length: - - '281' + - '280' status: code: 200 message: OK @@ -694,18 +579,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -713,14 +599,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -728,13 +610,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -747,16 +625,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ea0002c4-0d78-4ea5-b3ee-aeecc1be8e7c - X-Runtime: - - '0.016106' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '441' status: code: 200 message: OK @@ -769,19 +641,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -789,14 +667,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -804,13 +678,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -823,16 +693,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e118e113-ec75-4a5b-9db5-023fd216663b - X-Runtime: - - '0.015593' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '870' status: code: 200 message: OK @@ -845,18 +709,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -864,14 +727,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -879,13 +738,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -898,12 +753,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 592788f6-bc88-4afd-af0d-12780ffc2dda - X-Runtime: - - '0.013729' X-XSS-Protection: - 1; mode=block content-length: @@ -920,19 +769,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -940,14 +789,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -955,13 +800,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -974,16 +815,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f4210451-0e44-44cc-b9cb-64d4fb60d46a - X-Runtime: - - '0.014442' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '416' status: code: 200 message: OK @@ -996,19 +831,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1016,14 +850,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1031,13 +861,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1050,12 +876,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2d20664a-43d8-4852-bbdf-90c4e42e6d57 - X-Runtime: - - '0.014603' X-XSS-Protection: - 1; mode=block content-length: @@ -1072,19 +892,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1092,14 +911,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1107,13 +922,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1126,16 +937,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bd2b0984-75dd-475d-91bb-825960f5dc32 - X-Runtime: - - '0.015278' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '325' status: code: 200 message: OK @@ -1148,18 +953,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments?search=name%3D%22production%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:12 UTC\",\"updated_at\":\"2019-12-05 14:16:12 UTC\",\"name\":\"production\",\"id\":1}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\ + name\":\"production\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1167,14 +971,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"cf28a337f192c9d512a6f95fea68323e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1182,13 +982,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1201,12 +997,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0d5c146d-b3cc-4e33-b9c5-8972e32932ed - X-Runtime: - - '0.014357' X-XSS-Protection: - 1; mode=block content-length: @@ -1223,18 +1013,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":28,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1242,14 +1031,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"c5439e7f6e6e8d7a61243a367332891f-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1257,13 +1042,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=84 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1276,16 +1057,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bee914e2-6804-483a-b674-8fb3473d90fb - X-Runtime: - - '0.015960' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1298,18 +1073,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:13 UTC\",\"updated_at\":\"2020-01-08 14:16:13 UTC\",\"id\":29,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1317,14 +1091,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"2dc22932ee562267fa915a580c5c48e3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1332,13 +1102,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=83 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=83 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1351,16 +1117,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 54dd534e-8e87-4872-b261-bc2d5dcc933c - X-Runtime: - - '0.015202' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1373,19 +1133,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1393,14 +1157,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1408,13 +1168,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=82 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=82 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1427,16 +1183,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e1fd9d1f-1141-4d4d-810c-1ebf61432387 - X-Runtime: - - '0.018838' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1449,19 +1199,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1469,14 +1223,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1484,13 +1234,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=81 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=81 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1503,16 +1249,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6297294f-fa9f-46a0-882b-adfd03270bba - X-Runtime: - - '0.017481' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1525,19 +1265,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/291/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Aredis_exporter%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":60,\"created_at\":\"2020-01-08 14:16:16 - UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":351,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"},{\"priority\":60,\"created_at\":\"2020-01-08 - 14:16:16 UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":352,\"name\":\"subnet_param2\",\"parameter_type\":\"string\",\"value\":\"value2\"}]\n}\n" + string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n\ + \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : {\"prometheus\":[{\"id\":33,\"name\":\"prometheus::redis_exporter\",\"created_at\"\ + :\"2020-09-03T07:55:19.882Z\",\"updated_at\":\"2020-09-03T07:55:19.882Z\"\ + }]}\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1545,14 +1284,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"a6087bfdb75a809c1ee39b866d7aa584-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1560,13 +1295,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=80 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=80 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1579,87 +1310,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e1f5970f-1767-43a2-8bc7-7c9334f0b190 - X-Runtime: - - '0.018125' - X-XSS-Protection: - - 1; mode=block - content-length: - - '496' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Aredis_exporter%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 48,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - {\"prometheus\":[{\"id\":31,\"name\":\"prometheus::redis_exporter\",\"created_at\":\"2019-12-17T09:44:47.780Z\",\"updated_at\":\"2019-12-17T09:44:47.780Z\"}]}\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"da35fab4786e40622739eb7eb143d70d-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=79 - 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: - - 514f3087-2ccf-47a2-b225-939f09ef3660 - X-Runtime: - - '0.016173' X-XSS-Protection: - 1; mode=block content-length: @@ -1676,18 +1326,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Astatsd_exporter%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Astatsd_exporter%22&per_page=4294967296 response: body: - string: "{\n \"total\": 48,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - {\"prometheus\":[{\"id\":36,\"name\":\"prometheus::statsd_exporter\",\"created_at\":\"2019-12-17T09:44:47.914Z\",\"updated_at\":\"2019-12-17T09:44:47.914Z\"}]}\n}\n" + string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\"\ + ,\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : {\"prometheus\":[{\"id\":38,\"name\":\"prometheus::statsd_exporter\",\"\ + created_at\":\"2020-09-03T07:55:19.962Z\",\"updated_at\":\"2020-09-03T07:55:19.962Z\"\ + }]}\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1695,14 +1345,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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"965a039cca977e920ac6e73a35da9d6a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1710,13 +1356,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=78 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=79 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1729,12 +1371,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - eac829bc-ed7a-4390-86e3-6b980be67a4a - X-Runtime: - - '0.016031' X-XSS-Protection: - 1; mode=block content-length: @@ -1743,7 +1379,7 @@ interactions: code: 200 message: OK - request: - body: '{"puppetclass_id": 36}' + body: '{"puppetclass_id": 38}' headers: Accept: - application/json;version=2 @@ -1755,32 +1391,24 @@ interactions: - '22' Content-Type: - application/json - Cookie: - - _session_id=473550ce725ebe17c641b03658d78a4e User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/hostgroups/291/puppetclass_ids + uri: https://foreman.example.org/api/hostgroups/3/puppetclass_ids response: body: - string: '{"hostgroup_id":291,"puppetclass_id":36}' + string: '{"hostgroup_id":3,"puppetclass_id":38}' headers: Cache-Control: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '40' Content-Security-Policy: - 'default-src ''self''; child-src ''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: - - Wed, 08 Jan 2020 14:16:18 GMT - ETag: - - W/"b6c5d0477d4d5c5a6f1f56ac36ec912a" Foreman_api_version: - '2' Foreman_current_location: @@ -1788,17 +1416,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=77 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=78 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -1807,14 +1431,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bb39dde9-70b4-4044-bf25-291cca558755 - X-Runtime: - - '0.042289' X-XSS-Protection: - 1; mode=block + content-length: + - '38' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-30.yml b/tests/test_playbooks/fixtures/hostgroup-30.yml index f83b375b..4795ed7d 100644 --- a/tests/test_playbooks/fixtures/hostgroup-30.yml +++ b/tests/test_playbooks/fixtures/hostgroup-30.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:38 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=476e688ba36288d861d93b2abc042eb7; 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: - - 553428b9-5883-4683-866b-6a0d6bb9cb2a - X-Runtime: - - '0.122282' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=476e688ba36288d861d93b2abc042eb7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:38 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:57:17 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +102,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: - - Wed, 08 Jan 2020 14:16:38 GMT - ETag: - - W/"8c3a85d29cc8c777017bcdb851b84136-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +113,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +128,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5247a912-4a6c-43f4-a635-4d214734813e - X-Runtime: - - '0.027300' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1816' status: code: 200 message: OK @@ -157,24 +144,22 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=476e688ba36288d861d93b2abc042eb7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/290 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:14 UTC","updated_at":"2020-01-08 14:16:38 UTC","id":290,"name":"New - host group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:15 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":349,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:29 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":353,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:57:17 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03 + 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -183,14 +168,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: - - Wed, 08 Jan 2020 14:16:38 GMT - ETag: - - W/"590c7b9a9d31e894f8d551b62cfca86b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,13 +179,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -217,16 +194,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e83b9acb-c4bd-4ba6-b11f-5a07ada87f31 - X-Runtime: - - '0.049937' X-XSS-Protection: - 1; mode=block content-length: - - '2243' + - '2703' status: code: 200 message: OK @@ -243,24 +214,22 @@ interactions: - '40' Content-Type: - application/json - Cookie: - - _session_id=476e688ba36288d861d93b2abc042eb7 User-Agent: - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/hostgroups/290 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:14 UTC","updated_at":"2020-01-08 14:16:39 UTC","id":290,"name":"New - host group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:15 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":349,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:29 UTC","updated_at":"2020-01-08 14:16:29 UTC","id":353,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:57:17 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03 + 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -269,14 +238,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: - - Wed, 08 Jan 2020 14:16:38 GMT - ETag: - - W/"de6ec97afe359a8876dca09b89ffc3d8-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -284,15 +249,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Set-Cookie: - - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -305,16 +264,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b02a975c-55d6-4376-b824-74e0f8d203c0 - X-Runtime: - - '0.093251' X-XSS-Protection: - 1; mode=block content-length: - - '2243' + - '2703' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-31.yml b/tests/test_playbooks/fixtures/hostgroup-31.yml index 39c65a1c..fa8e3b03 100644 --- a/tests/test_playbooks/fixtures/hostgroup-31.yml +++ b/tests/test_playbooks/fixtures/hostgroup-31.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:39 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=f246b4fb9e80f079676d81720815bc8c; 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: - - 770db74f-cddc-4360-98e6-c7f10f2da43a - X-Runtime: - - '0.144129' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=f246b4fb9e80f079676d81720815bc8c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:39 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:57:17 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +102,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: - - Wed, 08 Jan 2020 14:16:39 GMT - ETag: - - W/"b4f0f8c1807267068cc24f59e3a865a8-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +113,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +128,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a2365e74-73b6-4b0b-87f6-461970b7cd63 - X-Runtime: - - '0.033967' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1816' status: code: 200 message: OK @@ -159,18 +146,16 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=f246b4fb9e80f079676d81720815bc8c User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/hostgroups/290 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: '{"id":290,"name":"New host group","created_at":"2020-01-08T14:16:14.944Z","updated_at":"2020-01-08T14:16:39.006Z","environment_id":1,"operatingsystem_id":17,"architecture_id":1,"medium_id":19,"ptable_id":126,"root_pass":"$5$flTNKP3fZR5qLAUI$QOz.vvH04ISJQeqQK0O0QgWTPaT2yAyru5u6/MBFdz2","puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":10,"domain_id":20,"puppet_proxy_id":1,"title":"New - host group","realm_id":null,"compute_profile_id":13,"grub_pass":"$6$05RL6ShHWv59avuL$ML8Kr5BbtfD5YCIl/YUC0n5yavPetLfb7ddMNGe2ZO3YuLiqjXmpBwbvoGnlpP2ve5Bf/HVgqKCw2u4JJCjQT1","lookup_value_matcher":"hostgroup=New + string: '{"id":2,"name":"New host group","created_at":"2020-09-03T07:54:33.668Z","updated_at":"2020-09-03T07:57:17.981Z","environment_id":1,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":"$5$VUM2lJkbVp9IAcxV$mGNKfm9hmyFN50RGXbuKxmJysPC46PMRmpDxaf6n1J2","puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":35,"domain_id":17,"puppet_proxy_id":1,"title":"New + host group","realm_id":null,"compute_profile_id":4,"grub_pass":"$6$xRzmGw3m2YqKGr9I$PXUuRpfazmLLw7sbGWWy2katpcfDPAKBOMouuomAKjZssSf8a2cRCBWhGv5aapMj.oIrdscgf9.Qs3CRnu3Gl/","lookup_value_matcher":"hostgroup=New host group","subnet6_id":null,"pxe_loader":"Grub2 UEFI","description":"New - host group","compute_resource_id":1,"openscap_proxy_id":null}' + host group","compute_resource_id":1}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -178,14 +163,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: - - Wed, 08 Jan 2020 14:16:39 GMT - ETag: - - W/"9e9093142117d3686964e239b90d1c2e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -193,15 +174,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -214,16 +189,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6d1cf598-6b30-4c03-ac39-1f9b4b6cc75a - X-Runtime: - - '0.088859' X-XSS-Protection: - 1; mode=block content-length: - - '787' + - '758' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-32.yml b/tests/test_playbooks/fixtures/hostgroup-32.yml index 5dd0384e..baaedb81 100644 --- a/tests/test_playbooks/fixtures/hostgroup-32.yml +++ b/tests/test_playbooks/fixtures/hostgroup-32.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:40 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,85 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=15c55d629d8f0c901eeb4c1c44d8a274; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - ca795c1c-92a2-4c27-a158-99242853da23 - X-Runtime: - - '0.124874' - 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=15c55d629d8f0c901eeb4c1c44d8a274 - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:40 GMT - ETag: - - W/"396d8c1d0d394fdd698ebcb071369922-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -130,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 25c49e77-573c-4bdc-8ec5-9807e7f3c6e5 - X-Runtime: - - '0.014671' X-XSS-Protection: - 1; mode=block content-length: - - '181' + - '62' status: code: 200 message: OK @@ -152,17 +64,15 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=15c55d629d8f0c901eeb4c1c44d8a274 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -170,14 +80,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: - - Wed, 08 Jan 2020 14:16:40 GMT - ETag: - - W/"396d8c1d0d394fdd698ebcb071369922-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -185,13 +91,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -204,12 +106,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c8bd5ba6-c050-45ec-9c80-56ab8367a5c0 - X-Runtime: - - '0.013292' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/hostgroup-4.yml b/tests/test_playbooks/fixtures/hostgroup-4.yml index cd521b16..4fc95077 100644 --- a/tests/test_playbooks/fixtures/hostgroup-4.yml +++ b/tests/test_playbooks/fixtures/hostgroup-4.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b; 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: - - 8f8f1e7d-7f1a-4ed8-b410-048b3edc2a32 - X-Runtime: - - '0.123689' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,24 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:16 UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":291,\"name\":\"New - host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New - host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\ + :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\ + :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\ + :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\ + :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\ + \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\ + :\"New host group with puppet classes\",\"title\":\"New host group with puppet\ + \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\ + :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\ + :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\ + :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\ + :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\ + :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -103,14 +103,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"ce199feab220c05bfa680a21bedd5648-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -137,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e6e2ded4-0228-46d4-9bd5-dc413f5d18ee - X-Runtime: - - '0.026634' X-XSS-Protection: - 1; mode=block content-length: - - '1413' + - '1876' status: code: 200 message: OK @@ -159,25 +145,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/291 + uri: https://foreman.example.org/api/hostgroups/3 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":291,"name":"New - host group with puppet classes","title":"New host group with puppet classes","description":"New - host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":351,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":352,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":31,"name":"prometheus::redis_exporter","module_name":"prometheus"},{"id":36,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":31,"name":"prometheus::redis_exporter","module_name":"prometheus"},{"id":36,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host + group with puppet classes","title":"New host group with puppet classes","description":"New + host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"},{"id":38,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"},{"id":38,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -186,14 +170,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"55c7790bf17ed04e26b78627b98ffeaf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -201,13 +181,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -220,16 +196,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cb4968d7-380b-4cb1-964c-992982c9be8a - X-Runtime: - - '0.048639' X-XSS-Protection: - 1; mode=block content-length: - - '2571' + - '3031' status: code: 200 message: OK @@ -242,19 +212,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -262,14 +232,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -277,13 +243,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -296,12 +258,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e138fa05-e9e5-4526-934c-6cfb77dc5dad - X-Runtime: - - '0.014390' X-XSS-Protection: - 1; mode=block content-length: @@ -318,19 +274,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -338,14 +294,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -353,13 +305,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -372,12 +320,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 979d3d36-27b9-4cf3-9378-82e8cc04e0da - X-Runtime: - - '0.014519' X-XSS-Protection: - 1; mode=block content-length: @@ -394,18 +336,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -413,14 +355,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -428,13 +366,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -447,16 +381,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6be3c0ac-30e9-4244-833e-06d0fea74108 - X-Runtime: - - '0.014890' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '355' status: code: 200 message: OK @@ -469,18 +397,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -488,14 +416,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -503,13 +427,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -522,16 +442,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 730bc761-0b7a-4f75-a664-a89e1ffdb25c - X-Runtime: - - '0.016023' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '362' status: code: 200 message: OK @@ -544,18 +458,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -563,14 +477,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -578,13 +488,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -597,12 +503,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bf69e948-3018-49f2-92a2-340febc4ca72 - X-Runtime: - - '0.014675' X-XSS-Protection: - 1; mode=block content-length: @@ -619,18 +519,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 + uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":13,\"name\":\"myprofile\"}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\ + id\":4,\"name\":\"myprofile\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -638,14 +537,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"d49156c259116b4c536af902973688fd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -653,13 +548,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -672,16 +563,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e62f38ae-13a2-4884-a0b6-933e434a6db2 - X-Runtime: - - '0.014847' X-XSS-Protection: - 1; mode=block content-length: - - '281' + - '280' status: code: 200 message: OK @@ -694,18 +579,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -713,14 +599,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -728,13 +610,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -747,16 +625,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bbb426f8-ac61-47f6-9854-01011e42300d - X-Runtime: - - '0.016787' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '441' status: code: 200 message: OK @@ -769,19 +641,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -789,14 +667,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -804,13 +678,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -823,16 +693,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 69f1f73c-05bd-42ad-bfdb-72e24417c004 - X-Runtime: - - '0.015795' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '870' status: code: 200 message: OK @@ -845,18 +709,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -864,14 +727,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -879,13 +738,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -898,12 +753,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8e0cb85e-8df8-4d84-ad65-a3e7869875d2 - X-Runtime: - - '0.013942' X-XSS-Protection: - 1; mode=block content-length: @@ -920,19 +769,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -940,14 +789,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -955,13 +800,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -974,16 +815,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 17781f2f-80a5-4402-a291-9856ed9bc9dd - X-Runtime: - - '0.014694' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '416' status: code: 200 message: OK @@ -996,19 +831,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1016,14 +850,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1031,13 +861,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1050,12 +876,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 817994fa-0bed-42a3-900f-2883e1fe62d2 - X-Runtime: - - '0.014788' X-XSS-Protection: - 1; mode=block content-length: @@ -1072,19 +892,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1092,14 +911,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1107,13 +922,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1126,16 +937,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3a765bb4-7a39-4323-8714-ebaa7dee030c - X-Runtime: - - '0.015226' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '325' status: code: 200 message: OK @@ -1148,18 +953,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments?search=name%3D%22production%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:12 UTC\",\"updated_at\":\"2019-12-05 14:16:12 UTC\",\"name\":\"production\",\"id\":1}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\ + name\":\"production\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1167,14 +971,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"cf28a337f192c9d512a6f95fea68323e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1182,13 +982,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1201,12 +997,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e8c4ce56-0ee3-4942-bc6c-466b7ce8a407 - X-Runtime: - - '0.014249' X-XSS-Protection: - 1; mode=block content-length: @@ -1223,18 +1013,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":28,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1242,14 +1031,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"c5439e7f6e6e8d7a61243a367332891f-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1257,13 +1042,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=84 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1276,16 +1057,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ac80fb97-f281-43f4-a055-ccb0936376e3 - X-Runtime: - - '0.015752' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1298,18 +1073,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:13 UTC\",\"updated_at\":\"2020-01-08 14:16:13 UTC\",\"id\":29,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1317,14 +1091,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"2dc22932ee562267fa915a580c5c48e3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1332,13 +1102,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=83 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=83 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1351,16 +1117,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0e0d8bc0-e04c-493e-aa63-fbd81489f61c - X-Runtime: - - '0.015502' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1373,19 +1133,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1393,14 +1157,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1408,13 +1168,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=82 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=82 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1427,16 +1183,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 44379d0c-2579-46c7-ac75-f35363ead8eb - X-Runtime: - - '0.017425' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1449,19 +1199,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1469,14 +1223,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1484,13 +1234,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=81 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=81 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1503,16 +1249,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e082e6f5-b56f-428f-b66f-3bb74c8c35e7 - X-Runtime: - - '0.017068' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1525,19 +1265,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/291/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Astatsd_exporter%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":60,\"created_at\":\"2020-01-08 14:16:16 - UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":351,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"},{\"priority\":60,\"created_at\":\"2020-01-08 - 14:16:16 UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":352,\"name\":\"subnet_param2\",\"parameter_type\":\"string\",\"value\":\"value2\"}]\n}\n" + string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\"\ + ,\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : {\"prometheus\":[{\"id\":38,\"name\":\"prometheus::statsd_exporter\",\"\ + created_at\":\"2020-09-03T07:55:19.962Z\",\"updated_at\":\"2020-09-03T07:55:19.962Z\"\ + }]}\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1545,14 +1284,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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"a6087bfdb75a809c1ee39b866d7aa584-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1560,13 +1295,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=80 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=80 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1579,87 +1310,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a60ea8fa-5839-4702-8798-2e67e646de65 - X-Runtime: - - '0.018120' - X-XSS-Protection: - - 1; mode=block - content-length: - - '496' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Astatsd_exporter%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 48,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - {\"prometheus\":[{\"id\":36,\"name\":\"prometheus::statsd_exporter\",\"created_at\":\"2019-12-17T09:44:47.914Z\",\"updated_at\":\"2019-12-17T09:44:47.914Z\"}]}\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"965a039cca977e920ac6e73a35da9d6a-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=79 - 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: - - 06ab0c17-e436-40ed-8638-63025c9cc7a1 - X-Runtime: - - '0.016324' X-XSS-Protection: - 1; mode=block content-length: @@ -1678,12 +1328,10 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=c0a688faccdb004a81fd64fe90953a5b User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/hostgroups/291/puppetclass_ids/31 + uri: https://foreman.example.org/api/hostgroups/3/puppetclass_ids/33 response: body: string: '[]' @@ -1692,18 +1340,12 @@ interactions: - max-age=0, private, must-revalidate Connection: - Keep-Alive - Content-Length: - - '2' Content-Security-Policy: - 'default-src ''self''; child-src ''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: - - Wed, 08 Jan 2020 14:16:19 GMT - ETag: - - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5" Foreman_api_version: - '2' Foreman_current_location: @@ -1711,17 +1353,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=78 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=79 Strict-Transport-Security: - max-age=631139040; includeSubdomains + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Download-Options: @@ -1730,14 +1368,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 02deb0e6-42bc-43cb-8b0c-9c5fc8724b9e - X-Runtime: - - '0.046061' X-XSS-Protection: - 1; mode=block + content-length: + - '2' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-5.yml b/tests/test_playbooks/fixtures/hostgroup-5.yml index 91f5a03e..b755dc3e 100644 --- a/tests/test_playbooks/fixtures/hostgroup-5.yml +++ b/tests/test_playbooks/fixtures/hostgroup-5.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a; 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: - - 2ccc5256-0c01-4097-8533-0ca58da15bf3 - X-Runtime: - - '0.125926' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,24 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:16 UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":291,\"name\":\"New - host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New - host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\ + :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\ + :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\ + :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\ + :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\ + \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\ + :\"New host group with puppet classes\",\"title\":\"New host group with puppet\ + \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\ + :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\ + :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\ + :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\ + :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\ + :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -103,14 +103,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"ce199feab220c05bfa680a21bedd5648-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -137,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 66899543-14f6-4cb8-975c-cf3fc6d85cba - X-Runtime: - - '0.029760' X-XSS-Protection: - 1; mode=block content-length: - - '1413' + - '1876' status: code: 200 message: OK @@ -159,25 +145,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/291 + uri: https://foreman.example.org/api/hostgroups/3 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":291,"name":"New - host group with puppet classes","title":"New host group with puppet classes","description":"New - host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":351,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:16 UTC","updated_at":"2020-01-08 14:16:16 UTC","id":352,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":36,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":36,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host + group with puppet classes","title":"New host group with puppet classes","description":"New + host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":38,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":38,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -186,14 +170,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"71dfa10b95a98a6c57b523b1e44b4cb5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -201,13 +181,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -220,16 +196,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b8769006-b6cb-4e6b-9f91-2f4de9ae78ec - X-Runtime: - - '0.047398' X-XSS-Protection: - 1; mode=block content-length: - - '2425' + - '2885' status: code: 200 message: OK @@ -242,19 +212,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -262,14 +232,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -277,13 +243,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -296,12 +258,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 07e91dc4-4c0b-4ce3-97a9-d73f5cc5c328 - X-Runtime: - - '0.015496' X-XSS-Protection: - 1; mode=block content-length: @@ -318,19 +274,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -338,14 +294,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -353,13 +305,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -372,12 +320,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8bae434e-9ca4-40f8-9404-9c49aabf977c - X-Runtime: - - '0.013892' X-XSS-Protection: - 1; mode=block content-length: @@ -394,18 +336,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -413,14 +355,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -428,13 +366,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -447,16 +381,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d386271c-3577-4acf-819d-cf10a58b36f1 - X-Runtime: - - '0.014002' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '355' status: code: 200 message: OK @@ -469,18 +397,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -488,14 +416,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -503,13 +427,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -522,16 +442,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - da3baf3c-7051-4f4e-8edf-abd98d5640ea - X-Runtime: - - '0.016848' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '362' status: code: 200 message: OK @@ -544,18 +458,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -563,14 +477,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -578,13 +488,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -597,12 +503,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bdc8786c-5977-492e-95e9-80ffba2f1c97 - X-Runtime: - - '0.015128' X-XSS-Protection: - 1; mode=block content-length: @@ -619,18 +519,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 + uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":13,\"name\":\"myprofile\"}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\ + id\":4,\"name\":\"myprofile\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -638,14 +537,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"d49156c259116b4c536af902973688fd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -653,13 +548,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -672,16 +563,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4fb21b72-23e3-4c86-be34-7ba18ca12046 - X-Runtime: - - '0.015061' X-XSS-Protection: - 1; mode=block content-length: - - '281' + - '280' status: code: 200 message: OK @@ -694,18 +579,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -713,14 +599,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -728,13 +610,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -747,16 +625,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 5bda81e6-e801-4ea4-8f75-cf7a7b6b3be4 - X-Runtime: - - '0.016701' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '441' status: code: 200 message: OK @@ -769,19 +641,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -789,14 +667,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -804,13 +678,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -823,16 +693,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 49b3e0d4-fc10-4fa2-9e0d-aeaa35570d5d - X-Runtime: - - '0.015997' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '870' status: code: 200 message: OK @@ -845,18 +709,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -864,14 +727,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -879,13 +738,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -898,12 +753,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 28fe42b3-155a-4452-89a1-bd653999fe7d - X-Runtime: - - '0.014413' X-XSS-Protection: - 1; mode=block content-length: @@ -920,19 +769,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -940,14 +789,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -955,13 +800,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -974,16 +815,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f5ecb7e1-435f-43a3-9469-94a855adf04a - X-Runtime: - - '0.014823' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '416' status: code: 200 message: OK @@ -996,19 +831,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1016,14 +850,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1031,13 +861,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1050,12 +876,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 300c4cf1-f430-41c1-91fe-82f1ed3b666a - X-Runtime: - - '0.015297' X-XSS-Protection: - 1; mode=block content-length: @@ -1072,19 +892,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1092,14 +911,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1107,13 +922,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1126,16 +937,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 321d90a3-4546-441d-8921-2ad54af1c4c9 - X-Runtime: - - '0.015669' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '325' status: code: 200 message: OK @@ -1148,18 +953,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments?search=name%3D%22production%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:12 UTC\",\"updated_at\":\"2019-12-05 14:16:12 UTC\",\"name\":\"production\",\"id\":1}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\ + name\":\"production\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1167,14 +971,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"cf28a337f192c9d512a6f95fea68323e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1182,13 +982,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1201,12 +997,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 122b0f11-5811-442f-96e0-774f2debb714 - X-Runtime: - - '0.014977' X-XSS-Protection: - 1; mode=block content-length: @@ -1223,93 +1013,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":28,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"c5439e7f6e6e8d7a61243a367332891f-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=84 - 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: - - 4f6681b3-46e4-4859-81dc-72a5515f3766 - X-Runtime: - - '0.016481' - X-XSS-Protection: - - 1; mode=block - content-length: - - '302' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json;version=2 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:13 UTC\",\"updated_at\":\"2020-01-08 14:16:13 UTC\",\"id\":29,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1317,14 +1031,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: - - Wed, 08 Jan 2020 14:16:20 GMT - ETag: - - W/"2dc22932ee562267fa915a580c5c48e3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1332,13 +1042,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=83 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1351,16 +1057,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 30b335b9-c1ae-4fe6-9ab4-1588b66da8a2 - X-Runtime: - - '0.016545' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1373,19 +1073,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1393,14 +1091,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: - - Wed, 08 Jan 2020 14:16:21 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1408,13 +1102,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=82 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=83 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1427,16 +1117,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 32d803ba-4eb1-45e8-9881-6d1bfc1045eb - X-Runtime: - - '0.020632' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '301' status: code: 200 message: OK @@ -1449,19 +1133,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1469,14 +1157,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: - - Wed, 08 Jan 2020 14:16:21 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1484,13 +1168,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=81 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=82 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1503,16 +1183,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6a198fe9-29b8-43b6-910c-2f63ad0eee4c - X-Runtime: - - '0.017235' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1525,19 +1199,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/291/parameters?per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\": - null\n },\n \"results\": [{\"priority\":60,\"created_at\":\"2020-01-08 14:16:16 - UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":351,\"name\":\"subnet_param1\",\"parameter_type\":\"string\",\"value\":\"value1\"},{\"priority\":60,\"created_at\":\"2020-01-08 - 14:16:16 UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":352,\"name\":\"subnet_param2\",\"parameter_type\":\"string\",\"value\":\"value2\"}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1545,14 +1223,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: - - Wed, 08 Jan 2020 14:16:21 GMT - ETag: - - W/"a6087bfdb75a809c1ee39b866d7aa584-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1560,13 +1234,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=80 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=81 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1579,16 +1249,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 78f6750f-03a1-4cf8-bd27-8531c5e95024 - X-Runtime: - - '0.018767' X-XSS-Protection: - 1; mode=block content-length: - - '496' + - '666' status: code: 200 message: OK @@ -1601,18 +1265,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=a889bab9e324d359cab3cd8def401b9a User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Astatsd_exporter%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Astatsd_exporter%22&per_page=4294967296 response: body: - string: "{\n \"total\": 48,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - {\"prometheus\":[{\"id\":36,\"name\":\"prometheus::statsd_exporter\",\"created_at\":\"2019-12-17T09:44:47.914Z\",\"updated_at\":\"2019-12-17T09:44:47.914Z\"}]}\n}\n" + string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\"\ + ,\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : {\"prometheus\":[{\"id\":38,\"name\":\"prometheus::statsd_exporter\",\"\ + created_at\":\"2020-09-03T07:55:19.962Z\",\"updated_at\":\"2020-09-03T07:55:19.962Z\"\ + }]}\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1620,14 +1284,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: - - Wed, 08 Jan 2020 14:16:21 GMT - ETag: - - W/"965a039cca977e920ac6e73a35da9d6a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1635,13 +1295,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=79 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=80 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1654,12 +1310,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 284bbe1c-90fb-4b85-afa5-684cf6e60fb4 - X-Runtime: - - '0.017148' X-XSS-Protection: - 1; mode=block content-length: diff --git a/tests/test_playbooks/fixtures/hostgroup-6.yml b/tests/test_playbooks/fixtures/hostgroup-6.yml index cb1f11ad..bde314fc 100644 --- a/tests/test_playbooks/fixtures/hostgroup-6.yml +++ b/tests/test_playbooks/fixtures/hostgroup-6.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:21 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=23f0f57d9b6d3b59b39f35bcb05f1e82; 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: - - 34ffb24c-7df8-442e-aa41-a5c21cf65487 - X-Runtime: - - '0.119722' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,24 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=23f0f57d9b6d3b59b39f35bcb05f1e82 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:16 UTC\",\"updated_at\":\"2020-01-08 14:16:16 UTC\",\"id\":291,\"name\":\"New - host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New - host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\ + :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\ + :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\ + :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\ + :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\ + \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\ + :\"New host group with puppet classes\",\"title\":\"New host group with puppet\ + \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\ + :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\ + :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\ + :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\ + :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\ + :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\ + :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\ + :null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -103,14 +103,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: - - Wed, 08 Jan 2020 14:16:21 GMT - ETag: - - W/"ce199feab220c05bfa680a21bedd5648-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -118,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -137,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f316c5ae-b060-41db-8d47-10a4596ec962 - X-Runtime: - - '0.025221' X-XSS-Protection: - 1; mode=block content-length: - - '1413' + - '1876' status: code: 200 message: OK @@ -161,18 +147,16 @@ interactions: - keep-alive Content-Length: - '0' - Cookie: - - _session_id=23f0f57d9b6d3b59b39f35bcb05f1e82 User-Agent: - apypie (https://github.com/Apipie/apypie) method: DELETE - uri: https://foreman.example.com/api/hostgroups/291 + uri: https://foreman.example.org/api/hostgroups/3 response: body: - string: '{"id":291,"name":"New host group with puppet classes","created_at":"2020-01-08T14:16:16.448Z","updated_at":"2020-01-08T14:16:16.448Z","environment_id":1,"operatingsystem_id":17,"architecture_id":1,"medium_id":19,"ptable_id":126,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":10,"domain_id":20,"puppet_proxy_id":1,"title":"New - host group with puppet classes","realm_id":null,"compute_profile_id":13,"grub_pass":"","lookup_value_matcher":"hostgroup=New + string: '{"id":3,"name":"New host group with puppet classes","created_at":"2020-09-03T07:54:34.970Z","updated_at":"2020-09-03T07:54:34.970Z","environment_id":1,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":35,"domain_id":17,"puppet_proxy_id":1,"title":"New + host group with puppet classes","realm_id":null,"compute_profile_id":4,"grub_pass":"","lookup_value_matcher":"hostgroup=New host group with puppet classes","subnet6_id":null,"pxe_loader":"Grub2 UEFI","description":"New - host group","compute_resource_id":1,"openscap_proxy_id":null}' + host group","compute_resource_id":1}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -180,14 +164,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: - - Wed, 08 Jan 2020 14:16:21 GMT - ETag: - - W/"f2250f3587f432ea423d5888e8df5c47-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -195,15 +175,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Set-Cookie: - - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -216,16 +190,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2f6472b2-c641-4a3b-81c2-2151a10d6df2 - X-Runtime: - - '0.101708' X-XSS-Protection: - 1; mode=block content-length: - - '680' + - '651' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-7.yml b/tests/test_playbooks/fixtures/hostgroup-7.yml index 6f157328..bd29adad 100644 --- a/tests/test_playbooks/fixtures/hostgroup-7.yml +++ b/tests/test_playbooks/fixtures/hostgroup-7.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5; 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: - - 0ed22d07-ed5c-4149-93aa-81a32a64df87 - X-Runtime: - - '0.121717' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +102,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"59ef3c41ea670687d0a2b011cef87e95-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +113,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +128,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b519af6a-07e1-48cb-abc5-8c38c52bb222 - X-Runtime: - - '0.036990' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1816' status: code: 200 message: OK @@ -157,24 +144,22 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/290 + uri: https://foreman.example.org/api/hostgroups/2 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":13,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":126,"ptable_name":"Part - table","medium_id":19,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:14 UTC","updated_at":"2020-01-08 14:16:14 UTC","id":290,"name":"New - host group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[{"priority":60,"created_at":"2020-01-08 - 14:16:15 UTC","updated_at":"2020-01-08 14:16:15 UTC","id":349,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-01-08 - 14:16:15 UTC","updated_at":"2020-01-08 14:16:15 UTC","id":350,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-01-08 - 14:16:12 UTC","updated_at":"2020-01-08 14:16:12 UTC","id":28,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-01-08 - 14:16:13 UTC","updated_at":"2020-01-08 14:16:13 UTC","id":29,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part + table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host + group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03 + 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":54,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03 + 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -183,14 +168,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"7944329b0b4a4c672a42b8badb45953a-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -198,13 +179,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -217,16 +194,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0b0f6361-0e70-40a1-8b9e-968684c9b563 - X-Runtime: - - '0.050089' X-XSS-Protection: - 1; mode=block content-length: - - '2239' + - '2699' status: code: 200 message: OK @@ -239,19 +210,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -259,14 +230,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -274,13 +241,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -293,12 +256,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 04aa8927-b6c5-454c-9592-ca03b47013f4 - X-Runtime: - - '0.014266' X-XSS-Protection: - 1; mode=block content-length: @@ -315,19 +272,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -335,14 +292,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -350,13 +303,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -369,12 +318,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 96ee70c8-4499-49ab-9c8f-a919ea29386c - X-Runtime: - - '0.014289' X-XSS-Protection: - 1; mode=block content-length: @@ -391,18 +334,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -410,14 +353,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -425,13 +364,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -444,16 +379,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a355ed7c-feb5-4936-b484-16c898404984 - X-Runtime: - - '0.014464' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '355' status: code: 200 message: OK @@ -466,18 +395,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -485,14 +414,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -500,13 +425,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -519,16 +440,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 49922b75-d87f-4752-b748-31de4db99a56 - X-Runtime: - - '0.015736' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '362' status: code: 200 message: OK @@ -541,18 +456,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -560,14 +475,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -575,13 +486,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -594,12 +501,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bc338f82-e949-4b05-b77b-414c64eff2bd - X-Runtime: - - '0.014416' X-XSS-Protection: - 1; mode=block content-length: @@ -616,18 +517,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 + uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":13,\"name\":\"myprofile\"}]\n}\n" + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\ + id\":4,\"name\":\"myprofile\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -635,14 +535,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"d49156c259116b4c536af902973688fd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -650,13 +546,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -669,16 +561,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 7063671e-ade3-450a-b88b-826e36d7a060 - X-Runtime: - - '0.014449' X-XSS-Protection: - 1; mode=block content-length: - - '281' + - '280' status: code: 200 message: OK @@ -691,18 +577,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -710,14 +597,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -725,13 +608,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -744,16 +623,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bf3d6740-d9d6-46ac-9cd0-10d8b1c9a513 - X-Runtime: - - '0.016436' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '441' status: code: 200 message: OK @@ -766,19 +639,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -786,14 +665,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -801,13 +676,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -820,16 +691,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - ea4ae217-f8d1-43d1-b831-420749a3a8b8 - X-Runtime: - - '0.016185' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '870' status: code: 200 message: OK @@ -842,18 +707,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -861,14 +725,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -876,13 +736,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -895,12 +751,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 513814cc-48fc-474c-a316-5b06f72f11a7 - X-Runtime: - - '0.013403' X-XSS-Protection: - 1; mode=block content-length: @@ -917,19 +767,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -937,14 +787,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -952,13 +798,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -971,16 +813,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3263ab95-5422-4713-a5a8-81339289a0c6 - X-Runtime: - - '0.014011' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '416' status: code: 200 message: OK @@ -993,19 +829,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1013,14 +848,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1028,13 +859,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1047,12 +874,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 22ca3aff-bb6e-4c54-aaa1-f55bd3127ebb - X-Runtime: - - '0.014287' X-XSS-Protection: - 1; mode=block content-length: @@ -1069,19 +890,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1089,14 +909,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1104,13 +920,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1123,16 +935,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - b6f5c12f-7dc7-450a-86a2-fd40c5f677a4 - X-Runtime: - - '0.014867' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '325' status: code: 200 message: OK @@ -1145,18 +951,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/environments?search=name%3D%22production%22&per_page=4294967296 + uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:12 UTC\",\"updated_at\":\"2019-12-05 14:16:12 UTC\",\"name\":\"production\",\"id\":1}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\ + name\":\"production\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1164,14 +969,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"cf28a337f192c9d512a6f95fea68323e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1179,13 +980,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1198,12 +995,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 04b4bf76-e63b-4c11-b709-8202307ed13b - X-Runtime: - - '0.014427' X-XSS-Protection: - 1; mode=block content-length: @@ -1220,18 +1011,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:12 UTC\",\"updated_at\":\"2020-01-08 14:16:12 UTC\",\"id\":28,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1239,14 +1029,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"c5439e7f6e6e8d7a61243a367332891f-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1254,13 +1040,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=84 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1273,16 +1055,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 2b3a3d97-f7a1-4413-88c5-173c290cd8d9 - X-Runtime: - - '0.015587' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1295,18 +1071,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 + uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2020-01-08 - 14:16:13 UTC\",\"updated_at\":\"2020-01-08 14:16:13 UTC\",\"id\":29,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\ + id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1314,14 +1089,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"2dc22932ee562267fa915a580c5c48e3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1329,13 +1100,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=83 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=83 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1348,16 +1115,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 772ecbeb-3489-450e-8f62-89bcbc9b9d3b - X-Runtime: - - '0.015632' X-XSS-Protection: - 1; mode=block content-length: - - '302' + - '301' status: code: 200 message: OK @@ -1370,19 +1131,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1390,14 +1155,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1405,13 +1166,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=82 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=82 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1424,16 +1181,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4a99f79a-9688-43c3-9722-70a8d51def52 - X-Runtime: - - '0.017873' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1446,19 +1197,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=73bd19571f13fa858b56d82060a18ab5 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1466,14 +1221,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: - - Wed, 08 Jan 2020 14:16:22 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1481,13 +1232,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=81 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=81 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1500,16 +1247,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 42836813-37c4-4e53-927d-aef5408cf7df - X-Runtime: - - '0.017805' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK diff --git a/tests/test_playbooks/fixtures/hostgroup-8.yml b/tests/test_playbooks/fixtures/hostgroup-8.yml index 24863813..7bd7d880 100644 --- a/tests/test_playbooks/fixtures/hostgroup-8.yml +++ b/tests/test_playbooks/fixtures/hostgroup-8.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,90 +33,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 200 OK - Strict-Transport-Security: - - max-age=631139040; includeSubdomains - 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: - - c2d82151-0a97-4b74-abb6-ab7e86bf0171 - X-Runtime: - - '0.126995' - 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=56d20f13def6fe392be49a1ce864a45c - User-Agent: - - apypie (https://github.com/Apipie/apypie) - method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 - response: - body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\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: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline'' - ''self''; style-src ''unsafe-inline'' ''self''' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"59ef3c41ea670687d0a2b011cef87e95-gzip" - Foreman_api_version: - - '2' - Foreman_current_location: - - ; ANY - Foreman_current_organization: - - ; ANY - Foreman_version: - - 1.23.1 - Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=100 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +48,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 91a91165-e1c9-4306-a4f9-ebeb11eb3de1 - X-Runtime: - - '0.027645' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '62' status: code: 200 message: OK @@ -157,18 +64,16 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : []\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -176,14 +81,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"8210002945fe208c948de2cc67701973-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -191,13 +92,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -210,12 +107,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - dfe45e0f-ed7f-459a-8c05-95d38b153873 - X-Runtime: - - '0.013506' X-XSS-Protection: - 1; mode=block content-length: @@ -232,19 +123,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -252,14 +143,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -267,13 +154,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -286,12 +169,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c0c21a14-7d08-4edc-8274-f5a0fa15855e - X-Runtime: - - '0.014846' X-XSS-Protection: - 1; mode=block content-length: @@ -308,19 +185,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -328,14 +205,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -343,13 +216,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -362,12 +231,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f8163a54-270e-47bc-8d89-bfb942a1f370 - X-Runtime: - - '0.026228' X-XSS-Protection: - 1; mode=block content-length: @@ -384,18 +247,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -403,14 +266,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -418,13 +277,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -437,16 +292,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d56a14ad-5e07-4d58-8098-61ea71fe6007 - X-Runtime: - - '0.015090' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '355' status: code: 200 message: OK @@ -459,18 +308,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -478,14 +327,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -493,13 +338,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -512,16 +353,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 0d4a1c2c-6edb-4117-a028-318a38291967 - X-Runtime: - - '0.023975' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '362' status: code: 200 message: OK @@ -534,18 +369,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -553,14 +388,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -568,13 +399,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -587,12 +414,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - a84449e1-e95c-4c78-a50e-f001e92ddd3b - X-Runtime: - - '0.015136' X-XSS-Protection: - 1; mode=block content-length: @@ -609,18 +430,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -628,14 +450,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -643,13 +461,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -662,16 +476,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 506116d1-2d74-4fe1-916f-c9371f2177f9 - X-Runtime: - - '0.016889' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '441' status: code: 200 message: OK @@ -684,19 +492,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -704,14 +518,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -719,13 +529,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -738,16 +544,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - cb0dbc30-835f-40e0-8958-cd443e053471 - X-Runtime: - - '0.016913' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '870' status: code: 200 message: OK @@ -760,18 +560,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -779,14 +578,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -794,13 +589,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -813,12 +604,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 06da7a41-100c-4976-9e6a-d593895d92a7 - X-Runtime: - - '0.015085' X-XSS-Protection: - 1; mode=block content-length: @@ -835,19 +620,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -855,14 +640,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -870,13 +651,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -889,16 +666,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - fd437bb7-6417-4b27-9617-e5b26308ca70 - X-Runtime: - - '0.015086' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '416' status: code: 200 message: OK @@ -911,19 +682,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -931,14 +701,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -946,13 +712,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -965,12 +727,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 3319d028-ec3a-45ba-95bf-1ef44043ffd3 - X-Runtime: - - '0.015149' X-XSS-Protection: - 1; mode=block content-length: @@ -987,19 +743,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1007,14 +762,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1022,13 +773,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1041,16 +788,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - bb0253dd-9a55-4e97-abc4-0a9cc17b1c39 - X-Runtime: - - '0.015541' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '325' status: code: 200 message: OK @@ -1063,19 +804,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1083,14 +828,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1098,13 +839,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1117,16 +854,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - e38384e1-af70-446a-825b-f56239c36101 - X-Runtime: - - '0.017871' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1139,19 +870,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1159,14 +894,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1174,13 +905,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1193,16 +920,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 48c19a19-d964-4dc7-acdf-5ee8b9b6777e - X-Runtime: - - '0.017777' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1215,17 +936,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22Nested+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Nested New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1233,14 +974,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"30f9b2dd0ab5b80a41274a0613c688dd-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1248,13 +985,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=84 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1267,25 +1000,19 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 03670954-ff6b-40d5-82b2-f1cff511e021 - X-Runtime: - - '0.014178' X-XSS-Protection: - 1; mode=block content-length: - - '188' + - '1816' status: code: 200 message: OK - request: body: '{"hostgroup": {"name": "Nested New host group", "description": "Nested - group", "parent_id": 290, "operatingsystem_id": 17, "architecture_id": 1, "pxe_loader": - "Grub2 UEFI", "medium_id": 19, "ptable_id": 126, "subnet_id": 10, "domain_id": - 20, "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids": [5, 42, 43], - "organization_ids": [44, 45]}}' + group", "parent_id": 2, "operatingsystem_id": 2, "architecture_id": 1, "pxe_loader": + "Grub2 UEFI", "medium_id": 12, "ptable_id": 127, "subnet_id": 35, "domain_id": + 17, "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids": [46, 47, + 48], "organization_ids": [51, 52]}}' headers: Accept: - application/json;version=2 @@ -1294,25 +1021,23 @@ interactions: Connection: - keep-alive Content-Length: - - '348' + - '346' Content-Type: - application/json - Cookie: - - _session_id=56d20f13def6fe392be49a1ce864a45c User-Agent: - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/hostgroups + uri: https://foreman.example.org/api/hostgroups response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290","parent_id":290,"parent_name":"New - host group","ptable_id":126,"ptable_name":"Part table","medium_id":19,"medium_name":"TestOS - Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:23 UTC","updated_at":"2020-01-08 14:16:23 UTC","id":292,"name":"Nested + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New + host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS + Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:00 UTC","updated_at":"2020-09-03 07:57:00 UTC","id":4,"name":"Nested New host group","title":"New host group/Nested New host group","description":"Nested - group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null},{"id":43,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test + group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null},{"id":48,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: @@ -1321,14 +1046,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: - - Wed, 08 Jan 2020 14:16:23 GMT - ETag: - - W/"ffbe2387a5ec17f7b1f529002deda1dd" Foreman_api_version: - '2' Foreman_current_location: @@ -1336,15 +1057,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=83 - Server: - - Apache - Set-Cookie: - - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax - Status: - - 201 Created + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Transfer-Encoding: @@ -1357,12 +1072,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - df440903-2ecf-415d-8f9e-a9d55325e540 - X-Runtime: - - '0.141110' X-XSS-Protection: - 1; mode=block status: diff --git a/tests/test_playbooks/fixtures/hostgroup-9.yml b/tests/test_playbooks/fixtures/hostgroup-9.yml index 009e0bc2..dd130465 100644 --- a/tests/test_playbooks/fixtures/hostgroup-9.yml +++ b/tests/test_playbooks/fixtures/hostgroup-9.yml @@ -11,27 +11,21 @@ interactions: User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/status + uri: https://foreman.example.org/api/status response: body: - string: '{"result":"ok","status":200,"version":"1.23.1","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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"f26fab35869f9a602399f2f56dc6b2ef" Foreman_api_version: - '2' Foreman_current_location: @@ -39,17 +33,13 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=100 - Server: - - Apache - Set-Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3; 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: - - 094ff1a0-1816-4c7c-b5ae-63b7e1258c18 - X-Runtime: - - '0.124282' X-XSS-Protection: - 1; mode=block + content-length: + - '62' status: code: 200 message: OK @@ -78,22 +64,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":10,\"subnet_name\":\"Test - subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":13,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":126,\"ptable_name\":\"Part - table\",\"medium_id\":19,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2 - UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:14 UTC\",\"updated_at\":\"2020-01-08 14:16:14 UTC\",\"id\":290,\"name\":\"New - host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\ + :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\ + :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\ + ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\ + :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\ + ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\ + ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\ + compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\ + :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\ + created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\ + \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\ + \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\ + puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -101,14 +103,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"95540e50ccce9efef2f9c819f524ddc7-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -116,13 +114,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=99 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=99 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -135,16 +129,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - f7ae040c-04f3-454b-af3b-206229c7c612 - X-Runtime: - - '0.035589' X-XSS-Protection: - 1; mode=block content-length: - - '1353' + - '1873' status: code: 200 message: OK @@ -157,24 +145,21 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups/4 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"subnet_id\":10,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":17,\"operatingsystem_name\":\"TestOS - 7.6\",\"domain_id\":20,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"290\",\"parent_id\":290,\"parent_name\":\"New - host group\",\"ptable_id\":126,\"ptable_name\":\"Part table\",\"medium_id\":19,\"medium_name\":\"TestOS - Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-01-08 - 14:16:23 UTC\",\"updated_at\":\"2020-01-08 14:16:23 UTC\",\"id\":292,\"name\":\"Nested - New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested - group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"foreman.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"foreman.example.com\",\"openscap_proxy_id\":null,\"openscap_proxy_name\":null,\"puppet_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"},\"openscap_proxy\":null}]\n}\n" + string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS + 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New + host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS + Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03 + 07:57:00 UTC","updated_at":"2020-09-03 07:57:00 UTC","id":4,"name":"Nested + New host group","title":"New host group/Nested New host group","description":"Nested + group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test + Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test + Org2","title":"Test Org2","description":"A test organization"}]}' headers: Cache-Control: - max-age=0, private, must-revalidate @@ -182,14 +167,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"96f63b596e24c8b8ceb29866b762a029-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -197,13 +178,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=98 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=98 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -216,16 +193,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 457de208-eba0-4a5b-9609-10e1df467cc0 - X-Runtime: - - '0.042343' X-XSS-Protection: - 1; mode=block content-length: - - '1422' + - '2148' status: code: 200 message: OK @@ -238,23 +209,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/hostgroups/292 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 response: body: - string: '{"subnet_id":10,"subnet_name":"Test subnet4","operatingsystem_id":17,"operatingsystem_name":"TestOS - 7.6","domain_id":20,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"290","parent_id":290,"parent_name":"New - host group","ptable_id":126,"ptable_name":"Part table","medium_id":19,"medium_name":"TestOS - Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-01-08 - 14:16:23 UTC","updated_at":"2020-01-08 14:16:23 UTC","id":292,"name":"Nested - New host group","title":"New host group/Nested New host group","description":"Nested - group","puppet_proxy_id":1,"puppet_proxy_name":"foreman.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"foreman.example.com","openscap_proxy_id":null,"openscap_proxy_name":null,"puppet_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"puppet_ca_proxy":{"name":"foreman.example.com","id":1,"url":"https://foreman.example.com:8443"},"openscap_proxy":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":43,"name":"Bar","title":"Bar","description":null},{"id":5,"name":"Foo","title":"Foo","description":null},{"id":42,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":44,"name":"Test - Org1","title":"Test Org1","description":"A test organization"},{"id":45,"name":"Test - Org2","title":"Test Org2","description":"A test organization"}]}' + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\ + :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -262,14 +229,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"9207086768c57bab60c449a55f0bb7b3-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -277,13 +240,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=97 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=97 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -296,16 +255,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - be2af1ad-06c3-4385-a964-f21f50b03bb6 - X-Runtime: - - '0.056270' X-XSS-Protection: - 1; mode=block content-length: - - '1696' + - '389' status: code: 200 message: OK @@ -318,19 +271,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296 + uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:04 UTC\",\"updated_at\":\"2020-01-08 14:16:04 UTC\",\"id\":44,\"name\":\"Test - Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\ + \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\ + :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\ + }]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -338,14 +291,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"55a122a04b358d18631fa80c55ea3050-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -353,13 +302,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=96 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=96 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -372,12 +317,6 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c2529a6e-c8d6-4cb5-86aa-e252abfa659f - X-Runtime: - - '0.014233' X-XSS-Protection: - 1; mode=block content-length: @@ -394,19 +333,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:05 UTC\",\"updated_at\":\"2020-01-08 14:16:05 UTC\",\"id\":45,\"name\":\"Test - Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\ + ,\"title\":\"Foo\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -414,14 +352,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"7f49cb3709ccc1fbd740962dcc088dd0-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -429,13 +363,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=95 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=95 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -448,16 +378,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 725014fe-e6d9-4ad7-824c-8cf4678bf1ab - X-Runtime: - - '0.014320' X-XSS-Protection: - 1; mode=block content-length: - - '389' + - '355' status: code: 200 message: OK @@ -470,18 +394,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2019-12-17 - 09:43:00 UTC\",\"updated_at\":\"2019-12-17 09:43:00 UTC\",\"id\":5,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\ + :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\ + \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\ + :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -489,14 +413,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"7cf2c6b7bad250aa4bdfbbd6c4af404c-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -504,13 +424,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=94 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=94 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -523,16 +439,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 041e8714-d004-4dda-8a7e-cfa40ca2cb9a - X-Runtime: - - '0.014683' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '362' status: code: 200 message: OK @@ -545,18 +455,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296 + uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"5\",\"parent_id\":5,\"parent_name\":\"Foo\",\"created_at\":\"2020-01-08 - 14:16:02 UTC\",\"updated_at\":\"2020-01-08 14:16:02 UTC\",\"id\":42,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n" + string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\ + by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\ + parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\ + \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\ + ,\"title\":\"Bar\",\"description\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -564,14 +474,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"438fb75520c72c352fd2aa5f9479027b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -579,13 +485,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=93 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=93 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -598,16 +500,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 4adec484-7916-4aae-bc2e-1ecd93054e4a - X-Runtime: - - '0.015535' X-XSS-Protection: - 1; mode=block content-length: - - '360' + - '355' status: code: 200 message: OK @@ -620,18 +516,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/locations?search=title%3D%22Bar%22&per_page=4294967296 + uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-01-08 - 14:16:03 UTC\",\"updated_at\":\"2020-01-08 14:16:03 UTC\",\"id\":43,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\ + :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\ + \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + }}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -639,14 +536,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"0bbabed4cffcab6733dcaff3195fb35b-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -654,13 +547,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=92 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=92 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -673,16 +562,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6f8b8824-ecb1-4f47-add8-cdd8a167f2b9 - X-Runtime: - - '0.014647' X-XSS-Protection: - 1; mode=block content-length: - - '355' + - '441' status: code: 200 message: OK @@ -695,18 +578,25 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 response: body: - string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2020-01-08 - 14:16:06 UTC\",\"updated_at\":\"2020-01-08 14:16:06 UTC\",\"id\":20,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\"}}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\ + :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\ + ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\ + :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\ + \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\ + ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\ + :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\ + :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\ + :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\ + template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\ + :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -714,14 +604,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"b4c595d738cf1b95e5300b78e9b1beeb-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -729,13 +615,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=91 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=91 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -748,16 +630,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d2919adf-6346-430b-a0f1-9d4106fbc4c5 - X-Runtime: - - '0.016574' X-XSS-Protection: - 1; mode=block content-length: - - '405' + - '870' status: code: 200 message: OK @@ -770,19 +646,17 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296 + uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-01-08 - 14:16:08 UTC\",\"updated_at\":\"2020-01-08 14:16:08 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"id\":10,\"name\":\"Test - subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"dns\":null,\"template\":null}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\ + :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\ + name\":\"x86_64\",\"id\":1}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -790,14 +664,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"000e2e95927ba8df6d5beee5e84096cc-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -805,13 +675,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=90 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=90 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -824,16 +690,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 1eb747b5-c736-44c8-84c2-2f2f6f8249a0 - X-Runtime: - - '0.015701' X-XSS-Protection: - 1; mode=block content-length: - - '802' + - '274' status: code: 200 message: OK @@ -846,18 +706,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296 + uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:12:02 UTC\",\"updated_at\":\"2019-12-05 14:12:02 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n" + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\ + :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -865,14 +726,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"f76e651bf5fddcae61a2bb0e1a53d765-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -880,13 +737,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=89 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=89 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -899,16 +752,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - c0269d96-3ce6-4fa4-a531-047621c01bcc - X-Runtime: - - '0.013636' X-XSS-Protection: - 1; mode=block content-length: - - '274' + - '416' status: code: 200 message: OK @@ -921,19 +768,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296 + uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 response: body: - string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-01-08 14:16:09 UTC\",\"updated_at\":\"2020-01-08 - 14:16:09 UTC\",\"id\":17,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n" + string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\ + \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\ + :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\ + :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\ + id\":12,\"name\":\"TestOS Mirror\"}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -941,14 +787,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"c84cda366d1ce2b4bc13fe87d3fcbc34-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -956,13 +798,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=88 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=88 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -975,16 +813,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - d0519227-9044-41b0-8102-5a13bd02b1e3 - X-Runtime: - - '0.014477' X-XSS-Protection: - 1; mode=block content-length: - - '417' + - '354' status: code: 200 message: OK @@ -997,19 +829,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296 + uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 response: body: - string: "{\n \"total\": 10,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n - \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:10 UTC\",\"updated_at\":\"2020-01-08 14:16:10 UTC\",\"id\":19,\"name\":\"TestOS - Mirror\"}]\n}\n" + string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\ + \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\ + ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\ + :127}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1017,14 +848,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"28cde468b8148a2b6dce6998972df43e-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1032,13 +859,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=87 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=87 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1051,16 +874,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6271f6df-0c6a-4dfb-a6c1-f1fc5e7892da - X-Runtime: - - '0.015132' X-XSS-Protection: - 1; mode=block content-length: - - '354' + - '325' status: code: 200 message: OK @@ -1073,19 +890,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"os_family\":\"Redhat\",\"created_at\":\"2020-01-08 - 14:16:09 UTC\",\"updated_at\":\"2020-01-08 14:16:09 UTC\",\"name\":\"Part - table\",\"id\":126}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1093,14 +914,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"7db4756610c07eb10d867e5d380d44f5-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1108,13 +925,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=86 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=86 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1127,16 +940,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 6f4aa22a-7ef6-4379-b3dd-8b6ab59bde1f - X-Runtime: - - '0.015524' X-XSS-Protection: - 1; mode=block content-length: - - '305' + - '666' status: code: 200 message: OK @@ -1149,19 +956,23 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\ + \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\ + : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\ + \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\ + :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\ + :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\ + name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\ + id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\ + :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\ + ,\"id\":3}]}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1169,14 +980,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1184,13 +991,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=85 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=85 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1203,16 +1006,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 99e419c3-447c-4d44-b476-022cc8ed39c3 - X-Runtime: - - '0.018701' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '666' status: code: 200 message: OK @@ -1225,19 +1022,37 @@ interactions: - gzip, deflate Connection: - keep-alive - Cookie: - - _session_id=07545c3ce13790cbf6a7a18f455689d3 User-Agent: - apypie (https://github.com/Apipie/apypie) method: GET - uri: https://foreman.example.com/api/smart_proxies?search=name%3D%22foreman.example.com%22&per_page=4294967296 + uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296 response: body: - string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\": - 4294967296,\n \"search\": \"name=\\\"foreman.example.com\\\"\",\n \"sort\": - {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2019-12-05 - 14:16:06 UTC\",\"updated_at\":\"2019-12-05 14:16:06 UTC\",\"name\":\"foreman.example.com\",\"id\":1,\"url\":\"https://foreman.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Openscap\",\"id\":12},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3},{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"name\":\"Puppet - CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"BMC\",\"id\":7},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"HTTPBoot\",\"id\":11}]}]\n}\n" + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\ + :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\ + :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\ + :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\ + :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\ + ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\ + :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\ + :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\ + architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\ + realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\ + :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\ + :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\ + :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\ + :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\ + :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\ + },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\ + ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\ + inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\ + :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\ + :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\ + :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\ + :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\ + :null,\"inherited_pxe_loader\":null}]\n}\n" headers: Cache-Control: - max-age=0, private, must-revalidate @@ -1245,14 +1060,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: - - Wed, 08 Jan 2020 14:16:24 GMT - ETag: - - W/"5135b86544b65e55346f91e56ef6acbf-gzip" Foreman_api_version: - '2' Foreman_current_location: @@ -1260,13 +1071,9 @@ interactions: Foreman_current_organization: - ; ANY Foreman_version: - - 1.23.1 + - 2.1.2 Keep-Alive: - - timeout=5, max=84 - Server: - - Apache - Status: - - 200 OK + - timeout=15, max=84 Strict-Transport-Security: - max-age=631139040; includeSubdomains Vary: @@ -1279,16 +1086,10 @@ interactions: - sameorigin X-Permitted-Cross-Domain-Policies: - none - X-Powered-By: - - Phusion Passenger 4.0.53 - X-Request-Id: - - 8ae454eb-a0f0-407a-bfdb-521f76c532d0 - X-Runtime: - - '0.018154' X-XSS-Protection: - 1; mode=block content-length: - - '698' + - '1816' status: code: 200 message: OK From d07eeb911b81345aa7ea195fb38796143230e478 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 10:22:39 +0200 Subject: [PATCH 81/88] use the right flat_name for operatingsystem parameters --- plugins/modules/operatingsystem.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/modules/operatingsystem.py b/plugins/modules/operatingsystem.py index 99f25919..add4ef58 100644 --- a/plugins/modules/operatingsystem.py +++ b/plugins/modules/operatingsystem.py @@ -164,12 +164,13 @@ from ansible_collections.theforeman.foreman.plugins.module_utils.foreman_helper import ( ForemanEntityAnsibleModule, - NestedParametersMixin, + ParametersMixin, OS_LIST, + parameter_ansible_spec, ) -class ForemanOperatingsystemModule(NestedParametersMixin, ForemanEntityAnsibleModule): +class ForemanOperatingsystemModule(ParametersMixin, ForemanEntityAnsibleModule): pass @@ -187,6 +188,8 @@ def main(): ptables=dict(type='entity_list'), provisioning_templates=dict(type='entity_list'), password_hash=dict(choices=['MD5', 'SHA256', 'SHA512', 'Base64', 'Base64-Windows']), + # parameters is already in the ParametersMixin, but the flat_name detection does not work for operatingsystems + parameters=dict(type='list', elements='dict', options=parameter_ansible_spec, flat_name='os_parameters_attributes'), ), argument_spec=dict( state=dict(default='present', choices=['present', 'present_with_defaults', 'absent']), From 104f8f114db1bae146edef70815e4e6c0583dd02 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 10:28:20 +0200 Subject: [PATCH 82/88] use real json in operatingsystem tests --- tests/test_playbooks/operatingsystem.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_playbooks/operatingsystem.yml b/tests/test_playbooks/operatingsystem.yml index a4bb45dd..ab5e340f 100644 --- a/tests/test_playbooks/operatingsystem.yml +++ b/tests/test_playbooks/operatingsystem.yml @@ -42,7 +42,7 @@ - name: param1 value: value1 - name: param2 - value: value2 + value: '{"value2":"value2"}' parameter_type: json expected_change: true - include: tasks/operatingsystem.yml @@ -52,7 +52,7 @@ - name: param1 value: value1 - name: param2 - value: value2 + value: '{"value2":"value2"}' parameter_type: json expected_change: false - include: tasks/operatingsystem.yml @@ -62,7 +62,7 @@ - name: param1 value: new_value1 - name: param3 - value: value3 + value: '{"value3":"value3"}' parameter_type: json expected_change: true - include: tasks/operatingsystem.yml @@ -72,7 +72,7 @@ - name: param1 value: new_value1 - name: param3 - value: value3 + value: '{"value3":"value3"}' parameter_type: json expected_change: false - include: tasks/operatingsystem.yml From 17380f1e258c7de7888c9f7585071cb5e56e5fdb Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 11:05:12 +0200 Subject: [PATCH 83/88] re-record operatingsystem --- .../fixtures/operatingsystem-0.yml | 333 ++++++++----- .../fixtures/operatingsystem-1.yml | 249 ++++++---- .../fixtures/operatingsystem-10.yml | 282 ++++++----- .../fixtures/operatingsystem-11.yml | 249 ++++++---- .../fixtures/operatingsystem-12.yml | 249 ++++++---- .../fixtures/operatingsystem-13.yml | 160 ++++--- .../fixtures/operatingsystem-14.yml | 248 ++++++---- .../fixtures/operatingsystem-2.yml | 247 ++++++---- .../fixtures/operatingsystem-3.yml | 413 ++++++++-------- .../fixtures/operatingsystem-4.yml | 288 ++++++----- .../fixtures/operatingsystem-5.yml | 453 +++++++++--------- .../fixtures/operatingsystem-6.yml | 288 ++++++----- .../fixtures/operatingsystem-7.yml | 411 ++++++++-------- .../fixtures/operatingsystem-8.yml | 249 ++++++---- .../fixtures/operatingsystem-9.yml | 374 +++++++++------ 15 files changed, 2630 insertions(+), 1863 deletions(-) diff --git a/tests/test_playbooks/fixtures/operatingsystem-0.yml b/tests/test_playbooks/fixtures/operatingsystem-0.yml index c5086d43..f4e2f0a8 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-0.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-0.yml @@ -2,145 +2,236 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:45 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=377f372784b7d50dc75be5dce10878d1; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [876f5e03-7ee9-44a0-8683-5725a763fbdf] - x-runtime: ['0.028376'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=377f372784b7d50dc75be5dce10878d1] + 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.com/api/operatingsystems?per_page=4294967296&search=description%3D%22famos+SP1%22 + uri: https://foreman.example.org/api/operatingsystems?search=description%3D%22famos+SP1%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"description=\\\"famos SP1\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n"} + body: + string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"description=\\\"famos SP1\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:45 GMT'] - etag: [W/"290fcda8fa26069103654684a701d5d6"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [2f9f1273-c852-4149-b1f1-0dce7f156a83] - x-runtime: ['0.016527'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '182' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Cookie: [_session_id=377f372784b7d50dc75be5dce10878d1] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%221%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%221%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"1\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n"} + body: + string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"1\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": []\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:45 GMT'] - etag: [W/"db2e1bd814e15663ec4c9e35aa031962"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [0a67c746-a0de-4392-9df9-00eeb283ea28] - x-runtime: ['0.014929'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '195' + status: + code: 200 + message: OK - request: - body: !!python/unicode '{"operatingsystem": {"major": "1", "name": "famos", "family": - "Debian", "password_hash": "SHA256", "release_name": "reverse whip", "minor": - "1", "description": "famos SP1"}}' + body: '{"operatingsystem": {"name": "famos", "major": "1", "minor": "1", "description": + "famos SP1", "family": "Debian", "release_name": "reverse whip", "password_hash": + "SHA256"}}' headers: - Accept: [application/json;version=2] - Content-Length: ['173'] - Content-Type: [application/json] - Cookie: [_session_id=377f372784b7d50dc75be5dce10878d1] + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '173' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/operatingsystems + uri: https://foreman.example.org/api/operatingsystems response: - body: {string: !!python/unicode '{"description":"famos SP1","major":"1","minor":"1","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:45 UTC","updated_at":"2019-09-27 - 15:27:45 UTC","id":4,"name":"famos","title":"famos SP1","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}'} + body: + string: '{"description":"famos SP1","major":"1","minor":"1","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:27 UTC","updated_at":"2020-09-03 + 09:04:27 UTC","id":15,"name":"famos","title":"famos SP1","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:45 GMT'] - etag: [W/"11e5feb7030ac5b49c4b072035720ca2"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=POST; path=/; secure; HttpOnly; SameSite=Lax] - status: [201 Created] - 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-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [1df34158-2581-4e09-8aa9-1d083d23f695] - x-runtime: ['0.038495'] - x-xss-protection: [1; mode=block] - status: {code: 201, message: Created} + 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 + 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: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-1.yml b/tests/test_playbooks/fixtures/operatingsystem-1.yml index 2f00ad0d..f76ca0e2 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-1.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-1.yml @@ -2,108 +2,177 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:46 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=fdb07b9af27d50547702b7c9da6a66e1; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [e5b5181f-7b05-4dff-bc74-4d8210a0775f] - x-runtime: ['0.027099'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=fdb07b9af27d50547702b7c9da6a66e1] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n"} + body: + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": []\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:46 GMT'] - etag: [W/"52b7e7ad1140c7add2d8b172f9ef5d19"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [b8d9707c-3885-4b13-9e95-34c250b978ff] - x-runtime: ['0.016106'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '195' + status: + code: 200 + message: OK - request: - body: !!python/unicode '{"operatingsystem": {"major": "1", "name": "famos", "family": - "Debian", "release_name": "reverse whip", "minor": "2", "password_hash": "SHA256"}}' + body: '{"operatingsystem": {"name": "famos", "major": "1", "minor": "2", "family": + "Debian", "release_name": "reverse whip", "password_hash": "SHA256"}}' headers: - Accept: [application/json;version=2] - Content-Length: ['145'] - Content-Type: [application/json] - Cookie: [_session_id=fdb07b9af27d50547702b7c9da6a66e1] + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '145' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/operatingsystems + uri: https://foreman.example.org/api/operatingsystems response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:46 UTC","updated_at":"2019-09-27 - 15:27:46 UTC","id":5,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:46 GMT'] - etag: [W/"1ef46087e81712f0a3501d516c61986b"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=POST; path=/; secure; HttpOnly; SameSite=Lax] - status: [201 Created] - 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-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [5a6946a5-b15c-4e06-98af-c3055aaf136b] - x-runtime: ['0.036987'] - x-xss-protection: [1; mode=block] - status: {code: 201, message: Created} + 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 + 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: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-10.yml b/tests/test_playbooks/fixtures/operatingsystem-10.yml index 62235a35..1d33ddf1 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-10.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-10.yml @@ -2,142 +2,178 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:50 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=8fa654b7b525f2965daab4e9fadfde6a; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [4b154454-0a79-4205-ab83-c4aaec7aeec4] - x-runtime: ['0.026299'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=8fa654b7b525f2965daab4e9fadfde6a] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22SuperOS-NG%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22SuperOS-NG%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"SuperOS-NG\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:49 UTC\",\"updated_at\":\"2019-09-27 - 15:27:50 UTC\",\"id\":6,\"name\":\"SuperOS-NG\",\"title\":\"SuperOS-NG 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"SuperOS-NG\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:33 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:33 UTC\",\"id\":17,\"name\":\"SuperOS-NG\",\"title\":\"SuperOS-NG\ + \ 1.2\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:50 GMT'] - etag: [W/"fbd46576b427d3697b0a66e398f94e76"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [b36a8a3f-806a-4a52-93f0-fbe0faef4697] - x-runtime: ['0.017453'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '448' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Cookie: [_session_id=8fa654b7b525f2965daab4e9fadfde6a] + 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.com/api/operatingsystems/6 + uri: https://foreman.example.org/api/operatingsystems/17 response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:49 UTC","updated_at":"2019-09-27 - 15:27:50 UTC","id":6,"name":"SuperOS-NG","title":"SuperOS-NG 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:33 UTC","updated_at":"2020-09-03 + 09:04:33 UTC","id":17,"name":"SuperOS-NG","title":"SuperOS-NG 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:50 GMT'] - etag: [W/"9a606beb1139cfb2422271de094a4139"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [8e66d566-9e19-4fd3-9213-212df1277759] - x-runtime: ['0.024591'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json;version=2] - Cookie: [_session_id=8fa654b7b525f2965daab4e9fadfde6a] - method: GET - uri: https://foreman.example.com/api/operatingsystems/6/parameters?per_page=4294967296 - response: - body: {string: !!python/unicode "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": []\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:50 GMT'] - etag: [W/"b0ebd79c430c4781172af39880582aed"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [a5bdd883-226f-4bce-b5a5-353e15ecd42a] - x-runtime: ['0.015275'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '373' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-11.yml b/tests/test_playbooks/fixtures/operatingsystem-11.yml index 36c4ebcb..b9013c25 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-11.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-11.yml @@ -2,108 +2,179 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:51 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=9d2ae51ec8b807f8599be4221442bc4d; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [dc34958b-f8ce-403c-8d9a-1e4ef62e075f] - x-runtime: ['0.027422'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=9d2ae51ec8b807f8599be4221442bc4d] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22SuperOS-NG%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22SuperOS-NG%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"SuperOS-NG\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:49 UTC\",\"updated_at\":\"2019-09-27 - 15:27:50 UTC\",\"id\":6,\"name\":\"SuperOS-NG\",\"title\":\"SuperOS-NG 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"SuperOS-NG\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:33 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:33 UTC\",\"id\":17,\"name\":\"SuperOS-NG\",\"title\":\"SuperOS-NG\ + \ 1.2\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:51 GMT'] - etag: [W/"fbd46576b427d3697b0a66e398f94e76"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [cd6f3bb3-79bf-48db-9fe6-3375e5ce4d3c] - x-runtime: ['0.017797'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '448' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Content-Length: ['0'] - Cookie: [_session_id=9d2ae51ec8b807f8599be4221442bc4d] + 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.com/api/operatingsystems/6 + uri: https://foreman.example.org/api/operatingsystems/17 response: - body: {string: !!python/unicode '{"id":6,"major":"1","name":"SuperOS-NG","minor":"2","nameindicator":null,"created_at":"2019-09-27T15:27:49.891Z","updated_at":"2019-09-27T15:27:50.382Z","release_name":"reverse - whip","description":null,"password_hash":"SHA256","title":"SuperOS-NG 1.2"}'} + body: + string: '{"id":17,"major":"1","name":"SuperOS-NG","minor":"2","nameindicator":null,"created_at":"2020-09-03T09:04:33.298Z","updated_at":"2020-09-03T09:04:33.982Z","release_name":"reverse + whip","description":null,"password_hash":"SHA256","title":"SuperOS-NG 1.2"}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:51 GMT'] - etag: [W/"e78bb036394175d6ca468b1ec8504ee3"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [f57664eb-fcae-4823-b8d2-ab5ff9b12562] - x-runtime: ['0.029321'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '253' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-12.yml b/tests/test_playbooks/fixtures/operatingsystem-12.yml index 1b9e056e..19f09e6d 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-12.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-12.yml @@ -2,108 +2,179 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:51 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=affc7b84ab5c5b6b579295a12972f5b6; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [57bf828a-505c-4f89-9039-0ac72ae93ea1] - x-runtime: ['0.028122'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=affc7b84ab5c5b6b579295a12972f5b6] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:46 UTC\",\"updated_at\":\"2019-09-27 - 15:27:46 UTC\",\"id\":5,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:28 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:28 UTC\",\"id\":16,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n\ + }\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:51 GMT'] - etag: [W/"b3fcca27222e4c7701b9323a338119a1"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [f081f818-5a0c-40d6-81a1-2299a334bbcf] - x-runtime: ['0.017394'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '433' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Content-Length: ['0'] - Cookie: [_session_id=affc7b84ab5c5b6b579295a12972f5b6] + 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.com/api/operatingsystems/5 + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"id":5,"major":"1","name":"famos","minor":"2","nameindicator":null,"created_at":"2019-09-27T15:27:46.350Z","updated_at":"2019-09-27T15:27:46.350Z","release_name":"reverse - whip","description":null,"password_hash":"SHA256","title":"famos 1.2"}'} + body: + string: '{"id":16,"major":"1","name":"famos","minor":"2","nameindicator":null,"created_at":"2020-09-03T09:04:28.624Z","updated_at":"2020-09-03T09:04:28.624Z","release_name":"reverse + whip","description":null,"password_hash":"SHA256","title":"famos 1.2"}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:51 GMT'] - etag: [W/"66a0cfeb3ff50e037c323543b94711ee"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [f747d3cc-60b6-4804-bba4-a39754e77fe2] - x-runtime: ['0.029383'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '243' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-13.yml b/tests/test_playbooks/fixtures/operatingsystem-13.yml index dd6ca715..7000b67f 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-13.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-13.yml @@ -2,70 +2,116 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:52 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=75580c1545aa9dd6340c93b2ae36d26f; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [73bd578a-d4ea-4a65-9ae2-78bc75053188] - x-runtime: ['0.027437'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=75580c1545aa9dd6340c93b2ae36d26f] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n"} + body: + string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": []\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:52 GMT'] - etag: [W/"52b7e7ad1140c7add2d8b172f9ef5d19"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [964f4d55-dc9b-4d33-b420-f46c742c76b6] - x-runtime: ['0.016935'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '195' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-14.yml b/tests/test_playbooks/fixtures/operatingsystem-14.yml index 94886d6a..91de86f1 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-14.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-14.yml @@ -2,108 +2,178 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:52 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=d30ddc18f91ca2aa448a8af16f143f71; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [34ce48df-6d3d-42f3-8224-d1a424c4c43d] - x-runtime: ['0.027934'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=d30ddc18f91ca2aa448a8af16f143f71] + 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.com/api/operatingsystems?per_page=4294967296&search=description%3D%22famos+SP1%22 + uri: https://foreman.example.org/api/operatingsystems?search=description%3D%22famos+SP1%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"description=\\\"famos SP1\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":\"famos SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:45 UTC\",\"updated_at\":\"2019-09-27 - 15:27:45 UTC\",\"id\":4,\"name\":\"famos\",\"title\":\"famos SP1\"}]\n}\n"} + body: + string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"description=\\\"famos SP1\\\"\",\n \"sort\"\ + : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\ + :\"famos SP1\",\"major\":\"1\",\"minor\":\"1\",\"family\":\"Debian\",\"release_name\"\ + :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\ + \ 09:04:27 UTC\",\"updated_at\":\"2020-09-03 09:04:27 UTC\",\"id\":15,\"name\"\ + :\"famos\",\"title\":\"famos SP1\"}]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:52 GMT'] - etag: [W/"c4ced03581deb97af1af65affefc8da9"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [80659f67-256e-4df7-8ec5-8e05409126dd] - x-runtime: ['0.017185'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '427' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Content-Length: ['0'] - Cookie: [_session_id=d30ddc18f91ca2aa448a8af16f143f71] + 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.com/api/operatingsystems/4 + uri: https://foreman.example.org/api/operatingsystems/15 response: - body: {string: !!python/unicode '{"id":4,"major":"1","name":"famos","minor":"1","nameindicator":null,"created_at":"2019-09-27T15:27:45.901Z","updated_at":"2019-09-27T15:27:45.901Z","release_name":"reverse - whip","description":"famos SP1","password_hash":"SHA256","title":"famos SP1"}'} + body: + string: '{"id":15,"major":"1","name":"famos","minor":"1","nameindicator":null,"created_at":"2020-09-03T09:04:27.978Z","updated_at":"2020-09-03T09:04:27.978Z","release_name":"reverse + whip","description":"famos SP1","password_hash":"SHA256","title":"famos SP1"}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:52 GMT'] - etag: [W/"e07928240fb3b7e5785e4287fbb822a9"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [1f6a9d68-3b5b-43af-aa68-4d114d39f9e3] - x-runtime: ['0.029506'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '250' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-2.yml b/tests/test_playbooks/fixtures/operatingsystem-2.yml index 566a3c38..f094b905 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-2.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-2.yml @@ -2,107 +2,178 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:46 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=3c4d79164cc4ce9dbafcf4bfbf7a8122; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [9050738b-b2b0-4991-97ee-df605d27b8ae] - x-runtime: ['0.027800'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=3c4d79164cc4ce9dbafcf4bfbf7a8122] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:46 UTC\",\"updated_at\":\"2019-09-27 - 15:27:46 UTC\",\"id\":5,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:28 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:28 UTC\",\"id\":16,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n\ + }\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:46 GMT'] - etag: [W/"b3fcca27222e4c7701b9323a338119a1"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [6074f15e-15fd-4661-bfbb-0d3c23c49280] - x-runtime: ['0.017493'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '433' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Cookie: [_session_id=3c4d79164cc4ce9dbafcf4bfbf7a8122] + 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.com/api/operatingsystems/5 + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:46 UTC","updated_at":"2019-09-27 - 15:27:46 UTC","id":5,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:46 GMT'] - etag: [W/"1ef46087e81712f0a3501d516c61986b"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [71849022-2dc2-4ee1-b1a4-1e4612095e34] - x-runtime: ['0.024116'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '363' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-3.yml b/tests/test_playbooks/fixtures/operatingsystem-3.yml index 77951958..bd919d59 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-3.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-3.yml @@ -2,215 +2,244 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=33e5e538bbe38dc9a31c5b867fc475b6; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [d23ab840-9346-479f-8cee-03c4b6496cd8] - x-runtime: ['0.027994'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=33e5e538bbe38dc9a31c5b867fc475b6] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:46 UTC\",\"updated_at\":\"2019-09-27 - 15:27:46 UTC\",\"id\":5,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:28 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:28 UTC\",\"id\":16,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n\ + }\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"b3fcca27222e4c7701b9323a338119a1"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [6c78a8d5-b9c0-4a80-aad8-947ab476dc96] - x-runtime: ['0.018321'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '433' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Cookie: [_session_id=33e5e538bbe38dc9a31c5b867fc475b6] + 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.com/api/operatingsystems/5 + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:46 UTC","updated_at":"2019-09-27 - 15:27:46 UTC","id":5,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"1ef46087e81712f0a3501d516c61986b"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [31689fbf-acca-4fdc-a767-1d5c9c302d4a] - x-runtime: ['0.024441'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '363' + status: + code: 200 + message: OK - request: - body: null - headers: - Accept: [application/json;version=2] - Cookie: [_session_id=33e5e538bbe38dc9a31c5b867fc475b6] - method: GET - uri: https://foreman.example.com/api/operatingsystems/5/parameters?per_page=4294967296 - response: - body: {string: !!python/unicode "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": []\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"b0ebd79c430c4781172af39880582aed"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [e266f427-951c-448f-bbb1-c08eb2af7d19] - x-runtime: ['0.015955'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: !!python/unicode '{"parameter": {"parameter_type": "json", "name": "param2", - "value": "\"value2\""}}' - headers: - Accept: [application/json;version=2] - Content-Length: ['82'] - Content-Type: [application/json] - Cookie: [_session_id=33e5e538bbe38dc9a31c5b867fc475b6] - method: POST - uri: https://foreman.example.com/api/operatingsystems/5/parameters - response: - body: {string: !!python/unicode '{"priority":50,"created_at":"2019-09-27 15:27:47 - UTC","updated_at":"2019-09-27 15:27:47 UTC","id":7,"name":"param2","parameter_type":"json","value":"value2"}'} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"53d8b391db90a372cd9c40dffab30271"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=POST; path=/; secure; HttpOnly; SameSite=Lax] - status: [201 Created] - 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-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [2a791ab8-d84e-41e1-9df9-a44fbb0e4b5a] - x-runtime: ['0.043733'] - x-xss-protection: [1; mode=block] - status: {code: 201, message: Created} -- request: - body: !!python/unicode '{"parameter": {"parameter_type": "string", "name": "param1", - "value": "value1"}}' + body: '{"operatingsystem": {"os_parameters_attributes": [{"name": "param1", "value": + "value1", "parameter_type": "string"}, {"name": "param2", "value": "\"{\\\"value2\\\":\\\"value2\\\"}\"", + "parameter_type": "json"}]}}' headers: - Accept: [application/json;version=2] - Content-Length: ['80'] - Content-Type: [application/json] - Cookie: [request_method=POST; _session_id=33e5e538bbe38dc9a31c5b867fc475b6] - method: POST - uri: https://foreman.example.com/api/operatingsystems/5/parameters + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '212' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: PUT + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"priority":50,"created_at":"2019-09-27 15:27:47 - UTC","updated_at":"2019-09-27 15:27:47 UTC","id":8,"name":"param1","parameter_type":"string","value":"value1"}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2020-09-03 + 09:04:29 UTC","updated_at":"2020-09-03 09:04:29 UTC","id":68,"name":"param1","parameter_type":"string","value":"value1"},{"priority":50,"created_at":"2020-09-03 + 09:04:29 UTC","updated_at":"2020-09-03 09:04:29 UTC","id":69,"name":"param2","parameter_type":"json","value":"{\"value2\":\"value2\"}"}]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"d6bacf8946f196b97846d09b2f50bf0f"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [201 Created] - 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-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [e076c8f8-ca0d-43d1-82f5-36680e2df947] - x-runtime: ['0.050583'] - x-xss-protection: [1; mode=block] - status: {code: 201, message: Created} + 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: + - '699' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-4.yml b/tests/test_playbooks/fixtures/operatingsystem-4.yml index d2c31974..ed0a7c4c 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-4.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-4.yml @@ -2,146 +2,180 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=fcf28af5ce62e32ac5954191d5f593be; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [edec5e31-b095-453c-91aa-b4596d9dcc9e] - x-runtime: ['0.027066'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=fcf28af5ce62e32ac5954191d5f593be] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:46 UTC\",\"updated_at\":\"2019-09-27 - 15:27:46 UTC\",\"id\":5,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:28 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:28 UTC\",\"id\":16,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n\ + }\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"b3fcca27222e4c7701b9323a338119a1"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [4f30ec9f-a45d-48cc-8ac1-2f6dce88e470] - x-runtime: ['0.017258'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '433' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Cookie: [_session_id=fcf28af5ce62e32ac5954191d5f593be] + 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.com/api/operatingsystems/5 + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:46 UTC","updated_at":"2019-09-27 - 15:27:46 UTC","id":5,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2019-09-27 - 15:27:47 UTC","updated_at":"2019-09-27 15:27:47 UTC","id":8,"name":"param1","parameter_type":"string","value":"value1"},{"priority":50,"created_at":"2019-09-27 - 15:27:47 UTC","updated_at":"2019-09-27 15:27:47 UTC","id":7,"name":"param2","parameter_type":"json","value":"value2"}]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2020-09-03 + 09:04:29 UTC","updated_at":"2020-09-03 09:04:29 UTC","id":68,"name":"param1","parameter_type":"string","value":"value1"},{"priority":50,"created_at":"2020-09-03 + 09:04:29 UTC","updated_at":"2020-09-03 09:04:29 UTC","id":69,"name":"param2","parameter_type":"json","value":"{\"value2\":\"value2\"}"}]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"107732bcc50a2fe97257517c61861e6d"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [4896ee10-1acb-4e59-82b7-b4c3e0bcdf24] - x-runtime: ['0.027491'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json;version=2] - Cookie: [_session_id=fcf28af5ce62e32ac5954191d5f593be] - method: GET - uri: https://foreman.example.com/api/operatingsystems/5/parameters?per_page=4294967296 - response: - body: {string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"priority\":50,\"created_at\":\"2019-09-27 - 15:27:47 UTC\",\"updated_at\":\"2019-09-27 15:27:47 UTC\",\"id\":8,\"name\":\"param1\",\"parameter_type\":\"string\",\"value\":\"value1\"},{\"priority\":50,\"created_at\":\"2019-09-27 - 15:27:47 UTC\",\"updated_at\":\"2019-09-27 15:27:47 UTC\",\"id\":7,\"name\":\"param2\",\"parameter_type\":\"json\",\"value\":\"value2\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:47 GMT'] - etag: [W/"a2deb76324a0f01ccaaf91663eb68481"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [574c40a3-b17c-42d9-8d3c-5ea3666f91ad] - x-runtime: ['0.019374'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '699' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-5.yml b/tests/test_playbooks/fixtures/operatingsystem-5.yml index 702b5b57..3244aabc 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-5.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-5.yml @@ -2,255 +2,246 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=e37a0ff01e0899304af9eb845a995cec; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [44ecee27-0a88-4de8-bb58-6322756dd885] - x-runtime: ['0.026399'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=e37a0ff01e0899304af9eb845a995cec] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:46 UTC\",\"updated_at\":\"2019-09-27 - 15:27:46 UTC\",\"id\":5,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:28 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:28 UTC\",\"id\":16,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n\ + }\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"b3fcca27222e4c7701b9323a338119a1"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [fc7f4d29-3f16-4a7c-aeee-1e447c0486f7] - x-runtime: ['0.017475'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '433' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Cookie: [_session_id=e37a0ff01e0899304af9eb845a995cec] + 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.com/api/operatingsystems/5 + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:46 UTC","updated_at":"2019-09-27 - 15:27:46 UTC","id":5,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2019-09-27 - 15:27:47 UTC","updated_at":"2019-09-27 15:27:47 UTC","id":8,"name":"param1","parameter_type":"string","value":"value1"},{"priority":50,"created_at":"2019-09-27 - 15:27:47 UTC","updated_at":"2019-09-27 15:27:47 UTC","id":7,"name":"param2","parameter_type":"json","value":"value2"}]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2020-09-03 + 09:04:29 UTC","updated_at":"2020-09-03 09:04:29 UTC","id":68,"name":"param1","parameter_type":"string","value":"value1"},{"priority":50,"created_at":"2020-09-03 + 09:04:29 UTC","updated_at":"2020-09-03 09:04:29 UTC","id":69,"name":"param2","parameter_type":"json","value":"{\"value2\":\"value2\"}"}]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"107732bcc50a2fe97257517c61861e6d"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [dcc4c8c9-33c9-402c-9729-ccd0b0f724ad] - x-runtime: ['0.027178'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '699' + status: + code: 200 + message: OK - request: - body: null - headers: - Accept: [application/json;version=2] - Cookie: [_session_id=e37a0ff01e0899304af9eb845a995cec] - method: GET - uri: https://foreman.example.com/api/operatingsystems/5/parameters?per_page=4294967296 - response: - body: {string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"priority\":50,\"created_at\":\"2019-09-27 - 15:27:47 UTC\",\"updated_at\":\"2019-09-27 15:27:47 UTC\",\"id\":8,\"name\":\"param1\",\"parameter_type\":\"string\",\"value\":\"value1\"},{\"priority\":50,\"created_at\":\"2019-09-27 - 15:27:47 UTC\",\"updated_at\":\"2019-09-27 15:27:47 UTC\",\"id\":7,\"name\":\"param2\",\"parameter_type\":\"json\",\"value\":\"value2\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"a2deb76324a0f01ccaaf91663eb68481"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [55753c8d-7c3b-4805-a7a4-f260c0f7c9fc] - x-runtime: ['0.019153'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: !!python/unicode '{"parameter": {"parameter_type": "json", "name": "param3", - "value": "\"value3\""}}' - headers: - Accept: [application/json;version=2] - Content-Length: ['82'] - Content-Type: [application/json] - Cookie: [_session_id=e37a0ff01e0899304af9eb845a995cec] - method: POST - uri: https://foreman.example.com/api/operatingsystems/5/parameters - response: - body: {string: !!python/unicode '{"priority":50,"created_at":"2019-09-27 15:27:48 - UTC","updated_at":"2019-09-27 15:27:48 UTC","id":9,"name":"param3","parameter_type":"json","value":"value3"}'} + body: '{"operatingsystem": {"os_parameters_attributes": [{"name": "param1", "value": + "new_value1", "parameter_type": "string"}, {"name": "param3", "value": "\"{\\\"value3\\\":\\\"value3\\\"}\"", + "parameter_type": "json"}]}}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"fce1c504ccf2b4aacdd7a48b3a17014b"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=POST; path=/; secure; HttpOnly; SameSite=Lax] - status: [201 Created] - 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-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [0a14c0b4-8f1e-4657-b0b6-2ed398c5f41c] - x-runtime: ['0.032201'] - x-xss-protection: [1; mode=block] - status: {code: 201, message: Created} -- request: - body: !!python/unicode '{"parameter": {"value": "new_value1"}}' - headers: - Accept: [application/json;version=2] - Content-Length: ['38'] - Content-Type: [application/json] - Cookie: [request_method=POST; _session_id=e37a0ff01e0899304af9eb845a995cec] + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '216' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/operatingsystems/5/parameters/8 - response: - body: {string: !!python/unicode '{"priority":50,"created_at":"2019-09-27 15:27:47 - UTC","updated_at":"2019-09-27 15:27:48 UTC","id":8,"name":"param1","parameter_type":"string","value":"new_value1"}'} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"4f89cd852b466ac5134f9e62bfa5d54b"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [c71cca14-faca-4d95-b0f7-24b75ff5b026] - x-runtime: ['0.037262'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json;version=2] - Content-Length: ['0'] - Cookie: [request_method=PUT; _session_id=e37a0ff01e0899304af9eb845a995cec] - method: DELETE - uri: https://foreman.example.com/api/operatingsystems/5/parameters/7 + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"id":7,"name":"param2","value":"value2","reference_id":5,"created_at":"2019-09-27T15:27:47.302Z","updated_at":"2019-09-27T15:27:47.302Z","priority":50,"hidden_value":"*****","key_type":"json"}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2020-09-03 + 09:04:29 UTC","updated_at":"2020-09-03 09:04:31 UTC","id":68,"name":"param1","parameter_type":"string","value":"new_value1"},{"priority":50,"created_at":"2020-09-03 + 09:04:31 UTC","updated_at":"2020-09-03 09:04:31 UTC","id":70,"name":"param3","parameter_type":"json","value":"{\"value3\":\"value3\"}"}]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"37327c44497fda1bb550a3bf850fd8ba"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [3d003cf1-ee82-4233-8de2-24257473c4aa] - x-runtime: ['0.027168'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '703' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-6.yml b/tests/test_playbooks/fixtures/operatingsystem-6.yml index 9bcdec68..0c4d7d7b 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-6.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-6.yml @@ -2,146 +2,180 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=0a8ec942b4f3566a2e2c439be50c3444; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [778bf62d-ac5f-4b4f-b42a-38c47c0922d8] - x-runtime: ['0.027318'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=0a8ec942b4f3566a2e2c439be50c3444] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:46 UTC\",\"updated_at\":\"2019-09-27 - 15:27:46 UTC\",\"id\":5,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:28 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:28 UTC\",\"id\":16,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n\ + }\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"b3fcca27222e4c7701b9323a338119a1"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [51060e00-3a99-4e1a-bed6-d3bdfe234a37] - x-runtime: ['0.017473'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '433' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Cookie: [_session_id=0a8ec942b4f3566a2e2c439be50c3444] + 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.com/api/operatingsystems/5 + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:46 UTC","updated_at":"2019-09-27 - 15:27:46 UTC","id":5,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2019-09-27 - 15:27:47 UTC","updated_at":"2019-09-27 15:27:48 UTC","id":8,"name":"param1","parameter_type":"string","value":"new_value1"},{"priority":50,"created_at":"2019-09-27 - 15:27:48 UTC","updated_at":"2019-09-27 15:27:48 UTC","id":9,"name":"param3","parameter_type":"json","value":"value3"}]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2020-09-03 + 09:04:29 UTC","updated_at":"2020-09-03 09:04:31 UTC","id":68,"name":"param1","parameter_type":"string","value":"new_value1"},{"priority":50,"created_at":"2020-09-03 + 09:04:31 UTC","updated_at":"2020-09-03 09:04:31 UTC","id":70,"name":"param3","parameter_type":"json","value":"{\"value3\":\"value3\"}"}]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"f95f119758b3852542cdd8bb8c303424"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [e52f7064-c590-4a7b-b710-ff60b728acf0] - x-runtime: ['0.029169'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json;version=2] - Cookie: [_session_id=0a8ec942b4f3566a2e2c439be50c3444] - method: GET - uri: https://foreman.example.com/api/operatingsystems/5/parameters?per_page=4294967296 - response: - body: {string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"priority\":50,\"created_at\":\"2019-09-27 - 15:27:47 UTC\",\"updated_at\":\"2019-09-27 15:27:48 UTC\",\"id\":8,\"name\":\"param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"},{\"priority\":50,\"created_at\":\"2019-09-27 - 15:27:48 UTC\",\"updated_at\":\"2019-09-27 15:27:48 UTC\",\"id\":9,\"name\":\"param3\",\"parameter_type\":\"json\",\"value\":\"value3\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:48 GMT'] - etag: [W/"b60bba66f9d8f0f746b711d5d1c55784"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [a638e9c6-fae6-4a69-959e-f73ca396dc57] - x-runtime: ['0.019625'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '703' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-7.yml b/tests/test_playbooks/fixtures/operatingsystem-7.yml index 4da315b5..7699c668 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-7.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-7.yml @@ -2,215 +2,242 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:49 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=0a8c354f7b25501af691cae506c656d9; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [d78579bb-cda2-4538-a98e-bb2380bc1fb7] - x-runtime: ['0.026152'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=0a8c354f7b25501af691cae506c656d9] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22famos%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:46 UTC\",\"updated_at\":\"2019-09-27 - 15:27:46 UTC\",\"id\":5,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"famos\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:28 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:28 UTC\",\"id\":16,\"name\":\"famos\",\"title\":\"famos 1.2\"}]\n\ + }\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:49 GMT'] - etag: [W/"b3fcca27222e4c7701b9323a338119a1"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [4ec3032a-53a2-4d7d-9697-c664f6b61822] - x-runtime: ['0.017555'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '433' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Cookie: [_session_id=0a8c354f7b25501af691cae506c656d9] + 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.com/api/operatingsystems/5 + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:46 UTC","updated_at":"2019-09-27 - 15:27:46 UTC","id":5,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2019-09-27 - 15:27:47 UTC","updated_at":"2019-09-27 15:27:48 UTC","id":8,"name":"param1","parameter_type":"string","value":"new_value1"},{"priority":50,"created_at":"2019-09-27 - 15:27:48 UTC","updated_at":"2019-09-27 15:27:48 UTC","id":9,"name":"param3","parameter_type":"json","value":"value3"}]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[{"priority":50,"created_at":"2020-09-03 + 09:04:29 UTC","updated_at":"2020-09-03 09:04:31 UTC","id":68,"name":"param1","parameter_type":"string","value":"new_value1"},{"priority":50,"created_at":"2020-09-03 + 09:04:31 UTC","updated_at":"2020-09-03 09:04:31 UTC","id":70,"name":"param3","parameter_type":"json","value":"{\"value3\":\"value3\"}"}]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:49 GMT'] - etag: [W/"f95f119758b3852542cdd8bb8c303424"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [14a6e90e-456d-4512-ae27-c8e605a115ce] - x-runtime: ['0.027400'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '703' + status: + code: 200 + message: OK - request: - body: null - headers: - Accept: [application/json;version=2] - Cookie: [_session_id=0a8c354f7b25501af691cae506c656d9] - method: GET - uri: https://foreman.example.com/api/operatingsystems/5/parameters?per_page=4294967296 - response: - body: {string: !!python/unicode "{\n \"total\": 2,\n \"subtotal\": 2,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": [{\"priority\":50,\"created_at\":\"2019-09-27 - 15:27:47 UTC\",\"updated_at\":\"2019-09-27 15:27:48 UTC\",\"id\":8,\"name\":\"param1\",\"parameter_type\":\"string\",\"value\":\"new_value1\"},{\"priority\":50,\"created_at\":\"2019-09-27 - 15:27:48 UTC\",\"updated_at\":\"2019-09-27 15:27:48 UTC\",\"id\":9,\"name\":\"param3\",\"parameter_type\":\"json\",\"value\":\"value3\"}]\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:49 GMT'] - etag: [W/"b60bba66f9d8f0f746b711d5d1c55784"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [3e2b115e-379b-40da-b13d-b30346ca6619] - x-runtime: ['0.020481'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json;version=2] - Content-Length: ['0'] - Cookie: [_session_id=0a8c354f7b25501af691cae506c656d9] - method: DELETE - uri: https://foreman.example.com/api/operatingsystems/5/parameters/9 - response: - body: {string: !!python/unicode '{"id":9,"name":"param3","value":"value3","reference_id":5,"created_at":"2019-09-27T15:27:48.341Z","updated_at":"2019-09-27T15:27:48.341Z","priority":50,"hidden_value":"*****","key_type":"json"}'} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:49 GMT'] - etag: [W/"7baceb8ffde9ef6ea2af64b7a3952155"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [f34e4b14-24b0-4fc1-ba29-ef6e9aa18657] - x-runtime: ['0.030704'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: null + body: '{"operatingsystem": {"os_parameters_attributes": []}}' headers: - Accept: [application/json;version=2] - Content-Length: ['0'] - Cookie: [request_method=DELETE; _session_id=0a8c354f7b25501af691cae506c656d9] - method: DELETE - uri: https://foreman.example.com/api/operatingsystems/5/parameters/8 + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '53' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) + method: PUT + uri: https://foreman.example.org/api/operatingsystems/16 response: - body: {string: !!python/unicode '{"id":8,"name":"param1","value":"new_value1","reference_id":5,"created_at":"2019-09-27T15:27:47.346Z","updated_at":"2019-09-27T15:27:48.387Z","priority":50,"hidden_value":"*****","key_type":"string"}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:28 UTC","updated_at":"2020-09-03 + 09:04:28 UTC","id":16,"name":"famos","title":"famos 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:49 GMT'] - etag: [W/"43d0e26aa33b69e5c104b9948d92fa1d"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [a11b837b-d50b-465d-8afe-505bfc22a35e] - x-runtime: ['0.027041'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '363' + status: + code: 200 + message: OK version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-8.yml b/tests/test_playbooks/fixtures/operatingsystem-8.yml index 8698bc3e..0da5de7b 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-8.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-8.yml @@ -2,109 +2,178 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:49 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=166022855940736fbfac72f27b5878e1; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [199c5e72-6101-4b09-ba99-0012fea55593] - x-runtime: ['0.027986'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=166022855940736fbfac72f27b5878e1] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22SuperOS%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22SuperOS%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"SuperOS\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - []\n}\n"} + body: + string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"SuperOS\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": []\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:49 GMT'] - etag: [W/"62d1ac8a2091e50b473fc7bca076bb3c"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [7568b426-ac1b-48e9-a9e0-50d89ebd8367] - x-runtime: ['0.020002'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '197' + status: + code: 200 + message: OK - request: - body: !!python/unicode '{"operatingsystem": {"major": "1", "name": "SuperOS", - "family": "Debian", "release_name": "reverse whip", "minor": "2", "password_hash": + body: '{"operatingsystem": {"name": "SuperOS", "major": "1", "minor": "2", "family": + "Debian", "release_name": "reverse whip", "os_parameters_attributes": [], "password_hash": "SHA256"}}' headers: - Accept: [application/json;version=2] - Content-Length: ['147'] - Content-Type: [application/json] - Cookie: [_session_id=166022855940736fbfac72f27b5878e1] + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '179' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) method: POST - uri: https://foreman.example.com/api/operatingsystems + uri: https://foreman.example.org/api/operatingsystems response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:49 UTC","updated_at":"2019-09-27 - 15:27:49 UTC","id":6,"name":"SuperOS","title":"SuperOS 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:33 UTC","updated_at":"2020-09-03 + 09:04:33 UTC","id":17,"name":"SuperOS","title":"SuperOS 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:49 GMT'] - etag: [W/"05360fd495b58ba5818a5bbf75491e36"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=POST; path=/; secure; HttpOnly; SameSite=Lax] - status: [201 Created] - 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-powered-by: [Phusion Passenger 4.0.53] - x-request-id: [75954ef5-eabe-4eaa-84f7-699140480c17] - x-runtime: ['0.038719'] - x-xss-protection: [1; mode=block] - status: {code: 201, message: Created} + 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 + 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: 201 + message: Created version: 1 diff --git a/tests/test_playbooks/fixtures/operatingsystem-9.yml b/tests/test_playbooks/fixtures/operatingsystem-9.yml index e26833af..b4237763 100644 --- a/tests/test_playbooks/fixtures/operatingsystem-9.yml +++ b/tests/test_playbooks/fixtures/operatingsystem-9.yml @@ -2,182 +2,240 @@ interactions: - request: body: null headers: - Accept: [application/json;version=2] + 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.com/api/status + uri: https://foreman.example.org/api/status response: - body: {string: !!python/unicode '{"result":"ok","status":200,"version":"1.22.1","api_version":2}'} + body: + string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - 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'''] - content-type: [application/json; charset=utf-8] - date: ['Fri, 27 Sep 2019 15:27:50 GMT'] - etag: [W/"7462024e111aafa1fe0b7de16a6757f0"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [_session_id=a2f9338dfeec91a9ed3728c123e0325e; path=/; secure; HttpOnly; - SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - 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: [0f187bb6-c699-4d10-a4cb-245ce93e5283] - x-runtime: ['0.027486'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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] - Cookie: [_session_id=a2f9338dfeec91a9ed3728c123e0325e] + 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.com/api/operatingsystems?per_page=4294967296&search=name%3D%22SuperOS%22%2Cmajor%3D%221%22%2Cminor%3D%222%22 + uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22SuperOS%22%2Cmajor%3D%221%22%2Cminor%3D%222%22&per_page=4294967296 response: - body: {string: !!python/unicode "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": \"name=\\\"SuperOS\\\",major=\\\"1\\\",minor=\\\"2\\\"\",\n - \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": - [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"family\":\"Debian\",\"release_name\":\"reverse - whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2019-09-27 15:27:49 UTC\",\"updated_at\":\"2019-09-27 - 15:27:49 UTC\",\"id\":6,\"name\":\"SuperOS\",\"title\":\"SuperOS 1.2\"}]\n}\n"} + body: + string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\ + : 4294967296,\n \"search\": \"name=\\\"SuperOS\\\",major=\\\"1\\\",minor=\\\ + \"2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\ + \ \"results\": [{\"description\":null,\"major\":\"1\",\"minor\":\"2\",\"\ + family\":\"Debian\",\"release_name\":\"reverse whip\",\"password_hash\":\"\ + SHA256\",\"created_at\":\"2020-09-03 09:04:33 UTC\",\"updated_at\":\"2020-09-03\ + \ 09:04:33 UTC\",\"id\":17,\"name\":\"SuperOS\",\"title\":\"SuperOS 1.2\"\ + }]\n}\n" headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:50 GMT'] - etag: [W/"820797a7cc72a19b3e7e5ab8ffc93a0a"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [3899f3ab-2e27-470d-816c-7abcc4267ab4] - x-runtime: ['0.017572'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '439' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json;version=2] - Cookie: [_session_id=a2f9338dfeec91a9ed3728c123e0325e] + 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.com/api/operatingsystems/6 + uri: https://foreman.example.org/api/operatingsystems/17 response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:49 UTC","updated_at":"2019-09-27 - 15:27:49 UTC","id":6,"name":"SuperOS","title":"SuperOS 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:33 UTC","updated_at":"2020-09-03 + 09:04:33 UTC","id":17,"name":"SuperOS","title":"SuperOS 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:50 GMT'] - etag: [W/"05360fd495b58ba5818a5bbf75491e36"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [08ebfafc-7db0-423c-a7ef-a203c99a0a37] - x-runtime: ['0.024315'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '367' + status: + code: 200 + message: OK - request: - body: !!python/unicode '{"operatingsystem": {"name": "SuperOS-NG"}}' + body: '{"operatingsystem": {"name": "SuperOS-NG"}}' headers: - Accept: [application/json;version=2] - Content-Length: ['43'] - Content-Type: [application/json] - Cookie: [_session_id=a2f9338dfeec91a9ed3728c123e0325e] + Accept: + - application/json;version=2 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '43' + Content-Type: + - application/json + User-Agent: + - apypie (https://github.com/Apipie/apypie) method: PUT - uri: https://foreman.example.com/api/operatingsystems/6 + uri: https://foreman.example.org/api/operatingsystems/17 response: - body: {string: !!python/unicode '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse - whip","password_hash":"SHA256","created_at":"2019-09-27 15:27:49 UTC","updated_at":"2019-09-27 - 15:27:50 UTC","id":6,"name":"SuperOS-NG","title":"SuperOS-NG 1.2","media":[],"architectures":[],"ptables":[],"config_templates":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}'} + body: + string: '{"description":null,"major":"1","minor":"2","family":"Debian","release_name":"reverse + whip","password_hash":"SHA256","created_at":"2020-09-03 09:04:33 UTC","updated_at":"2020-09-03 + 09:04:33 UTC","id":17,"name":"SuperOS-NG","title":"SuperOS-NG 1.2","media":[],"architectures":[],"ptables":[],"provisioning_templates":[],"os_default_templates":[],"images":[],"parameters":[]}' headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:50 GMT'] - etag: [W/"9a606beb1139cfb2422271de094a4139"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - server: [Apache] - set-cookie: [request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax] - status: [200 OK] - strict-transport-security: [max-age=631139040; includeSubdomains] - transfer-encoding: [chunked] - 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: [277c459f-4b85-4b32-b92f-8f491861c148] - x-runtime: ['0.041495'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json;version=2] - Cookie: [request_method=PUT; _session_id=a2f9338dfeec91a9ed3728c123e0325e] - method: GET - uri: https://foreman.example.com/api/operatingsystems/6/parameters?per_page=4294967296 - response: - body: {string: !!python/unicode "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": - 1,\n \"per_page\": 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": - null,\n \"order\": null\n },\n \"results\": []\n}\n"} - headers: - cache-control: ['max-age=0, private, must-revalidate'] - content-security-policy: ['default-src ''self''; child-src ''self''; connect-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, 27 Sep 2019 15:27:50 GMT'] - etag: [W/"b0ebd79c430c4781172af39880582aed"] - foreman_api_version: ['2'] - foreman_version: [1.22.1] - 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] - transfer-encoding: [chunked] - 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: [c540db8c-97e6-49a9-8d19-79085b620a90] - x-runtime: ['0.016710'] - x-xss-protection: [1; mode=block] - status: {code: 200, message: OK} + 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: + - '373' + status: + code: 200 + message: OK version: 1 From 42381c261cfc70f4735c0031346129329545231b Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 10:18:25 +0200 Subject: [PATCH 84/88] add changelog --- changelogs/fragments/bz1855008-single_call_parameters.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/bz1855008-single_call_parameters.yaml diff --git a/changelogs/fragments/bz1855008-single_call_parameters.yaml b/changelogs/fragments/bz1855008-single_call_parameters.yaml new file mode 100644 index 00000000..52d89e6e --- /dev/null +++ b/changelogs/fragments/bz1855008-single_call_parameters.yaml @@ -0,0 +1,2 @@ +minor_changes: + - domain, host, hostgroup, operatingsystem, subnet - manage parameters in a single API call (https://bugzilla.redhat.com/show_bug.cgi?id=1855008) From 1e8247d3d1a77b38bc7a388d09cff876098aac97 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 13:24:26 +0200 Subject: [PATCH 85/88] better parameters_flat_name detection --- plugins/module_utils/foreman_helper.py | 3 ++- plugins/modules/hostgroup.py | 5 +---- plugins/modules/operatingsystem.py | 5 +---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py index f02bd684..c972f205 100644 --- a/plugins/module_utils/foreman_helper.py +++ b/plugins/module_utils/foreman_helper.py @@ -184,8 +184,9 @@ def __init__(self, **kwargs): class ParametersMixin(object): def __init__(self, **kwargs): self.entity_name = kwargs.pop('entity_name', self.entity_name_from_class) + parameters_flat_name = getattr(self, "PARAMETERS_FLAT_NAME", None) or '{0}_parameters_attributes'.format(self.entity_name) foreman_spec = dict( - parameters=dict(type='list', elements='dict', options=parameter_ansible_spec, flat_name='{0}_parameters_attributes'.format(self.entity_name)), + parameters=dict(type='list', elements='dict', options=parameter_ansible_spec, flat_name=parameters_flat_name), ) foreman_spec.update(kwargs.pop('foreman_spec', {})) super(ParametersMixin, self).__init__(foreman_spec=foreman_spec, **kwargs) diff --git a/plugins/modules/hostgroup.py b/plugins/modules/hostgroup.py index aa52c473..af1af066 100644 --- a/plugins/modules/hostgroup.py +++ b/plugins/modules/hostgroup.py @@ -145,12 +145,11 @@ ensure_puppetclasses, HostMixin, ForemanTaxonomicEntityAnsibleModule, - parameter_ansible_spec, ) class ForemanHostgroupModule(HostMixin, ForemanTaxonomicEntityAnsibleModule): - pass + PARAMETERS_FLAT_NAME = 'group_parameters_attributes' def main(): @@ -160,8 +159,6 @@ def main(): description=dict(), parent=dict(type='entity'), organization=dict(type='entity', required=False, ensure=False), - # parameters is already in the HostMixin, but the flat_name detection does not work for hostgroups - parameters=dict(type='list', elements='dict', options=parameter_ansible_spec, flat_name='group_parameters_attributes'), ), argument_spec=dict( updated_name=dict(), diff --git a/plugins/modules/operatingsystem.py b/plugins/modules/operatingsystem.py index add4ef58..4bf0a336 100644 --- a/plugins/modules/operatingsystem.py +++ b/plugins/modules/operatingsystem.py @@ -166,12 +166,11 @@ ForemanEntityAnsibleModule, ParametersMixin, OS_LIST, - parameter_ansible_spec, ) class ForemanOperatingsystemModule(ParametersMixin, ForemanEntityAnsibleModule): - pass + PARAMETERS_FLAT_NAME = 'os_parameters_attributes' def main(): @@ -188,8 +187,6 @@ def main(): ptables=dict(type='entity_list'), provisioning_templates=dict(type='entity_list'), password_hash=dict(choices=['MD5', 'SHA256', 'SHA512', 'Base64', 'Base64-Windows']), - # parameters is already in the ParametersMixin, but the flat_name detection does not work for operatingsystems - parameters=dict(type='list', elements='dict', options=parameter_ansible_spec, flat_name='os_parameters_attributes'), ), argument_spec=dict( state=dict(default='present', choices=['present', 'present_with_defaults', 'absent']), From f631ec71094dae830fa1f736fe590c41c2609fa8 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 3 Sep 2020 16:03:21 +0200 Subject: [PATCH 86/88] release 1.2.0 --- .mailmap | 3 +++ CHANGELOG.rst | 17 +++++++++++++++++ changelogs/changelog.yaml | 19 +++++++++++++++++++ changelogs/fragments/927-image-quoting.yaml | 2 -- .../932-host-add-compute_attributes.yaml | 2 -- .../fragments/935-repository-params.yaml | 2 -- ...ompute_resource-added_caching_enabled.yaml | 2 -- .../bz1855008-single_call_parameters.yaml | 2 -- .../fragments/bz1871978-template_kinds.yaml | 2 -- galaxy.yml | 6 +++--- 10 files changed, 42 insertions(+), 15 deletions(-) delete mode 100644 changelogs/fragments/927-image-quoting.yaml delete mode 100644 changelogs/fragments/932-host-add-compute_attributes.yaml delete mode 100644 changelogs/fragments/935-repository-params.yaml delete mode 100644 changelogs/fragments/939-compute_resource-added_caching_enabled.yaml delete mode 100644 changelogs/fragments/bz1855008-single_call_parameters.yaml delete mode 100644 changelogs/fragments/bz1871978-template_kinds.yaml diff --git a/.mailmap b/.mailmap index de62be74..4595f088 100644 --- a/.mailmap +++ b/.mailmap @@ -10,3 +10,6 @@ Matthias Dellweg <2500@gmx.de> Matthias Dellweg <2500@gmx.de> Mark Hlawatschek Paul Gration +Peter Ondrejka +Richard Stempfl +Richard Stempfl diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7ecf8619..c0c855a8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,23 @@ theforeman.foreman Release Notes This changelog describes changes after version 0.8.1. +v1.2.0 +====== + +Minor Changes +------------- + +- compute_resource - added ``caching_enabled`` option for VMware compute resources +- domain, host, hostgroup, operatingsystem, subnet - manage parameters in a single API call (https://bugzilla.redhat.com/show_bug.cgi?id=1855008) +- host - add ``compute_attributes`` parameter to module (https://bugzilla.redhat.com/show_bug.cgi?id=1871815) +- provisioning_template - update list of possible template kinds (https://bugzilla.redhat.com/show_bug.cgi?id=1871978) +- repository - update supported parameters (https://github.com/theforeman/foreman-ansible-modules/issues/935) + +Bugfixes +-------- + +- image - fix quoting of search values (https://github.com/theforeman/foreman-ansible-modules/issues/927) + v1.1.0 ====== diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 9e3e7bdd..a5b64b31 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -205,3 +205,22 @@ releases: name: http_proxy namespace: '' release_date: '2020-08-17' + 1.2.0: + changes: + bugfixes: + - image - fix quoting of search values (https://github.com/theforeman/foreman-ansible-modules/issues/927) + minor_changes: + - compute_resource - added ``caching_enabled`` option for VMware compute resources + - domain, host, hostgroup, operatingsystem, subnet - manage parameters in a + single API call (https://bugzilla.redhat.com/show_bug.cgi?id=1855008) + - host - add ``compute_attributes`` parameter to module (https://bugzilla.redhat.com/show_bug.cgi?id=1871815) + - provisioning_template - update list of possible template kinds (https://bugzilla.redhat.com/show_bug.cgi?id=1871978) + - repository - update supported parameters (https://github.com/theforeman/foreman-ansible-modules/issues/935) + fragments: + - 927-image-quoting.yaml + - 932-host-add-compute_attributes.yaml + - 935-repository-params.yaml + - 939-compute_resource-added_caching_enabled.yaml + - bz1855008-single_call_parameters.yaml + - bz1871978-template_kinds.yaml + release_date: '2020-09-03' diff --git a/changelogs/fragments/927-image-quoting.yaml b/changelogs/fragments/927-image-quoting.yaml deleted file mode 100644 index 130ebf86..00000000 --- a/changelogs/fragments/927-image-quoting.yaml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - image - fix quoting of search values (https://github.com/theforeman/foreman-ansible-modules/issues/927) diff --git a/changelogs/fragments/932-host-add-compute_attributes.yaml b/changelogs/fragments/932-host-add-compute_attributes.yaml deleted file mode 100644 index a2c1dbff..00000000 --- a/changelogs/fragments/932-host-add-compute_attributes.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - host - add ``compute_attributes`` parameter to module (https://bugzilla.redhat.com/show_bug.cgi?id=1871815) diff --git a/changelogs/fragments/935-repository-params.yaml b/changelogs/fragments/935-repository-params.yaml deleted file mode 100644 index 61cc552e..00000000 --- a/changelogs/fragments/935-repository-params.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - repository - update supported parameters (https://github.com/theforeman/foreman-ansible-modules/issues/935) diff --git a/changelogs/fragments/939-compute_resource-added_caching_enabled.yaml b/changelogs/fragments/939-compute_resource-added_caching_enabled.yaml deleted file mode 100644 index 564be580..00000000 --- a/changelogs/fragments/939-compute_resource-added_caching_enabled.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - compute_resource - added ``caching_enabled`` option for VMware compute resources diff --git a/changelogs/fragments/bz1855008-single_call_parameters.yaml b/changelogs/fragments/bz1855008-single_call_parameters.yaml deleted file mode 100644 index 52d89e6e..00000000 --- a/changelogs/fragments/bz1855008-single_call_parameters.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - domain, host, hostgroup, operatingsystem, subnet - manage parameters in a single API call (https://bugzilla.redhat.com/show_bug.cgi?id=1855008) diff --git a/changelogs/fragments/bz1871978-template_kinds.yaml b/changelogs/fragments/bz1871978-template_kinds.yaml deleted file mode 100644 index b008676b..00000000 --- a/changelogs/fragments/bz1871978-template_kinds.yaml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - provisioning_template - update list of possible template kinds (https://bugzilla.redhat.com/show_bug.cgi?id=1871978) diff --git a/galaxy.yml b/galaxy.yml index c908ac09..bb66647f 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -38,10 +38,10 @@ authors: - "Patrick Creech " - "Paul Armstrong " - "Paul Gration " - - "Peter Ondrejka " + - "Peter Ondrejka " - "Philipp " - "Quirin Pamp " - - "Richard " + - "Richard Stempfl " - "Sam " - "Sean O'Keeffe " - "TTherouanne " @@ -52,7 +52,7 @@ authors: - "metalcated " - "russianguppie <46544650+russianguppie@users.noreply.github.com>" - "willtome " -version: "1.1.0" +version: "1.2.0" license: - "GPL-3.0-or-later" tags: From 1ac1c6338ad17678ccd17168a089c4314b130614 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 4 Sep 2020 07:58:04 +0200 Subject: [PATCH 87/88] changelog branding --- CHANGELOG.rst | 112 +++++++++++++++++++------------------- Makefile | 2 +- changelogs/changelog.yaml | 2 +- changelogs/config.yaml | 2 +- 4 files changed, 59 insertions(+), 59 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c0c855a8..aa0aa70c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,5 +1,5 @@ ================================ -theforeman.foreman Release Notes +redhat.satellite Release Notes ================================ .. contents:: Topics @@ -43,7 +43,7 @@ Bugfixes New Modules ----------- -- theforeman.foreman.http_proxy - Manage HTTP Proxies +- redhat.satellite.http_proxy - Manage HTTP Proxies v1.0.1 ====== @@ -60,7 +60,7 @@ v1.0.0 Release Summary --------------- -This is the first stable release of the ``theforeman.foreman`` collection. +This is the first stable release of the ``redhat.satellite`` collection. Breaking Changes / Porting Guide @@ -80,56 +80,56 @@ Breaking Changes / Porting Guide New Modules ----------- -- theforeman.foreman.activation_key - Manage Activation Keys -- theforeman.foreman.architecture - Manage Architectures -- theforeman.foreman.auth_source_ldap - Manage LDAP Authentication Sources -- theforeman.foreman.bookmark - Manage Bookmarks -- theforeman.foreman.compute_attribute - Manage Compute Attributes -- theforeman.foreman.compute_profile - Manage Compute Profiles -- theforeman.foreman.compute_resource - Manage Compute Resources -- theforeman.foreman.config_group - Manage (Puppet) Config Groups -- theforeman.foreman.content_credential - Manage Content Credentials -- theforeman.foreman.content_upload - Upload content to a repository -- theforeman.foreman.content_view - Manage Content Views -- theforeman.foreman.content_view_filter - Manage Content View Filters -- theforeman.foreman.content_view_version - Manage Content View Versions -- theforeman.foreman.domain - Manage Domains -- theforeman.foreman.external_usergroup - Manage External User Groups -- theforeman.foreman.global_parameter - Manage Global Parameters -- theforeman.foreman.hardware_model - Manage Hardware Models -- theforeman.foreman.host - Manage Hosts -- theforeman.foreman.host_collection - Manage Host Collections -- theforeman.foreman.host_power - Manage Power State of Hosts -- theforeman.foreman.hostgroup - Manage Hostgroups -- theforeman.foreman.image - Manage Images -- theforeman.foreman.installation_medium - Manage Installation Media -- theforeman.foreman.job_template - Manage Job Templates -- theforeman.foreman.lifecycle_environment - Manage Lifecycle Environments -- theforeman.foreman.location - Manage Locations -- theforeman.foreman.operatingsystem - Manage Operating Systems -- theforeman.foreman.organization - Manage Organizations -- theforeman.foreman.os_default_template - Manage Default Template Associations To Operating Systems -- theforeman.foreman.partition_table - Manage Partition Table Templates -- theforeman.foreman.product - Manage Products -- theforeman.foreman.provisioning_template - Manage Provisioning Templates -- theforeman.foreman.puppet_environment - Manage Puppet Environments -- theforeman.foreman.realm - Manage Realms -- theforeman.foreman.redhat_manifest - Interact with a Red Hat Satellite Subscription Manifest -- theforeman.foreman.repository - Manage Repositories -- theforeman.foreman.repository_set - Enable/disable Repositories in Repository Sets -- theforeman.foreman.repository_sync - Sync a Repository or Product -- theforeman.foreman.resource_info - Gather information about resources -- theforeman.foreman.role - Manage Roles -- theforeman.foreman.scap_content - Manage SCAP content -- theforeman.foreman.scap_tailoring_file - Manage SCAP Tailoring Files -- theforeman.foreman.scc_account - Manage SUSE Customer Center Accounts -- theforeman.foreman.scc_product - Subscribe SUSE Customer Center Account Products -- theforeman.foreman.setting - Manage Settings -- theforeman.foreman.smart_class_parameter - Manage Smart Class Parameters -- theforeman.foreman.snapshot - Manage Snapshots -- theforeman.foreman.subnet - Manage Subnets -- theforeman.foreman.subscription_manifest - Manage Subscription Manifests -- theforeman.foreman.sync_plan - Manage Sync Plans -- theforeman.foreman.templates_import - Sync Templates from a repository -- theforeman.foreman.user - Manage Users -- theforeman.foreman.usergroup - Manage User Groups +- redhat.satellite.activation_key - Manage Activation Keys +- redhat.satellite.architecture - Manage Architectures +- redhat.satellite.auth_source_ldap - Manage LDAP Authentication Sources +- redhat.satellite.bookmark - Manage Bookmarks +- redhat.satellite.compute_attribute - Manage Compute Attributes +- redhat.satellite.compute_profile - Manage Compute Profiles +- redhat.satellite.compute_resource - Manage Compute Resources +- redhat.satellite.config_group - Manage (Puppet) Config Groups +- redhat.satellite.content_credential - Manage Content Credentials +- redhat.satellite.content_upload - Upload content to a repository +- redhat.satellite.content_view - Manage Content Views +- redhat.satellite.content_view_filter - Manage Content View Filters +- redhat.satellite.content_view_version - Manage Content View Versions +- redhat.satellite.domain - Manage Domains +- redhat.satellite.external_usergroup - Manage External User Groups +- redhat.satellite.global_parameter - Manage Global Parameters +- redhat.satellite.hardware_model - Manage Hardware Models +- redhat.satellite.host - Manage Hosts +- redhat.satellite.host_collection - Manage Host Collections +- redhat.satellite.host_power - Manage Power State of Hosts +- redhat.satellite.hostgroup - Manage Hostgroups +- redhat.satellite.image - Manage Images +- redhat.satellite.installation_medium - Manage Installation Media +- redhat.satellite.job_template - Manage Job Templates +- redhat.satellite.lifecycle_environment - Manage Lifecycle Environments +- redhat.satellite.location - Manage Locations +- redhat.satellite.operatingsystem - Manage Operating Systems +- redhat.satellite.organization - Manage Organizations +- redhat.satellite.os_default_template - Manage Default Template Associations To Operating Systems +- redhat.satellite.partition_table - Manage Partition Table Templates +- redhat.satellite.product - Manage Products +- redhat.satellite.provisioning_template - Manage Provisioning Templates +- redhat.satellite.puppet_environment - Manage Puppet Environments +- redhat.satellite.realm - Manage Realms +- redhat.satellite.redhat_manifest - Interact with a Red Hat Satellite Subscription Manifest +- redhat.satellite.repository - Manage Repositories +- redhat.satellite.repository_set - Enable/disable Repositories in Repository Sets +- redhat.satellite.repository_sync - Sync a Repository or Product +- redhat.satellite.resource_info - Gather information about resources +- redhat.satellite.role - Manage Roles +- redhat.satellite.scap_content - Manage SCAP content +- redhat.satellite.scap_tailoring_file - Manage SCAP Tailoring Files +- redhat.satellite.scc_account - Manage SUSE Customer Center Accounts +- redhat.satellite.scc_product - Subscribe SUSE Customer Center Account Products +- redhat.satellite.setting - Manage Settings +- redhat.satellite.smart_class_parameter - Manage Smart Class Parameters +- redhat.satellite.snapshot - Manage Snapshots +- redhat.satellite.subnet - Manage Subnets +- redhat.satellite.subscription_manifest - Manage Subscription Manifests +- redhat.satellite.sync_plan - Manage Sync Plans +- redhat.satellite.templates_import - Sync Templates from a repository +- redhat.satellite.user - Manage Users +- redhat.satellite.usergroup - Manage User Groups diff --git a/Makefile b/Makefile index bde48d3d..caba91cb 100644 --- a/Makefile +++ b/Makefile @@ -118,7 +118,7 @@ doc: $(MANIFEST) make -C docs html branding: - sed -i 's/theforeman\.foreman/redhat.satellite/g' plugins/*/*.py tests/inventory/tests.foreman.yml tests/test_module_state.py tests/test_playbooks/*.yml + sed -i 's/theforeman\.foreman/redhat.satellite/g' plugins/*/*.py tests/inventory/tests.foreman.yml tests/test_module_state.py tests/test_playbooks/*.yml changelogs/config.yaml changelogs/changelog.yaml CHANGELOG.rst sed -i 's/foreman.example.com/satellite.example.com/g' plugins/*/*.py FORCE: diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index a5b64b31..d7e2de99 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -15,7 +15,7 @@ releases: * foreman_model to hardware_model * foreman_environment to puppet_environment release_summary: | - This is the first stable release of the ``theforeman.foreman`` collection. + This is the first stable release of the ``redhat.satellite`` collection. modules: - description: Manage Activation Keys name: activation_key diff --git a/changelogs/config.yaml b/changelogs/config.yaml index 0c1fe061..966cb843 100644 --- a/changelogs/config.yaml +++ b/changelogs/config.yaml @@ -26,6 +26,6 @@ sections: - Bugfixes - - known_issues - Known Issues -title: theforeman.foreman +title: redhat.satellite trivial_section_name: trivial use_fqcn: true From a1627f897196af7f552ba106ae542636d9b787d2 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 4 Sep 2020 08:06:15 +0200 Subject: [PATCH 88/88] correct test config --- tests/conftest.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 22e38033..6b5de8e2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -50,8 +50,6 @@ 'role', 'scap_content', 'scap_tailoring_file', - 'scc_account', - 'scc_product', 'setting', 'smart_class_parameter', 'subnet',