Get list of policies

get

/PASService/rest/services/policies

Gets a list of the latest 100 policies. Also, define expand attributes to expand a policy by its sub-resources such as segments and roles

Request

Query Parameters
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : items
Type: object
Back to Top

Examples

This example describes how to get a list of the latest 100 policies. Also, define expand attributes to expand a policy by its sub-resources such as segments and roles.

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"

Example Response Body

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

"{
    "count": 100,
    "offset": 0,
    "limit": 100,
    "policies": [
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/policies/22E39E64-7876-4A61-B5FE-9E45A291C54D",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/policies/22E39E64-7876-4A61-B5FE-9E45A291C54D/segments",
                    "rel": "segments",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/policies/22E39E64-7876-4A61-B5FE-9E45A291C54D/roles",
                    "rel": "roles",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/policies/22E39E64-7876-4A61-B5FE-9E45A291C54D/requirements",
                    "rel": "requirements",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/codes?codeName=State&codeValue=55",
                    "rel": "codes/issueStateCode",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/codes?codeName=System&codeValue=01",
                    "rel": "codes/systemCode",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/codes?codeName=Status&codeValue=08",
                    "rel": "codes/status",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "multiFields": {
                "ComboTestMF": [
                    {
                        "index": 0,
                        "ComboTest1": {
                            "textValue": "00",
                            "optionText": "No"
                        },
                        "ComboTest2": {
                            "textValue": "00",
                            "optionText": "No"
                        },
                        "ComboTest3": {
                            "textValue": "00",
                            "optionText": "No"
                        },
                        "ComboTest4": {
                            "textValue": "00",
                            "optionText": "No"
                        },
                        "ComboTest5": {
                            "textValue": "00",
                            "optionText": "No"
                        },
                        "ComboTest6": {
                            "textValue": "00",
                            "optionText": "No"
                        }
                    }
                ],
                "TextTestMF": [
                    {
                        "index": 0,
                        "TextTest1": "TestA"
                    }
                ],
                "RadioTestMF": [
                    {
                        "index": 0,
                        "RadioTest2": {
                            "textValue": "00",
                            "optionText": "No"
                        },
                        "RadioTest1": {
                            "textValue": "00",
                            "optionText": "No"
                        },
                        "RadioTest4": {
                            "textValue": "00",
                            "optionText": "No"
                        },
                        "RadioTest3": {
                            "textValue": "00",
                            "optionText": "No"
                        }
                    }
                ],
                "CheckTestMF": [
                    {
                        "index": 0,
                        "CheckboxTest2": "UNCHECKED",
                        "CheckboxTest1": "UNCHECKED",
                        "CheckboxTest4": "UNCHECKED",
                        "CheckboxTest3": "UNCHECKED"
                    }
                ]
            },
            "policyName": "Payal",
            "policyNumber": "Payal",
            "planDate": "2015-08-04T00:00:00Z",
            "issueStateCode": "55",
            "systemCode": "01",
            "segments": {},
            "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"
                        }
                    ]
                }
            ],
            "policyId": "22E39E64-7876-4A61-B5FE-9E45A291C54D",
            "creationDate": "2020-01-20T00:00:00Z",
            "updatedDate": "2020-01-20T14:34:31Z",
            "companyId": "05711222-7DB3-4EBD-A821-57A30A699B88",
            "planId": "C5EE0DA4-3003-42C1-9468-D91DA546B79F",
            "status": "08",
            "MVAStartDate": "2020-01-20T14:34:31Z",
            "VersionIndicator": "Y",
            "PolicyCurrencySupportTest": {
                "value": 0,
                "currency": "USD"
            },
            "MVAEndDate": "2021-01-20T14:34:31Z",
            "InterestBonusQual": {
                "textValue": "Yes",
                "optionText": "Yes"
            },
            "MVAWithdrawFlag": "N",
            "RiderWithClientAssignmentII": "CHECKED",
            "EffectiveDate": "2020-01-20T14:34:31Z"
        }
"
Back to Top