Get Authorization Count
Queries for authorizations using a list of parameters and retrieves the count.
Method
GET /authorization/count
Parameters
Query Parameters
Name | Description |
---|---|
id | Filter by the id of the authorization. |
type | Filter by authorization type. (0=global, 1=grant, 2=revoke). See the User Guide for more information about authorization types. |
userIdIn | Filter by a comma-separated list of userIds. |
groupIdIn | Filter by a comma-separated list of groupIds. |
resourceType | Filter by an integer representation of the resource type. See the User Guide for a list of integer representations of resource types. |
resourceId | Filter by resource Id. |
Result
A JSON object that contains the count as the only property.
Name | Type | Description |
---|---|---|
count | Number | The number of matching authorizations. |
Response Codes
Code | Media type | Description |
---|---|---|
200 | application/json | Request successful. |
400 | application/json | Returned if some of the query parameters are invalid, for example if a sortOrder parameter is supplied, but no sortBy is specified. See the Introduction for the error response format. |
Example
Request
GET /authorization/count?userIdIn=jonny1,jonny2
Response
Status 200.
{"count": 2}