W3cubDocs

/Ansible

netapp_e_host - manage eseries hosts

New in version 2.2.

Synopsis

Create, update, remove hosts on NetApp E-series storage arrays

Options

parameter required default choices comments
api_password
yes
The password to authenticate with the SANtricity WebServices Proxy or embedded REST API.
api_url
yes
The url to the SANtricity WebServices Proxy or embedded REST API.
api_username
yes
The username to authenticate with the SANtricity WebServices Proxy or embedded REST API.
group
no
the group you want the host to be a member of
host_type_index
yes
The index that maps to host type you wish to create. It is recommended to use the netapp_e_facts module to gather this information. Alternatively you can use the WSP portal to retrieve the information.
name
yes
If the host doesnt yet exist, the label to assign at creation time.
If the hosts already exists, this is what is used to identify the host to apply any desired changes
ports
no
a list of of dictionaries of host ports you wish to associate with the newly created host
ssid
yes
the id of the storage array you wish to act against
validate_certs
no True
Should https certificates be validated?

Examples

- name: Set Host Info
  netapp_e_host:
    ssid: "{{ ssid }}"
    api_url: "{{ netapp_api_url }}"
    api_username: "{{ netapp_api_username }}"
    api_password: "{{ netapp_api_password }}"
    name: "{{ host_name }}"
    host_type_index: "{{ host_type_index }}"

Return Values

Common return values are documented here Common Return Values, the following are the fields unique to this module:

name description returned type sample
msg Success message success string The host has been created.

This is an Extras Module

For more information on what this means please read Extras Modules

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.

© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/netapp_e_host_module.html