published on Wednesday, Jun 24, 2026 by Pulumi
published on Wednesday, Jun 24, 2026 by Pulumi
An analytics datastore for an Apigee organization. Datastores configure export destinations for Apigee Analytics data, supporting either Google Cloud Storage (GCS) or BigQuery as targets.
To get more information about Datastore, see:
- API documentation
- How-to Guides
Example Usage
Apigee Datastore Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const current = gcp.organizations.getClientConfig({});
const apigeeNetwork = new gcp.compute.Network("apigee_network", {name: "apigee-network"});
const apigeeRange = new gcp.compute.GlobalAddress("apigee_range", {
name: "apigee-range",
purpose: "VPC_PEERING",
addressType: "INTERNAL",
prefixLength: 16,
network: apigeeNetwork.id,
});
const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigee_vpc_connection", {
network: apigeeNetwork.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [apigeeRange.name],
});
const apigeeOrg = new gcp.apigee.Organization("apigee_org", {
analyticsRegion: "us-central1",
projectId: current.then(current => current.project),
authorizedNetwork: apigeeNetwork.id,
}, {
dependsOn: [apigeeVpcConnection],
});
const analyticsBucket = new gcp.storage.Bucket("analytics_bucket", {
name: "my-analytics-bucket",
location: "US",
});
const apigeeDatastore = new gcp.apigee.Datastore("apigee_datastore", {
orgId: apigeeOrg.id,
displayName: "my_datastore",
targetType: "gcs",
datastoreConfig: {
projectId: current.then(current => current.project),
bucketName: analyticsBucket.name,
path: "/analytics",
},
});
import pulumi
import pulumi_gcp as gcp
current = gcp.organizations.get_client_config()
apigee_network = gcp.compute.Network("apigee_network", name="apigee-network")
apigee_range = gcp.compute.GlobalAddress("apigee_range",
name="apigee-range",
purpose="VPC_PEERING",
address_type="INTERNAL",
prefix_length=16,
network=apigee_network.id)
apigee_vpc_connection = gcp.servicenetworking.Connection("apigee_vpc_connection",
network=apigee_network.id,
service="servicenetworking.googleapis.com",
reserved_peering_ranges=[apigee_range.name])
apigee_org = gcp.apigee.Organization("apigee_org",
analytics_region="us-central1",
project_id=current.project,
authorized_network=apigee_network.id,
opts = pulumi.ResourceOptions(depends_on=[apigee_vpc_connection]))
analytics_bucket = gcp.storage.Bucket("analytics_bucket",
name="my-analytics-bucket",
location="US")
apigee_datastore = gcp.apigee.Datastore("apigee_datastore",
org_id=apigee_org.id,
display_name="my_datastore",
target_type="gcs",
datastore_config={
"project_id": current.project,
"bucket_name": analytics_bucket.name,
"path": "/analytics",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/apigee"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/servicenetworking"
"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 {
current, err := organizations.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
apigeeNetwork, err := compute.NewNetwork(ctx, "apigee_network", &compute.NetworkArgs{
Name: pulumi.String("apigee-network"),
})
if err != nil {
return err
}
apigeeRange, err := compute.NewGlobalAddress(ctx, "apigee_range", &compute.GlobalAddressArgs{
Name: pulumi.String("apigee-range"),
Purpose: pulumi.String("VPC_PEERING"),
AddressType: pulumi.String("INTERNAL"),
PrefixLength: pulumi.Int(16),
Network: apigeeNetwork.ID(),
})
if err != nil {
return err
}
apigeeVpcConnection, err := servicenetworking.NewConnection(ctx, "apigee_vpc_connection", &servicenetworking.ConnectionArgs{
Network: apigeeNetwork.ID(),
Service: pulumi.String("servicenetworking.googleapis.com"),
ReservedPeeringRanges: pulumi.StringArray{
apigeeRange.Name,
},
})
if err != nil {
return err
}
apigeeOrg, err := apigee.NewOrganization(ctx, "apigee_org", &apigee.OrganizationArgs{
AnalyticsRegion: pulumi.String("us-central1"),
ProjectId: pulumi.String(current.Project),
AuthorizedNetwork: apigeeNetwork.ID(),
}, pulumi.DependsOn([]pulumi.Resource{
apigeeVpcConnection,
}))
if err != nil {
return err
}
analyticsBucket, err := storage.NewBucket(ctx, "analytics_bucket", &storage.BucketArgs{
Name: pulumi.String("my-analytics-bucket"),
Location: pulumi.String("US"),
})
if err != nil {
return err
}
_, err = apigee.NewDatastore(ctx, "apigee_datastore", &apigee.DatastoreArgs{
OrgId: apigeeOrg.ID(),
DisplayName: pulumi.String("my_datastore"),
TargetType: pulumi.String("gcs"),
DatastoreConfig: &apigee.DatastoreDatastoreConfigArgs{
ProjectId: pulumi.String(current.Project),
BucketName: analyticsBucket.Name,
Path: pulumi.String("/analytics"),
},
})
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 current = Gcp.Organizations.GetClientConfig.Invoke();
var apigeeNetwork = new Gcp.Compute.Network("apigee_network", new()
{
Name = "apigee-network",
});
var apigeeRange = new Gcp.Compute.GlobalAddress("apigee_range", new()
{
Name = "apigee-range",
Purpose = "VPC_PEERING",
AddressType = "INTERNAL",
PrefixLength = 16,
Network = apigeeNetwork.Id,
});
var apigeeVpcConnection = new Gcp.ServiceNetworking.Connection("apigee_vpc_connection", new()
{
Network = apigeeNetwork.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges = new[]
{
apigeeRange.Name,
},
});
var apigeeOrg = new Gcp.Apigee.Organization("apigee_org", new()
{
AnalyticsRegion = "us-central1",
ProjectId = current.Apply(getClientConfigResult => getClientConfigResult.Project),
AuthorizedNetwork = apigeeNetwork.Id,
}, new CustomResourceOptions
{
DependsOn =
{
apigeeVpcConnection,
},
});
var analyticsBucket = new Gcp.Storage.Bucket("analytics_bucket", new()
{
Name = "my-analytics-bucket",
Location = "US",
});
var apigeeDatastore = new Gcp.Apigee.Datastore("apigee_datastore", new()
{
OrgId = apigeeOrg.Id,
DisplayName = "my_datastore",
TargetType = "gcs",
DatastoreConfig = new Gcp.Apigee.Inputs.DatastoreDatastoreConfigArgs
{
ProjectId = current.Apply(getClientConfigResult => getClientConfigResult.Project),
BucketName = analyticsBucket.Name,
Path = "/analytics",
},
});
});
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.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.apigee.Organization;
import com.pulumi.gcp.apigee.OrganizationArgs;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.apigee.Datastore;
import com.pulumi.gcp.apigee.DatastoreArgs;
import com.pulumi.gcp.apigee.inputs.DatastoreDatastoreConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 current = OrganizationsFunctions.getClientConfig(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
var apigeeNetwork = new Network("apigeeNetwork", NetworkArgs.builder()
.name("apigee-network")
.build());
var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
.name("apigee-range")
.purpose("VPC_PEERING")
.addressType("INTERNAL")
.prefixLength(16)
.network(apigeeNetwork.id())
.build());
var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
.network(apigeeNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(apigeeRange.name())
.build());
var apigeeOrg = new Organization("apigeeOrg", OrganizationArgs.builder()
.analyticsRegion("us-central1")
.projectId(current.project())
.authorizedNetwork(apigeeNetwork.id())
.build(), CustomResourceOptions.builder()
.dependsOn(apigeeVpcConnection)
.build());
var analyticsBucket = new Bucket("analyticsBucket", BucketArgs.builder()
.name("my-analytics-bucket")
.location("US")
.build());
var apigeeDatastore = new Datastore("apigeeDatastore", DatastoreArgs.builder()
.orgId(apigeeOrg.id())
.displayName("my_datastore")
.targetType("gcs")
.datastoreConfig(DatastoreDatastoreConfigArgs.builder()
.projectId(current.project())
.bucketName(analyticsBucket.name())
.path("/analytics")
.build())
.build());
}
}
resources:
apigeeNetwork:
type: gcp:compute:Network
name: apigee_network
properties:
name: apigee-network
apigeeRange:
type: gcp:compute:GlobalAddress
name: apigee_range
properties:
name: apigee-range
purpose: VPC_PEERING
addressType: INTERNAL
prefixLength: 16
network: ${apigeeNetwork.id}
apigeeVpcConnection:
type: gcp:servicenetworking:Connection
name: apigee_vpc_connection
properties:
network: ${apigeeNetwork.id}
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- ${apigeeRange.name}
apigeeOrg:
type: gcp:apigee:Organization
name: apigee_org
properties:
analyticsRegion: us-central1
projectId: ${current.project}
authorizedNetwork: ${apigeeNetwork.id}
options:
dependsOn:
- ${apigeeVpcConnection}
analyticsBucket:
type: gcp:storage:Bucket
name: analytics_bucket
properties:
name: my-analytics-bucket
location: US
apigeeDatastore:
type: gcp:apigee:Datastore
name: apigee_datastore
properties:
orgId: ${apigeeOrg.id}
displayName: my_datastore
targetType: gcs
datastoreConfig:
projectId: ${current.project}
bucketName: ${analyticsBucket.name}
path: /analytics
variables:
current:
fn::invoke:
function: gcp:organizations:getClientConfig
arguments: {}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_organizations_getclientconfig" "current" {
}
resource "gcp_compute_network" "apigee_network" {
name = "apigee-network"
}
resource "gcp_compute_globaladdress" "apigee_range" {
name = "apigee-range"
purpose = "VPC_PEERING"
address_type = "INTERNAL"
prefix_length = 16
network = gcp_compute_network.apigee_network.id
}
resource "gcp_servicenetworking_connection" "apigee_vpc_connection" {
network = gcp_compute_network.apigee_network.id
service = "servicenetworking.googleapis.com"
reserved_peering_ranges = [gcp_compute_globaladdress.apigee_range.name]
}
resource "gcp_apigee_organization" "apigee_org" {
depends_on = [gcp_servicenetworking_connection.apigee_vpc_connection]
analytics_region = "us-central1"
project_id = data.gcp_organizations_getclientconfig.current.project
authorized_network = gcp_compute_network.apigee_network.id
}
resource "gcp_storage_bucket" "analytics_bucket" {
name = "my-analytics-bucket"
location = "US"
}
resource "gcp_apigee_datastore" "apigee_datastore" {
org_id = gcp_apigee_organization.apigee_org.id
display_name = "my_datastore"
target_type = "gcs"
datastore_config = {
project_id = data.gcp_organizations_getclientconfig.current.project
bucket_name = gcp_storage_bucket.analytics_bucket.name
path = "/analytics"
}
}
Apigee Datastore Bigquery
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const current = gcp.organizations.getClientConfig({});
const apigeeNetwork = new gcp.compute.Network("apigee_network", {name: "apigee-network"});
const apigeeRange = new gcp.compute.GlobalAddress("apigee_range", {
name: "apigee-range",
purpose: "VPC_PEERING",
addressType: "INTERNAL",
prefixLength: 16,
network: apigeeNetwork.id,
});
const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigee_vpc_connection", {
network: apigeeNetwork.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [apigeeRange.name],
});
const apigeeOrg = new gcp.apigee.Organization("apigee_org", {
analyticsRegion: "us-central1",
projectId: current.then(current => current.project),
authorizedNetwork: apigeeNetwork.id,
}, {
dependsOn: [apigeeVpcConnection],
});
const analyticsDataset = new gcp.bigquery.Dataset("analytics_dataset", {
datasetId: "my_analytics_dataset",
location: "US",
});
const apigeeDatastore = new gcp.apigee.Datastore("apigee_datastore", {
orgId: apigeeOrg.id,
displayName: "my_bigquery_datastore",
targetType: "bigquery",
datastoreConfig: {
projectId: current.then(current => current.project),
datasetName: analyticsDataset.datasetId,
tablePrefix: "apigee_",
},
});
import pulumi
import pulumi_gcp as gcp
current = gcp.organizations.get_client_config()
apigee_network = gcp.compute.Network("apigee_network", name="apigee-network")
apigee_range = gcp.compute.GlobalAddress("apigee_range",
name="apigee-range",
purpose="VPC_PEERING",
address_type="INTERNAL",
prefix_length=16,
network=apigee_network.id)
apigee_vpc_connection = gcp.servicenetworking.Connection("apigee_vpc_connection",
network=apigee_network.id,
service="servicenetworking.googleapis.com",
reserved_peering_ranges=[apigee_range.name])
apigee_org = gcp.apigee.Organization("apigee_org",
analytics_region="us-central1",
project_id=current.project,
authorized_network=apigee_network.id,
opts = pulumi.ResourceOptions(depends_on=[apigee_vpc_connection]))
analytics_dataset = gcp.bigquery.Dataset("analytics_dataset",
dataset_id="my_analytics_dataset",
location="US")
apigee_datastore = gcp.apigee.Datastore("apigee_datastore",
org_id=apigee_org.id,
display_name="my_bigquery_datastore",
target_type="bigquery",
datastore_config={
"project_id": current.project,
"dataset_name": analytics_dataset.dataset_id,
"table_prefix": "apigee_",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/apigee"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/bigquery"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := organizations.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
apigeeNetwork, err := compute.NewNetwork(ctx, "apigee_network", &compute.NetworkArgs{
Name: pulumi.String("apigee-network"),
})
if err != nil {
return err
}
apigeeRange, err := compute.NewGlobalAddress(ctx, "apigee_range", &compute.GlobalAddressArgs{
Name: pulumi.String("apigee-range"),
Purpose: pulumi.String("VPC_PEERING"),
AddressType: pulumi.String("INTERNAL"),
PrefixLength: pulumi.Int(16),
Network: apigeeNetwork.ID(),
})
if err != nil {
return err
}
apigeeVpcConnection, err := servicenetworking.NewConnection(ctx, "apigee_vpc_connection", &servicenetworking.ConnectionArgs{
Network: apigeeNetwork.ID(),
Service: pulumi.String("servicenetworking.googleapis.com"),
ReservedPeeringRanges: pulumi.StringArray{
apigeeRange.Name,
},
})
if err != nil {
return err
}
apigeeOrg, err := apigee.NewOrganization(ctx, "apigee_org", &apigee.OrganizationArgs{
AnalyticsRegion: pulumi.String("us-central1"),
ProjectId: pulumi.String(current.Project),
AuthorizedNetwork: apigeeNetwork.ID(),
}, pulumi.DependsOn([]pulumi.Resource{
apigeeVpcConnection,
}))
if err != nil {
return err
}
analyticsDataset, err := bigquery.NewDataset(ctx, "analytics_dataset", &bigquery.DatasetArgs{
DatasetId: pulumi.String("my_analytics_dataset"),
Location: pulumi.String("US"),
})
if err != nil {
return err
}
_, err = apigee.NewDatastore(ctx, "apigee_datastore", &apigee.DatastoreArgs{
OrgId: apigeeOrg.ID(),
DisplayName: pulumi.String("my_bigquery_datastore"),
TargetType: pulumi.String("bigquery"),
DatastoreConfig: &apigee.DatastoreDatastoreConfigArgs{
ProjectId: pulumi.String(current.Project),
DatasetName: analyticsDataset.DatasetId,
TablePrefix: pulumi.String("apigee_"),
},
})
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 current = Gcp.Organizations.GetClientConfig.Invoke();
var apigeeNetwork = new Gcp.Compute.Network("apigee_network", new()
{
Name = "apigee-network",
});
var apigeeRange = new Gcp.Compute.GlobalAddress("apigee_range", new()
{
Name = "apigee-range",
Purpose = "VPC_PEERING",
AddressType = "INTERNAL",
PrefixLength = 16,
Network = apigeeNetwork.Id,
});
var apigeeVpcConnection = new Gcp.ServiceNetworking.Connection("apigee_vpc_connection", new()
{
Network = apigeeNetwork.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges = new[]
{
apigeeRange.Name,
},
});
var apigeeOrg = new Gcp.Apigee.Organization("apigee_org", new()
{
AnalyticsRegion = "us-central1",
ProjectId = current.Apply(getClientConfigResult => getClientConfigResult.Project),
AuthorizedNetwork = apigeeNetwork.Id,
}, new CustomResourceOptions
{
DependsOn =
{
apigeeVpcConnection,
},
});
var analyticsDataset = new Gcp.BigQuery.Dataset("analytics_dataset", new()
{
DatasetId = "my_analytics_dataset",
Location = "US",
});
var apigeeDatastore = new Gcp.Apigee.Datastore("apigee_datastore", new()
{
OrgId = apigeeOrg.Id,
DisplayName = "my_bigquery_datastore",
TargetType = "bigquery",
DatastoreConfig = new Gcp.Apigee.Inputs.DatastoreDatastoreConfigArgs
{
ProjectId = current.Apply(getClientConfigResult => getClientConfigResult.Project),
DatasetName = analyticsDataset.DatasetId,
TablePrefix = "apigee_",
},
});
});
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.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.apigee.Organization;
import com.pulumi.gcp.apigee.OrganizationArgs;
import com.pulumi.gcp.bigquery.Dataset;
import com.pulumi.gcp.bigquery.DatasetArgs;
import com.pulumi.gcp.apigee.Datastore;
import com.pulumi.gcp.apigee.DatastoreArgs;
import com.pulumi.gcp.apigee.inputs.DatastoreDatastoreConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 current = OrganizationsFunctions.getClientConfig(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
var apigeeNetwork = new Network("apigeeNetwork", NetworkArgs.builder()
.name("apigee-network")
.build());
var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
.name("apigee-range")
.purpose("VPC_PEERING")
.addressType("INTERNAL")
.prefixLength(16)
.network(apigeeNetwork.id())
.build());
var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
.network(apigeeNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(apigeeRange.name())
.build());
var apigeeOrg = new Organization("apigeeOrg", OrganizationArgs.builder()
.analyticsRegion("us-central1")
.projectId(current.project())
.authorizedNetwork(apigeeNetwork.id())
.build(), CustomResourceOptions.builder()
.dependsOn(apigeeVpcConnection)
.build());
var analyticsDataset = new Dataset("analyticsDataset", DatasetArgs.builder()
.datasetId("my_analytics_dataset")
.location("US")
.build());
var apigeeDatastore = new Datastore("apigeeDatastore", DatastoreArgs.builder()
.orgId(apigeeOrg.id())
.displayName("my_bigquery_datastore")
.targetType("bigquery")
.datastoreConfig(DatastoreDatastoreConfigArgs.builder()
.projectId(current.project())
.datasetName(analyticsDataset.datasetId())
.tablePrefix("apigee_")
.build())
.build());
}
}
resources:
apigeeNetwork:
type: gcp:compute:Network
name: apigee_network
properties:
name: apigee-network
apigeeRange:
type: gcp:compute:GlobalAddress
name: apigee_range
properties:
name: apigee-range
purpose: VPC_PEERING
addressType: INTERNAL
prefixLength: 16
network: ${apigeeNetwork.id}
apigeeVpcConnection:
type: gcp:servicenetworking:Connection
name: apigee_vpc_connection
properties:
network: ${apigeeNetwork.id}
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- ${apigeeRange.name}
apigeeOrg:
type: gcp:apigee:Organization
name: apigee_org
properties:
analyticsRegion: us-central1
projectId: ${current.project}
authorizedNetwork: ${apigeeNetwork.id}
options:
dependsOn:
- ${apigeeVpcConnection}
analyticsDataset:
type: gcp:bigquery:Dataset
name: analytics_dataset
properties:
datasetId: my_analytics_dataset
location: US
apigeeDatastore:
type: gcp:apigee:Datastore
name: apigee_datastore
properties:
orgId: ${apigeeOrg.id}
displayName: my_bigquery_datastore
targetType: bigquery
datastoreConfig:
projectId: ${current.project}
datasetName: ${analyticsDataset.datasetId}
tablePrefix: apigee_
variables:
current:
fn::invoke:
function: gcp:organizations:getClientConfig
arguments: {}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_organizations_getclientconfig" "current" {
}
resource "gcp_compute_network" "apigee_network" {
name = "apigee-network"
}
resource "gcp_compute_globaladdress" "apigee_range" {
name = "apigee-range"
purpose = "VPC_PEERING"
address_type = "INTERNAL"
prefix_length = 16
network = gcp_compute_network.apigee_network.id
}
resource "gcp_servicenetworking_connection" "apigee_vpc_connection" {
network = gcp_compute_network.apigee_network.id
service = "servicenetworking.googleapis.com"
reserved_peering_ranges = [gcp_compute_globaladdress.apigee_range.name]
}
resource "gcp_apigee_organization" "apigee_org" {
depends_on = [gcp_servicenetworking_connection.apigee_vpc_connection]
analytics_region = "us-central1"
project_id = data.gcp_organizations_getclientconfig.current.project
authorized_network = gcp_compute_network.apigee_network.id
}
resource "gcp_bigquery_dataset" "analytics_dataset" {
dataset_id = "my_analytics_dataset"
location = "US"
}
resource "gcp_apigee_datastore" "apigee_datastore" {
org_id = gcp_apigee_organization.apigee_org.id
display_name = "my_bigquery_datastore"
target_type = "bigquery"
datastore_config = {
project_id = data.gcp_organizations_getclientconfig.current.project
dataset_name = gcp_bigquery_dataset.analytics_dataset.dataset_id
table_prefix = "apigee_"
}
}
Create Datastore Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Datastore(name: string, args: DatastoreArgs, opts?: CustomResourceOptions);@overload
def Datastore(resource_name: str,
args: DatastoreArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Datastore(resource_name: str,
opts: Optional[ResourceOptions] = None,
datastore_config: Optional[DatastoreDatastoreConfigArgs] = None,
display_name: Optional[str] = None,
org_id: Optional[str] = None,
target_type: Optional[str] = None,
deletion_policy: Optional[str] = None)func NewDatastore(ctx *Context, name string, args DatastoreArgs, opts ...ResourceOption) (*Datastore, error)public Datastore(string name, DatastoreArgs args, CustomResourceOptions? opts = null)
public Datastore(String name, DatastoreArgs args)
public Datastore(String name, DatastoreArgs args, CustomResourceOptions options)
type: gcp:apigee:Datastore
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_apigee_datastore" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DatastoreArgs
- 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 DatastoreArgs
- 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 DatastoreArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatastoreArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatastoreArgs
- 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 datastoreResource = new Gcp.Apigee.Datastore("datastoreResource", new()
{
DatastoreConfig = new Gcp.Apigee.Inputs.DatastoreDatastoreConfigArgs
{
ProjectId = "string",
BucketName = "string",
DatasetName = "string",
Path = "string",
TablePrefix = "string",
},
DisplayName = "string",
OrgId = "string",
TargetType = "string",
DeletionPolicy = "string",
});
example, err := apigee.NewDatastore(ctx, "datastoreResource", &apigee.DatastoreArgs{
DatastoreConfig: &apigee.DatastoreDatastoreConfigArgs{
ProjectId: pulumi.String("string"),
BucketName: pulumi.String("string"),
DatasetName: pulumi.String("string"),
Path: pulumi.String("string"),
TablePrefix: pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
OrgId: pulumi.String("string"),
TargetType: pulumi.String("string"),
DeletionPolicy: pulumi.String("string"),
})
resource "gcp_apigee_datastore" "datastoreResource" {
datastore_config = {
project_id = "string"
bucket_name = "string"
dataset_name = "string"
path = "string"
table_prefix = "string"
}
display_name = "string"
org_id = "string"
target_type = "string"
deletion_policy = "string"
}
var datastoreResource = new com.pulumi.gcp.apigee.Datastore("datastoreResource", com.pulumi.gcp.apigee.DatastoreArgs.builder()
.datastoreConfig(DatastoreDatastoreConfigArgs.builder()
.projectId("string")
.bucketName("string")
.datasetName("string")
.path("string")
.tablePrefix("string")
.build())
.displayName("string")
.orgId("string")
.targetType("string")
.deletionPolicy("string")
.build());
datastore_resource = gcp.apigee.Datastore("datastoreResource",
datastore_config={
"project_id": "string",
"bucket_name": "string",
"dataset_name": "string",
"path": "string",
"table_prefix": "string",
},
display_name="string",
org_id="string",
target_type="string",
deletion_policy="string")
const datastoreResource = new gcp.apigee.Datastore("datastoreResource", {
datastoreConfig: {
projectId: "string",
bucketName: "string",
datasetName: "string",
path: "string",
tablePrefix: "string",
},
displayName: "string",
orgId: "string",
targetType: "string",
deletionPolicy: "string",
});
type: gcp:apigee:Datastore
properties:
datastoreConfig:
bucketName: string
datasetName: string
path: string
projectId: string
tablePrefix: string
deletionPolicy: string
displayName: string
orgId: string
targetType: string
Datastore 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 Datastore resource accepts the following input properties:
- Datastore
Config DatastoreDatastore Config - Configuration of the datastore target. Structure is documented below.
- Display
Name string - The display name for the datastore.
- Org
Id string - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - Target
Type string - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery. - Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Datastore
Config DatastoreDatastore Config Args - Configuration of the datastore target. Structure is documented below.
- Display
Name string - The display name for the datastore.
- Org
Id string - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - Target
Type string - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery. - Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- datastore_
config object - Configuration of the datastore target. Structure is documented below.
- display_
name string - The display name for the datastore.
- org_
id string - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - target_
type string - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery. - deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- datastore
Config DatastoreDatastore Config - Configuration of the datastore target. Structure is documented below.
- display
Name String - The display name for the datastore.
- org
Id String - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - target
Type String - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery. - deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- datastore
Config DatastoreDatastore Config - Configuration of the datastore target. Structure is documented below.
- display
Name string - The display name for the datastore.
- org
Id string - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - target
Type string - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery. - deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- datastore_
config DatastoreDatastore Config Args - Configuration of the datastore target. Structure is documented below.
- display_
name str - The display name for the datastore.
- org_
id str - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - target_
type str - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery. - deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- datastore
Config Property Map - Configuration of the datastore target. Structure is documented below.
- display
Name String - The display name for the datastore.
- org
Id String - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - target
Type String - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery. - deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
Outputs
All input properties are implicitly available as output properties. Additionally, the Datastore resource produces the following output properties:
- Create
Time string - The time at which the datastore was created in milliseconds since the epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update stringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- Name string
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - Org string
- The Apigee organization name.
- Self string
- The resource link for the datastore, including the full API path.
- Create
Time string - The time at which the datastore was created in milliseconds since the epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update stringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- Name string
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - Org string
- The Apigee organization name.
- Self string
- The resource link for the datastore, including the full API path.
- create_
time string - The time at which the datastore was created in milliseconds since the epoch.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
update_ stringtime - The time at which the datastore was last updated in milliseconds since the epoch.
- name string
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org string
- The Apigee organization name.
- self string
- The resource link for the datastore, including the full API path.
- create
Time String - The time at which the datastore was created in milliseconds since the epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update StringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- name String
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org String
- The Apigee organization name.
- self String
- The resource link for the datastore, including the full API path.
- create
Time string - The time at which the datastore was created in milliseconds since the epoch.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Update stringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- name string
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org string
- The Apigee organization name.
- self string
- The resource link for the datastore, including the full API path.
- create_
time str - The time at which the datastore was created in milliseconds since the epoch.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
update_ strtime - The time at which the datastore was last updated in milliseconds since the epoch.
- name str
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org str
- The Apigee organization name.
- self str
- The resource link for the datastore, including the full API path.
- create
Time String - The time at which the datastore was created in milliseconds since the epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update StringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- name String
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org String
- The Apigee organization name.
- self String
- The resource link for the datastore, including the full API path.
Look up Existing Datastore Resource
Get an existing Datastore 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?: DatastoreState, opts?: CustomResourceOptions): Datastore@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
datastore_config: Optional[DatastoreDatastoreConfigArgs] = None,
deletion_policy: Optional[str] = None,
display_name: Optional[str] = None,
last_update_time: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
org_id: Optional[str] = None,
self: Optional[str] = None,
target_type: Optional[str] = None) -> Datastorefunc GetDatastore(ctx *Context, name string, id IDInput, state *DatastoreState, opts ...ResourceOption) (*Datastore, error)public static Datastore Get(string name, Input<string> id, DatastoreState? state, CustomResourceOptions? opts = null)public static Datastore get(String name, Output<String> id, DatastoreState state, CustomResourceOptions options)resources: _: type: gcp:apigee:Datastore get: id: ${id}import {
to = gcp_apigee_datastore.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 - The time at which the datastore was created in milliseconds since the epoch.
- Datastore
Config DatastoreDatastore Config - Configuration of the datastore target. Structure is documented below.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - The display name for the datastore.
- Last
Update stringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- Name string
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - Org string
- The Apigee organization name.
- Org
Id string - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - Self string
- The resource link for the datastore, including the full API path.
- Target
Type string - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery.
- Create
Time string - The time at which the datastore was created in milliseconds since the epoch.
- Datastore
Config DatastoreDatastore Config Args - Configuration of the datastore target. Structure is documented below.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Display
Name string - The display name for the datastore.
- Last
Update stringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- Name string
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - Org string
- The Apigee organization name.
- Org
Id string - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - Self string
- The resource link for the datastore, including the full API path.
- Target
Type string - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery.
- create_
time string - The time at which the datastore was created in milliseconds since the epoch.
- datastore_
config object - Configuration of the datastore target. Structure is documented below.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name string - The display name for the datastore.
- last_
update_ stringtime - The time at which the datastore was last updated in milliseconds since the epoch.
- name string
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org string
- The Apigee organization name.
- org_
id string - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - self string
- The resource link for the datastore, including the full API path.
- target_
type string - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery.
- create
Time String - The time at which the datastore was created in milliseconds since the epoch.
- datastore
Config DatastoreDatastore Config - Configuration of the datastore target. Structure is documented below.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - The display name for the datastore.
- last
Update StringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- name String
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org String
- The Apigee organization name.
- org
Id String - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - self String
- The resource link for the datastore, including the full API path.
- target
Type String - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery.
- create
Time string - The time at which the datastore was created in milliseconds since the epoch.
- datastore
Config DatastoreDatastore Config - Configuration of the datastore target. Structure is documented below.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name string - The display name for the datastore.
- last
Update stringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- name string
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org string
- The Apigee organization name.
- org
Id string - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - self string
- The resource link for the datastore, including the full API path.
- target
Type string - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery.
- create_
time str - The time at which the datastore was created in milliseconds since the epoch.
- datastore_
config DatastoreDatastore Config Args - Configuration of the datastore target. Structure is documented below.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display_
name str - The display name for the datastore.
- last_
update_ strtime - The time at which the datastore was last updated in milliseconds since the epoch.
- name str
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org str
- The Apigee organization name.
- org_
id str - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - self str
- The resource link for the datastore, including the full API path.
- target_
type str - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery.
- create
Time String - The time at which the datastore was created in milliseconds since the epoch.
- datastore
Config Property Map - Configuration of the datastore target. Structure is documented below.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- display
Name String - The display name for the datastore.
- last
Update StringTime - The time at which the datastore was last updated in milliseconds since the epoch.
- name String
- The server-assigned UUID identifier for the datastore. Extracted
from the
selffield in the API response. - org String
- The Apigee organization name.
- org
Id String - The Apigee Organization associated with the Apigee datastore,
in the format
organizations/{{org_name}}. - self String
- The resource link for the datastore, including the full API path.
- target
Type String - The type of target for the datastore. Must be
gcsfor Google Cloud Storage orbigqueryfor BigQuery.
Supporting Types
DatastoreDatastoreConfig, DatastoreDatastoreConfigArgs
- Project
Id string - The GCP project ID that the datastore target resides in.
- Bucket
Name string - The name of the Cloud Storage bucket. Required for
gcstarget type. - Dataset
Name string - The name of the BigQuery dataset. Required for
bigquerytarget type. - Path string
- The path within the Cloud Storage bucket. Used for
gcstarget type. - Table
Prefix string - The prefix for BigQuery table names. Used for
bigquerytarget type.
- Project
Id string - The GCP project ID that the datastore target resides in.
- Bucket
Name string - The name of the Cloud Storage bucket. Required for
gcstarget type. - Dataset
Name string - The name of the BigQuery dataset. Required for
bigquerytarget type. - Path string
- The path within the Cloud Storage bucket. Used for
gcstarget type. - Table
Prefix string - The prefix for BigQuery table names. Used for
bigquerytarget type.
- project_
id string - The GCP project ID that the datastore target resides in.
- bucket_
name string - The name of the Cloud Storage bucket. Required for
gcstarget type. - dataset_
name string - The name of the BigQuery dataset. Required for
bigquerytarget type. - path string
- The path within the Cloud Storage bucket. Used for
gcstarget type. - table_
prefix string - The prefix for BigQuery table names. Used for
bigquerytarget type.
- project
Id String - The GCP project ID that the datastore target resides in.
- bucket
Name String - The name of the Cloud Storage bucket. Required for
gcstarget type. - dataset
Name String - The name of the BigQuery dataset. Required for
bigquerytarget type. - path String
- The path within the Cloud Storage bucket. Used for
gcstarget type. - table
Prefix String - The prefix for BigQuery table names. Used for
bigquerytarget type.
- project
Id string - The GCP project ID that the datastore target resides in.
- bucket
Name string - The name of the Cloud Storage bucket. Required for
gcstarget type. - dataset
Name string - The name of the BigQuery dataset. Required for
bigquerytarget type. - path string
- The path within the Cloud Storage bucket. Used for
gcstarget type. - table
Prefix string - The prefix for BigQuery table names. Used for
bigquerytarget type.
- project_
id str - The GCP project ID that the datastore target resides in.
- bucket_
name str - The name of the Cloud Storage bucket. Required for
gcstarget type. - dataset_
name str - The name of the BigQuery dataset. Required for
bigquerytarget type. - path str
- The path within the Cloud Storage bucket. Used for
gcstarget type. - table_
prefix str - The prefix for BigQuery table names. Used for
bigquerytarget type.
- project
Id String - The GCP project ID that the datastore target resides in.
- bucket
Name String - The name of the Cloud Storage bucket. Required for
gcstarget type. - dataset
Name String - The name of the BigQuery dataset. Required for
bigquerytarget type. - path String
- The path within the Cloud Storage bucket. Used for
gcstarget type. - table
Prefix String - The prefix for BigQuery table names. Used for
bigquerytarget type.
Import
Datastore can be imported using any of these accepted formats:
{{org_id}}/analytics/datastores/{{name}}{{org_id}}/{{name}}
When using the pulumi import command, Datastore can be imported using one of the formats above. For example:
$ pulumi import gcp:apigee/datastore:Datastore default {{org_id}}/analytics/datastores/{{name}}
$ pulumi import gcp:apigee/datastore:Datastore default {{org_id}}/{{name}}
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, Jun 24, 2026 by Pulumi