cisco.ise.px_grid_direct 模块 – Px Grid Direct 资源模块
注意
此模块是 cisco.ise 集合 (版本 2.9.6) 的一部分。
如果您正在使用 ansible
包,则您可能已经安装了此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install cisco.ise
。您需要其他要求才能使用此模块,请参阅 需求 以了解详细信息。
要在 playbook 中使用它,请指定: cisco.ise.px_grid_direct
。
cisco.ise 1.0.0 中新增
概要
管理 Px Grid Direct 资源的创建、更新和删除操作。
PxGrid Direct - 配置 connectorconfig 信息。
PxGrid Direct - 根据 ConnectorName 删除配置的 connectorConfig 信息。
PxGrid Direct - 根据 ConnectorName 更新配置的 connectorConfig 信息。
注意
此模块具有相应的 action 插件。
需求
执行此模块的主机需要以下要求。
ciscoisesdk >= 2.2.3
python >= 3.5
参数
参数 |
注释 |
---|---|
Px Grid Direct 的 additionalProperties。 |
|
ConnectorName。 |
|
<p>功能名称列表</p>。 |
|
Px Grid Direct 的 dictionaryAttribute。 |
|
IncludeInDictionary 标志。 选项
|
|
Px Grid Direct 的 jsonAttribute。 |
|
唯一标识符。 |
|
JSON 的根级别。 |
|
唯一标识符。 |
|
版本唯一标识符。 |
|
ConnectorName。 |
|
连接器类型列表。 |
|
Px Grid Direct 的 deltasyncSchedule。 |
|
运行间隔(小时)。 |
|
间隔单位。 |
|
开始日期和时间。 |
|
描述。 |
|
启用标志。 选项
|
|
Px Grid Direct 的 fullsyncSchedule。 |
|
运行间隔(小时)。 |
|
间隔单位。 |
|
开始日期和时间。 |
|
用于 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 的标志,用于启用自动速率限制处理。 选项
|
|
协议。 |
|
SkipCertificateValidations 标志。 选项
|
|
Px Grid Direct 的 url。 |
|
身份验证类型列表。 |
|
BulkUrl。 |
|
IncrementalUrl。 |
|
密码。 |
|
用户名。 |
注释
注意
使用的 SDK 方法是 px_grid_direct.PxGridDirect.create_connector_config、px_grid_direct.PxGridDirect.delete_connector_config_by_connector_name、px_grid_direct.PxGridDirect.update_connector_config_by_connector_name,
使用的路径是 post /api/v1/pxgrid-direct/connector-config、delete /api/v1/pxgrid-direct/connector-config/{connectorName}、put /api/v1/pxgrid-direct/connector-config/{connectorName},
不支持
check_mode
此插件在控制节点上运行,不使用任何 Ansible 连接插件,而是使用 Cisco ISE SDK 中的嵌入式连接管理器。
以 `ise_` 开头的参数由 Cisco ISE Python SDK 用于建立连接。
示例
- name: Create
cisco.ise.px_grid_direct:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
additionalProperties: {}
attributes:
attributeMapping:
- dictionaryAttribute: string
includeInDictionary: true
jsonAttribute: string
correlationIdentifier: string
topLevelObject: string
uniqueIdentifier: string
versionIdentifier: string
connectorName: string
connectorType: string
deltasyncSchedule:
interval: 0
intervalUnit: string
startDate: string
description: string
enabled: true
fullsyncSchedule:
interval: 0
intervalUnit: string
startDate: string
protocol: string
skipCertificateValidations: true
url:
authenticationType: string
bulkUrl: string
incrementalUrl: string
password: string
userName: string
- name: Update by name
cisco.ise.px_grid_direct:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
additionalProperties: {}
attributes:
attributeMapping:
- dictionaryAttribute: string
includeInDictionary: true
jsonAttribute: string
correlationIdentifier: string
topLevelObject: string
uniqueIdentifier: string
versionIdentifier: string
connectorName: string
connectorType: string
deltasyncSchedule:
interval: 0
intervalUnit: string
startDate: string
description: string
enabled: true
fullsyncSchedule:
interval: 0
intervalUnit: string
startDate: string
protocol: string
skipCertificateValidations: true
url:
authenticationType: string
bulkUrl: string
incrementalUrl: string
password: string
userName: string
- name: Delete by name
cisco.ise.px_grid_direct:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: absent
connectorName: string
返回值
常见的返回值已在 此处 记录,以下是此模块特有的字段:
键 |
描述 |
---|---|
Cisco ISE Python SDK 返回的响应的字典或列表。 返回值:始终返回 示例: |
|
Cisco ISE Python SDK 返回的响应的字典或列表。 返回值:始终返回 示例: |