Skip to content

Latest commit

 

History

History
168 lines (107 loc) · 8.45 KB

File metadata and controls

168 lines (107 loc) · 8.45 KB

Governance

Overview

Available Operations

createfindingsexport

Creates a new DLP findings export job.

Example Usage

from glean.api_client import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

    res = glean.governance.createfindingsexport()

    # Handle response
    print(res)

Parameters

Parameter Type Required Description
export_type Optional[models.ExportType] The type of export to perform
filter_ Optional[models.DlpFindingFilter] N/A
file_name Optional[str] The name of the file to export the findings to
field_scope Optional[models.FieldScope] Controls which fields to include in the export
fields_to_exclude List[str] List of field names to exclude from the export
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.ExportInfo

Errors

Error Type Status Code Content Type
errors.GleanError 4XX, 5XX */*

listfindingsexports

Lists all DLP findings exports.

Example Usage

from glean.api_client import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

    res = glean.governance.listfindingsexports()

    # Handle response
    print(res)

Parameters

Parameter Type Required Description
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.ListDlpFindingsExportsResponse

Errors

Error Type Status Code Content Type
errors.GleanError 4XX, 5XX */*

downloadfindingsexport

Downloads a DLP findings export as a CSV file.

Example Usage

from glean.api_client import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

    res = glean.governance.downloadfindingsexport(id="<id>")

    # Handle response
    print(res)

Parameters

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.

Response

str

Errors

Error Type Status Code Content Type
errors.GleanError 4XX, 5XX */*

deletefindingsexport

Deletes a DLP findings export.

Example Usage

from glean.api_client import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

    glean.governance.deletefindingsexport(id=741945)

    # Use the SDK ...

Parameters

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.

Errors

Error Type Status Code Content Type
errors.GleanError 4XX, 5XX */*