hitachivantara.vspone_block.vsp.hv_vsp_one_volume_facts module – Retrieves facts about Hitachi VSP One storage system volumes.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.2.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.vsp.hv_vsp_one_volume_facts
.
New in hitachivantara.vspone_block 4.2.0
Synopsis
This module gathers information about volumes in Hitachi VSP One storage systems.
It supports filtering by pool, server, volume nickname, capacity, and volume ID.
For usage examples, see https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/vsp_one_volume_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. |
|
Token used to operate on locked resources. |
|
Password for authentication. This is a required field. |
|
Username for authentication. This is a required field. |
|
Specification for the volume task. |
|
Number of volumes. |
|
Maximum total capacity. |
|
Maximum used capacity. |
|
Minimum total capacity. |
|
Minimum used capacity. |
|
Nickname of the volume. |
|
ID of the pool. |
|
Name of the pool. if both pool_id is present, it will ignore this parameter. |
|
ID of the server. |
|
Nickname of the server. if both server_id is present, it will ignore this parameter. |
|
Starting volume ID. |
|
ID of the volume. |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Determines if the module should run in check mode. |
Examples
- name: Get facts for volumes in a specific pool by pool_id
hitachivantara.vspone_block.vsp.hv_vsp_one_volume_facts:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
pool_id: 101
- name: Get facts for volumes in a specific pool by pool_name
hitachivantara.vspone_block.vsp.hv_vsp_one_volume_facts:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
pool_name: "SP01"
- name: Get facts for volumes attached to a server by server_id
hitachivantara.vspone_block.vsp.hv_vsp_one_volume_facts:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
server_id: 2001
- name: Get facts for volumes attached to a server by server_nickname
hitachivantara.vspone_block.vsp.hv_vsp_one_volume_facts:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
server_nickname: "ComputeNode-1"
- name: Get facts for a volume by nickname
hitachivantara.vspone_block.vsp.hv_vsp_one_volume_facts:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
nickname: "RD-volume-0004"
- name: Get facts for volumes with capacity filters
hitachivantara.vspone_block.vsp.hv_vsp_one_volume_facts:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
min_total_capacity: 100
max_total_capacity: 500
min_used_capacity: 50
max_used_capacity: 400
- name: Get facts for a range of volumes by start_volume_id and count
hitachivantara.vspone_block.vsp.hv_vsp_one_volume_facts:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
start_volume_id: 1000
count: 10
- name: Get facts for a specific volume by volume_id
hitachivantara.vspone_block.vsp.hv_vsp_one_volume_facts:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
volume_id: 12345
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 volume information objects. Returned: success |
|
Capacity saving status. Returned: success |
|
Whether compression acceleration is enabled. Returned: success |
|
Compression acceleration status. Returned: success |
|
Free capacity of the volume. Returned: success |
|
Free capacity in MB. Returned: success |
|
ID of the volume. Returned: success |
|
Whether data reduction share is enabled. Returned: success |
|
List of LUNs associated with the volume. Returned: success |
|
Nickname of the volume. Returned: success |
|
Number of servers connected to the volume. Returned: success |
|
Number of snapshots for the volume. Returned: success |
|
ID of the pool. Returned: success |
|
Name of the pool. Returned: success |
|
QoS settings for the volume. Returned: success |
|
Reserved capacity of the volume. Returned: success |
|
Saving setting (e.g., COMPRESSION). Returned: success |
|
Total capacity of the volume. Returned: success |
|
Total capacity in MB. Returned: success |
|
Used capacity of the volume. Returned: success |
|
Used capacity in MB. Returned: success |
|
List of volume types. Returned: success |