cisco.dnac.device_replacement – Manage DeviceReplacement objects of DeviceReplacement¶
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.device_replacement
.
New in version 1.0.0: of cisco.dnac
Synopsis¶
Get list of replacement devices with replacement details and it can filter replacement devices based on Faulty Device Name,Faulty Device Platform, Replacement Device Platform, Faulty Device Serial Number,Replacement Device Serial Number, Device Replacement status, Product Family.
Marks device for replacement.
UnMarks device for replacement.
Get replacement devices count.
Note
This module has a corresponding action plugin.
Parameters¶
See Also¶
See also
- cisco.dnac.plugins.module_utils.definitions.device_replacement
The official documentation on the cisco.dnac.plugins.module_utils.definitions.device_replacement module.
- DeviceReplacement reference
Complete reference of the DeviceReplacement object model.
- DeviceReplacement reference
SDK reference.
Examples¶
- name: return_replacement_devices_with_details
cisco.dnac.device_replacement:
state: query # required
family: SomeValue # string
faulty_device_name: SomeValue # string
faulty_device_platform: SomeValue # string
faulty_device_serial_number: SomeValue # string
limit: 1 # integer
offset: 1 # integer
replacement_device_platform: SomeValue # string
replacement_device_serial_number: SomeValue # string
replacement_status: SomeValue # string
sort_by: SomeValue # string
sort_order: SomeValue # string
register: nm_return_replacement_devices_with_details
- name: mark_device_for_replacement
cisco.dnac.device_replacement:
state: create # required
payload: # required
- faultyDeviceId: SomeValue # string, required
replacementStatus: SomeValue # string, required
creationTime: 1 # integer
family: SomeValue # string
faultyDeviceName: SomeValue # string
faultyDevicePlatform: SomeValue # string
faultyDeviceSerialNumber: SomeValue # string
id: SomeValue # string
neighbourDeviceId: SomeValue # string
networkReadinessTaskId: SomeValue # string
replacementDevicePlatform: SomeValue # string
replacementDeviceSerialNumber: SomeValue # string
replacementTime: 1 # integer
workflowId: SomeValue # string
- name: unmark_device_for_replacement
cisco.dnac.device_replacement:
state: update # required
payload: # required
- faultyDeviceId: SomeValue # string, required
replacementStatus: SomeValue # string, required
creationTime: 1 # integer
family: SomeValue # string
faultyDeviceName: SomeValue # string
faultyDevicePlatform: SomeValue # string
faultyDeviceSerialNumber: SomeValue # string
id: SomeValue # string
neighbourDeviceId: SomeValue # string
networkReadinessTaskId: SomeValue # string
replacementDevicePlatform: SomeValue # string
replacementDeviceSerialNumber: SomeValue # string
replacementTime: 1 # integer
workflowId: SomeValue # string
- name: return_replacement_devices_count
cisco.dnac.device_replacement:
state: query # required
count: True # boolean, required
replacement_status: SomeValue # string
register: nm_return_replacement_devices_count
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Rafael Campos (@racampos)