How can we help?

Searching:

0 results found

Tasks/Get (List)

GET odata/tasks

Description

Gets the list of all Tasks in the Axonize system. To get the Tasks associated with a specific Role, see Roles/Get/[roleId]/Tasks.

See the following for request and response details ‒

See Also

Request ‒ Tasks/Get (List)

Example JSON Tasks/Get (List) Request

curl -X GET \

https://api.dev.axonize.com/odata/Tasks \

-H ‘Accept: application/json, text/plain, */*’ \

-H ‘Accept-Language: en-US,en;q=0.9’ \

-H ‘Content-Type: application/json’ \

-H ‘appId: 289a7624-c590-4b4c-b15a-7801d8902ce9’ \

-H ‘cache-control: no-cache’ \

Response ‒ Tasks/Get (List)

The response that is returned contains the following properties –

Property Type Description
name String The Task name.
displayName String The Task name that displays in the Axonize Portal.
entity String The entity that defines the task group, such as Devices, Alarm Instances, Rules, Products and so on.
id String The task ID.
appId String The ID of the master application associated with the Task.
createDate See Common Response Properties.

Example JSON Tasks/Get (List) Response

Status 200 – OK

{

“@odata.context”:”https://dev-axonizeapi-axonize.dev-ase-axonize.p.azurewebsites.net/odata/$metadata#Tasks”,

“value”: [

{

“name”: “locales-fullcontrol”,

“displayName”: “msg_authtask_locales_fullcontrol”,

“entity”: “Locales”,

“id”: “00261C68-0EBC-45FF-AE39-8D696EE6D91F”,

“appId”: null,

“creationDate”: “2018-08-19T07:37:55.283Z”,

“taskToEndpoints”: [

{

“taskId”: “00261C68-0EBC-45FF-AE39-8D696EE6D91F”,

“endpointId”: “93C77623-D4A4-45C4-9585-6FFEC8B0A84D”,

“uiPermissionType”: 0

}

]

},

{

“name”: “system-fullcontrol”,

“displayName”: “msg_authtask_system_fullcontrol”,

“entity”: “System”,

“id”: “07EE6726-5E62-4864-93DC-667A24A4E86D”,

“appId”: null,

“creationDate”: “2018-08-19T07:38:05.877Z”,

“taskToEndpoints”: []

} ]

}