cisco.ise.tacacs_command_sets_info 模块 – TACACS 命令集信息模块
注意
此模块是 cisco.ise 集合 (版本 2.9.6) 的一部分。
如果您使用的是 ansible 软件包,则可能已安装此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install cisco.ise。您需要其他需求才能使用此模块,请参阅 需求 获取详细信息。
要在剧本中使用它,请指定:cisco.ise.tacacs_command_sets_info。
cisco.ise 1.0.0 中的新增功能
概要
- 获取所有 TACACS 命令集。 
- 按 ID 获取 TACACS 命令集。 
- 按名称获取 TACACS 命令集。 
- 此 API 允许客户端按 ID 获取 TACACS 命令集。 
- 此 API 允许客户端按名称获取 TACACS 命令集。 
- 此 API 允许客户端获取所有 TACACS 命令集。 
注意
此模块具有相应的 action 插件。
需求
在执行此模块的主机上需要以下需求。
- ciscoisesdk >= 2.2.3 
- python >= 3.5 
参数
| 参数 | 注释 | 
|---|---|
| ID 路径参数。 | |
| 用于 Identity Services Engine SDK 以启用调试的标志。 选项 
 | |
| Identity Services Engine 主机名。 | |
| 用于身份验证的 Identity Services Engine 密码。 | |
| RESTful HTTP 请求的超时时间(以秒为单位)。 默认值:  | |
| 用于身份验证的 Identity Services Engine 用户名。 | |
| 告知 SDK 我们是否将 CSRF 令牌发送到 ISE 的 ERS API 的标志。 如果为 True,则 SDK 假设您的 ISE CSRF 检查已启用。 如果为 True,则假设您需要 SDK 自动为您管理 CSRF 令牌。 选项 
 | |
| 启用或禁用 SSL 证书验证的标志。 选项 
 | |
| 告知 SDK 使用哪个版本的 Identity Services Engine。 默认值:  | |
| 用于 Identity Services Engine SDK 以启用自动速率限制处理的标志。 选项 
 | |
| 名称路径参数。 | |
| 页面查询参数。页码。 | |
| 大小查询参数。每页返回的对象数量。 | 
注释
注意
- 使用的 SDK 方法为 tacacs_command_sets.TacacsCommandSets.get_tacacs_command_sets_by_id、tacacs_command_sets.TacacsCommandSets.get_tacacs_command_sets_by_name、tacacs_command_sets.TacacsCommandSets.get_tacacs_command_sets_generator, 
- 使用的路径为 get /ers/config/tacacscommandsets、get /ers/config/tacacscommandsets/name/{name}、get /ers/config/tacacscommandsets/{id}, 
- 支持 - check_mode
- 该插件在控制节点上运行,不使用任何 Ansible 连接插件,而是使用 Cisco ISE SDK 中的嵌入式连接管理器。 
- 以 ise_ 开头的参数由 Cisco ISE Python SDK 用于建立连接。 
示例
- name: Get all TACACS Command Sets
  cisco.ise.tacacs_command_sets_info:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    page: 1
    size: 20
  register: result
- name: Get TACACS Command Sets by id
  cisco.ise.tacacs_command_sets_info:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    id: string
  register: result
- name: Get TACACS Command Sets by name
  cisco.ise.tacacs_command_sets_info:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    name: string
  register: result
返回值
常见的返回值已在 此处 文档化,以下是此模块独有的字段
| 键 | 描述 | 
|---|---|
| Cisco ISE Python SDK 返回的响应字典或列表 返回值:始终返回 示例:  | |
| Cisco ISE Python SDK 返回的响应字典或列表 返回值:始终返回 示例:  | 
