Use this API to implement reports lifecycle managing and monitoring.
With this functionality in place, users can run reports, view their results, and cancel reports in progress.
This can be potentially helpful for auditing purposes.
No content - indicates the request was successful but there is no content to be returned in the response.
400
Client Error - Returned if the request body is invalid.
ErrorResponseDto
401
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
ListAccessProfiles401Response
403
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
ErrorResponseDto
429
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
ListAccessProfiles429Response
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
$Id="a1ed223247144cc29d23c632624b4767"# String | ID of the running Report to cancel# Cancel reporttry{Suspend-Report-Id$Id# Below is a request that includes all optional parameters# Suspend-Report -Id $Id }catch{Write-Host$_.Exception.Response.StatusCode.value__"Exception occurred when calling Suspend-Report"Write-Host$_.ErrorDetails}
Unique identifier of the task result which handled report
Query
FileFormat
String
True
Output format of the requested report file
Query
Name
String
(optional)
preferred Report file name, by default will be used report name from task result.
Query
Auditable
Boolean
(optional) (default to $false)
Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId.
Return type
System.IO.FileInfo
Responses
Code
Description
Data Type
200
Report file in selected format. CSV by default.
System.IO.FileInfo
400
Client Error - Returned if the request body is invalid.
ErrorResponseDto
401
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
ListAccessProfiles401Response
403
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
ErrorResponseDto
404
Not Found - returned if the request URL refers to a resource or object that does not exist
ErrorResponseDto
429
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
ListAccessProfiles429Response
500
Internal Server Error - Returned if there is an unexpected error.
$TaskResultId="ef38f94347e94562b5bb8424a56397d8"# String | Unique identifier of the task result which handled report$FileFormat="csv"# String | Output format of the requested report file$Name="Identities Details Report"# String | preferred Report file name, by default will be used report name from task result. (optional)$Auditable=$true# Boolean | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to $false)# Get report filetry{Get-Report-TaskResultId$TaskResultId-FileFormat$FileFormat# Below is a request that includes all optional parameters# Get-Report -TaskResultId $TaskResultId -FileFormat $FileFormat -Name $Name -Auditable $Auditable }catch{Write-Host$_.Exception.Response.StatusCode.value__"Exception occurred when calling Get-Report"Write-Host$_.ErrorDetails}
Get the report results for a report that was run or is running. Returns empty report result in case there are no active task definitions with used in payload task definition name.
Client Error - Returned if the request body is invalid.
ErrorResponseDto
401
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
ListAccessProfiles401Response
403
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
ErrorResponseDto
429
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
ListAccessProfiles429Response
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
$TaskResultId="ef38f94347e94562b5bb8424a56397d8"# String | Unique identifier of the task result which handled report$Completed=$true# Boolean | state of task result to apply ordering when results are fetching from the DB (optional) (default to $false)# Get report resulttry{Get-ReportResult-TaskResultId$TaskResultId# Below is a request that includes all optional parameters# Get-ReportResult -TaskResultId $TaskResultId -Completed $Completed }catch{Write-Host$_.Exception.Response.StatusCode.value__"Exception occurred when calling Get-ReportResult"Write-Host$_.ErrorDetails}
Use this API to run a report according to report input details. If non-concurrent task is already running then it returns, otherwise new task creates and returns.
Client Error - Returned if the request body is invalid.
ErrorResponseDto
401
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
ListAccessProfiles401Response
403
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
ErrorResponseDto
429
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
ListAccessProfiles429Response
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
HTTP request headers
Content-Type: application/json
Accept: application/json
Example
$ReportDetails=@"{
"reportType" : "ACCOUNTS",
"arguments" : {
"application" : "2c9180897e7742b2017e781782f705b9",
"sourceName" : "ActiveDirectory"
}
}"@# Run reporttry{$Result=ConvertFrom-JsonToReportDetails-Json$ReportDetailsStart-Report-ReportDetails$Result# Below is a request that includes all optional parameters# Start-Report -ReportDetails $Result }catch{Write-Host$_.Exception.Response.StatusCode.value__"Exception occurred when calling Start-Report"Write-Host$_.ErrorDetails}