hitachivantara.vspone_block.sds_block.hv_sds_block_volume_facts module – Retrieves information about VSP One SDS Block and Cloud systems volumes.
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.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.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. |
|
connection_type string |
Type of connection to the storage system. Choices:
|
|
password string / required |
Password for authentication. This is a required field. |
|
username string / required |
Username for authentication. This is a required field. |
spec dictionary | Specification for retrieving volume information. |
|
capacity_saving string |
Settings of the data reduction function for volumes. Optional for the Get volumes by other filters task. Choices:
|
|
count integer |
The maximum number of obtained volume information items. Default is 500. Required for the Get volumes by count task. Optional for the Get volumes by other filters task. Default: |
|
names list / elements=string |
The names of the volumes. Required for the Get volumes by names task. |
|
nicknames list / elements=string |
The nickname of the volume. Required for the Get volumes by nicknames task. |
|
vps_id string |
The ID of the VPS. |
|
vps_name string |
The name of the VPS. |
Attributes
Attribute | Support | Description |
|---|---|---|
check_mode | 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 |
|---|---|
volumes list / elements=dictionary | List of storage volumes with their attributes. Returned: success |
|
capacity_saving string |
Capacity saving status. Returned: success Sample: |
|
compute_nodes_info list / elements=dictionary |
Information about the compute nodes connected to the volume. Returned: success |
|
id string |
Unique identifier for the compute node. Returned: success Sample: |
|
name string |
Name of the compute node. Returned: success Sample: |
|
data_reduction_effects dictionary |
Effects of data reduction on the volume. Returned: success |
|
post_capacity_data_reduction integer |
Capacity after data reduction. Returned: success Sample: |
|
pre_capacity_data_reduction_without_system_data integer |
Capacity before data reduction without system data. Returned: success Sample: |
|
system_data_capacity integer |
Capacity of system data. Returned: success Sample: |
|
data_reduction_progress_rate string |
Progress rate of data reduction. Returned: success Sample: |
|
data_reduction_status string |
Status of data reduction. Returned: success Sample: |
|
full_allocated boolean |
Whether the volume is fully allocated. Returned: success Sample: |
|
id string |
Unique identifier for the volume. Returned: success Sample: |
|
naa_id string |
NAA identifier for the volume. Returned: success Sample: |
|
name string |
Name of the volume. Returned: success Sample: |
|
nickname string |
Nickname of the volume. Returned: success Sample: |
|
number_of_connecting_servers integer |
Number of servers connected to the volume. Returned: success Sample: |
|
number_of_snapshots integer |
Number of snapshots of the volume. Returned: success Sample: |
|
pool_id string |
Identifier of the pool to which the volume belongs. Returned: success Sample: |
|
pool_name string |
Name of the pool to which the volume belongs. Returned: success Sample: |
|
protection_domain_id string |
Identifier of the protection domain. Returned: success Sample: |
|
qos_param dictionary |
Quality of Service parameters for the volume. Returned: success |
|
upper_alert_allowable_time_in_sec integer |
Upper alert allowable time in seconds. Returned: success Sample: |
|
upper_alert_time boolean |
Upper alert time flag. Returned: success Sample: |
|
upper_limit_for_iops integer |
Upper limit for IOPS. Returned: success Sample: |
|
upper_limit_for_transfer_rate_mb_per_sec integer |
Upper limit for transfer rate in MB/s. Returned: success Sample: |
|
saving_mode string |
Saving mode setting. Returned: success Sample: |
|
snapshot_attribute string |
Snapshot attribute. Returned: success Sample: |
|
snapshot_status string |
Snapshot status. Returned: success Sample: |
|
status string |
Status of the volume. Returned: success Sample: |
|
status_summary string |
Summary of the volume status. Returned: success Sample: |
|
storage_controller_id string |
Identifier of the storage controller. Returned: success Sample: |
|
total_capacity_mb integer |
Total capacity of the volume in MB. Returned: success Sample: |
|
used_capacity_mb integer |
Used capacity of the volume in MB. Returned: success Sample: |
|
volume_number integer |
Volume number. Returned: success Sample: |
|
volume_type string |
Type of the volume. Returned: success Sample: |
|
vps_id string |
Identifier of the VPS. Returned: success Sample: |
|
vps_name string |
Name of the VPS. 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/sds_block.hv_sds_block_volume_facts_module.html