Anons79 Mini Shell

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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	y&ddl
mZddlZ
eZWnek
r�eZnXdd
lmZddlmZmZd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys�	
---
module: aci_aaa_user
short_description: Manage AAA users (aaa:User)
description:
- Manage AAA users on Cisco ACI fabrics.
requirements:
- python-dateutil
version_added: '2.5'
options:
  aaa_password:
    description:
    - The password of the locally-authenticated user.
    type: str
  aaa_password_lifetime:
    description:
    - The lifetime of the locally-authenticated user password.
    type: int
  aaa_password_update_required:
    description:
    - Whether this account needs password update.
    type: bool
  aaa_user:
    description:
    - The name of the locally-authenticated user user to add.
    type: str
    aliases: [ name, user ]
  clear_password_history:
    description:
    - Whether to clear the password history of a locally-authenticated user.
    type: bool
  description:
    description:
    - Description for the AAA user.
    type: str
    aliases: [ descr ]
  email:
    description:
    - The email address of the locally-authenticated user.
    type: str
  enabled:
    description:
    - The status of the locally-authenticated user account.
    type: bool
  expiration:
    description:
    - The expiration date of the locally-authenticated user account.
    type: str
  expires:
    description:
    - Whether to enable an expiration date for the locally-authenticated user account.
    type: bool
  first_name:
    description:
    - The first name of the locally-authenticated user.
    type: str
  last_name:
    description:
    - The last name of the locally-authenticated user.
    type: str
  phone:
    description:
    - The phone number of the locally-authenticated user.
    type: str
  state:
    description:
    - Use C(present) or C(absent) for adding or removing.
    - Use C(query) for listing an object or multiple objects.
    type: str
    choices: [ absent, present, query ]
    default: present
extends_documentation_fragment: aci
notes:
- This module is not idempotent when C(aaa_password) is being used
  (even if that password was already set identically). This
  appears to be an inconsistency wrt. the idempotent nature
  of the APIC REST API. The vendor has been informed.
  More information in :ref:`the ACI documentation <aci_guide_known_issues>`.
seealso:
- module: aci_aaa_user_certificate
- name: APIC Management Information Model reference
  description: More information about the internal APIC class B(aaa:User).
  link: https://developer.cisco.com/docs/apic-mim-ref/
author:
- Dag Wieers (@dagwieers)
sh
- name: Add a user
  aci_aaa_user:
    host: apic
    username: admin
    password: SomeSecretPassword
    aaa_user: dag
    aaa_password: AnotherSecretPassword
    expiration: never
    expires: no
    email: [email protected]
    phone: 1-234-555-678
    first_name: Dag
    last_name: Wieers
    state: present
  delegate_to: localhost

- name: Remove a user
  aci_aaa_user:
    host: apic
    username: admin
    password: SomeSecretPassword
    aaa_user: dag
    state: absent
  delegate_to: localhost

- name: Query a user
  aci_aaa_user:
    host: apic
    username: admin
    password: SomeSecretPassword
    aaa_user: dag
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all users
  aci_aaa_user:
    host: apic
    username: admin
    password: SomeSecretPassword
    state: query
  delegate_to: localhost
  register: query_result
s�

current:
  description: The existing configuration from the APIC after the module has finished
  returned: success
  type: list
  sample:
    [
        {
            "fvTenant": {
                "attributes": {
                    "descr": "Production environment",
                    "dn": "uni/tn-production",
                    "name": "production",
                    "nameAlias": "",
                    "ownerKey": "",
                    "ownerTag": ""
                }
            }
        }
    ]
error:
  description: The error information as returned from the APIC
  returned: failure
  type: dict
  sample:
    {
        "code": "122",
        "text": "unknown managed object class foo"
    }
raw:
  description: The raw output returned by the APIC REST API (xml or json)
  returned: parse error
  type: str
  sample: '<?xml version="1.0" encoding="UTF-8"?><imdata totalCount="1"><error code="122" text="unknown managed object class foo"/></imdata>'
