cisco.dnac.pnp_workflow – Manage PnpWorkflow 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_workflow
.
New in version 1.0.0: of cisco.dnac
Synopsis¶
Returns the list of workflows based on filter criteria. If a limit is not specified, it will default to return 50 workflows. Pagination and sorting are also supported by this endpoint.
Adds a PnP Workflow along with the relevant tasks in the workflow into the PnP database.
Returns a workflow specified by id.
Deletes a workflow specified by id.
Updates an existing workflow.
Returns the workflow count.
Note
This module has a corresponding action plugin.
Parameters¶
See Also¶
See also
- cisco.dnac.plugins.module_utils.definitions.pnp_workflow
The official documentation on the cisco.dnac.plugins.module_utils.definitions.pnp_workflow module.
- PnpWorkflow reference
Complete reference of the PnpWorkflow object model.
- PnpWorkflow reference
SDK reference.
Examples¶
- name: get_workflows
cisco.dnac.pnp_workflow:
state: query # required
limit: 1 # integer
name: SomeValue # string
offset: 1 # integer
sort: SomeValue # string
sort_order: SomeValue # string
type: SomeValue # string
register: nm_get_workflows
- name: add_a_workflow
cisco.dnac.pnp_workflow:
state: create # required
_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: # valid values are 'SystemWorkflow',
# 'UserWorkflow',
# 'SystemResetWorkflow'.
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
- name: get_workflow_by_id
cisco.dnac.pnp_workflow:
state: query # required
id: SomeValue # string, required
register: nm_get_workflow_by_id
- name: delete_workflow_by_id
cisco.dnac.pnp_workflow:
state: delete # required
id: SomeValue # string, required
- name: update_workflow
cisco.dnac.pnp_workflow:
state: update # required
id: SomeValue # string, required
_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: # valid values are 'SystemWorkflow',
# 'UserWorkflow',
# 'SystemResetWorkflow'.
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
- name: get_workflow_count
cisco.dnac.pnp_workflow:
state: query # required
count: True # boolean, required
name: SomeValue # string
register: nm_get_workflow_count
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Rafael Campos (@racampos)