Exemplo n.º 1
0
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'),
                         show_membership=dict(type='bool'))
    argument_spec.update(checkpoint_argument_spec_for_facts)

    module = AnsibleModule(argument_spec=argument_spec)

    api_call_object = "network"
    api_call_object_plural_version = "networks"

    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'),
        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 = "administrator"
    api_call_object_plural_version = "administrators"

    result = api_call_facts(module, api_call_object, api_call_object_plural_version)
    module.exit_json(ansible_facts=result)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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'])
        )),
        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 = "application-site-group"
    api_call_object_plural_version = "application-site-groups"

    result = api_call_facts(module, api_call_object, api_call_object_plural_version)
    module.exit_json(ansible_facts=result)