Get Approval Requests V2 Using GET 1
Returns approval requests
Request
URI
GET
https://{api_host}//api.mgmt.cloud.vmware.com/approval/api/approvals
COPY
Query Parameters
string
approverState
Optional
approverState
Possible values are : APPROVED, REJECTED, PENDING, EXPIRED, CANCELLED,
boolean
filterEntitledRequests
Optional
Flag for approval admin to filter the approval requests which has himself/herself as one of the approver
integer
offset
Optional
offset
integer
pageNumber
Optional
pageNumber
integer
pageSize
Optional
pageSize
boolean
paged
Optional
paged
string
requestState
Optional
requestState
Possible values are : APPROVED, REJECTED, PENDING, EXPIRED, CANCELLED,
string
search
Optional
Searching is enabled on following attributes: deploymentId, deploymentName, projectId, projectName, requestedBy or action.
boolean
sort.sorted
Optional
sort.sorted
boolean
sort.unsorted
Optional
sort.unsorted
boolean
unpaged
Optional
unpaged
Responses
200
Success - returns approval requests
Returns PageOfDeploymentApprovalRequest of type(s) application/json
{
"content": [
{
"action": "string",
"adminActioned": false,
"adminDetails": {
"comment": "string"
},
"adminName": "string",
"appliedPolicies": [
{
"approvers": [
{
"actionedAt": "string",
"approver": "string",
"approverType": "string",
"comments": "string",
"id": "string",
"isActive": false,
"phase": 0,
"status": "string"
}
],
"id": "string",
"mode": "string",
"phase": 0,
"policyId": "string",
"policyName": "string",
"status": "string"
}
],
"autoApproval": false,
"createdAt": "string",
"currentPhase": 0,
"decision": "string",
"deploymentId": "string",
"deploymentName": "string",
"expired": false,
"expiryAt": "string",
"expiryComment": "string",
"id": "string",
"lastUpdatedAt": "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"
}
},
"requestId": "string",
"requestedBy": "string",
"status": "string"
}
],
"empty": false,
"first": false,
"last": false,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": false,
"sort": {
"empty": false,
"sorted": false,
"unsorted": false
},
"unpaged": false
},
"size": 0,
"sort": {
"empty": false,
"sorted": false,
"unsorted": false
},
"totalElements": 0,
"totalPages": 0
}
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
integer As int64 As int64
totalElements
Optional
totalElements
integer As int32 As int32
totalPages
Optional
totalPages
401
Unauthorized
Operation doesn't return any data structure
403
Forbidden
Operation doesn't return any data structure