cisco.dnac.sda_fabric_authentication_profile 模块 – SDA Fabric 认证配置文件的资源模块

注意

此模块是 cisco.dnac 集合 (版本 6.25.0) 的一部分。

如果您正在使用 ansible 包,则您可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用: ansible-galaxy collection install cisco.dnac。您需要其他要求才能使用此模块,有关详细信息,请参阅 要求

要在 playbook 中使用它,请指定: cisco.dnac.sda_fabric_authentication_profile

cisco.dnac 3.1.0 中的新增功能

概要

  • 此模块表示模块 sda_fabric_authentication_profile_v1 的别名。

注意

此模块具有相应的 action 插件

要求

执行此模块的主机需要以下要求。

  • dnacentersdk >= 2.4.9

  • python >= 3.5

参数

参数

注释

dnac_debug

布尔值

用于 Cisco DNA Center SDK 的标志,用于启用调试。

选项

  • false ← (默认)

  • true

dnac_host

字符串 / 必需

Cisco DNA Center 主机名。

dnac_password

字符串

用于身份验证的 Cisco DNA Center 密码。

dnac_port

整数

Cisco DNA Center 端口。

默认值: 443

dnac_username

别名:user

字符串

用于身份验证的 Cisco DNA Center 用户名。

默认值: "admin"

dnac_verify

布尔值

启用或禁用 SSL 证书验证的标志。

选项

  • false

  • true ← (默认)

dnac_version

字符串

告知 SDK 使用哪个版本的 Cisco DNA Center。

默认值: "2.3.7.6"

payload

列表 / 元素=字典

SDA Fabric 认证配置文件的有效负载。

authenticateTemplateName

字符串

在 cisco.dnac 4.0.0 中添加

认证模板名称。

siteNameHierarchy

字符串

SDA Fabric 站点的路径。

siteNameHierarchy

字符串

SiteNameHierarchy 查询参数。

validate_response_schema

布尔值

用于 Cisco DNA Center SDK 的标志,用于启用针对 JSON 架构验证请求正文。

选项

  • false

  • true ← (默认)

备注

注意

  • 使用的 SDK 方法为 sda.Sda.add_default_authentication_profile、sda.Sda.delete_default_authentication_profile、sda.Sda.update_default_authentication_profile,

  • 使用的路径为 post /dna/intent/api/v1/business/sda/authentication-profile、delete /dna/intent/api/v1/business/sda/authentication-profile、put /dna/intent/api/v1/business/sda/authentication-profile,

  • 需要注意的是,此模块是 sda_fabric_authentication_profile_v1 的别名。

  • 不支持 check_mode

  • 插件在控制节点上运行,不使用任何 Ansible 连接插件,而是使用 Cisco DNAC SDK 中的嵌入式连接管理器。

  • 以 dnac_ 开头的参数由 Cisco DNAC Python SDK 用于建立连接。

另请参阅

另请参阅

Cisco DNA Center SDA AddDefaultAuthenticationTemplateInSDAFabricV1 文档

AddDefaultAuthenticationTemplateInSDAFabricV1 API 的完整参考。

Cisco DNA Center SDA DeleteDefaultAuthenticationProfileFromSDAFabricV1 文档

DeleteDefaultAuthenticationProfileFromSDAFabricV1 API 的完整参考。

Cisco DNA Center SDA UpdateDefaultAuthenticationProfileInSDAFabricV1 文档

UpdateDefaultAuthenticationProfileInSDAFabricV1 API 的完整参考。

示例

- name: Create
  cisco.dnac.sda_fabric_authentication_profile:
    dnac_host: "{{dnac_host}}"
    dnac_username: "{{dnac_username}}"
    dnac_password: "{{dnac_password}}"
    dnac_verify: "{{dnac_verify}}"
    dnac_port: "{{dnac_port}}"
    dnac_version: "{{dnac_version}}"
    dnac_debug: "{{dnac_debug}}"
    state: present
    payload:
    - authenticateTemplateName: string
      siteNameHierarchy: string

- name: Update all
  cisco.dnac.sda_fabric_authentication_profile:
    dnac_host: "{{dnac_host}}"
    dnac_username: "{{dnac_username}}"
    dnac_password: "{{dnac_password}}"
    dnac_verify: "{{dnac_verify}}"
    dnac_port: "{{dnac_port}}"
    dnac_version: "{{dnac_version}}"
    dnac_debug: "{{dnac_debug}}"
    state: present
    payload:
    - authenticateTemplateName: string
      authenticationOrder: string
      dot1xToMabFallbackTimeout: string
      numberOfHosts: string
      siteNameHierarchy: string
      wakeOnLan: true

- name: Delete all
  cisco.dnac.sda_fabric_authentication_profile:
    dnac_host: "{{dnac_host}}"
    dnac_username: "{{dnac_username}}"
    dnac_password: "{{dnac_password}}"
    dnac_verify: "{{dnac_verify}}"
    dnac_port: "{{dnac_port}}"
    dnac_version: "{{dnac_version}}"
    dnac_debug: "{{dnac_debug}}"
    state: absent
    siteNameHierarchy: string

返回值

常见的返回值已在此处记录 此处,以下是此模块特有的字段。

描述

dnac_response

字典

包含 Cisco DNAC Python SDK 返回的响应的字典或列表。

返回:始终

示例: {"description": "字符串", "executionId": "字符串", "executionStatusUrl": "字符串", "status": "字符串", "taskId": "字符串", "taskStatusUrl": "字符串"}

作者

  • Rafael Campos (@racampos)