published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi
DataExport resource represents a request to export data from Chronicle to a GCS bucket.
To get more information about DataExport, see:
- API documentation
- How-to Guides
Example Usage
Chronicle Data Export Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const project = gcp.organizations.getProject({
projectId: "my-project-name",
});
const testBucket = new gcp.storage.Bucket("test_bucket", {
name: "chronicle-test-bucket-my-project-name-_56730",
project: "my-project-name",
location: "us",
forceDestroy: true,
});
const example = new gcp.chronicle.DataExport("example", {
location: "us",
instance: "00000000-0000-0000-0000-000000000000",
gcsBucket: pulumi.all([project, testBucket.name]).apply(([project, name]) => `projects/${project.number}/buckets/${name}`),
startTime: "2025-01-01T00:00:00Z",
endTime: "2025-01-01T12:00:00Z",
});
import pulumi
import pulumi_gcp as gcp
project = gcp.organizations.get_project(project_id="my-project-name")
test_bucket = gcp.storage.Bucket("test_bucket",
name="chronicle-test-bucket-my-project-name-_56730",
project="my-project-name",
location="us",
force_destroy=True)
example = gcp.chronicle.DataExport("example",
location="us",
instance="00000000-0000-0000-0000-000000000000",
gcs_bucket=test_bucket.name.apply(lambda name: f"projects/{project.number}/buckets/{name}"),
start_time="2025-01-01T00:00:00Z",
end_time="2025-01-01T12:00:00Z")
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/chronicle"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{
ProjectId: pulumi.StringRef("my-project-name"),
}, nil)
if err != nil {
return err
}
testBucket, err := storage.NewBucket(ctx, "test_bucket", &storage.BucketArgs{
Name: pulumi.String("chronicle-test-bucket-my-project-name-_56730"),
Project: pulumi.String("my-project-name"),
Location: pulumi.String("us"),
ForceDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = chronicle.NewDataExport(ctx, "example", &chronicle.DataExportArgs{
Location: pulumi.String("us"),
Instance: pulumi.String("00000000-0000-0000-0000-000000000000"),
GcsBucket: testBucket.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("projects/%v/buckets/%v", project.Number, name), nil
}).(pulumi.StringOutput),
StartTime: pulumi.String("2025-01-01T00:00:00Z"),
EndTime: pulumi.String("2025-01-01T12:00:00Z"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var project = Gcp.Organizations.GetProject.Invoke(new()
{
ProjectId = "my-project-name",
});
var testBucket = new Gcp.Storage.Bucket("test_bucket", new()
{
Name = "chronicle-test-bucket-my-project-name-_56730",
Project = "my-project-name",
Location = "us",
ForceDestroy = true,
});
var example = new Gcp.Chronicle.DataExport("example", new()
{
Location = "us",
Instance = "00000000-0000-0000-0000-000000000000",
GcsBucket = Output.Tuple(project, testBucket.Name).Apply(values =>
{
var project = values.Item1;
var name = values.Item2;
return $"projects/{project.Apply(getProjectResult => getProjectResult.Number)}/buckets/{name}";
}),
StartTime = "2025-01-01T00:00:00Z",
EndTime = "2025-01-01T12:00:00Z",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.chronicle.DataExport;
import com.pulumi.gcp.chronicle.DataExportArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
.projectId("my-project-name")
.build());
var testBucket = new Bucket("testBucket", BucketArgs.builder()
.name("chronicle-test-bucket-my-project-name-_56730")
.project("my-project-name")
.location("us")
.forceDestroy(true)
.build());
var example = new DataExport("example", DataExportArgs.builder()
.location("us")
.instance("00000000-0000-0000-0000-000000000000")
.gcsBucket(testBucket.name().applyValue(_name -> String.format("projects/%s/buckets/%s", project.number(),_name)))
.startTime("2025-01-01T00:00:00Z")
.endTime("2025-01-01T12:00:00Z")
.build());
}
}
resources:
testBucket:
type: gcp:storage:Bucket
name: test_bucket
properties:
name: chronicle-test-bucket-my-project-name-_56730
project: my-project-name
location: us
forceDestroy: true
example:
type: gcp:chronicle:DataExport
properties:
location: us
instance: 00000000-0000-0000-0000-000000000000
gcsBucket: projects/${project.number}/buckets/${testBucket.name}
startTime: 2025-01-01T00:00:00Z
endTime: 2025-01-01T12:00:00Z
variables:
project:
fn::invoke:
function: gcp:organizations:getProject
arguments:
projectId: my-project-name
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_organizations_getproject" "project" {
project_id = "my-project-name"
}
resource "gcp_storage_bucket" "test_bucket" {
name = "chronicle-test-bucket-my-project-name-_56730"
project = "my-project-name"
location = "us"
force_destroy = true
}
resource "gcp_chronicle_dataexport" "example" {
location = "us"
instance = "00000000-0000-0000-0000-000000000000"
gcs_bucket ="projects/${data.gcp_organizations_getproject.project.number}/buckets/${gcp_storage_bucket.test_bucket.name}"
start_time = "2025-01-01T00:00:00Z"
end_time = "2025-01-01T12:00:00Z"
}
Chronicle Data Export Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const project = gcp.organizations.getProject({
projectId: "my-project-name",
});
const testBucket = new gcp.storage.Bucket("test_bucket", {
name: "chronicle-test-bucket-my-project-name-_95154",
project: "my-project-name",
location: "us",
forceDestroy: true,
});
const example = new gcp.chronicle.DataExport("example", {
location: "us",
instance: "00000000-0000-0000-0000-000000000000",
gcsBucket: pulumi.all([project, testBucket.name]).apply(([project, name]) => `projects/${project.number}/buckets/${name}`),
startTime: "2025-01-01T00:00:00Z",
endTime: "2025-01-01T12:00:00Z",
includeLogTypes: ["projects/my-project-name/locations/us/instances/00000000-0000-0000-0000-000000000000/logTypes/GCP_CLOUDAUDIT"],
ingestionLabels: [{
key: "key1",
value: "val1",
}],
namespaces: ["my-namespace"],
});
import pulumi
import pulumi_gcp as gcp
project = gcp.organizations.get_project(project_id="my-project-name")
test_bucket = gcp.storage.Bucket("test_bucket",
name="chronicle-test-bucket-my-project-name-_95154",
project="my-project-name",
location="us",
force_destroy=True)
example = gcp.chronicle.DataExport("example",
location="us",
instance="00000000-0000-0000-0000-000000000000",
gcs_bucket=test_bucket.name.apply(lambda name: f"projects/{project.number}/buckets/{name}"),
start_time="2025-01-01T00:00:00Z",
end_time="2025-01-01T12:00:00Z",
include_log_types=["projects/my-project-name/locations/us/instances/00000000-0000-0000-0000-000000000000/logTypes/GCP_CLOUDAUDIT"],
ingestion_labels=[{
"key": "key1",
"value": "val1",
}],
namespaces=["my-namespace"])
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/chronicle"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{
ProjectId: pulumi.StringRef("my-project-name"),
}, nil)
if err != nil {
return err
}
testBucket, err := storage.NewBucket(ctx, "test_bucket", &storage.BucketArgs{
Name: pulumi.String("chronicle-test-bucket-my-project-name-_95154"),
Project: pulumi.String("my-project-name"),
Location: pulumi.String("us"),
ForceDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = chronicle.NewDataExport(ctx, "example", &chronicle.DataExportArgs{
Location: pulumi.String("us"),
Instance: pulumi.String("00000000-0000-0000-0000-000000000000"),
GcsBucket: testBucket.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("projects/%v/buckets/%v", project.Number, name), nil
}).(pulumi.StringOutput),
StartTime: pulumi.String("2025-01-01T00:00:00Z"),
EndTime: pulumi.String("2025-01-01T12:00:00Z"),
IncludeLogTypes: pulumi.StringArray{
pulumi.String("projects/my-project-name/locations/us/instances/00000000-0000-0000-0000-000000000000/logTypes/GCP_CLOUDAUDIT"),
},
IngestionLabels: chronicle.DataExportIngestionLabelArray{
&chronicle.DataExportIngestionLabelArgs{
Key: pulumi.String("key1"),
Value: pulumi.String("val1"),
},
},
Namespaces: pulumi.StringArray{
pulumi.String("my-namespace"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var project = Gcp.Organizations.GetProject.Invoke(new()
{
ProjectId = "my-project-name",
});
var testBucket = new Gcp.Storage.Bucket("test_bucket", new()
{
Name = "chronicle-test-bucket-my-project-name-_95154",
Project = "my-project-name",
Location = "us",
ForceDestroy = true,
});
var example = new Gcp.Chronicle.DataExport("example", new()
{
Location = "us",
Instance = "00000000-0000-0000-0000-000000000000",
GcsBucket = Output.Tuple(project, testBucket.Name).Apply(values =>
{
var project = values.Item1;
var name = values.Item2;
return $"projects/{project.Apply(getProjectResult => getProjectResult.Number)}/buckets/{name}";
}),
StartTime = "2025-01-01T00:00:00Z",
EndTime = "2025-01-01T12:00:00Z",
IncludeLogTypes = new[]
{
"projects/my-project-name/locations/us/instances/00000000-0000-0000-0000-000000000000/logTypes/GCP_CLOUDAUDIT",
},
IngestionLabels = new[]
{
new Gcp.Chronicle.Inputs.DataExportIngestionLabelArgs
{
Key = "key1",
Value = "val1",
},
},
Namespaces = new[]
{
"my-namespace",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.chronicle.DataExport;
import com.pulumi.gcp.chronicle.DataExportArgs;
import com.pulumi.gcp.chronicle.inputs.DataExportIngestionLabelArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
.projectId("my-project-name")
.build());
var testBucket = new Bucket("testBucket", BucketArgs.builder()
.name("chronicle-test-bucket-my-project-name-_95154")
.project("my-project-name")
.location("us")
.forceDestroy(true)
.build());
var example = new DataExport("example", DataExportArgs.builder()
.location("us")
.instance("00000000-0000-0000-0000-000000000000")
.gcsBucket(testBucket.name().applyValue(_name -> String.format("projects/%s/buckets/%s", project.number(),_name)))
.startTime("2025-01-01T00:00:00Z")
.endTime("2025-01-01T12:00:00Z")
.includeLogTypes("projects/my-project-name/locations/us/instances/00000000-0000-0000-0000-000000000000/logTypes/GCP_CLOUDAUDIT")
.ingestionLabels(DataExportIngestionLabelArgs.builder()
.key("key1")
.value("val1")
.build())
.namespaces("my-namespace")
.build());
}
}
resources:
testBucket:
type: gcp:storage:Bucket
name: test_bucket
properties:
name: chronicle-test-bucket-my-project-name-_95154
project: my-project-name
location: us
forceDestroy: true
example:
type: gcp:chronicle:DataExport
properties:
location: us
instance: 00000000-0000-0000-0000-000000000000
gcsBucket: projects/${project.number}/buckets/${testBucket.name}
startTime: 2025-01-01T00:00:00Z
endTime: 2025-01-01T12:00:00Z
includeLogTypes:
- projects/my-project-name/locations/us/instances/00000000-0000-0000-0000-000000000000/logTypes/GCP_CLOUDAUDIT
ingestionLabels:
- key: key1
value: val1
namespaces:
- my-namespace
variables:
project:
fn::invoke:
function: gcp:organizations:getProject
arguments:
projectId: my-project-name
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_organizations_getproject" "project" {
project_id = "my-project-name"
}
resource "gcp_storage_bucket" "test_bucket" {
name = "chronicle-test-bucket-my-project-name-_95154"
project = "my-project-name"
location = "us"
force_destroy = true
}
resource "gcp_chronicle_dataexport" "example" {
location = "us"
instance = "00000000-0000-0000-0000-000000000000"
gcs_bucket ="projects/${data.gcp_organizations_getproject.project.number}/buckets/${gcp_storage_bucket.test_bucket.name}"
start_time = "2025-01-01T00:00:00Z"
end_time = "2025-01-01T12:00:00Z"
include_log_types = ["projects/my-project-name/locations/us/instances/00000000-0000-0000-0000-000000000000/logTypes/GCP_CLOUDAUDIT"]
ingestion_labels {
key = "key1"
value = "val1"
}
namespaces = ["my-namespace"]
}
Create DataExport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataExport(name: string, args: DataExportArgs, opts?: CustomResourceOptions);@overload
def DataExport(resource_name: str,
args: DataExportArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataExport(resource_name: str,
opts: Optional[ResourceOptions] = None,
end_time: Optional[str] = None,
gcs_bucket: Optional[str] = None,
instance: Optional[str] = None,
location: Optional[str] = None,
start_time: Optional[str] = None,
include_log_types: Optional[Sequence[str]] = None,
ingestion_labels: Optional[Sequence[DataExportIngestionLabelArgs]] = None,
namespaces: Optional[Sequence[str]] = None,
project: Optional[str] = None)func NewDataExport(ctx *Context, name string, args DataExportArgs, opts ...ResourceOption) (*DataExport, error)public DataExport(string name, DataExportArgs args, CustomResourceOptions? opts = null)
public DataExport(String name, DataExportArgs args)
public DataExport(String name, DataExportArgs args, CustomResourceOptions options)
type: gcp:chronicle:DataExport
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_chronicle_data_export" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dataExportResource = new Gcp.Chronicle.DataExport("dataExportResource", new()
{
EndTime = "string",
GcsBucket = "string",
Instance = "string",
Location = "string",
StartTime = "string",
IncludeLogTypes = new[]
{
"string",
},
IngestionLabels = new[]
{
new Gcp.Chronicle.Inputs.DataExportIngestionLabelArgs
{
Key = "string",
Value = "string",
},
},
Namespaces = new[]
{
"string",
},
Project = "string",
});
example, err := chronicle.NewDataExport(ctx, "dataExportResource", &chronicle.DataExportArgs{
EndTime: pulumi.String("string"),
GcsBucket: pulumi.String("string"),
Instance: pulumi.String("string"),
Location: pulumi.String("string"),
StartTime: pulumi.String("string"),
IncludeLogTypes: pulumi.StringArray{
pulumi.String("string"),
},
IngestionLabels: chronicle.DataExportIngestionLabelArray{
&chronicle.DataExportIngestionLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Namespaces: pulumi.StringArray{
pulumi.String("string"),
},
Project: pulumi.String("string"),
})
resource "gcp_chronicle_data_export" "dataExportResource" {
lifecycle {
create_before_destroy = true
}
end_time = "string"
gcs_bucket = "string"
instance = "string"
location = "string"
start_time = "string"
include_log_types = ["string"]
ingestion_labels {
key = "string"
value = "string"
}
namespaces = ["string"]
project = "string"
}
var dataExportResource = new DataExport("dataExportResource", DataExportArgs.builder()
.endTime("string")
.gcsBucket("string")
.instance("string")
.location("string")
.startTime("string")
.includeLogTypes("string")
.ingestionLabels(DataExportIngestionLabelArgs.builder()
.key("string")
.value("string")
.build())
.namespaces("string")
.project("string")
.build());
data_export_resource = gcp.chronicle.DataExport("dataExportResource",
end_time="string",
gcs_bucket="string",
instance="string",
location="string",
start_time="string",
include_log_types=["string"],
ingestion_labels=[{
"key": "string",
"value": "string",
}],
namespaces=["string"],
project="string")
const dataExportResource = new gcp.chronicle.DataExport("dataExportResource", {
endTime: "string",
gcsBucket: "string",
instance: "string",
location: "string",
startTime: "string",
includeLogTypes: ["string"],
ingestionLabels: [{
key: "string",
value: "string",
}],
namespaces: ["string"],
project: "string",
});
type: gcp:chronicle:DataExport
properties:
endTime: string
gcsBucket: string
includeLogTypes:
- string
ingestionLabels:
- key: string
value: string
instance: string
location: string
namespaces:
- string
project: string
startTime: string
DataExport Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DataExport resource accepts the following input properties:
- End
Time string - Last, exclusive time from the range.
- Gcs
Bucket string - Link to the destination Cloud Storage bucket.
- Instance string
- The unique identifier for the Chronicle instance.
- Location string
- The location of the resource.
- Start
Time string - Start, inclusive time from the range.
- Include
Log List<string>Types - The specific log types to include in the Data Export request.
- Ingestion
Labels List<DataExport Ingestion Label> - The ingestion labels used to filter the export. Structure is documented below.
- Namespaces List<string>
- The namespaces used to filter the export.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- End
Time string - Last, exclusive time from the range.
- Gcs
Bucket string - Link to the destination Cloud Storage bucket.
- Instance string
- The unique identifier for the Chronicle instance.
- Location string
- The location of the resource.
- Start
Time string - Start, inclusive time from the range.
- Include
Log []stringTypes - The specific log types to include in the Data Export request.
- Ingestion
Labels []DataExport Ingestion Label Args - The ingestion labels used to filter the export. Structure is documented below.
- Namespaces []string
- The namespaces used to filter the export.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- end_
time string - Last, exclusive time from the range.
- gcs_
bucket string - Link to the destination Cloud Storage bucket.
- instance string
- The unique identifier for the Chronicle instance.
- location string
- The location of the resource.
- start_
time string - Start, inclusive time from the range.
- include_
log_ list(string)types - The specific log types to include in the Data Export request.
- ingestion_
labels list(object) - The ingestion labels used to filter the export. Structure is documented below.
- namespaces list(string)
- The namespaces used to filter the export.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- end
Time String - Last, exclusive time from the range.
- gcs
Bucket String - Link to the destination Cloud Storage bucket.
- instance String
- The unique identifier for the Chronicle instance.
- location String
- The location of the resource.
- start
Time String - Start, inclusive time from the range.
- include
Log List<String>Types - The specific log types to include in the Data Export request.
- ingestion
Labels List<DataExport Ingestion Label> - The ingestion labels used to filter the export. Structure is documented below.
- namespaces List<String>
- The namespaces used to filter the export.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- end
Time string - Last, exclusive time from the range.
- gcs
Bucket string - Link to the destination Cloud Storage bucket.
- instance string
- The unique identifier for the Chronicle instance.
- location string
- The location of the resource.
- start
Time string - Start, inclusive time from the range.
- include
Log string[]Types - The specific log types to include in the Data Export request.
- ingestion
Labels DataExport Ingestion Label[] - The ingestion labels used to filter the export. Structure is documented below.
- namespaces string[]
- The namespaces used to filter the export.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- end_
time str - Last, exclusive time from the range.
- gcs_
bucket str - Link to the destination Cloud Storage bucket.
- instance str
- The unique identifier for the Chronicle instance.
- location str
- The location of the resource.
- start_
time str - Start, inclusive time from the range.
- include_
log_ Sequence[str]types - The specific log types to include in the Data Export request.
- ingestion_
labels Sequence[DataExport Ingestion Label Args] - The ingestion labels used to filter the export. Structure is documented below.
- namespaces Sequence[str]
- The namespaces used to filter the export.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- end
Time String - Last, exclusive time from the range.
- gcs
Bucket String - Link to the destination Cloud Storage bucket.
- instance String
- The unique identifier for the Chronicle instance.
- location String
- The location of the resource.
- start
Time String - Start, inclusive time from the range.
- include
Log List<String>Types - The specific log types to include in the Data Export request.
- ingestion
Labels List<Property Map> - The ingestion labels used to filter the export. Structure is documented below.
- namespaces List<String>
- The namespaces used to filter the export.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataExport resource produces the following output properties:
- Create
Time string - Timestamp indicating when the DataExport resource was created.
- Data
Export stringId - The unique identifier for the data export.
- Data
Export List<DataStatuses Export Data Export Status> - Status of the current export. Structure is documented below.
- Estimated
Volume int - The estimated export volume in bytes.
- Exported
Volume int - Actual volume of data exported.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the data export.
- Update
Time string - Timestamp indicating the last time the DataExport resource was updated.
- Create
Time string - Timestamp indicating when the DataExport resource was created.
- Data
Export stringId - The unique identifier for the data export.
- Data
Export []DataStatuses Export Data Export Status - Status of the current export. Structure is documented below.
- Estimated
Volume int - The estimated export volume in bytes.
- Exported
Volume int - Actual volume of data exported.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the data export.
- Update
Time string - Timestamp indicating the last time the DataExport resource was updated.
- create_
time string - Timestamp indicating when the DataExport resource was created.
- data_
export_ stringid - The unique identifier for the data export.
- data_
export_ list(object)statuses - Status of the current export. Structure is documented below.
- estimated_
volume number - The estimated export volume in bytes.
- exported_
volume number - Actual volume of data exported.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the data export.
- update_
time string - Timestamp indicating the last time the DataExport resource was updated.
- create
Time String - Timestamp indicating when the DataExport resource was created.
- data
Export StringId - The unique identifier for the data export.
- data
Export List<DataStatuses Export Data Export Status> - Status of the current export. Structure is documented below.
- estimated
Volume Integer - The estimated export volume in bytes.
- exported
Volume Integer - Actual volume of data exported.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the data export.
- update
Time String - Timestamp indicating the last time the DataExport resource was updated.
- create
Time string - Timestamp indicating when the DataExport resource was created.
- data
Export stringId - The unique identifier for the data export.
- data
Export DataStatuses Export Data Export Status[] - Status of the current export. Structure is documented below.
- estimated
Volume number - The estimated export volume in bytes.
- exported
Volume number - Actual volume of data exported.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the data export.
- update
Time string - Timestamp indicating the last time the DataExport resource was updated.
- create_
time str - Timestamp indicating when the DataExport resource was created.
- data_
export_ strid - The unique identifier for the data export.
- data_
export_ Sequence[Datastatuses Export Data Export Status] - Status of the current export. Structure is documented below.
- estimated_
volume int - The estimated export volume in bytes.
- exported_
volume int - Actual volume of data exported.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name of the data export.
- update_
time str - Timestamp indicating the last time the DataExport resource was updated.
- create
Time String - Timestamp indicating when the DataExport resource was created.
- data
Export StringId - The unique identifier for the data export.
- data
Export List<Property Map>Statuses - Status of the current export. Structure is documented below.
- estimated
Volume Number - The estimated export volume in bytes.
- exported
Volume Number - Actual volume of data exported.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the data export.
- update
Time String - Timestamp indicating the last time the DataExport resource was updated.
Look up Existing DataExport Resource
Get an existing DataExport resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DataExportState, opts?: CustomResourceOptions): DataExport@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
data_export_id: Optional[str] = None,
data_export_statuses: Optional[Sequence[DataExportDataExportStatusArgs]] = None,
end_time: Optional[str] = None,
estimated_volume: Optional[int] = None,
exported_volume: Optional[int] = None,
gcs_bucket: Optional[str] = None,
include_log_types: Optional[Sequence[str]] = None,
ingestion_labels: Optional[Sequence[DataExportIngestionLabelArgs]] = None,
instance: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
namespaces: Optional[Sequence[str]] = None,
project: Optional[str] = None,
start_time: Optional[str] = None,
update_time: Optional[str] = None) -> DataExportfunc GetDataExport(ctx *Context, name string, id IDInput, state *DataExportState, opts ...ResourceOption) (*DataExport, error)public static DataExport Get(string name, Input<string> id, DataExportState? state, CustomResourceOptions? opts = null)public static DataExport get(String name, Output<String> id, DataExportState state, CustomResourceOptions options)resources: _: type: gcp:chronicle:DataExport get: id: ${id}import {
to = gcp_chronicle_data_export.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - Timestamp indicating when the DataExport resource was created.
- Data
Export stringId - The unique identifier for the data export.
- Data
Export List<DataStatuses Export Data Export Status> - Status of the current export. Structure is documented below.
- End
Time string - Last, exclusive time from the range.
- Estimated
Volume int - The estimated export volume in bytes.
- Exported
Volume int - Actual volume of data exported.
- Gcs
Bucket string - Link to the destination Cloud Storage bucket.
- Include
Log List<string>Types - The specific log types to include in the Data Export request.
- Ingestion
Labels List<DataExport Ingestion Label> - The ingestion labels used to filter the export. Structure is documented below.
- Instance string
- The unique identifier for the Chronicle instance.
- Location string
- The location of the resource.
- Name string
- The resource name of the data export.
- Namespaces List<string>
- The namespaces used to filter the export.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Start
Time string - Start, inclusive time from the range.
- Update
Time string - Timestamp indicating the last time the DataExport resource was updated.
- Create
Time string - Timestamp indicating when the DataExport resource was created.
- Data
Export stringId - The unique identifier for the data export.
- Data
Export []DataStatuses Export Data Export Status Args - Status of the current export. Structure is documented below.
- End
Time string - Last, exclusive time from the range.
- Estimated
Volume int - The estimated export volume in bytes.
- Exported
Volume int - Actual volume of data exported.
- Gcs
Bucket string - Link to the destination Cloud Storage bucket.
- Include
Log []stringTypes - The specific log types to include in the Data Export request.
- Ingestion
Labels []DataExport Ingestion Label Args - The ingestion labels used to filter the export. Structure is documented below.
- Instance string
- The unique identifier for the Chronicle instance.
- Location string
- The location of the resource.
- Name string
- The resource name of the data export.
- Namespaces []string
- The namespaces used to filter the export.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Start
Time string - Start, inclusive time from the range.
- Update
Time string - Timestamp indicating the last time the DataExport resource was updated.
- create_
time string - Timestamp indicating when the DataExport resource was created.
- data_
export_ stringid - The unique identifier for the data export.
- data_
export_ list(object)statuses - Status of the current export. Structure is documented below.
- end_
time string - Last, exclusive time from the range.
- estimated_
volume number - The estimated export volume in bytes.
- exported_
volume number - Actual volume of data exported.
- gcs_
bucket string - Link to the destination Cloud Storage bucket.
- include_
log_ list(string)types - The specific log types to include in the Data Export request.
- ingestion_
labels list(object) - The ingestion labels used to filter the export. Structure is documented below.
- instance string
- The unique identifier for the Chronicle instance.
- location string
- The location of the resource.
- name string
- The resource name of the data export.
- namespaces list(string)
- The namespaces used to filter the export.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- start_
time string - Start, inclusive time from the range.
- update_
time string - Timestamp indicating the last time the DataExport resource was updated.
- create
Time String - Timestamp indicating when the DataExport resource was created.
- data
Export StringId - The unique identifier for the data export.
- data
Export List<DataStatuses Export Data Export Status> - Status of the current export. Structure is documented below.
- end
Time String - Last, exclusive time from the range.
- estimated
Volume Integer - The estimated export volume in bytes.
- exported
Volume Integer - Actual volume of data exported.
- gcs
Bucket String - Link to the destination Cloud Storage bucket.
- include
Log List<String>Types - The specific log types to include in the Data Export request.
- ingestion
Labels List<DataExport Ingestion Label> - The ingestion labels used to filter the export. Structure is documented below.
- instance String
- The unique identifier for the Chronicle instance.
- location String
- The location of the resource.
- name String
- The resource name of the data export.
- namespaces List<String>
- The namespaces used to filter the export.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- start
Time String - Start, inclusive time from the range.
- update
Time String - Timestamp indicating the last time the DataExport resource was updated.
- create
Time string - Timestamp indicating when the DataExport resource was created.
- data
Export stringId - The unique identifier for the data export.
- data
Export DataStatuses Export Data Export Status[] - Status of the current export. Structure is documented below.
- end
Time string - Last, exclusive time from the range.
- estimated
Volume number - The estimated export volume in bytes.
- exported
Volume number - Actual volume of data exported.
- gcs
Bucket string - Link to the destination Cloud Storage bucket.
- include
Log string[]Types - The specific log types to include in the Data Export request.
- ingestion
Labels DataExport Ingestion Label[] - The ingestion labels used to filter the export. Structure is documented below.
- instance string
- The unique identifier for the Chronicle instance.
- location string
- The location of the resource.
- name string
- The resource name of the data export.
- namespaces string[]
- The namespaces used to filter the export.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- start
Time string - Start, inclusive time from the range.
- update
Time string - Timestamp indicating the last time the DataExport resource was updated.
- create_
time str - Timestamp indicating when the DataExport resource was created.
- data_
export_ strid - The unique identifier for the data export.
- data_
export_ Sequence[Datastatuses Export Data Export Status Args] - Status of the current export. Structure is documented below.
- end_
time str - Last, exclusive time from the range.
- estimated_
volume int - The estimated export volume in bytes.
- exported_
volume int - Actual volume of data exported.
- gcs_
bucket str - Link to the destination Cloud Storage bucket.
- include_
log_ Sequence[str]types - The specific log types to include in the Data Export request.
- ingestion_
labels Sequence[DataExport Ingestion Label Args] - The ingestion labels used to filter the export. Structure is documented below.
- instance str
- The unique identifier for the Chronicle instance.
- location str
- The location of the resource.
- name str
- The resource name of the data export.
- namespaces Sequence[str]
- The namespaces used to filter the export.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- start_
time str - Start, inclusive time from the range.
- update_
time str - Timestamp indicating the last time the DataExport resource was updated.
- create
Time String - Timestamp indicating when the DataExport resource was created.
- data
Export StringId - The unique identifier for the data export.
- data
Export List<Property Map>Statuses - Status of the current export. Structure is documented below.
- end
Time String - Last, exclusive time from the range.
- estimated
Volume Number - The estimated export volume in bytes.
- exported
Volume Number - Actual volume of data exported.
- gcs
Bucket String - Link to the destination Cloud Storage bucket.
- include
Log List<String>Types - The specific log types to include in the Data Export request.
- ingestion
Labels List<Property Map> - The ingestion labels used to filter the export. Structure is documented below.
- instance String
- The unique identifier for the Chronicle instance.
- location String
- The location of the resource.
- name String
- The resource name of the data export.
- namespaces List<String>
- The namespaces used to filter the export.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- start
Time String - Start, inclusive time from the range.
- update
Time String - Timestamp indicating the last time the DataExport resource was updated.
Supporting Types
DataExportDataExportStatus, DataExportDataExportStatusArgs
- Data
Rbac boolFiltered - (Output) Indicates whether the data export is filtered by RBAC.
- Error string
- (Output) The error message if the stage is FINISHED_FAILURE.
- Exported
Glob List<string>Patterns - (Output) List of exported glob patterns.
- Stage string
- (Output) The stage/status of a given data export request.
- Data
Rbac boolFiltered - (Output) Indicates whether the data export is filtered by RBAC.
- Error string
- (Output) The error message if the stage is FINISHED_FAILURE.
- Exported
Glob []stringPatterns - (Output) List of exported glob patterns.
- Stage string
- (Output) The stage/status of a given data export request.
- data_
rbac_ boolfiltered - (Output) Indicates whether the data export is filtered by RBAC.
- error string
- (Output) The error message if the stage is FINISHED_FAILURE.
- exported_
glob_ list(string)patterns - (Output) List of exported glob patterns.
- stage string
- (Output) The stage/status of a given data export request.
- data
Rbac BooleanFiltered - (Output) Indicates whether the data export is filtered by RBAC.
- error String
- (Output) The error message if the stage is FINISHED_FAILURE.
- exported
Glob List<String>Patterns - (Output) List of exported glob patterns.
- stage String
- (Output) The stage/status of a given data export request.
- data
Rbac booleanFiltered - (Output) Indicates whether the data export is filtered by RBAC.
- error string
- (Output) The error message if the stage is FINISHED_FAILURE.
- exported
Glob string[]Patterns - (Output) List of exported glob patterns.
- stage string
- (Output) The stage/status of a given data export request.
- data_
rbac_ boolfiltered - (Output) Indicates whether the data export is filtered by RBAC.
- error str
- (Output) The error message if the stage is FINISHED_FAILURE.
- exported_
glob_ Sequence[str]patterns - (Output) List of exported glob patterns.
- stage str
- (Output) The stage/status of a given data export request.
- data
Rbac BooleanFiltered - (Output) Indicates whether the data export is filtered by RBAC.
- error String
- (Output) The error message if the stage is FINISHED_FAILURE.
- exported
Glob List<String>Patterns - (Output) List of exported glob patterns.
- stage String
- (Output) The stage/status of a given data export request.
DataExportIngestionLabel, DataExportIngestionLabelArgs
Import
DataExport can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataExports/{{data_export_id}}{{project}}/{{location}}/{{instance}}/{{data_export_id}}{{location}}/{{instance}}/{{data_export_id}}
When using the pulumi import command, DataExport can be imported using one of the formats above. For example:
$ pulumi import gcp:chronicle/dataExport:DataExport default projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataExports/{{data_export_id}}
$ pulumi import gcp:chronicle/dataExport:DataExport default {{project}}/{{location}}/{{instance}}/{{data_export_id}}
$ pulumi import gcp:chronicle/dataExport:DataExport default {{location}}/{{instance}}/{{data_export_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Wednesday, Aug 5, 2026 by Pulumi