v1

latestOpenAPI 3.0.02026-07-243339471.1 MB
CX Switches

List active async tasks for a CX Switch

Retrieves a list of all active or recently completed asynchronous operations for the specified CX Switch, grouped by test name. Results are sorted by startTime in descending order (most recently started first).

get/network-troubleshooting/v1/cx/{serial-number}/list-tasks

Path parameters

serial-numberstring required

Serial number of the target device

Response

OK. Returns the list of active/recent tasks.

testNamestring required

The name of the test or command (e.g., 'ping', 'showCommands').

locationsstring[] required

A list of one or more active/recent task locations for this test type.

Example response

[
  {
    "testName": "showCommands",
    "locations": [
      "/network-troubleshooting/v1/aps/CNMJKZ203A/showCommands/async-operations/34f851ed-5142-44e3-a387-1f57e098e7c6"
    ]
  },
  {
    "testName": "ping",
    "locations": [
      "/network-troubleshooting/v1/aps/CNMJKZ203A/ping/async-operations/03b02a6f-ba7e-47de-8763-161c7ab17ad1"
    ]
  },
  {
    "testName": "getArpTable",
    "locations": [
      "/network-troubleshooting/v1/aps/CNMJKZ203A/getArpTable/async-operations/2cb150ca-a6b5-4603-9135-563697f1f4b9",
      "/network-troubleshooting/v1/aps/CNMJKZ203A/getArpTable/async-operations/9728dc97-8a81-45b7-91ab-676faaf7de0e"
    ]
  }
]