Searching:
0 results foundRoles/Get/[roleId]/Tasks
GET odata/roles/[id]/Tasks
Description
Returns the list of Tasks associated with a specific Role and the Tasks’ properties.
See the following for request and response details ‒
See Also
Request ‒ Roles/Get/[roleId]/Tasks
Property | Type | Description |
id | String | This is the unique identifier automatically assigned by Axonize when a Role is created. This id is returned in the response of the Roles/Post. |
Example JSON Roles/Get /[roleId]/Tasks Request
curl -X GET \
https://api.dev.axonize.com/odata/Roles/9939D515-852A-4CAB-A676-6C214CB09A47/Tasks \
-H ‘Accept: application/json, text/plain, */*’ \
-H ‘Accept-Language: en-US,en;q=0.9’ \
-H ‘AppId: 289a7624-c590-4b4c-b15a-7801d8902ce9’ \
-H ‘Content-Type: application/json’ \
-H ‘cache-control: no-cache’ \
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 Axonize 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 Axonize 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”,
} ]
}