cisco.dnac.sensor_test_template_duplicate 模块 – 传感器测试模板复制的资源模块

注意

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

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

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

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

cisco.dnac 3.1.0 中的新增功能

概要

  • 此模块表示模块 sensor_test_template_duplicate_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"

newTemplateName

字符串

目标测试模板名称。

templateName

字符串

源测试模板名称。

validate_response_schema

布尔值

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

选项

  • false

  • true ← (默认)

注释

注意

  • 使用的 SDK 方法是 sensors.Sensors.duplicate_sensor_test_template_v1,

  • 使用的路径是 put /dna/intent/api/v1/sensorTestTemplate,

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

  • 不支持 check_mode

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

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

另请参阅

另请参阅

Cisco DNA Center 关于 Sensors DuplicateSensorTestTemplateV1 的文档

DuplicateSensorTestTemplateV1 API 的完整参考。

示例

- name: Update all
  cisco.dnac.sensor_test_template_duplicate:
    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}}"
    newTemplateName: string
    templateName: string

返回值

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

描述

dnac_response

字典

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

返回: 始终

示例: {"response": {"_id": "字符串", "actionInProgress": "字符串", "apCoverage": [{"bands": "字符串", "numberOfApsToTest": 0, "rssiThreshold": 0}], "connection": "字符串", "encryptionMode": "字符串", "frequency": {"unit": "字符串", "value": 0}, "lastModifiedTime": 0, "location": "字符串", "locationInfoList": [{"allSensors": true, "customManagementVlan": true, "locationId": "字符串", "locationType": "字符串", "macAddressList": ["字符串"], "managementVlan": "字符串", "siteHierarchy": "字符串"}], "modelVersion": 0, "name": "字符串", "numAssociatedSensor": 0, "numNeighborAPThreshold": 0, "profiles": [{"authProtocol": "字符串", "authType": "字符串", "certdownloadurl": "字符串", "certfilename": "字符串", "certpassphrase": "字符串", "certstatus": "字符串", "certxferprotocol": "字符串", "deviceType": "字符串", "eapMethod": "字符串", "extWebAuth": true, "extWebAuthAccessUrl": "字符串", "extWebAuthHtmlTag": [{"label": "字符串", "tag": "字符串", "value": "字符串"}], "extWebAuthPortal": "字符串", "extWebAuthVirtualIp": "字符串", "locationVlanList": [{"locationId": "字符串", "vlans": ["字符串"]}], "password": "字符串", "passwordType": "字符串", "profileName": "字符串", "psk": "字符串", "qosPolicy": "字符串", "scep": true, "tests": [{"config": [{"direction": "字符串", "domains": ["字符串"], "downlinkTest": true, "endPort": 0, "exitCommand": "字符串", "finalPrompt": "字符串", "ndtServer": "字符串", "ndtServerPath": "字符串", "ndtServerPort": "字符串", "numPackets": 0, "password": "字符串", "passwordPrompt": "字符串", "pathToDownload": "字符串", "port": 0, "probeType": "字符串", "protocol": "字符串", "proxyPassword": "字符串", "proxyPort": "字符串", "proxyServer": "字符串", "proxyUserName": "字符串", "server": "字符串", "servers": ["字符串"], "sharedSecret": "字符串", "startPort": 0, "transferType": "字符串", "udpBandwidth": 0, "uplinkTest": true, "url": "字符串", "userName": "字符串", "userNamePrompt": "字符串"}], "name": "字符串"}], "username": "字符串", "vlan": "字符串", "whiteList": true}], "radioAsSensorRemoved": true, "rssiThreshold": 0, "runNow": "字符串", "scheduleInDays": 0, "sensors": [{"allSensorAddition": true, "assigned": true, "configUpdated": "字符串", "hostName": "字符串", "iPerfInfo": {}, "id": "字符串", "ipAddress": "字符串", "locationId": "字符串", "macAddress": "字符串", "markedForUninstall": true, "name": "字符串", "runNow": "字符串", "sensorType": "字符串", "servicePolicy": "字符串", "status": "字符串", "switchMac": "字符串", "switchSerialNumber": "字符串", "switchUuid": "字符串", "targetAPs": ["字符串"], "testMacAddresses": {}, "wiredApplicationMessage": "字符串", "wiredApplicationStatus": "字符串", "xorSensor": true}], "showWlcUpgradeBanner": true, "siteHierarchy": "字符串", "ssids": [{"authProtocol": "字符串", "authType": "字符串", "bands": "字符串", "certdownloadurl": "字符串", "certfilename": "字符串", "certpassphrase": "字符串", "certstatus": "字符串", "certxferprotocol": "字符串", "eapMethod": "字符串", "extWebAuth": true, "extWebAuthAccessUrl": "字符串", "extWebAuthHtmlTag": [{"label": "字符串", "tag": "字符串", "value": "字符串"}], "extWebAuthPortal": "字符串", "extWebAuthVirtualIp": "字符串", "id": 0, "layer3webAuthEmailAddress": "字符串", "layer3webAuthpassword": "字符串", "layer3webAuthsecurity": "字符串", "layer3webAuthuserName": "字符串", "numAps": 0, "numSensors": 0, "password": "字符串", "passwordType": "字符串", "profileName": "字符串", "proxyPassword": "字符串", "proxyPort": "字符串", "proxyServer": "字符串", "proxyUserName": "字符串", "psk": "字符串", "qosPolicy": "字符串", "scep": true, "ssid": "字符串", "status": "字符串", "tests": [{"config": [{"direction": "字符串", "domains": ["字符串"], "downlinkTest": true, "endPort": 0, "exitCommand": "字符串", "finalPrompt": "字符串", "ndtServer": "字符串", "ndtServerPath": "字符串", "ndtServerPort": "字符串", "numPackets": 0, "password": "字符串", "passwordPrompt": "字符串", "pathToDownload": "字符串", "port": 0, "probeType": "字符串", "protocol": "字符串", "proxyPassword": "字符串", "proxyPort": "字符串", "proxyServer": "字符串", "proxyUserName": "字符串", "server": "字符串", "servers": ["字符串"], "sharedSecret": "字符串", "startPort": 0, "transferType": "字符串", "udpBandwidth": 0, "uplinkTest": true, "url": "字符串", "userName": "字符串", "userNamePrompt": "字符串"}], "name": "字符串"}], "thirdParty": {"selected": true}, "username": "字符串", "validFrom": 0, "validTo": 0, "whiteList": true, "wlanId": 0, "wlc": "字符串"}], "startTime": 0, "status": "字符串", "testScheduleMode": "字符串", "version": 0, "wlans": ["字符串"]}, "version": "字符串"}

作者

  • Rafael Campos (@racampos)