Verifying and Deleting Tasks

Verifying Tasks

Verifying the Task
GET http://<mgmt0_IP>/api/mo/sys/action/lsubj-[sys]/topSystemCreateCheckpointLTask.json
{
  "totalCount": "1",
  "imdata": [
    {
      "topSystemCreateCheckpointLTask": {
        "attributes": {
          "adminSt": "start",
          "childAction": "",
          "delete": "no",
          "descr": "",
          "description": "",
          "dn": "sys/action/lsubj-[sys]/topSystemCreateCheckpointLTask",
          "filename": "",
          "freq": "one-shot",
          "modTs": "2018-10-08T15:26:16.730+00:00",
          "name": "xyz",
          "peerClassId": "topSystemCreateCheckpointRslt",
          "persistentOnReload": "true",
          "rSz": "100",
          "rTm": "00:00:00:00.000",
          "startTs": "never",
          "status": "",
          "type": "clear"
        }
      }
    }
  ]
}

To verify a task, send a GET request using the DN found inside the payload you sent in the POST operation.

This example demonstrates how to verify the Creating a Checkpoint to a File task, which is located in the Managing the Infrastructure section.

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:

https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting Task Results

Deleting a Task Result
DELETE http://<mgmt0_IP>/api/mo/sys/action/lsubj-[sys]/topSystemCreateCheckpointLTask.json
{
  "imdata": []
}

To delete a task result, send a DELETE request using the DN found inside the payload you posted.

This example demonstrates how to delete the result of the Creating a Checkpoint to a File task, which is located in the Managing the Infrastructure section.

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:

https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html