Skip to content

Latest commit

 

History

History
563 lines (286 loc) · 10.7 KB

tenant_info_module.rst

File metadata and controls

563 lines (286 loc) · 10.7 KB
orphan:

morpheus.core.tenant_info module -- Retrieves Tenant Info

Note

This module is part of the morpheus.core collection (version 0.7.1).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install morpheus.core.

To use it in a playbook, specify: morpheus.core.tenant_info.

.. rst-class:: ansible-version-added

New in morpheus.core 0.7.0

  • Returns information about Morpheus Tenants.
.. tabularcolumns:: \X{1}{3}\X{2}{3}

Parameter Comments
.. rst-class:: ansible-option-title

account_name

.. ansible-option-type-line::

  :ansible-option-type:`string`

Filter tenants by account name.

.. rst-class:: ansible-option-title

account_number

.. ansible-option-type-line::

  :ansible-option-type:`string`

Filter tenants by account number.

.. rst-class:: ansible-option-title

customer_number

.. ansible-option-type-line::

  :ansible-option-type:`string`

Filter tenants by customer number.

.. rst-class:: ansible-option-title

id

.. ansible-option-type-line::

  :ansible-option-type:`integer`

Return specific object by id.

.. rst-class:: ansible-option-title

name

.. ansible-option-type-line::

  :ansible-option-type:`string`

Filter by name.

.. rst-class:: ansible-option-title

regex_name

.. ansible-option-type-line::

  :ansible-option-type:`boolean`

.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}

Attribute Support Description
.. rst-class:: ansible-option-title

check_mode

Can run in check_mode and return changed status prediction without modifying target

.. rst-class:: ansible-option-title

diff_mode

Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode

.. rst-class:: ansible-option-title

platform

Target OS/families that can be operated against

- name: Get Info for a Specific Tenant by id
  morpheus.core.tenant_info:
    id: 50

- name: Get Tenants Matching Regex Name
  morpheus.core.tenant_info:
    name: ^tenant.*$
    regex_name: true

- name: Get Tenant with Matching Customer Number
  morpheus.core.tenant_info:
    customer_number: T3ST

Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this module:

.. tabularcolumns:: \X{1}{3}\X{2}{3}

Key Description
.. rst-class:: ansible-option-title

tenants

.. ansible-option-type-line::

  :ansible-option-type:`list` / :ansible-option-elements:`elements=string`

Authors

  • James Riach (@McGlovin1337)

Collection links

.. ansible-links::

  - title: "Repository (Sources)"
    url: "https://www.github.com/gomorpheus/ansible-collection-morpheus-core"
    external: true