cisco.dnac.license_device_license_details_info 模块 – 用于许可设备许可证详细信息信息的模块

注意

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

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

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

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

cisco.dnac 3.1.0中的新增功能

概要

  • 此模块代表模块license_device_license_details_v1_info的别名

注意

此模块具有相应的 action 插件

需求

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

  • dnacentersdk >= 2.4.9

  • python >= 3.5

参数

参数

注释

device_uuid

字符串

Device_uuid路径参数。设备ID。

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"

headers

字典

附加的headers。

validate_response_schema

布尔值

用于Cisco DNA Center SDK的标志,用于启用根据JSON模式验证请求正文。

选项

  • false

  • true ← (默认)

备注

注意

  • 使用的SDK方法是licenses.Licenses.device_license_details_v1,

  • 使用的路径是get /dna/intent/api/v1/licenses/device/{device_uuid}/details,

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

  • 支持 check_mode

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

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

另请参阅

另请参阅

Cisco DNA Center关于Licenses DeviceLicenseDetailsV1的文档

DeviceLicenseDetailsV1 API的完整参考。

示例

- name: Get all License Device License Details Info
  cisco.dnac.license_device_license_details_info:
    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}}"
    headers: "{{my_headers | from_json}}"
    device_uuid: string
  register: result

返回值

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

描述

dnac_response

字典

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

返回:始终

示例: {"access_points": [{"ap_type": "string", "count": "string"}], "chassis_details": {"board_serial_number": "string", "modules": [{"id": 0, "module_name": "string", "module_type": "string", "serial_number": "string"}], "port": 0, "supervisor_cards": [{"serial_number": "string", "status": "string", "supervisor_card_type": "string"}]}, "device_name": "string", "device_type": "string", "device_uuid": "string", "dna_level": "string", "evaluation_license_expiry": "string", "feature_license": ["string"], "has_sup_cards": true, "ip_address": "string", "is_license_expired": true, "is_stacked_device": true, "license_mode": "string", "mac_address": "string", "model": "string", "network_license": "string", "site": "string", "sntc_status": "string", "software_version": "string", "stacked_devices": [{"id": 0, "mac_address": "string", "role": "string", "serial_number": "string"}], "udi": "string", "virtual_account_name": "string"}

作者

  • Rafael Campos (@racampos)