sent:
  description: The actual/minimal configuration pushed to the APIC
  returned: info
  type: list
  sample:
    {
        "fvTenant": {
            "attributes": {
                "descr": "Production environment"
            }
        }
    }
previous:
  description: The original configuration from the APIC before the module has started
  returned: info
  type: list
  sample:
    [
        {
            "fvTenant": {
                "attributes": {
                    "descr": "Production",
                    "dn": "uni/tn-production",
                    "name": "production",
                    "nameAlias": "",
                    "ownerKey": "",
                    "ownerTag": ""
                }
            }
        }
    ]
proposed:
  description: The assembled configuration from the user-provided parameters
  returned: info
  type: dict
  sample:
    {
        "fvTenant": {
            "attributes": {
                "descr": "Production environment",
                "name": "production"
            }
        }
    }
filter_string:
  description: The filter string used for the request
  returned: failure or debug
  type: str
  sample: '?rsp-prop-include=config-only'
method:
  description: The HTTP method used for the request to the APIC
  returned: failure or debug
  type: str
  sample: POST
response:
  description: The HTTP response from the APIC
  returned: failure or debug
  type: str
  sample: OK (30 bytes)
status:
  description: The HTTP status from the APIC
  returned: failure or debug
  type: int
  sample: 200
url:
  description: The HTTP url used for the request to the APIC
  returned: failure or debug
  type: str
  sample: https://10.11.12.13/api/mo/uni/tn-production.json
(ttzutcN(t
AnsibleModule(t	ACIModuletaci_argument_specc%C`s�t�}|jdtdddt�dtdd�dtdd�d	tddd
dg�dtdd�d
tddd
dg�dtdd�dtdd�dtdd�dtdd�dtdd�dtdd�dtdd�dtddddddddg��td|dtdddd	ggddd	ggdtdggg�}t|�}ts|jdd �n|jd}|jd}|j	|jd�}|jd	}|j	|jdd!d"�}|jd
}|jd}	|j	|jdd#d$�}
|j	|jd�}|jd}|jd}
|jd}|jd}|jd}|dk	r�|d%kr�y.|jtj
j|�jd&t���}Wq�tk
r�}|jdd'|jd|f�q�Xn|jd(td)d*d+d,j|�d-|d.i|d6��|j�|dkr�|jd)d*d/td0|
d1|d|d|	d|d|d2|d3|
d|d|d4|d5|d6|�
�|jd)d*�|j�n|dkr�|j�n|j�dS(7Ntaaa_passwordttypetstrtno_logtaaa_password_lifetimetinttaaa_password_update_requiredtbooltaaa_usertaliasestnametclear_password_historytdescriptiontdescrtemailtenabledt
expirationtexpirest
first_namet	last_nametphonetstatetdefaulttpresenttchoicestabsenttqueryt
argument_spectsupports_check_modetrequired_iftmsgs!dateutil required for this moduletyestnotactivetinactivetneverttzinfos$Failed to parse date format '%s', %st
root_classt	aci_classtaaaUsertaci_rnsuserext/user-{0}t
module_objectt
target_filtertclass_configt
accountStatustclearPwdHistoryt	firstNametlastNametpwdtpwdLifeTimetpwdUpdateRequired(RtupdatetdicttTrueR	R
tHAS_DATEUTILt	fail_jsontparamstbooleantNonetiso8601_formattdateutiltparsertparsetreplaceRt	Exceptiont
construct_urltformattget_existingtpayloadtget_difftpost_configt
delete_configt	exit_json(R'tmoduletaciRRRRRRRRRRRR R!Rte((sL/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_aaa_user.pytmains�		%









.(	
	


t__main__(t
__future__RRRR
t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtdateutil.tzRtdateutil.parserRHRARBtImportErrortFalsetansible.module_utils.basicR	t$ansible.module_utils.network.aci.aciR
RRXt__name__(((sL/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_aaa_user.pyt<module>s$


W.i


	_

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