Page tree




In This Document 


Was this document useful? 
Your Rating:
Results:
1 Star2 Star3 Star4 Star5 Star
2 rates


Have a suggestion for the Armor Knowledge Base? Send a message to kb@armor.com.



Overview

This API call applies to both Armor Complete and Armor Anywhere users.

The Get Roles API retrieves the roles associated with your account, including the corresponding permissions and users in this role.

You can use this API to find the role ID. You will need this ID for other role-related APIs.

Sample request

GET https://api.armor.com/roles

Input

The following table describes the different parts of this API call: 

API Call / URLMethod / Type
/rolesGET


There are no parameters for this API call. 


Sample return

StatusResponse
200
[
 {
      "id": 4,
      "name": "Admin",
      "created": "2015-12-13T02:00:46.51",
      "modified": null,
      "members": [
      {
           "id": 2,
      "firstName": "John",
      "lastName": "Smith",
      "email": "john.smith@example.com",
      "added": "2015-12-13T02:01:30.923",
      "enabled": true
      }
      ],
      "permissions": [
      1,
      2,
      3
      ],
      "default": true
 }
]
404