Get a summary list of capabilities
Returns a summary list of capabilities defined in the system. Note that paging is not supported when the group parameter is used.
1{2 "description": "A collection of capability summaries",3 "links": [4 {5 "method": "GET",6 "rel": "collection",7 "href": "/authorization/capabilities",8 "uri": "/authorization/capabilities",9 "type": "application/vnd.sas.collection"10 },11 {12 "method": "GET",13 "rel": "self",14 "href": "/authorization/capabilities?sortBy=name:ascending&user=gclooney&start=0&limit=100",15 "uri": "/authorization/capabilities?sortBy=name:ascending&user=gclooney&start=0&limit=100",16 "type": "application/vnd.sas.collection"17 }18 ],19 "name": "items",20 "accept": "application/vnd.sas.authorization.capability+json",21 "start": 0,22 "count": 2,23 "items": [24 {25 "creationTimeStamp": null,26 "modifiedTimeStamp": null,27 "createdBy": null,28 "modifiedBy": null,29 "id": "capability001",30 "name": "sas.folders.create",31 "uri": "/capability/sas/folders/create",32 "description": "grant ability to create a folder",33 "product": "va",34 "version": 2,35 "links": [],36 "principals": []37 },38 {39 "creationTimeStamp": null,40 "modifiedTimeStamp": null,41 "createdBy": null,42 "modifiedBy": null,43 "id": "capability003",44 "name": "sas.folders.delete",45 "uri": "/capability/sas/folders/delete",46 "description": "grant ability to delete a folder",47 "product": "va",48 "version": 2,49 "links": [],50 "principals": []51 }52 ],53 "limit": 100,54 "version": 255}
Name | Type | Required | Description |
---|---|---|---|
filter | string<filter-criteria> | false | Instructions for filtering the retrieved capabilities. Supports filtering on the name and description fields. |
group | string | false | Only capabilities that have been assigned directly to the specified group will be included. Starting the group name with ! will invert the query so that only capabilities that have not been assigned directly to the specified group will be included. |
limit | integer | false | Set the limit for paging. |
sortBy | string | false | Set the sort order for the list. Supports ascending and descending on the name and description fields. |
start | integer | false | Set the start position for paging. |
user | string | false | Only capabilities that are authorized for the specified user will be included in the response. The value "user=@currentUser" may be used to return only the current user's capabilites (current user will be pulled from the request's authorization token). Allowed value: @currentUser |
Name | Type | Required | Description |
---|---|---|---|
Accept-Item | string | false | The respresentation to use for the returned capabilities. Allowed values: application/vnd.sas.authorization.capabilityapplication/vnd.sas.authorization.capability;version=1application/vnd.sas.authorization.capability;version=2application/vnd.sas.authorization.capability.summaryapplication/vnd.sas.authorization.capability.summary;version=1application/vnd.sas.authorization.capability.summary;version=2 Default: application/vnd.sas.authorization.capability.summary;version=2 |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | OK | Headers | Schema |
400 | Bad Request | Bad request. | Schema | |
404 | Not Found | Service is not available | Schema |