hitachivantara.vspone_block.vsp.hv_ldev_facts module – Retrieves information about logical devices (LDEVs) from Hitachi VSP storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 3.5.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_ldev_facts.
New in hitachivantara.vspone_block 3.0.0
Synopsis
- This module retrieves information about logical devices (LDEVs) from Hitachi VSP storage systems. 
- It provides details such as LDEV IDs, names, and other relevant information. 
- For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/ldev_facts.yml 
Requirements
The below requirements are needed on the host that executes this module.
- python >= 3.9 
Parameters
| Parameter | Comments | 
|---|---|
| Information required to establish a connection to the storage system. | |
| IP address or hostname of the storage system. | |
| This field is used to pass the value of the lock token to operate on locked resources. | |
| Type of connection to the storage system. Choices: 
 | |
| Password for authentication. This is a required field if api_token is not provided. | |
| Username for authentication. This is a required field if api_token is not provided. | |
| Specification for retrieving LDEV information. | |
| Number of LDEVs to retrieve. | |
| Ending LDEV ID for filtering LDEVs. | |
| Flag to retrieve all the additional properties that are not returned with regular LDEV facts output. Choices: 
 | |
| ID of the specific LDEV to retrieve information for. | |
| Name of the LDEV. | |
| Getting all the additional properties of the LDEV facts output is time-consuming. To optimize the performance, you can specify a list of additional properties to be retrieved. This field allows you to specify a list of strings, where each string indicates which additional properties are retrieved. If is_detailed is set to true, this field will be ignored and all additional properties will be retrieved. The supported additional properties are: “cmd_device_settings”, “encryption_settings”, “nvm_subsystem_info”, “qos_settings”, and “snapshots_info”. | |
| Starting LDEV ID for filtering LDEVs. | |
| Information about the storage system. This field is an optional field. | |
| The serial number of the storage system. | 
Attributes
| Attribute | Support | Description | 
|---|---|---|
| Support: full | Determines if the module should run in check mode. | 
Notes
Note
- 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 ldevs
  hitachivantara.vspone_block.vsp.hv_ldev_facts:
    connection_info:
      address: storage1.company.com
      username: "admin"
      password: "password"
- name: Retrieve information about a specific LDEV
  hitachivantara.vspone_block.vsp.hv_ldev_facts:
    connection_info:
      address: storage1.company.com
      username: "admin"
      password: "password"
    spec:
      ldev_id: 123
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 | 
|---|---|
| List of storage volumes with their attributes. Returned: success | |
| Unique identifier for the volume. Returned: success Sample:  | |
| Progress percentage of deduplication and compression. Returned: success Sample:  | |
| Status of deduplication and compression. Returned: success Sample:  | |
| Mode of deduplication and compression. Returned: success Sample:  | |
| Emulation type of the volume. Returned: success Sample:  | |
| List of host groups associated with the volume. Returned: success Sample:  | |
| Indicates if ALUA is enabled. Returned: success Sample:  | |
| Indicates if the volume is a command device. Returned: success Sample:  | |
| Indicates if data reduction share is enabled. Returned: success Sample:  | |
| Indicates if device group definition is enabled. Returned: success Sample:  | |
| Indicates if encryption is enabled. Returned: success Sample:  | |
| Indicates if security is enabled. Returned: success Sample:  | |
| Indicates if user authentication is enabled. Returned: success Sample:  | |
| Indicates if the volume is write-protected. Returned: success Sample:  | |
| Indicates if the volume is write-protected by key. Returned: success Sample:  | |
| List of associated iSCSI targets. Returned: success Sample:  | |
| Logical Device ID. Returned: success Sample:  | |
| Logical Unit ID in hexadecimal format. Returned: success Sample:  | |
| Name of the volume. Returned: success Sample:  | |
| Number of ports associated with the volume. Returned: success Sample:  | |
| List of associated NVM subsystems. Returned: success Sample:  | |
| Parity group ID of the volume. Returned: success Sample:  | |
| Number of paths to the volume. Returned: success Sample:  | |
| Pool ID where the volume resides. Returned: success Sample:  | |
| Provisioning type of the volume. Returned: success Sample:  | |
| Quality of Service settings for the volume. Returned: success Sample:  | |
| Resource group ID of the volume. Returned: success Sample:  | |
| List of snapshots associated with the volume. Returned: success Sample:  | |
| Current status of the volume. Returned: success Sample:  | |
| Serial number of the storage system. Returned: success Sample:  | |
| Tiering policy applied to the volume. Returned: success Sample:  | |
| Total capacity of the volume. Returned: success Sample:  | |
| Total capacity of the volume in megabytes. Returned: success Sample:  | |
| Used capacity of the volume. Returned: success Sample:  | |
| Used capacity of the volume in megabytes. Returned: success Sample:  | |
| Virtual Logical Device ID. Returned: success Sample:  | 
