Returns the count of all tasks.
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| int | Task count |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/countTasks
Example response
50Delete Task and TaskResults.
| Parameter name | Data type | Description |
|---|---|---|
| task | int | Task to delete. |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/deleteTask
Example params
{ "task" : 31 }Example response
nullDelete TaskResult by its ID
| Parameter name | Data type | Description |
|---|---|---|
| taskResultId | int | ID of TaskResult to deleted |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/deleteTaskResultById
Example params
{ "taskResultId" : 31 }Example response
nullDelete TaskResults for specified Task and Destination.
| Parameter name | Data type | Description |
|---|---|---|
| taskId | int | ID of Task to delete TaskResults for |
| destinationId | int | ID of Destination to delete TaskResults for |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/deleteTaskResults
Example params
{ "taskId" : 39 , "destinationId" : 52 }Example response
nullDelete TaskResults for specified Task and Destination.
| Parameter name | Data type | Description |
|---|---|---|
| taskId | int | ID of Task to delete TaskResults for |
| destinationName | String | Name of Destination to delete TaskResults for |
| destinationType | String | Type of Destination to delete TaskResults for |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/deleteTaskResults
Example params
{ "taskId" : 64 , "destinationName" : "text" , "destinationType" : "text" }Example response
nullDelete TaskResult by its IDs
| Parameter name | Data type | Description |
|---|---|---|
| taskResultIds | List<Integer> | IDs of TaskResult to deleted |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/deleteTaskResultsByIds
Example params
{ "taskResultIds" : [ 63 , 31 ] }Example response
nullReturn propagation status of all facilities in Perun.
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<FacilityState> | Propagation status |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getAllFacilitiesStates
Example response
{ ... TODO ... }Return propagation status of all facilities related to VO resources.
| Parameter name | Data type | Description |
|---|---|---|
| vo | int | VO id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<FacilityState> | Propagation status |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getAllFacilitiesStates
Example params
{ "vo" : 9 }Example response
{ ... TODO ... }Return propagation status of all resources related to VO.
| Parameter name | Data type | Description |
|---|---|---|
| voId | int | VO id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<ResourceState> | Propagation status |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getAllResourcesState
Example params
{ "voId" : 57 }Example response
{ ... TODO ... }Returns service states for defined facility.
| Parameter name | Data type | Description |
|---|---|---|
| Facility | int | id of facility |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<ServiceState> | serviceStates. |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getFacilityServicesState
Example params
{ "Facility" : 97 }Example response
{ ... TODO ... }Return propagation status of facility.
| Parameter name | Data type | Description |
|---|---|---|
| facility | int | Facility id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| FacilityState | Facility state |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getFacilityState
Example params
{ "facility" : 54 }Example response
{ ... TODO ... }Returns a task.
| Parameter name | Data type | Description |
|---|---|---|
| service | int | Service id |
| facility | int | Facility id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| Task | Found task |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTask
Example params
{ "service" : 6 , "facility" : 48 }Example response
{ ... TODO ... }Returns Task by its id.
| Parameter name | Data type | Description |
|---|---|---|
| id | int | Task id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| Task | Task |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskById
Example params
{ "id" : 79 }Example response
{ ... TODO ... }Returns TaskResult by its id.
| Parameter name | Data type | Description |
|---|---|---|
| taskResult | int | TaskResult id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| TaskResult | Result |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskResultById
Example params
{ "taskResult" : 43 }Example response
{ ... TODO ... }Returns all task results.
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<TaskResult> | Task results. |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskResults
Example response
{ ... TODO ... }Return list of TaskResults by a Task.
| Parameter name | Data type | Description |
|---|---|---|
| task | int | Task id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<TaskResult> | Results |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskResultsByTask
Example params
{ "task" : 6 }Example response
{ ... TODO ... }Return list of TaskResults by a Task and destination for GUI.
| Parameter name | Data type | Description |
|---|---|---|
| task | int | Task |
| destination | int | Destination id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<TaskResult> | Results |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskResultsByTaskAndDestination
Example params
{ "task" : 87 , "destination" : 50 }Example response
{ ... TODO ... }Return list of only newest TaskResults by a Task for GUI.
| Parameter name | Data type | Description |
|---|---|---|
| task | int | Task |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<TaskResult> | Results |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskResultsByTaskOnlyNewest
Example params
{ "task" : 7 }Example response
{ ... TODO ... }Returns task results for defined destinations.
| Parameter name | Data type | Description |
|---|---|---|
| destinations | List<String> | Destinations |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<TaskResult> | Results. |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskResultsForDestinations
Example params
{ "destinations" : [ "text" , "text" ] }Example response
{ ... TODO ... }| Parameter name | Data type | Description |
|---|---|---|
| task | int | Task |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<TaskResult> | Results |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskResultsForGUIByTask
Example params
{ "task" : 14 }Example response
{ ... TODO ... }| Parameter name | Data type | Description |
|---|---|---|
| task | int | Task |
| destination | int | Destination id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<TaskResult> | Results |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskResultsForGUIByTaskAndDestination
Example params
{ "task" : 38 , "destination" : 94 }Example response
{ ... TODO ... }| Parameter name | Data type | Description |
|---|---|---|
| task | int | Task |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<TaskResult> | Results |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest
Example params
{ "task" : 85 }Example response
{ ... TODO ... }Check if propagating tasks to engine is suspended via the DB flag CAREFUL: even if not suspended though DB, can be suspended temporarily through un-persistent call of `suspendTasksPropagation`
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| boolean | True if task propagation is suspended in DB |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/isSuspendedTasksPropagation
Example response
trueWhether task exists.
| Parameter name | Data type | Description |
|---|---|---|
| service | int | Service id |
| facility | int | Facility id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| int | 1 = true; 0 = false |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/isThereSuchTask
Example params
{ "service" : 29 , "facility" : 21 }Example response
39Returns all tasks.
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<Task> | All tasks |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/listAllTasks
Example response
{ ... TODO ... }Returns all tasks associated with selected facility.
| Parameter name | Data type | Description |
|---|---|---|
| facility | int | Facility id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<Tasks> | Tasks |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/listAllTasksForFacility
Example params
{ "facility" : 4 }Example response
{ ... TODO ... }Resumes dispatcher's tasks propagation to the engine. Persistent suspension needs to be resumed using the optional `persistently` parameter.
| Parameter name | Data type | Description |
|---|---|---|
| persistently | boolean | true if the suspension to resume is persistent |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/resumeTasksPropagation
Example params
{ "persistently" : true }Example response
nullTemporarily stops dispatcher from propagating waiting tasks to the engine. Perun restart will by default resume propagation, you can use either the optional `persistently` parameter or dispatcher property settings for a more permanent solution
| Parameter name | Data type | Description |
|---|---|---|
| persistently | boolean | true if the suspension should persist through restart |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/tasksManager/suspendTasksPropagation
Example params
{ "persistently" : true }Example response
null