CodeShare
Have some code. Share some code.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem this snippet solves:

Introduced : EM_v3.0

Use the get_task_status API to determine the current status of a device discovery task.

How to use this snippet:

Python

ic.Management.EM.get_task_status(ids = task_ids)

C#, Java, and Perl

ic.Management.EM.get_task_status(ids = task_ids);

Inputs

Name Type Description
tasksString SequenceThis parameter specifies the task IDs of the tasks for which you want to know the status.

Return Values

Name Type Description
taskTaskStatus SequenceThe ID of the new discovery task. This ID can return the following values:
  • TASK_STATUS_UNKNOWN
  • TASK_STATUS_PENDING
  • TASK_STATUS_STARTED
  • TASK_STATUS_FAILED
  • TASK_STATUS_COMPLETE
  • TASK_STATUS_RUNNING
  • TASK_STATUS_CANCELING
  • TASK_STATUS_CANCELED
  • TASK_STATUS_ABANDONED
  • TASK_STATUS_TERMINATED
  • TASK_STATUS_TIMED_OUT
  • TASK_STATUS_RESCHEDULED

Exceptions

Exception Name This exception is raised when...
AccessDeniedThe credentials supplied by the client do not satisfy the F5 device's validation requirements.
OperationFailedThe API call causes an operation error.
InvalidArgumentThe API call contains an invalid argument.

Code :

To view a code sample, click the relevant code type.

C# (.net)
Java
Perl
Python
Version history
Last update:
‎05-Jun-2023 22:32
Updated by: