hitachivantara.vspone_block.sds_block.hv_sds_block_license_facts module – Get license(s) from SDS Block storage system
Note
This module is part of the hitachivantara.vspone_block collection (version 4.6.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_license_facts.
New in hitachivantara.vspone_block 4.6.0
Synopsis
Get all licenses from SDS Block storage system.
Get a specific license by ID from SDS Block storage system.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/sds_block_direct/sdsb_license_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. |
|
Type of connection to the storage system. Choices:
|
|
Password for authentication. This is a required field. |
|
Username for authentication. This is a required field. |
|
Specification for the license(s) to retrieve. If spec.id is provided, retrieves a single license by ID. If spec is not provided or spec.id is empty, retrieves all licenses. |
|
The unique identifier of the license to retrieve. If not provided, all licenses will be retrieved. |
|
The name of the program product. |
|
Status of the license. Case-insensitive. Valid values is ‘Active’, ‘Warning’, ‘Overwritten’, ‘GracePeriod’, ‘Invalid’. |
|
License status summary. Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Determines if the module should run in check mode. |
Examples
- name: Retrieve all licenses
hitachivantara.vspone_block.sds_block.hv_sds_block_license_facts:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
- name: Retrieve specific license by ID
hitachivantara.vspone_block.sds_block.hv_sds_block_license_facts:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
id: "4a7061b0-8cc0-4379-aec1-23184d26acd7"
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 |
|---|---|
Single license object if spec.id is provided. None if not found. Returned: when spec.id is provided |
|
Dictionary containing all licenses if spec.id is not provided. Returned: when spec.id is not provided |
|
List of license objects. Returned: success |
|
Capacity usage rate. Returns -1 if not set. Returned: success Sample: |
|
Checked out license usage in TiB. Returns -1.0 if not set. Returned: success Sample: |
|
License ID. Returned: success Sample: |
|
Type of license key. Returned: success Sample: |
|
Permitted capacity in TiB. Returns -1.0 if not set. Returned: success Sample: |
|
Name of the licensed program product. Returned: success Sample: |
|
Remaining days until license expiration. Returns -1 if not applicable (perpetual license). Returned: success Sample: |
|
License status. Returned: success Sample: |
|
Summary of license status. Returned: success Sample: |
|
Total pool capacity in GiB. Returns -1.0 if not set. Returned: success Sample: |