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.governance().createfindingsexport()
.request(req)
.call();
if (res.exportInfo().isPresent()) {
// handle response
}
}
}
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.governance().listfindingsexports()
.call();
if (res.listDlpFindingsExportsResponse().isPresent()) {
// handle response
}
}
}
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.governance().downloadfindingsexport()
.id("<id>")
.call();
if (res.res().isPresent()) {
// handle response
}
}
}
| 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.governance().deletefindingsexport()
.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 |
*/* |