purestorage.flasharray.purefa_sessions 模块 – 列出 FlashArray 会话
注意
此模块是 purestorage.flasharray 集合(版本 1.32.0)的一部分。
如果您使用的是 ansible
包,您可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install purestorage.flasharray
。您需要进一步的要求才能使用此模块,请参阅要求了解详细信息。
要在剧本中使用它,请指定: purestorage.flasharray.purefa_sessions
。
purestorage.flasharray 1.29.0 中的新功能
概要
根据提供的过滤器列出会话
要求
执行此模块的主机需要以下要求。
python >= 3.3
purestorage >= 1.19
py-pure-client >= 1.26.0
netaddr
requests
pycountry
urllib3
参数
参数 |
注释 |
---|---|
具有管理员权限的用户的 FlashArray API 令牌。 |
|
在调试日志中禁用不安全的证书警告 选项
|
|
结束日期和时间(基于阵列本地时间) 如果未提供,则假定为 epoch 预期格式 “YYYY-MM-DD hh:mm:ss” |
|
FlashArray 管理 IPv4 地址或主机名。 |
|
开始日期和时间(基于阵列本地时间) 如果未提供,则假定为 epoch 预期格式 “YYYY-MM-DD hh:mm:ss” |
|
FlashArray 的时区 如果未提供,则模块将尝试从服务器获取当前本地时区,但是从 Purity//FA 6.5.3 开始,此值将从 FlashArray 自动计算 |
注意事项
注意
此模块需要
purestorage
和py-pure-client
Python 库特定模块可能需要额外的 Python 库。
如果未将 *fa_url* 和 *api_token* 参数直接传递给模块,则必须设置
PUREFA_URL
和PUREFA_API
环境变量
示例
- name: Show all sessions that started after the specified date/time
purefa_sessions:
start: "2024-06-29 12:31:34"
fa_url: 10.10.10.2
api_token: 89a9356f-c203-d263-8a89-c229486a13ba
- name: Show all sessions that started and ended between specified dates/times
purefa_sessions:
start: "2024-06-29 12:31:34"
end: "2024-06-30 04:23:34"
fa_url: 10.10.10.2
api_token: 89a9356f-c203-d263-8a89-c229486a13ba
- name: Show all sessions that ended after the specified date/time
purefa_sessions:
end: "2024-06-30 04:23:34"
fa_url: 10.10.10.2
api_token: 89a9356f-c203-d263-8a89-c229486a13ba
- name: Show all sessions that have been logged by the array (to the internal limit of the array)
purefa_sessions:
fa_url: 10.10.10.2
api_token: 89a9356f-c203-d263-8a89-c229486a13ba