cisco.ise.radius_server_sequence 模块 – RADIUS 服务器序列的资源模块
注意
此模块是 cisco.ise 集合(版本 2.9.6)的一部分。
如果您正在使用 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install cisco.ise。您需要进一步的要求才能使用此模块,请参阅要求了解详细信息。
要在 playbook 中使用它,请指定:cisco.ise.radius_server_sequence。
cisco.ise 1.0.0 中的新增功能
概要
- 管理资源 RADIUS 服务器序列的创建、更新和删除操作。 
- 此 API 创建 RADIUS 服务器序列。 
- 此 API 删除 RADIUS 服务器序列。 
- 此 API 允许客户端更新 RADIUS 服务器序列。 
注意
此模块具有相应的 action 插件。
要求
执行此模块的主机需要满足以下要求。
- ciscoisesdk >= 2.2.3 
- python >= 3.5 
参数
| 参数 | 注释 | 
|---|---|
| 仅当 useAttrSetBeforeAcc 为 true 时才需要 beforeAcceptAttrManipulators。 | |
| 允许的值 - ADD, - UPDATE, - REMOVE, - REMOVEANY。 | |
| RADIUS 服务器序列的 attributeName。 | |
| 仅当 action 等于“UPDATE”时才需要 changedVal。 | |
| RADIUS 服务器序列的 dictionaryName。 | |
| RADIUS 服务器序列的值。 | |
| ContinueAuthorzPolicy 标志。 选项 
 | |
| RADIUS 服务器序列的描述。 | |
| RADIUS 服务器序列的 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 以启用自动速率限制处理的标志。 选项 
 | |
| LocalAccounting 标志。 选项 
 | |
| RADIUS 服务器序列的名称。 | |
| 仅当 useAttrSetOnRequest 为 true 时才需要 onRequestAttrManipulators。 | |
| 允许的值 - ADD, - UPDATE, - REMOVE, - REMOVEANY。 | |
| RADIUS 服务器序列的 attributeName。 | |
| 仅当 action 等于“UPDATE”时才需要 changedVal。 | |
| RADIUS 服务器序列的 dictionaryName。 | |
| RADIUS 服务器序列的值。 | |
| 仅当 stripPrefix 为 true 时才需要 prefixSeparator。最大长度为 1 个字符。 | |
| RADIUS 服务器序列的 RADIUSServerList。 | |
| RemoteAccounting 标志。 选项 
 | |
| StripPrefix 标志。 选项 
 | |
| StripSuffix 标志。 选项 
 | |
| 仅当 stripSuffix 为 true 时才需要 suffixSeparator。最大长度为 1 个字符。 | |
| UseAttrSetBeforeAcc 标志。 选项 
 | |
| UseAttrSetOnRequest 标志。 选项 
 | 
注释
注意
- 使用的 SDK 方法是 radius_server_sequence.RadiusServerSequence.create_radius_server_sequence,radius_server_sequence.RadiusServerSequence.delete_radius_server_sequence_by_id,radius_server_sequence.RadiusServerSequence.update_radius_server_sequence_by_id, 
- 使用的路径是 post /ers/config/radiusserversequence,delete /ers/config/radiusserversequence/{id},put /ers/config/radiusserversequence/{id}, 
- 不支持 - check_mode
- 该插件在控制节点上运行,不使用任何 Ansible 连接插件,而是使用 Cisco ISE SDK 中的嵌入式连接管理器 
- 以 ise_ 开头的参数由 Cisco ISE Python SDK 用于建立连接 
示例
- name: Update by id
  cisco.ise.radius_server_sequence:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    BeforeAcceptAttrManipulatorsList:
    - action: string
      attributeName: string
      changedVal: string
      dictionaryName: string
      value: string
    OnRequestAttrManipulatorList:
    - action: string
      attributeName: string
      changedVal: string
      dictionaryName: string
      value: string
    RadiusServerList:
    - string
    continueAuthorzPolicy: true
    description: string
    id: string
    localAccounting: true
    name: string
    prefixSeparator: string
    remoteAccounting: true
    stripPrefix: true
    stripSuffix: true
    suffixSeparator: string
    useAttrSetBeforeAcc: true
    useAttrSetOnRequest: true
- name: Delete by id
  cisco.ise.radius_server_sequence:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: absent
    id: string
- name: Create
  cisco.ise.radius_server_sequence:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    BeforeAcceptAttrManipulatorsList:
    - action: string
      attributeName: string
      changedVal: string
      dictionaryName: string
      value: string
    OnRequestAttrManipulatorList:
    - action: string
      attributeName: string
      changedVal: string
      dictionaryName: string
      value: string
    RadiusServerList:
    - string
    continueAuthorzPolicy: true
    description: string
    localAccounting: true
    name: string
    prefixSeparator: string
    remoteAccounting: true
    stripPrefix: true
    stripSuffix: true
    suffixSeparator: string
    useAttrSetBeforeAcc: true
    useAttrSetOnRequest: true
返回值
通用返回值记录在此处 这里,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 一个字典或列表,包含 Cisco ISE Python SDK 返回的响应 返回: 总是 示例:  | |
| 一个字典或列表,包含 Cisco ISE Python SDK 返回的响应 返回: 总是 示例:  | 
