All URIs are relative to http://localhost:9000
| Method | HTTP request | Description |
|---|---|---|
| findQueuedTask | GET /queue/{id} | |
| getQueuedTasks | GET /queue |
Queue findQueuedTask(id)
Returns the queued task with the given id.
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.QueueApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
QueueApi apiInstance = new QueueApi(defaultClient);
String id = "id_example"; // String | Unique identifier of the resource
try {
Queue result = apiInstance.findQueuedTask(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QueueApi#findQueuedTask");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Unique identifier of the resource |
- Content-Type: Not defined
- Accept: application/json, code, message,
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Authorization for this action is missing | - |
| 403 | Forbidden action | - |
| 500 | An unexpected Error occured | - |
| 504 | Server temporary not available | - |
List<Queue> getQueuedTasks()
Returns all running queued tasks visible to the user
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.QueueApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
QueueApi apiInstance = new QueueApi(defaultClient);
try {
List<Queue> result = apiInstance.getQueuedTasks();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QueueApi#getQueuedTasks");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json, code, message,
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Authorization for this action is missing | - |
| 403 | Forbidden action | - |
| 500 | An unexpected Error occured | - |
| 504 | Server temporary not available | - |