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.
package hello .world ;
import com .glean .api_client .glean_api_client .Glean ;
import com .glean .api_client .glean_api_client .models .components .DlpExportFindingsRequest ;
import com .glean .api_client .glean_api_client .models .operations .CreatefindingsexportResponse ;
import java .lang .Exception ;
public class Application {
public static void main (String [] args ) throws Exception {
Glean sdk = Glean .builder ()
.apiToken (System .getenv ().getOrDefault ("GLEAN_API_TOKEN" , "" ))
.build ();
DlpExportFindingsRequest req = DlpExportFindingsRequest .builder ()
.build ();
CreatefindingsexportResponse res = sdk .client ().governance ().data ().findings ().create ()
.request (req )
.call ();
if (res .exportInfo ().isPresent ()) {
System .out .println (res .exportInfo ().get ());
}
}
}
CreatefindingsexportResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
Lists all DLP findings exports.
package hello .world ;
import com .glean .api_client .glean_api_client .Glean ;
import com .glean .api_client .glean_api_client .models .operations .ListfindingsexportsResponse ;
import java .lang .Exception ;
public class Application {
public static void main (String [] args ) throws Exception {
Glean sdk = Glean .builder ()
.apiToken (System .getenv ().getOrDefault ("GLEAN_API_TOKEN" , "" ))
.build ();
ListfindingsexportsResponse res = sdk .client ().governance ().data ().findings ().list ()
.call ();
if (res .listDlpFindingsExportsResponse ().isPresent ()) {
System .out .println (res .listDlpFindingsExportsResponse ().get ());
}
}
}
ListfindingsexportsResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
Downloads a DLP findings export as a CSV file.
package hello .world ;
import com .glean .api_client .glean_api_client .Glean ;
import com .glean .api_client .glean_api_client .models .operations .DownloadfindingsexportResponse ;
import java .lang .Exception ;
public class Application {
public static void main (String [] args ) throws Exception {
Glean sdk = Glean .builder ()
.apiToken (System .getenv ().getOrDefault ("GLEAN_API_TOKEN" , "" ))
.build ();
DownloadfindingsexportResponse res = sdk .client ().governance ().data ().findings ().download ()
.id ("<id>" )
.call ();
if (res .res ().isPresent ()) {
System .out .println (res .res ().get ());
}
}
}
Parameter
Type
Required
Description
id
String
✔️
The ID of the export to download.
DownloadfindingsexportResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*
Deletes a DLP findings export.
package hello .world ;
import com .glean .api_client .glean_api_client .Glean ;
import com .glean .api_client .glean_api_client .models .operations .DeletefindingsexportResponse ;
import java .lang .Exception ;
public class Application {
public static void main (String [] args ) throws Exception {
Glean sdk = Glean .builder ()
.apiToken (System .getenv ().getOrDefault ("GLEAN_API_TOKEN" , "" ))
.build ();
DeletefindingsexportResponse res = sdk .client ().governance ().data ().findings ().delete ()
.id (741945L )
.call ();
// handle response
}
}
Parameter
Type
Required
Description
id
long
✔️
The ID of the export to delete.
DeletefindingsexportResponse
Error Type
Status Code
Content Type
models/errors/APIException
4XX, 5XX
*/*