hitachivantara.vspone_block.sds_block.hv_sds_block_volume_facts module – Retrieves information about Hitachi SDS block storage system volumes.
Note
This module is part of the hitachivantara.vspone_block collection (version 3.4.0).
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.sds_block.hv_sds_block_volume_facts
.
New in hitachivantara.vspone_block 3.0.0
Synopsis
This module retrieves information about storage volumes.
It provides details about a storage volume such as name, type and other details.
For examples go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/sds_block_direct/volume_facts.yml
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.8
Parameters
Parameter |
Comments |
---|---|
Information required to establish a connection to the storage system. |
|
IP address or hostname of the storage system. |
|
Type of connection to the storage system. Choices:
|
|
Password for authentication. |
|
Username for authentication. |
|
Specification for retrieving volume information. |
|
Settings of the data reduction function for volumes. Choices:
|
|
The maximum number of obtained volume information items. Default is 500. Default: |
|
The names of the volumes. |
|
The nickname of the volume. |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Determines if the module should run in check mode. |
Examples
- name: Get volumes by default count
hitachivantara.vspone_block.sds_block.hv_sds_block_volume_facts:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
- name: Get volumes by count
hitachivantara.vspone_block.sds_block.hv_sds_block_volume_facts:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
count: 200
- name: Get volumes by names
hitachivantara.vspone_block.sds_block.hv_sds_block_volume_facts:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
names: ['test-volume1', 'test-volume2']
- name: Get volumes by other filters
hitachivantara.vspone_block.sds_block.hv_sds_block_volume_facts:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
count: 200
capacity_saving: 'Disabled'
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 |
|
Information about the compute nodes connected to the volume. Returned: success |
|
Unique identifier for the compute node. Returned: success Sample: |
|
Name of the compute node. Returned: success Sample: |
|
Detailed information about the volume. Returned: success |
|
Capacity saving status. Returned: success Sample: |
|
Effects of data reduction on the volume. Returned: success |
|
Capacity after data reduction. Returned: success Sample: |
|
Capacity before data reduction without system data. Returned: success Sample: |
|
Capacity of system data. Returned: success Sample: |
|
Progress rate of data reduction. Returned: success Sample: |
|
Status of data reduction. Returned: success Sample: |
|
Whether the volume is fully allocated. Returned: success Sample: |
|
Unique identifier for the volume. Returned: success Sample: |
|
NAA identifier for the volume. Returned: success Sample: |
|
Name of the volume. Returned: success Sample: |
|
Nickname of the volume. Returned: success Sample: |
|
Number of servers connected to the volume. Returned: success Sample: |
|
Number of snapshots of the volume. Returned: success Sample: |
|
Identifier of the pool to which the volume belongs. Returned: success Sample: |
|
Name of the pool to which the volume belongs. Returned: success Sample: |
|
Identifier of the protection domain. Returned: success Sample: |
|
Quality of Service parameters for the volume. Returned: success |
|
Upper alert allowable time. Returned: success Sample: |
|
Upper alert time. Returned: success Sample: |
|
Upper limit for IOPS. Returned: success Sample: |
|
Upper limit for transfer rate. Returned: success Sample: |
|
Whether saving mode is enabled. Returned: success Sample: |
|
Snapshot attribute. Returned: success Sample: |
|
Snapshot status. Returned: success Sample: |
|
Status of the volume. Returned: success Sample: |
|
Summary of the volume status. Returned: success Sample: |
|
Identifier of the storage controller. Returned: success Sample: |
|
Total capacity of the volume in MB. Returned: success Sample: |
|
Used capacity of the volume in MB. Returned: success Sample: |
|
Volume number. Returned: success Sample: |
|
Type of the volume. Returned: success Sample: |
|
Identifier of the VPS. Returned: success Sample: |
|
Name of the VPS. Returned: success Sample: |