Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/remote_management/intersight/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/remote_management/intersight/_intersight_facts.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZmZddl
mZd
�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys0
---
module: intersight_info
short_description: Gather information about Intersight
description:
- Gathers information about servers in L(Cisco Intersight,https://intersight.com).
- This module was called C(intersight_facts) before Ansible 2.9. The usage did not change.
extends_documentation_fragment: intersight
options:
  server_names:
    description:
    - Server names to retrieve information from.
    - An empty list will return all servers.
    type: list
    required: yes
author:
- David Soper (@dsoper2)
- CiscoUcs (@CiscoUcs)
version_added: '2.8'
s|
- name: Get info for all servers
  intersight_info:
    api_private_key: ~/Downloads/SecretKey.txt
    api_key_id: 64612d300d0982/64612d300d0b00/64612d300d3650
    server_names:
- debug:
    msg: "server name {{ item.Name }}, moid {{ item.Moid }}"
  loop: "{{ intersight_servers }}"
  when: intersight_servers is defined

- name: Get info for servers by name
  intersight_info:
    api_private_key: ~/Downloads/SecretKey.txt
    api_key_id: 64612d300d0982/64612d300d0b00/64612d300d3650
    server_names:
      - SJC18-L14-UCS1-1
- debug:
    msg: "server moid {{ intersight_servers[0].Moid }}"
  when: intersight_servers[0] is defined
s�
intersight_servers:
  description: A list of Intersight Servers.  See L(Cisco Intersight,https://intersight.com/apidocs) for details.
  returned: always
  type: complex
  contains:
    Name:
      description: The name of the server.
      returned: always
      type: str
      sample: SJC18-L14-UCS1-1
    Moid:
      description: The unique identifier of this Managed Object instance.
      returned: always
      type: str
      sample: 5978bea36ad4b000018d63dc
(tIntersightModuletintersight_argument_spec(t
AnsibleModulecC`s�g}|jdr?x)|jdD]}|jd|�q!Wndj|�}idd6dd6i|d6d	d
6d6}|j|�}|jd�S(
Ntserver_namessName eq '%s's or tgetthttp_methods/compute/PhysicalSummariest
resource_paths$filteri�s$toptquery_paramstResults(tparamstappendtjointcall_apiR(tmodulet
intersightt
query_listtservert	query_strtoptionst
response_dict((sb/usr/lib/python2.7/site-packages/ansible/modules/remote_management/intersight/_intersight_facts.pytget_serversNs
cC`s�t}|jdtdddt��t|dt�}|jdkr\|jddd	�nt|�}|jd
t	||��dS(NRttypetlisttrequiredtsupports_check_modetintersight_factssCThe 'intersight_facts' module has been renamed to 'intersight_info'tversions2.13tintersight_servers(
R	tupdatetdicttTrueR
t_namet	deprecateRt	exit_jsonR(t
argument_specRR((sb/usr/lib/python2.7/site-packages/ansible/modules/remote_management/intersight/_intersight_facts.pytmainas		t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNt1ansible.module_utils.remote_management.intersightRR	tansible.module_utils.basicR
RR+t__name__(((sb/usr/lib/python2.7/site-packages/ansible/modules/remote_management/intersight/_intersight_facts.pyt<module>s


		

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