Get Decisions Using GET 1

Get Decisions Using GET 1

Returns a paginated list of policy decisions. If a dryRunId is provided, the return value has a field indicating whether the dry run is complete.

Request
URI
GET
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/policy/api/policyDecisions
COPY
Query Parameters
string of array
$orderby
Optional

Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported.

integer
$skip
Optional

Number of records you want to skip

$skip example
1
integer
$top
Optional

Number of records you want

$top example
1
string
dryRunId
Optional

dryRunId

string
policyTypeId
Optional

Matches will only include policies of this type

string
projectId
Optional

Matches will only include decisions with this project ID

string
search
Optional

Matches will start with this string in their policy name or target name or have this string somewhere in their description.


Responses
200

OK

Returns PageOfPolicyDecisionOfObjectNode of type(s) application/json
{
    "content": [
        {
            "description": "string",
            "dryRunId": "string",
            "dryRunSubTaskId": "string",
            "id": "string",
            "orgId": "string",
            "policies": [
                {
                    "enforcementType": "string",
                    "id": "string",
                    "name": "string",
                    "projectId": "string",
                    "rank": 0,
                    "status": "string"
                }
            ],
            "projectId": "string",
            "targetId": "string",
            "targetName": "string",
            "timestamp": "string",
            "typeId": "string"
        }
    ],
    "empty": false,
    "first": false,
    "last": false,
    "number": 0,
    "numberOfElements": 0,
    "size": 0,
    "sort": {
        "empty": false,
        "sorted": false,
        "unsorted": false
    },
    "totalElements": 0,
    "totalPages": 0
}
content
Optional

content

boolean
empty
Optional

empty

boolean
first
Optional

first

boolean
last
Optional

last

integer As int32 As int32
number
Optional

number

integer As int32 As int32
numberOfElements
Optional

numberOfElements

integer As int32 As int32
size
Optional

size

sort
Optional

sort

integer As int64 As int64
totalElements
Optional

totalElements

integer As int32 As int32
totalPages
Optional

totalPages