hitachivantara.vspone_block.vsp.hv_cmd_dev module – Manages command devices on Hitachi VSP storage systems.
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.vsp.hv_cmd_dev
.
New in hitachivantara.vspone_block 3.2.0
Synopsis
This module allows to enable and to disable a command device on Hitachi VSP storage systems.
It also allows to modify the settings of the command device.
For examples go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/cmd_dev.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. This is a required field. |
|
Username for authentication. This is a required field. |
|
Specification for the command device. |
|
Specify whether to enable the device group definition settings for the command device. Choices:
|
|
Specify whether to enable the security settings for the command device. Choices:
|
|
Specify whether to enable the user authentication settings for the command device. Choices:
|
|
The id of the LDEV. |
|
The level of the resource group task. Choices:
|
|
Information about the storage system. This field is an optional field. |
|
The serial number of the storage system. |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Enable a Command Device
hitachivantara.vspone_block.vsp.hv_cmd_dev:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
spec:
ldev_id: 98
is_security_enabled: false
is_user_authentication_enabled: false
is_device_group_definition_enabled: false
- name: Update the settings of a Command Device
hitachivantara.vspone_block.vsp.hv_cmd_dev:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
spec:
ldev_id: 98
is_security_enabled: true
is_user_authentication_enabled: true
is_device_group_definition_enabled: true
- name: Disable a Command Device
hitachivantara.vspone_block.vsp.hv_cmd_dev:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
state: absent
spec:
ldev_id: 98
is_security_enabled: false
is_user_authentication_enabled: false
is_device_group_definition_enabled: false
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The command device information. Returned: always except when state is absent |
|
Unique identifier for the command device. Returned: success Sample: |
|
Progress percentage of deduplication and compression. Returned: success Sample: |
|
Status of deduplication and compression. Returned: success Sample: |
|
Mode of deduplication and compression. Returned: success Sample: |
|
Emulation type of the command device. Returned: success Sample: |
|
List of host groups associated with the command device. Returned: success |
|
Indicates if ALUA is enabled. Returned: success Sample: |
|
Indicates if it is a command device. Returned: success Sample: |
|
Indicates if data reduction share is enabled. Returned: success Sample: |
|
Indicates if device group definition is enabled. Returned: success Sample: |
|
Indicates if encryption is enabled. Returned: success Sample: |
|
Indicates if security is enabled. Returned: success Sample: |
|
Indicates if user authentication is enabled. Returned: success Sample: |
|
Indicates if the command device is write-protected. Returned: success Sample: |
|
Indicates if the command device is write-protected by key. Returned: success Sample: |
|
List of iSCSI targets associated with the command device. Returned: success |
|
The ID of the LDEV. Returned: success Sample: |
|
Logical unit ID in hexadecimal format. Returned: success Sample: |
|
Name of the command device. Returned: success Sample: |
|
Number of ports associated with the command device. Returned: success Sample: |
|
List of NVM subsystems associated with the command device. Returned: success |
|
ID of the NVM subsystem. Returned: success Sample: |
|
Name of the NVM subsystem. Returned: success Sample: |
|
List of ports associated with the NVM subsystem. Returned: success Sample: |
|
ID of the parity group. Returned: success Sample: |
|
Number of paths associated with the command device. Returned: success Sample: |
|
ID of the pool. Returned: success Sample: |
|
Provision type of the command device. Returned: success Sample: |
|
Quality of Service settings for the command device. Returned: success |
|
ID of the resource group. Returned: success Sample: |
|
List of snapshots associated with the command device. Returned: success |
|
Status of the command device. Returned: success Sample: |
|
Serial number of the storage system. Returned: success Sample: |
|
Total capacity of the command device. Returned: success Sample: |
|
Used capacity of the command device. Returned: success Sample: |
|
ID of the virtual LDEV. Returned: success Sample: |