Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/ftd/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_configuration.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
dd
lmZmZmZddlmZddlmZmZmZmZd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: ftd_configuration
short_description: Manages configuration on Cisco FTD devices over REST API
description:
  - Manages configuration on Cisco FTD devices including creating, updating, removing configuration objects,
    scheduling and staring jobs, deploying pending changes, etc. All operations are performed over REST API.
version_added: "2.7"
author: "Cisco Systems, Inc. (@annikulin)"
options:
  operation:
    description:
      - The name of the operation to execute. Commonly, the operation starts with 'add', 'edit', 'get', 'upsert'
       or 'delete' verbs, but can have an arbitrary name too.
    required: true
    type: str
  data:
    description:
      - Key-value pairs that should be sent as body parameters in a REST API call
    type: dict
  query_params:
    description:
      - Key-value pairs that should be sent as query parameters in a REST API call.
    type: dict
  path_params:
    description:
      - Key-value pairs that should be sent as path parameters in a REST API call.
    type: dict
  register_as:
    description:
      - Specifies Ansible fact name that is used to register received response from the FTD device.
    type: str
  filters:
    description:
      - Key-value dict that represents equality filters. Every key is a property name and value is its desired value.
        If multiple filters are present, they are combined with logical operator AND.
    type: dict
s�
- name: Create a network object
  ftd_configuration:
    operation: "addNetworkObject"
    data:
      name: "Ansible-network-host"
      description: "From Ansible with love"
      subType: "HOST"
      value: "192.168.2.0"
      dnsResolution: "IPV4_AND_IPV6"
      type: "networkobject"
      isSystemDefined: false
    register_as: "hostNetwork"

- name: Delete the network object
  ftd_configuration:
    operation: "deleteNetworkObject"
    path_params:
      objId: "{{ hostNetwork['id'] }}"
se
response:
  description: HTTP response returned from the API call.
  returned: success
  type: dict
(t
AnsibleModule(t
Connection(tBaseConfigurationResourcetCheckModeExceptiontFtdInvalidOperationNameError(tValidationError(tconstruct_ansible_factstFtdConfigurationErrortFtdServerErrortFtdUnexpectedResponsecC`s�tdtdddt�dtdd�dtdd�dtdd�d	tdd�d
tdd��}td|dt�}|j}t|j�}t||j�}|d}yA|j||�}|j	d
|j
d|dt||j��Wntk
r}|j
dd|j�n�tk
rN}|j
dd||jf�n�tk
r�}|j
dd||j|jf�nstk
r�}|j
d|jd�nJtk
r�}|j
d|jd�n!tk
r�|j	d
t�nXdS(Nt	operationttypetstrtrequiredtdatatdicttquery_paramstpath_paramstregister_astfilterst
argument_spectsupports_check_modetchangedtresponset
ansible_factstmsgs#Invalid operation name provided: %ssEFailed to execute %s operation because of the configuration error: %ss]Server returned an error trying to execute %s operation. Status code: %s. Server response: %si(RtTrueRtparamsR	t_socket_pathR
t
check_modetexecute_operationt	exit_jsontconfig_changedRRt	fail_jsontoperation_nameRR!RtcodeRRtargsR
RtFalse(tfieldstmoduleR#t
connectiontresourcetop_nametrespte((sQ/usr/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_configuration.pytmainhs<		
 
t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRtansible.module_utils.connectionR	t.ansible.module_utils.network.ftd.configurationR
RRt3ansible.module_utils.network.ftd.fdm_swagger_clientR
t'ansible.module_utils.network.ftd.commonRRRRR5t__name__(((sQ/usr/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_configuration.pyt<module>s


'"	#

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]