Available in Nexus Repository OSS and Nexus Repository Pro
This set of endpoints allows us to interact with tasks that have been created in the repository manager administrative UI.
This endpoint allows us to iterate through a listing of all the existing tasks.
Let's get a listing of the current tasks:
This endpoint uses a pagination strategy that can be used to iterate through all the tasks if desired.
In this case, we only have one page of results as signified by the
This endpoint allows us to get the details about in individual task.
Let's take a look at the details for the "Hello World" task (i.e.
This endpoint allows us to run an individual task.
For example, to run the "Hello World" task from above:
This endpoint allows us to stop an individual task. This is the equivalent of cancelling a task in the repository manager UI. Note that not all tasks will respond to a cancellation request.
For example to stop the "Hello World" task:
In this example the "Hello World" task was not running when the stop request was made. We will get a 409 response code that signifies that the requested task was not currently running: