cisco.ise.device_administration_conditions 模块 – 设备管理条件的资源模块
注意
此模块是 cisco.ise 集合 (版本 2.9.6) 的一部分。
如果您使用的是 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install cisco.ise
。您需要其他要求才能使用此模块,有关详细信息,请参见 要求。
要在 playbook 中使用它,请指定:cisco.ise.device_administration_conditions
。
cisco.ise 1.0.0 中的新增功能
概要
管理设备管理条件资源的创建、更新和删除操作。
设备管理员 - 创建库条件。
设备管理员 - 删除库条件。
设备管理员 - 使用条件名称删除库条件。
设备管理员 - 使用条件名称更新库条件。
设备管理员 - 更新库条件。
注意
此模块具有相应的 action 插件。
要求
执行此模块的主机需要以下要求。
ciscoisesdk >= 2.2.3
python >= 3.5
参数
参数 |
注释 |
---|---|
字典属性 ID(可选),用于额外的验证。 |
|
字典属性名称。 |
|
<ul><li>条件的属性值</li> <li>值类型在字典对象中指定</li> <li>如果允许多个值,则在字典对象中指定</li></ul>。 |
|
如果类型是 andBlock 或 orBlock,则附加条件将在此逻辑(OR/AND)条件下聚合。 |
|
<ul><li>指示记录本身是条件(数据)还是逻辑(或、且)聚合</li> <li>数据类型枚举(reference、single)指示“conditonId”或“ConditionAttrs”字段应包含条件数据,但不能同时包含两者</li> <li>逻辑聚合(and、or)枚举指示 children 字段中存在附加条件</li></ul>。 |
|
指示此条件是否处于否定模式。 选项
|
|
设备管理条件的链接。 |
|
设备管理条件的 href。 |
|
设备管理条件的 rel。 |
|
设备管理条件的 type。 |
|
<ul><li>指示记录本身是条件(数据)还是逻辑(或、且)聚合</li> <li>数据类型枚举(reference、single)指示“conditonId”或“ConditionAttrs”字段应包含条件数据,但不能同时包含两者</li> <li>逻辑聚合(and、or)枚举指示 children 字段中存在附加条件</li></ul>。 |
|
<p>定义 TimeAndDate 条件将在哪些日期匹配或不匹配(如果用于 exceptionDates 属性)<br> 选项包括 - 日期范围,对于特定日期,应使用相同的日期作为开始/结束日期 <br> 默认 - 无特定日期<br> 为了将日期重置为无特定日期,日期格式为 yyyy-mm-dd(MM = 月,dd = 日,yyyy = 年)</p>。 |
|
设备管理条件的 endDate。 |
|
设备管理条件的 startDate。 |
|
<p>定义 TimeAndDate 条件将在哪些日期匹配或不匹配(如果用于 exceptionDates 属性)<br> 选项包括 - 日期范围,对于特定日期,应使用相同的日期作为开始/结束日期 <br> 默认 - 无特定日期<br> 为了将日期重置为无特定日期,日期格式为 yyyy-mm-dd(MM = 月,dd = 日,yyyy = 年)</p>。 |
|
设备管理条件的 endDate。 |
|
设备管理条件的 startDate。 |
|
条件描述。 |
|
字典名称。 |
|
字典值。 |
|
<p>定义 TimeAndDate 条件将在哪些小时匹配或不匹配(如果用于 exceptionHours 属性)<br> 时间格式 - hh mm(h = 小时,mm = 分钟) <br> 默认 - 全天 </p>。 |
|
设备管理条件的 endTime。 |
|
设备管理条件的 startTime。 |
|
<p>定义 TimeAndDate 条件将在哪些小时匹配或不匹配(如果用于 exceptionHours 属性)<br> 时间格式 - hh mm(h = 小时,mm = 分钟) <br> 默认 - 全天 </p>。 |
|
设备管理条件的 endTime。 |
|
设备管理条件的 startTime。 |
|
设备管理条件的 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 的标志,用于启用自动速率限制处理。 选项
|
|
指示此条件是否处于否定模式。 选项
|
|
设备管理条件的链接。 |
|
设备管理条件的 href。 |
|
设备管理条件的 rel。 |
|
设备管理条件的 type。 |
|
条件名称。 |
|
相等运算符。 |
|
<p>定义此条件将在哪些日期匹配<br> 日期格式 - 星期几枚举的数组 <br> 默认 - 所有星期的日期列表</p>。 |
|
<p>定义此条件将不匹配的日期<br> 日期格式 - 星期几枚举的数组 <br> 默认 - 未启用</p>。 |
注释
注意
使用的 SDK 方法为 device_administration_conditions.DeviceAdministrationConditions.create_device_admin_condition、device_administration_conditions.DeviceAdministrationConditions.delete_device_admin_condition_by_id、device_administration_conditions.DeviceAdministrationConditions.delete_device_admin_condition_by_name、device_administration_conditions.DeviceAdministrationConditions.update_device_admin_condition_by_id、device_administration_conditions.DeviceAdministrationConditions.update_device_admin_condition_by_name,
使用的路径为:post /device-admin/condition,delete /device-admin/condition/condition-by-name/{name},delete /device-admin/condition/{id},put /device-admin/condition/condition-by-name/{name},put /device-admin/condition/{id}。
不支持
check_mode
该插件在控制节点上运行,不使用任何 Ansible 连接插件,而是使用 Cisco ISE SDK 中的嵌入式连接管理器。
以 ise_ 开头的参数由 Cisco ISE Python SDK 用于建立连接。
参见
另请参见
- Cisco ISE 设备管理 - 条件文档
设备管理 - 条件 API 的完整参考。
示例
- name: Create
cisco.ise.device_administration_conditions:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
attributeId: string
attributeName: string
attributeValue: string
children:
- conditionType: string
isNegate: true
link:
href: string
rel: string
type: string
conditionType: string
datesRange:
endDate: string
startDate: string
datesRangeException:
endDate: string
startDate: string
description: string
dictionaryName: string
dictionaryValue: string
hoursRange:
endTime: string
startTime: string
hoursRangeException:
endTime: string
startTime: string
id: string
isNegate: true
link:
href: string
rel: string
type: string
name: string
operator: string
weekDays:
- string
weekDaysException:
- string
- name: Update by name
cisco.ise.device_administration_conditions:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
attributeId: string
attributeName: string
attributeValue: string
children:
- conditionType: string
isNegate: true
link:
href: string
rel: string
type: string
conditionType: string
datesRange:
endDate: string
startDate: string
datesRangeException:
endDate: string
startDate: string
description: string
dictionaryName: string
dictionaryValue: string
hoursRange:
endTime: string
startTime: string
hoursRangeException:
endTime: string
startTime: string
id: string
isNegate: true
link:
href: string
rel: string
type: string
name: string
operator: string
weekDays:
- string
weekDaysException:
- string
- name: Delete by name
cisco.ise.device_administration_conditions:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: absent
name: string
- name: Update by id
cisco.ise.device_administration_conditions:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
attributeId: string
attributeName: string
attributeValue: string
children:
- conditionType: string
isNegate: true
link:
href: string
rel: string
type: string
conditionType: string
datesRange:
endDate: string
startDate: string
datesRangeException:
endDate: string
startDate: string
description: string
dictionaryName: string
dictionaryValue: string
hoursRange:
endTime: string
startTime: string
hoursRangeException:
endTime: string
startTime: string
id: string
isNegate: true
link:
href: string
rel: string
type: string
name: string
operator: string
weekDays:
- string
weekDaysException:
- string
- name: Delete by id
cisco.ise.device_administration_conditions:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: absent
id: string
返回值
常用的返回值已在此处记录,以下是此模块特有的字段:
键 |
描述 |
---|---|
Cisco ISE Python SDK 返回的响应的字典或列表。 返回:始终返回 示例: |
|
Cisco ISE Python SDK 返回的响应的字典或列表。 返回:始终返回 示例: |