cisco.ise.repository 模块 – 资源模块,用于资源库
注意
此模块是 cisco.ise 集合 (版本 2.9.6) 的一部分。
如果您使用的是 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install cisco.ise
。要使用此模块,您还需要其他要求,有关详细信息,请参阅 要求。
要在 playbook 中使用它,请指定:cisco.ise.repository
。
cisco.ise 1.0.0 中的新增功能
概要
管理资源库的创建、更新和删除操作。
在系统中创建一个新的资源库。为资源库提供的名称必须唯一。
长描述待定。
更新特定资源库的定义,为资源库提供所有参数。
注意
此模块具有相应的 action 插件。
要求
在执行此模块的主机上需要以下要求。
ciscoisesdk >= 2.2.3
python >= 3.5
参数
参数 |
注释 |
---|---|
EnablePki 标志。 选项
|
|
用于 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 的标志,用于启用自动速率限制处理。 选项
|
|
资源库名称应少于 80 个字符,可以包含字母数字、下划线、连字符和点字符。 |
|
密码可以包含字母数字和/或特殊字符。 |
|
路径应始终以“/”开头,可以包含字母数字、下划线、连字符和点字符。 |
|
资源库的协议。 |
|
RepositoryName 路径参数。资源库的唯一名称。 |
|
资源库的 serverName。 |
|
用户名可以包含字母数字和 _-./@\\$ 字符。 |
备注
注意
使用的 SDK 方法为 repository.Repository.create_repository、repository.Repository.delete_repository、repository.Repository.update_repository,
使用的路径为 post /api/v1/repository、delete /api/v1/repository/{repositoryName}、put /api/v1/repository/{repositoryName},
不支持
check_mode
插件在控制节点上运行,不使用任何 ansible 连接插件,而是使用 Cisco ISE SDK 中的嵌入式连接管理器
以 ise_ 开头的参数由 Cisco ISE Python SDK 用于建立连接
另请参阅
另请参阅
- Cisco ISE 资源库文档
资源库 API 的完整参考。
示例
- name: Create
cisco.ise.repository:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
enablePki: true
name: string
password: string
path: string
protocol: string
serverName: string
userName: string
- name: Update by name
cisco.ise.repository:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
enablePki: true
name: string
password: string
path: string
protocol: string
repositoryName: string
serverName: string
userName: string
- name: Delete by name
cisco.ise.repository:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: absent
repositoryName: string
返回值
常用的返回值已在此处记录 此处,以下是此模块特有的字段
键 |
描述 |
---|---|
包含 Cisco ISE Python SDK 返回的响应的字典或列表 返回: 始终 示例: |
|
包含 Cisco ISE Python SDK 返回的响应的字典或列表 返回: 始终 示例: |