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
fromsailpoint.v3.api.reports_data_extraction_apiimportReportsDataExtractionApifromsailpoint.v3.api_clientimportApiClientfromsailpoint.configurationimportConfigurationconfiguration=Configuration()withApiClient(configuration)asapi_client:id='a1ed223247144cc29d23c632624b4767'# str | ID of the running Report to cancel # str | ID of the running Report to canceltry:# Cancel ReportReportsDataExtractionApi(api_client).cancel_report(id=id)# Below is a request that includes all optional parameters# ReportsDataExtractionApi(api_client).cancel_report(id)exceptExceptionase:print("Exception when calling ReportsDataExtractionApi->cancel_report: %s\n"%e)
Unique identifier of the task result which handled report
Query
file_format
str
True
Output format of the requested report file
Query
name
str
(optional)
preferred Report file name, by default will be used report name from task result.
Query
auditable
bool
(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
bytearray
Responses
Code
Description
Data Type
Response headers
200
Report file in selected format. CSV by default.
bytearray
* Content-disposition - The requested report's filename
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.
fromsailpoint.v3.api.reports_data_extraction_apiimportReportsDataExtractionApifromsailpoint.v3.api_clientimportApiClientfromsailpoint.configurationimportConfigurationconfiguration=Configuration()withApiClient(configuration)asapi_client:task_result_id='ef38f94347e94562b5bb8424a56397d8'# str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled reportfile_format='csv'# str | Output format of the requested report file # str | Output format of the requested report filename='Identities Details Report'# str | preferred Report file name, by default will be used report name from task result. (optional) # str | preferred Report file name, by default will be used report name from task result. (optional)auditable=False# bool | 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) # bool | 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)try:# Get Report Fileresults=ReportsDataExtractionApi(api_client).get_report(task_result_id=task_result_id,file_format=file_format)# Below is a request that includes all optional parameters# results = ReportsDataExtractionApi(api_client).get_report(task_result_id, file_format, name, auditable)print("The response of ReportsDataExtractionApi->get_report:\n")print(results.model_dump_json(by_alias=True,indent=4))exceptExceptionase:print("Exception when calling ReportsDataExtractionApi->get_report: %s\n"%e)
Get Report Result
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
fromsailpoint.v3.api.reports_data_extraction_apiimportReportsDataExtractionApifromsailpoint.v3.api_clientimportApiClientfromsailpoint.v3.models.report_resultsimportReportResultsfromsailpoint.configurationimportConfigurationconfiguration=Configuration()withApiClient(configuration)asapi_client:task_result_id='ef38f94347e94562b5bb8424a56397d8'# str | Unique identifier of the task result which handled report # str | Unique identifier of the task result which handled reportcompleted=False# bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False) # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to False)try:# Get Report Resultresults=ReportsDataExtractionApi(api_client).get_report_result(task_result_id=task_result_id)# Below is a request that includes all optional parameters# results = ReportsDataExtractionApi(api_client).get_report_result(task_result_id, completed)print("The response of ReportsDataExtractionApi->get_report_result:\n")print(results.model_dump_json(by_alias=True,indent=4))exceptExceptionase:print("Exception when calling ReportsDataExtractionApi->get_report_result: %s\n"%e)
Run Report
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
fromsailpoint.v3.api.reports_data_extraction_apiimportReportsDataExtractionApifromsailpoint.v3.api_clientimportApiClientfromsailpoint.v3.models.report_detailsimportReportDetailsfromsailpoint.v3.models.task_result_detailsimportTaskResultDetailsfromsailpoint.configurationimportConfigurationconfiguration=Configuration()withApiClient(configuration)asapi_client:report_details='''{
"reportType" : "ACCOUNTS",
"arguments" : {
"application" : "2c9180897e7742b2017e781782f705b9",
"sourceName" : "Active Directory"
}
}'''# ReportDetails | try:# Run Reportnew_report_details=ReportDetails.from_json(report_details)results=ReportsDataExtractionApi(api_client).start_report(report_details=new_report_details)# Below is a request that includes all optional parameters# results = ReportsDataExtractionApi(api_client).start_report(new_report_details)print("The response of ReportsDataExtractionApi->start_report:\n")print(results.model_dump_json(by_alias=True,indent=4))exceptExceptionase:print("Exception when calling ReportsDataExtractionApi->start_report: %s\n"%e)