cisco.dnac.pnp_device – Manage PnpDevice objects of DeviceOnboardingPnp¶
Note
This plugin is part of the cisco.dnac collection (version 2.0.7).
To install it use: ansible-galaxy collection install cisco.dnac
.
To use it in a playbook, specify: cisco.dnac.pnp_device
.
New in version 1.0.0: of cisco.dnac
Synopsis¶
Returns list of devices based on filter crieteria. If a limit is not specified, it will default to return 50 devices. Pagination and sorting are also supported by this endpoint.
Adds a device to the PnP database.
Returns device details specified by device id.
Deletes specified device from PnP database.
Updates device details specified by device id in PnP database.
Returns the device count based on filter criteria. This is useful for pagination.
Returns history for a specific device. Serial number is a required parameter.
Note
This module has a corresponding action plugin.
Parameters¶
See Also¶
See also
- cisco.dnac.plugins.module_utils.definitions.pnp_device
The official documentation on the cisco.dnac.plugins.module_utils.definitions.pnp_device module.
- PnpDevice reference
Complete reference of the PnpDevice object model.
- PnpDevice reference
SDK reference.
Examples¶
- name: get_device_list
cisco.dnac.pnp_device:
state: query # required
cm_state: SomeValue # string
last_contact: True # boolean
limit: 1 # integer
name: SomeValue # string
offset: 1 # integer
onb_state: SomeValue # string
pid: SomeValue # string
project_id: SomeValue # string
project_name: SomeValue # string
serial_number: SomeValue # string
smart_account_id: SomeValue # string
sort: SomeValue # string
sort_order: SomeValue # string
source: SomeValue # string
_state: SomeValue # string
virtual_account_id: SomeValue # string
workflow_id: SomeValue # string
workflow_name: SomeValue # string
register: nm_get_device_list
- name: add_device
cisco.dnac.pnp_device:
state: create # required
deviceInfo: # required
aaaCredentials:
password: SomeValue # string
username: SomeValue # string
addedOn: 1 # integer
addnMacAddrs:
- SomeValue # string
agentType: SomeValue # string
authStatus: SomeValue # string
authenticatedSudiSerialNo: SomeValue # string
capabilitiesSupported:
- SomeValue # string
cmState: SomeValue # string
description: SomeValue # string
deviceSudiSerialNos:
- SomeValue # string
deviceType: SomeValue # string
featuresSupported:
- SomeValue # string
fileSystemList:
- freespace: 1 # integer
name: SomeValue # string
readable: True # boolean
size: 1 # integer
type: SomeValue # string
writeable: True # boolean
firstContact: 1 # integer
hostname: SomeValue # string
httpHeaders:
- key: SomeValue # string
value: SomeValue # string
imageFile: SomeValue # string
imageVersion: SomeValue # string
ipInterfaces:
- ipv4Address: None
ipv6AddressList:
macAddress: SomeValue # string
name: SomeValue # string
status: SomeValue # string
lastContact: 1 # integer
lastSyncTime: 1 # integer
lastUpdateOn: 1 # integer
location:
address: SomeValue # string
altitude: SomeValue # string
latitude: SomeValue # string
longitude: SomeValue # string
siteId: SomeValue # string
macAddress: SomeValue # string
mode: SomeValue # string
name: SomeValue # string
neighborLinks:
- localInterfaceName: SomeValue # string
localMacAddress: SomeValue # string
localShortInterfaceName: SomeValue # string
remoteDeviceName: SomeValue # string
remoteInterfaceName: SomeValue # string
remoteMacAddress: SomeValue # string
remotePlatform: SomeValue # string
remoteShortInterfaceName: SomeValue # string
remoteVersion: SomeValue # string
onbState: SomeValue # string
pid: SomeValue # string
pnpProfileList:
- createdBy: SomeValue # string
discoveryCreated: True # boolean
primaryEndpoint:
certificate: SomeValue # string
fqdn: SomeValue # string
ipv4Address: None
ipv6Address: None
port: 1 # integer
protocol: SomeValue # string
profileName: SomeValue # string
secondaryEndpoint:
certificate: SomeValue # string
fqdn: SomeValue # string
ipv4Address: None
ipv6Address: None
port: 1 # integer
protocol: SomeValue # string
populateInventory: True # boolean
preWorkflowCliOuputs:
- cli: SomeValue # string
cliOutput: SomeValue # string
projectId: SomeValue # string
projectName: SomeValue # string
reloadRequested: True # boolean
serialNumber: SomeValue # string
smartAccountId: SomeValue # string
source: SomeValue # string
stack: True # boolean
stackInfo:
isFullRing: True # boolean
stackMemberList:
- hardwareVersion: SomeValue # string
licenseLevel: SomeValue # string
licenseType: SomeValue # string
macAddress: SomeValue # string
pid: SomeValue # string
priority: 1 # integer
role: SomeValue # string
serialNumber: SomeValue # string
softwareVersion: SomeValue # string
stackNumber: 1 # integer
state: SomeValue # string
sudiSerialNumber: SomeValue # string
stackRingProtocol: SomeValue # string
supportsStackWorkflows: True # boolean
totalMemberCount: 1 # integer
validLicenseLevels:
- SomeValue # string
state: SomeValue # string
sudiRequired: True # boolean
tags: None
userSudiSerialNos:
- SomeValue # string
virtualAccountId: SomeValue # string
workflowId: SomeValue # string
workflowName: SomeValue # string
_id: SomeValue # string
runSummaryList:
- details: SomeValue # string
errorFlag: True # boolean
historyTaskInfo:
addnDetails:
- key: SomeValue # string
value: SomeValue # string
name: SomeValue # string
timeTaken: 1 # integer
type: SomeValue # string
workItemList:
- command: SomeValue # string
endTime: 1 # integer
outputStr: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
timeTaken: 1 # integer
timestamp: 1 # integer
systemResetWorkflow:
_id: SomeValue # string
addToInventory: True # boolean
addedOn: 1 # integer
configId: SomeValue # string
currTaskIdx: 1 # integer
description: SomeValue # string
endTime: 1 # integer
execTime: 1 # integer
imageId: SomeValue # string
instanceType: SomeValue # string
lastupdateOn: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
tasks:
- currWorkItemIdx: 1 # integer
endTime: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
taskSeqNo: 1 # integer
timeTaken: 1 # integer
type: SomeValue # string
workItemList:
- command: SomeValue # string
endTime: 1 # integer
outputStr: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
timeTaken: 1 # integer
tenantId: SomeValue # string
type: SomeValue # string
useState: SomeValue # string
version: 1 # integer
systemWorkflow:
_id: SomeValue # string
addToInventory: True # boolean
addedOn: 1 # integer
configId: SomeValue # string
currTaskIdx: 1 # integer
description: SomeValue # string
endTime: 1 # integer
execTime: 1 # integer
imageId: SomeValue # string
instanceType: SomeValue # string
lastupdateOn: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
tasks:
- currWorkItemIdx: 1 # integer
endTime: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
taskSeqNo: 1 # integer
timeTaken: 1 # integer
type: SomeValue # string
workItemList:
- command: SomeValue # string
endTime: 1 # integer
outputStr: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
timeTaken: 1 # integer
tenantId: SomeValue # string
type: SomeValue # string
useState: SomeValue # string
version: 1 # integer
tenantId: SomeValue # string
version: 1 # integer
workflow:
_id: SomeValue # string
addToInventory: True # boolean
addedOn: 1 # integer
configId: SomeValue # string
currTaskIdx: 1 # integer
description: SomeValue # string
endTime: 1 # integer
execTime: 1 # integer
imageId: SomeValue # string
instanceType: SomeValue # string
lastupdateOn: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
tasks:
- currWorkItemIdx: 1 # integer
endTime: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
taskSeqNo: 1 # integer
timeTaken: 1 # integer
type: SomeValue # string
workItemList:
- command: SomeValue # string
endTime: 1 # integer
outputStr: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
timeTaken: 1 # integer
tenantId: SomeValue # string
type: SomeValue # string
useState: SomeValue # string
version: 1 # integer
workflowParameters:
configList:
- configId: SomeValue # string
configParameters:
- key: SomeValue # string
value: SomeValue # string
licenseLevel: SomeValue # string
licenseType: SomeValue # string
topOfStackSerialNumber: SomeValue # string
- name: get_device_by_id
cisco.dnac.pnp_device:
state: query # required
id: SomeValue # string, required
register: nm_get_device_by_id
- name: delete_device_by_id_from_pnp
cisco.dnac.pnp_device:
state: delete # required
id: SomeValue # string, required
- name: update_device
cisco.dnac.pnp_device:
state: update # required
id: SomeValue # string, required
deviceInfo: # required
aaaCredentials:
password: SomeValue # string
username: SomeValue # string
addedOn: 1 # integer
addnMacAddrs:
- SomeValue # string
agentType: SomeValue # string
authStatus: SomeValue # string
authenticatedSudiSerialNo: SomeValue # string
capabilitiesSupported:
- SomeValue # string
cmState: SomeValue # string
description: SomeValue # string
deviceSudiSerialNos:
- SomeValue # string
deviceType: SomeValue # string
featuresSupported:
- SomeValue # string
fileSystemList:
- freespace: 1 # integer
name: SomeValue # string
readable: True # boolean
size: 1 # integer
type: SomeValue # string
writeable: True # boolean
firstContact: 1 # integer
hostname: SomeValue # string
httpHeaders:
- key: SomeValue # string
value: SomeValue # string
imageFile: SomeValue # string
imageVersion: SomeValue # string
ipInterfaces:
- ipv4Address: None
ipv6AddressList:
macAddress: SomeValue # string
name: SomeValue # string
status: SomeValue # string
lastContact: 1 # integer
lastSyncTime: 1 # integer
lastUpdateOn: 1 # integer
location:
address: SomeValue # string
altitude: SomeValue # string
latitude: SomeValue # string
longitude: SomeValue # string
siteId: SomeValue # string
macAddress: SomeValue # string
mode: SomeValue # string
name: SomeValue # string
neighborLinks:
- localInterfaceName: SomeValue # string
localMacAddress: SomeValue # string
localShortInterfaceName: SomeValue # string
remoteDeviceName: SomeValue # string
remoteInterfaceName: SomeValue # string
remoteMacAddress: SomeValue # string
remotePlatform: SomeValue # string
remoteShortInterfaceName: SomeValue # string
remoteVersion: SomeValue # string
onbState: SomeValue # string
pid: SomeValue # string
pnpProfileList:
- createdBy: SomeValue # string
discoveryCreated: True # boolean
primaryEndpoint:
certificate: SomeValue # string
fqdn: SomeValue # string
ipv4Address: None
ipv6Address: None
port: 1 # integer
protocol: SomeValue # string
profileName: SomeValue # string
secondaryEndpoint:
certificate: SomeValue # string
fqdn: SomeValue # string
ipv4Address: None
ipv6Address: None
port: 1 # integer
protocol: SomeValue # string
populateInventory: True # boolean
preWorkflowCliOuputs:
- cli: SomeValue # string
cliOutput: SomeValue # string
projectId: SomeValue # string
projectName: SomeValue # string
reloadRequested: True # boolean
serialNumber: SomeValue # string
smartAccountId: SomeValue # string
source: SomeValue # string
stack: True # boolean
stackInfo:
isFullRing: True # boolean
stackMemberList:
- hardwareVersion: SomeValue # string
licenseLevel: SomeValue # string
licenseType: SomeValue # string
macAddress: SomeValue # string
pid: SomeValue # string
priority: 1 # integer
role: SomeValue # string
serialNumber: SomeValue # string
softwareVersion: SomeValue # string
stackNumber: 1 # integer
state: SomeValue # string
sudiSerialNumber: SomeValue # string
stackRingProtocol: SomeValue # string
supportsStackWorkflows: True # boolean
totalMemberCount: 1 # integer
validLicenseLevels:
- SomeValue # string
state: SomeValue # string
sudiRequired: True # boolean
tags: None
userSudiSerialNos:
- SomeValue # string
virtualAccountId: SomeValue # string
workflowId: SomeValue # string
workflowName: SomeValue # string
_id: SomeValue # string
runSummaryList:
- details: SomeValue # string
errorFlag: True # boolean
historyTaskInfo:
addnDetails:
- key: SomeValue # string
value: SomeValue # string
name: SomeValue # string
timeTaken: 1 # integer
type: SomeValue # string
workItemList:
- command: SomeValue # string
endTime: 1 # integer
outputStr: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
timeTaken: 1 # integer
timestamp: 1 # integer
systemResetWorkflow:
_id: SomeValue # string
addToInventory: True # boolean
addedOn: 1 # integer
configId: SomeValue # string
currTaskIdx: 1 # integer
description: SomeValue # string
endTime: 1 # integer
execTime: 1 # integer
imageId: SomeValue # string
instanceType: SomeValue # string
lastupdateOn: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
tasks:
- currWorkItemIdx: 1 # integer
endTime: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
taskSeqNo: 1 # integer
timeTaken: 1 # integer
type: SomeValue # string
workItemList:
- command: SomeValue # string
endTime: 1 # integer
outputStr: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
timeTaken: 1 # integer
tenantId: SomeValue # string
type: SomeValue # string
useState: SomeValue # string
version: 1 # integer
systemWorkflow:
_id: SomeValue # string
addToInventory: True # boolean
addedOn: 1 # integer
configId: SomeValue # string
currTaskIdx: 1 # integer
description: SomeValue # string
endTime: 1 # integer
execTime: 1 # integer
imageId: SomeValue # string
instanceType: SomeValue # string
lastupdateOn: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
tasks:
- currWorkItemIdx: 1 # integer
endTime: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
taskSeqNo: 1 # integer
timeTaken: 1 # integer
type: SomeValue # string
workItemList:
- command: SomeValue # string
endTime: 1 # integer
outputStr: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
timeTaken: 1 # integer
tenantId: SomeValue # string
type: SomeValue # string
useState: SomeValue # string
version: 1 # integer
tenantId: SomeValue # string
version: 1 # integer
workflow:
_id: SomeValue # string
addToInventory: True # boolean
addedOn: 1 # integer
configId: SomeValue # string
currTaskIdx: 1 # integer
description: SomeValue # string
endTime: 1 # integer
execTime: 1 # integer
imageId: SomeValue # string
instanceType: SomeValue # string
lastupdateOn: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
tasks:
- currWorkItemIdx: 1 # integer
endTime: 1 # integer
name: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
taskSeqNo: 1 # integer
timeTaken: 1 # integer
type: SomeValue # string
workItemList:
- command: SomeValue # string
endTime: 1 # integer
outputStr: SomeValue # string
startTime: 1 # integer
state: SomeValue # string
timeTaken: 1 # integer
tenantId: SomeValue # string
type: SomeValue # string
useState: SomeValue # string
version: 1 # integer
workflowParameters:
configList:
- configId: SomeValue # string
configParameters:
- key: SomeValue # string
value: SomeValue # string
licenseLevel: SomeValue # string
licenseType: SomeValue # string
topOfStackSerialNumber: SomeValue # string
- name: get_device_count
cisco.dnac.pnp_device:
state: query # required
count: True # boolean, required
cm_state: SomeValue # string
last_contact: True # boolean
name: SomeValue # string
onb_state: SomeValue # string
pid: SomeValue # string
project_id: SomeValue # string
project_name: SomeValue # string
serial_number: SomeValue # string
smart_account_id: SomeValue # string
source: SomeValue # string
_state: SomeValue # string
virtual_account_id: SomeValue # string
workflow_id: SomeValue # string
workflow_name: SomeValue # string
register: nm_get_device_count
- name: get_device_history
cisco.dnac.pnp_device:
state: query # required
serial_number: SomeValue # string, required
sort: SomeValue # string
sort_order: SomeValue # string
register: nm_get_device_history
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Rafael Campos (@racampos)