hitachivantara.vspone_block.vsp.hv_hg_facts module – Retrieves host group information from a specified VSP block storage system.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.8.1).
You might already have this collection installed if you are using the ansible package. 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 hitachivantara.vspone_block. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: hitachivantara.vspone_block.vsp.hv_hg_facts.
New in hitachivantara.vspone_block 3.0.0
Synopsis
- This module fetches detailed information about host groups configured within a given VSP block storage system.
- For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/hostgroup_facts.yml
Requirements
The below requirements are needed on the host that executes this module.
- python >= 3.9
Parameters
Parameter | Comments |
|---|---|
connection_info dictionary / required | Information required to establish a connection to the storage system. |
|
address string / required |
IP address or hostname of the storage system. |
|
api_token string |
Token used to operate on locked resources. |
|
connection_type string |
Type of connection to the storage system. Choices:
|
|
password string |
Password for authentication. This is a required field. |
|
username string |
Username for authentication. This is a required field. |
spec dictionary | Specification for retrieving Host Group information. |
|
host_group_number integer |
Filters the host groups to those associated with the specified host group number. Required for the Get hostgroup details using hostgroup number task. |
|
lun integer |
Filters the host groups to those associated with the specified LUN. Required for the Get hostgroup details with specific LUN number task. |
|
name string |
If specified, filters the results to include only the host groups with this name. Required for the Get host groups of specific ports with the same host group name /Get hostgroup details using hostgroup name tasks. |
|
port_ids aliases: ports list / elements=string |
Filters the host groups to those associated with the specified Storage FC ports. Required for the Get host groups of specific port_ids/Get host groups of specific port_ids with the same host group name /Get host groups of specific port_ids, including WWNs and LDEVs/Get hostgroup details using hostgroup number /Get hostgroup details using hostgroup name/Get hostgroup details with specific LUN number tasks. |
|
query list / elements=string |
Determines what information to return about the host groups. Can specify ‘wwns’ for HBA WWNs, ‘ldevs’ for mapped LDEVs, or both. Required for the Get host groups of specific port_ids, including WWNs and LDEVs task. Choices:
Default: |
storage_system_info dictionary | Information about the storage system. This field is an optional field. |
|
serial string |
The serial number of the storage system. |
Attributes
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full | Determines if the module should run in check mode. |
Notes
Note
- The output parameters
entitlement_status,subscriber_idandpartner_idwere removed in version 3.4.0. They were also deprecated due to internal API simplification and are no longer supported. - Connection type
gatewaywas removed starting from version 3.4.0. Please use an earlier version if you require this connection type.
Examples
- name: Get all host groups
hitachivantara.vspone_block.vsp.hv_hg_facts:
connection_info:
address: storage1.company.com
username: "dummy_user"
password: "dummy_password"
- name: Get Host Groups of specific ports
hitachivantara.vspone_block.vsp.hv_hg_facts:
connection_info:
address: storage1.company.com
username: "dummy_user"
password: "dummy_password"
spec:
port_ids: ['CL1-A', 'CL2-B']
Returned Facts
Facts returned by this module are added/updated in the hostvars host facts and can be referenced by name just like any other host fact. They do not need to be registered in order to use them.
Key | Description |
|---|---|
hostGroups list / elements=dictionary | List of host groups retrieved from the storage system. Returned: always |
|
host_group_id integer |
ID of the host group. Returned: success Sample: |
|
host_group_name string |
Name of the host group. Returned: success Sample: |
|
host_mode string |
Host mode of the host group. Returned: success Sample: |
|
host_mode_options list / elements=dictionary |
List of host mode options. Returned: success |
|
host_mode_option string |
Host mode option. Returned: success Sample: |
|
host_mode_option_number integer |
Host mode option number. Returned: success Sample: |
|
lun_paths list / elements=dictionary |
List of LUN paths. Returned: success |
|
asymmetric_access_state string |
Asymmetric access state. Returned: success Sample: |
|
host_group_number integer |
Host group number. Returned: success Sample: |
|
host_mode string |
Host mode for the LUN path. Returned: success Sample: |
|
host_mode_options list / elements=dictionary |
List of host mode options for the LUN path. Returned: success |
|
is_alua_enabled boolean |
Whether ALUA is enabled. Returned: success Sample: |
|
is_command_device boolean |
Whether this is a command device. Returned: success Sample: |
|
ldev_id integer |
LDEV ID. Returned: success Sample: |
|
ldev_id_hex string |
LDEV ID in hexadecimal format. Returned: success Sample: |
|
lu_host_reserve dictionary |
LU host reserve information. Returned: success |
|
aca_reserve boolean |
ACA reserve status. Returned: success Sample: |
|
mainframe boolean |
Mainframe reserve status. Returned: success Sample: |
|
open_system boolean |
Open system reserve status. Returned: success Sample: |
|
persistent boolean |
Persistent reserve status. Returned: success Sample: |
|
pgr_key boolean |
PGR key status. Returned: success Sample: |
|
lun integer |
LUN number. Returned: success Sample: |
|
lun_id string |
LUN ID. Returned: success Sample: |
|
port_id string |
Port ID for the LUN path. Returned: success Sample: |
|
port_id string |
Port associated with the host group. Returned: success Sample: |
|
resource_group_id integer |
Resource group ID. Returned: success Sample: |
|
wwns list / elements=dictionary |
List of WWNs. Returned: success |
|
id string |
WWN ID. Returned: success Sample: |
|
name string |
Name associated with the WWN. Returned: success Sample: |
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/hitachivantara/vspone_block/vsp.hv_hg_facts_module.html