Get Approval Requests V3
Returns approval requests
requestState
approverState
Searching is enabled on following attributes: deploymentId, deploymentName, projectId, projectName, requestedBy or action.
Flag for approval admin to filter the approval requests which has himself/herself as one of the approver
The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /approval/api/about
Results page you want to retrieve (0..N)
Number of records per page.
Sorting criteria in the format: property,(asc|desc). Default sort order is ascending.
Accept
Success - returns approval requests
{
"content": [
{
"action": "string",
"adminActioned": false,
"adminDetails": {
"comment": "string"
},
"adminName": "string",
"autoApproval": false,
"createdAt": "string",
"currentLevel": 0,
"decision": "string",
"deploymentId": "string",
"deploymentName": "string",
"expired": false,
"expiryAt": "string",
"expiryComment": "string",
"id": "string",
"lastUpdatedAt": "string",
"levels": [
{
"adminActioned": false,
"adminDetails": {
"comment": "string"
},
"adminName": "string",
"appliedPolicies": [
{
"approvers": [
{
"actionedAt": "string",
"actionedBy": "string",
"approver": "string",
"approverType": "string",
"comments": "string",
"id": "string",
"isActive": false,
"level": 0,
"status": "string"
}
],
"id": "string",
"level": 0,
"mode": "string",
"policyId": "string",
"policyName": "string",
"status": "string"
}
],
"id": "string",
"lastUpdatedAt": "string",
"level": 0,
"status": "string"
}
],
"orgId": "string",
"projectId": "string",
"projectName": "string",
"requestDetails": {
"blueprintDetails": {
"id": "string",
"name": "string",
"version": "string"
},
"catalogDetails": {
"id": "string",
"name": "string",
"version": "string"
},
"deploymentDetails": {
"currency": "string",
"deploymentCreationCost": "number"
},
"inputs": {},
"resourceDetails": {
"resourceDetails": [
{
"name": "string",
"properties": {
"properties": "string"
},
"type": "string"
}
]
}
},
"requestId": "string",
"requestedBy": "string",
"status": "string",
"totalLevels": 0
}
],
"empty": false,
"first": false,
"last": false,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": false,
"sort": [
{
"ascending": false,
"direction": "string",
"ignoreCase": false,
"nullHandling": "string",
"property": "string"
}
],
"unpaged": false
},
"size": 0,
"sort": [
{
"ascending": false,
"direction": "string",
"ignoreCase": false,
"nullHandling": "string",
"property": "string"
}
],
"totalElements": 0,
"totalPages": 0
}
content
empty
first
last
number
numberOfElements
pageable
size
sort
totalElements
totalPages
Unauthorized
Forbidden
curl -H 'Authorization: <value>' https://{api_host}/approval/api/approvals