Response ‒ Roles/Get/[roleId]/Tasks
The response that is returned also contains the following properties –
Property
Type
Description
name
String
The name of the Task.
displayName
String
The name of the Task to be displayed in the IoT Platform Portal.
entity
String
Specifies the entity for which this Task is defined, such as a Device, Product, Group, Rule, alarmInstance and so on. Only one entity can be specified.
id
String
The unique identifier automatically assigned by IoT Platform when a Task is created.
appId
String
Not in use.
createDate
See Common Response Properties.
Example JSON Roles/Get/[roleId]/Tasks Response
Status 200 – OK
{
“@odata.context”: “https://dev-axonizeapi-axonize.dev-ase-axonize.p.azurewebsites.net/odata/$metadata#Collection(Axonize.Data.Repository.Sql.Task)”,
“value”: [
{
“@odata.type”: “#Axonize.Data.Repository.Sql.Task”,
“name”: “groups-fullcontrol”,
“displayName”: “msg_authtask_groups_fullcontrol”,
“entity”: “Groups”,
“id”: “15B8BC56-81ED-402E-95CA-3842BBA386BD”,
“appId”: null,
“creationDate”: “2018-08-19T07:37:55.11Z”,
},
{
“@odata.type”: “#Axonize.Data.Repository.Sql.Task”,
“name”: “groups-delete”,
“displayName”: “msg_authtask_groups_delete”,
“entity”: “Groups”,
“id”: “3C45155E-21E8-4B25-96FA-7F064605F8AD”,
“appId”: null,
“creationDate”: “2018-08-19T07:37:52.613Z”,
} ]
}