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/mso_tenant.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys5
---
module: mso_tenant
short_description: Manage tenants
description:
- Manage tenants on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '2.8'
options:
  tenant:
    description:
    - The name of the tenant.
    type: str
    required: yes
    aliases: [ name ]
  display_name:
    description:
    - The name of the tenant to be displayed in the web UI.
    type: str
    required: yes
  description:
    description:
    - The description for this tenant.
    type: str
  users:
    description:
    - A list of associated users for this tenant.
    - Using this property will replace any existing associated users.
    type: list
  sites:
    description:
    - A list of associated sites for this tenant.
    - Using this property will replace any existing associated sites.
    type: list
  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: mso
sM
- name: Add a new tenant
  mso_tenant:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    tenant: north_europe
    display_name: North European Datacenter
    description: This tenant manages the NEDC environment.
    state: present
  delegate_to: localhost

- name: Remove a tenant
  mso_tenant:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    tenant: north_europe
    state: absent
  delegate_to: localhost

- name: Query a tenant
  mso_tenant:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    tenant: north_europe
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all tenants
  mso_tenant:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_spectissubsetcC`sXt�}|jdtdd�dtdd�dtddddg�dtdd	�d
tdd	�dtdddd
ddd
dg��td|dtddddggdd
dggg�}|jd}|jd}|jd}|jd}t|�}|j|jd
�}|j|jd�}d}	d}
|r�|j
|
d|�|_|jr�|jd}	djd|	�}
q�n|j
|
�|_|dkr�n�|dkr�|j|_|jrJ|jr�i|_q�|j|
dd�|_qJnM|d
krJ|j|_td|d|	d|d|d|d|�}|j|dt�|jjd�dkr}||jd<n|jjd�dkr�tdd�g|jd<n|jrt|j|j�sG|jr�|j|_q|j|
ddd |j�|_qGqJ|jr&|j|_qJ|j|
dd!d |j�|_n|j�dS("Ntdescriptionttypetstrtdisplay_namettenanttaliasestnametuserstlisttsiteststatetdefaulttpresenttchoicestabsenttqueryt
argument_spectsupports_check_modetrequired_ifttenantstidstenants/{id}tmethodtDELETEtdisplayNametsiteAssociationstuserAssociationstcollatetuserIdt0000ffff0000000000000020tPUTtdatatPOST(RtupdatetdictR	tTruetparamsR
tlookup_sitestlookup_userstNonetget_objtexistingtformatt
query_objstprevioust
check_modetrequesttsanitizetsenttgetRtproposedt	exit_json(RtmoduleR
RRRtmsoRRt	tenant_idtpathtpayload((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_tenant.pytmainksv		%



	
					'	$t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	t$ansible.module_utils.network.aci.msoR
RRREt__name__(((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_tenant.pyt<module>s


-)	\

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