damex.incus.incus_storage_volume_info module – Ensure Incus storage volume information is gathered
Note
This module is part of the damex.incus collection (version 1.8.9).
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 damex.incus.
To use it in a playbook, specify: damex.incus.incus_storage_volume_info.
Synopsis
Gather information about Incus custom storage volumes via the Incus REST API.
Returns information about all custom volumes in a pool or a specific volume.
Storage volumes are project-scoped resources within a storage pool.
Parameters
Parameter |
Comments |
|---|---|
Path to the client certificate for remote authentication. Requires |
|
Path to the client key for remote authentication. Requires |
|
Name of the storage volume to query. If not specified, all custom volumes in the pool are returned. |
|
Name of the storage pool to query volumes from. |
|
Incus project to query. Default: |
|
Path to the server certificate for remote verification. Requires |
|
Path to the Incus Unix socket for local connections. Default: |
|
Token for remote authentication. Requires |
|
URL of the remote Incus server (e.g. https://host:8443). If specified, connects via HTTPS instead of Unix socket. |
|
Whether to validate the server TLS certificate. Choices:
|
Examples
- name: Ensure storage volume information is gathered
damex.incus.incus_storage_volume_info:
pool: default
register: result
- name: Ensure specific storage volume information is gathered
damex.incus.incus_storage_volume_info:
pool: default
name: data
register: result
- name: Ensure storage volume information is gathered from project
damex.incus.incus_storage_volume_info:
pool: default
project: myproject
register: result
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
List of storage volume information. Returned: always |
|
Storage volume configuration. Returned: success |
|
Content type (filesystem or block). Returned: success |
|
Storage volume description. Returned: success |
|
Name of the storage volume. Returned: success |