Get All Access Policies
get
/iam/governance/adminservice/api/v1/accesspolicies
Returns all the access policies basic details like id, name, and description. Access policies can be filtered based on name and description for example ?name=AP1&description=AP1Desc
Request
Query Parameters
-
description(optional): string
The description of the Access Policy
-
name(optional): string
The name of the Access Policy
Response
Supported Media Types
- application/json
200 Response
Access Policies
400 Response
Bad Request
500 Response
Internal Server Error
Examples
The following example shows how to get all access policies by submitting a GET request on the REST resource using cURL. The information shown here is against a pseudo system and serves as a prototype.
curl -u username:password -H "X-Requested-By:<anyvalue>" -X GET "http://myhost.pseudo.com:14000/iam/governance/adminservice/api/v1/accesspolicies"
Example of the Response Body
The following example shows the contents of the response body in JSON format:
{
"accessPolicies": [
{
"links": [
{
"rel": "self",
"href": "http://myhost.pseudo.com:14000/iam/governance/adminservice/api/v1/accesspolicies/1"
}
],
"id": "1",
"name": "AP_1615537233845",
"description": "AP_Desc_1615537233845"
},
{
"links": [
{
"rel": "self",
"href": "http://myhost.pseudo.com:14000/iam/governance/adminservice/api/v1/accesspolicies/2"
}
],
"id": "2",
"name": "AP_1615537645373",
"description": "AP_Desc_1615537645373"
}
]
}