Get a specific role for a specific policy by policy Id and role Id

get

/PASService/rest/services/v1/policies/{policyId}/roles/{roleId}

Gets a role associated to a policy based on the specified policy Id and role Id

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

This operation fetches a specific role for a specific policy by policy Id and role Id successfully.
Back to Top

Examples

This example describes how to get a role associated to a policy based on the specified policy Id and role Id.

Example cURL Command

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

curl \
    -X GET \ 
    -H "Content-Type: application/json" \
    -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ 
    -L "http://server:port/PASService/rest/services/v1/policies/22E39E64-7876-4A61-B5FE-9E45A291C54D/roles/0DE0006A-983F-4210-B3A5-54DD41955774"

Example Response Body

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

{
    "role": {
        "links": [
            {
                "href": "http://server:port/PASService/rest/services/v1/policies/08739DA7-D305-450F-975A-44B269B159CD/roles/FCDE474F-B328-47C0-AC40-2888A0A6E0BF",
                "rel": "self",
                "mediaType": "application/json",
                "method": "GET"
            },
            {
                "href": "http://server:port/PASService/rest/services/v1/codes?codeName=Role&codeValue=11",
                "rel": "codes/role",
                "mediaType": "application/json",
                "method": "GET"
            },
            {
                "href": "http://server:port/PASService/rest/services/v1/codes?codeName=RoleStatus&codeValue=01",
                "rel": "codes/status",
                "mediaType": "application/json",
                "method": "GET"
            }
        ],
        "multiFields": {},
        "codes": [
            {
                "codeName": "AsCodeRole",
                "codeValue": "11",
                "longDescription": "Customer Service Representative",
                "shortDescription": "CSR"
            },
            {
                "codeName": "AsCodeRoleStatus",
                "codeValue": "01",
                "longDescription": "Active",
                "shortDescription": "Active"
            }
        ],
        "roleAmount": null,
        "rolePercent": null,
        "stateCode": null,
        "roleId": "FCDE474F-B328-47C0-AC40-2888A0A6E0BF",
        "clientId": "23D8108C-A278-4A8C-89FC-C64EB37EF1A1",
        "externalclientId": null,
        "companyId": null,
        "percentDollar": null,
        "policyId": "08739DA7-D305-450F-975A-44B269B159CD",
        "role": "11",
        "segmentId": null,
        "status": "01"
    }
}
Back to Top