hitachivantara.vspone_block.sds_block.hv_sds_block_session module – Manages sessions on VSP One SDS Block and Cloud systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.5.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_session.
New in hitachivantara.vspone_block 4.5.0
Synopsis
This module allows to generate and discard session.
For examples go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/sds_block_direct/sdsb_session.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 Session. |
|
The idle time in seconds after which a session times out. Valid for create session operation. If omitted, 300 is applied. If specified value must be between 1 and 300. |
|
Session ID. UUID format. Required for delete operation. |
|
State of the session. Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Create a session
hitachivantara.vspone_block.sds_block.hv_sds_block_session:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
alive_time: 100
- name: Delete a session
hitachivantara.vspone_block.sds_block.hv_sds_block_session:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: "absent"
spec:
id: "ae0f247c-dc56-491c-9cb9-4b2b6d33b345"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Information about the user session. Returned: always |
|
Timestamp when the session was created. Returned: success Sample: |
|
Timestamp when the session will expire. Returned: success Sample: |
|
Timestamp of the last access using this session. Returned: success Sample: |
|
List of privilege objects associated with the session. Returned: success |
|
List of role names granted in this privilege. Returned: success Sample: |
|
Scope of the privilege. Returned: success Sample: |
|
List of roles assigned to the session. Returned: success Sample: |
|
Unique identifier for the session. Returned: success Sample: |
|
Session token used for authentication. Returned: success Sample: |
|
ID of the user who owns the session. Returned: success Sample: |
|
Object ID of the user. Returned: success Sample: |
|
Identifier for the Virtual Private Storage (VPS) or system context. Returned: success Sample: |