예제 #1
0
def main():
    argument_spec = dict(
        name=dict(type='str'),
        comments=dict(type='str'),
        follow_up=dict(type='bool'),
        overrides=dict(type='list',
                       options=dict(action=dict(type='str',
                                                choices=[
                                                    'Threat Cloud: Inactive',
                                                    'Detect',
                                                    'Prevent <br> Core: Drop',
                                                    'Inactive', 'Accept'
                                                ]),
                                    profile=dict(type='str'),
                                    capture_packets=dict(type='bool'),
                                    track=dict(type='str',
                                               choices=[
                                                   'none', 'log', 'alert',
                                                   'mail', 'snmp trap',
                                                   'user alert',
                                                   'user alert 1',
                                                   'user alert 2'
                                               ]))),
        details_level=dict(type='str', choices=['uid', 'standard', 'full']))
    argument_spec.update(checkpoint_argument_spec_for_commands)

    module = AnsibleModule(argument_spec=argument_spec)

    command = "set-threat-protection"

    result = api_command(module, command)
    module.exit_json(**result)
예제 #2
0
def main():
    argument_spec = dict(uid=dict(type='str'))
    argument_spec.update(checkpoint_argument_spec_for_commands)

    module = AnsibleModule(argument_spec=argument_spec)

    command = "publish"

    result = api_command(module, command)
    module.exit_json(**result)
예제 #3
0
def main():
    argument_spec = dict(policy_package=dict(type='str'))
    argument_spec.update(checkpoint_argument_spec_for_commands)

    module = AnsibleModule(argument_spec=argument_spec)

    command = "verify-policy"

    result = api_command(module, command)
    module.exit_json(**result)
예제 #4
0
def main():
    argument_spec = dict(
        package_path=dict(type='str')
    )
    argument_spec.update(checkpoint_argument_spec_for_commands)

    module = AnsibleModule(argument_spec=argument_spec)

    command = "run-ips-update"

    result = api_command(module, command)
    module.exit_json(**result)
def main():
    argument_spec = dict(dependent_domains=dict(type='list'),
                         global_domains=dict(type='list'),
                         details_level=dict(
                             type='str', choices=['uid', 'standard', 'full']))
    argument_spec.update(checkpoint_argument_spec_for_commands)

    module = AnsibleModule(argument_spec=argument_spec)

    command = "assign-global-assignment"

    result = api_command(module, command)
    module.exit_json(**result)
예제 #6
0
def main():
    argument_spec = dict(script_name=dict(type='str'),
                         script=dict(type='str'),
                         targets=dict(type='list'),
                         args=dict(type='str'),
                         comments=dict(type='str'))
    argument_spec.update(checkpoint_argument_spec_for_commands)

    module = AnsibleModule(argument_spec=argument_spec)

    command = "run-script"

    result = api_command(module, command)
    module.exit_json(**result)
예제 #7
0
def main():
    argument_spec = dict(
        targets=dict(type='list'),
        file_content=dict(type='str'),
        file_name=dict(type='str'),
        file_path=dict(type='str'),
        comments=dict(type='str')
    )
    argument_spec.update(checkpoint_argument_spec_for_commands)

    module = AnsibleModule(argument_spec=argument_spec)

    command = "put-file"

    result = api_command(module, command)
    module.exit_json(**result)
예제 #8
0
def main():
    argument_spec = dict(
        policy_package=dict(type='str'),
        targets=dict(type='list'),
        access=dict(type='bool'),
        desktop_security=dict(type='bool'),
        qos=dict(type='bool'),
        threat_prevention=dict(type='bool'),
        install_on_all_cluster_members_or_fail=dict(type='bool'),
        prepare_only=dict(type='bool'),
        revision=dict(type='str'))
    argument_spec.update(checkpoint_argument_spec_for_commands)

    module = AnsibleModule(argument_spec=argument_spec)

    command = "install-policy"

    result = api_command(module, command)
    module.exit_json(**result)