def main(): argument_spec = dict( name=dict(type='str'), details_level=dict(type='str', choices=['uid', 'standard', 'full']), limit=dict(type='int'), offset=dict(type='int'), order=dict(type='list', options=dict( ASC=dict(type='str', choices=['name']), DESC=dict(type='str', choices=['name']) )) ) argument_spec.update(checkpoint_argument_spec_for_facts) module = AnsibleModule(argument_spec=argument_spec) api_call_object = "mds" api_call_object_plural_version = "mdss" result = api_call_facts(module, api_call_object, api_call_object_plural_version) module.exit_json(ansible_facts=result)
def main(): argument_spec = dict( name=dict(type='str'), exception_group_uid=dict(type='str'), exception_group_name=dict(type='str'), layer=dict(type='str'), rule_name=dict(type='str'), details_level=dict(type='str', choices=['uid', 'standard', 'full']), filter=dict(type='str'), filter_settings=dict(type='dict', options=dict( search_mode=dict(type='str', choices=['general', 'packet']), packet_search_settings=dict(type='dict', options=dict( expand_group_members=dict(type='bool'), expand_group_with_exclusion_members=dict(type='bool'), match_on_any=dict(type='bool'), match_on_group_with_exclusion=dict(type='bool'), match_on_negate=dict(type='bool') )) )), limit=dict(type='int'), offset=dict(type='int'), order=dict(type='list', options=dict( ASC=dict(type='str', choices=['name']), DESC=dict(type='str', choices=['name']) )), package=dict(type='str'), use_object_dictionary=dict(type='bool'), dereference_group_members=dict(type='bool'), show_membership=dict(type='bool') ) argument_spec.update(checkpoint_argument_spec_for_facts) module = AnsibleModule(argument_spec=argument_spec) api_call_object = "threat-exception" api_call_object_plural_version = "threat-rule-exception-rulebase" result = api_call_facts(module, api_call_object, api_call_object_plural_version) module.exit_json(ansible_facts=result)