Get all the roles for a policy

get

/PASService/rest/services/policies/{id}/roles

Gets a list of roles associated to a policy based on the specified policy Id

Request

Path Parameters
  • Pattern: \{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?
    Policy Id
Query Parameters
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

Examples

This example describes how to get a list of roles associated to a policy based on the specified policy Id.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/policies/22E39E64-7876-4A61-B5FE-9E45A291C54D/roles"

Example Response Body

The following shows an example of the response body in JSON format:

"{
    "count": 1,
    "roles": [
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/policies/22E39E64-7876-4A61-B5FE-9E45A291C54D/roles/0DE0006A-983F-4210-B3A5-54DD41955774",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/codes?codeName=Role&codeValue=11",
                    "rel": "codes/role",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/codes?codeName=RoleStatus&codeValue=01",
                    "rel": "codes/status",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "multiFields": {},
            "roleAmount": 23,
            "rolePercent": 25,
            "stateCode": "CA",
            "roleId": "0DE0006A-983F-4210-B3A5-54DD41955774",
            "clientId": "5149CC4C-1D1C-45BF-910B-D0DA1B3A785B",
            "externalclientId": "F7BDD802-7238-4A9D-938A-681D0EB1524C",
            "companyId": "DBE69F0F-A701-442D-9CE5-08D5BB376E55",
            "percentDollar": 22,
            "policyId": "22E39E64-7876-4A61-B5FE-9E45A291C54D",
            "role": "11",
            "segmentId": "E16FC469-8A92-4A48-9C12-043F5222EB2A",
            "status": "01"
        }
    ]
}
"
Back to Top