Client.Governance.Data.Findings
create - Creates findings export
list - Lists findings exports
download - Downloads findings export
delete - Deletes findings export
Creates a new DLP findings export job.
from glean .api_client import Glean
import os
with Glean (
api_token = os .getenv ("GLEAN_API_TOKEN" , "" ),
) as glean :
res = glean .client .governance .data .findings .create ()
# Handle response
print (res )
models.ExportInfo
Error Type
Status Code
Content Type
errors.GleanError
4XX, 5XX
*/*
Lists all DLP findings exports.
from glean .api_client import Glean
import os
with Glean (
api_token = os .getenv ("GLEAN_API_TOKEN" , "" ),
) as glean :
res = glean .client .governance .data .findings .list ()
# Handle response
print (res )
Parameter
Type
Required
Description
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.ListDlpFindingsExportsResponse
Error Type
Status Code
Content Type
errors.GleanError
4XX, 5XX
*/*
Downloads a DLP findings export as a CSV file.
from glean .api_client import Glean
import os
with Glean (
api_token = os .getenv ("GLEAN_API_TOKEN" , "" ),
) as glean :
res = glean .client .governance .data .findings .download (id = "<id>" )
# Handle response
print (res )
Parameter
Type
Required
Description
id
str
✔️
The ID of the export to download.
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
str
Error Type
Status Code
Content Type
errors.GleanError
4XX, 5XX
*/*
Deletes a DLP findings export.
from glean .api_client import Glean
import os
with Glean (
api_token = os .getenv ("GLEAN_API_TOKEN" , "" ),
) as glean :
glean .client .governance .data .findings .delete (id = 741945 )
# Use the SDK ...
Parameter
Type
Required
Description
id
int
✔️
The ID of the export to delete.
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
Error Type
Status Code
Content Type
errors.GleanError
4XX, 5XX
*/*