published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Accepted Permissions
Zone Settings ReadZone Settings Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleGoogleTagGateway = new cloudflare.GoogleTagGateway("example_google_tag_gateway", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
enabled: true,
endpoint: "/metrics",
hideOriginalIp: true,
measurementId: "GTM-P2F3N47Q",
setUpTag: true,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_google_tag_gateway = cloudflare.GoogleTagGateway("example_google_tag_gateway",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
enabled=True,
endpoint="/metrics",
hide_original_ip=True,
measurement_id="GTM-P2F3N47Q",
set_up_tag=True)
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewGoogleTagGateway(ctx, "example_google_tag_gateway", &cloudflare.GoogleTagGatewayArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
Enabled: pulumi.Bool(true),
Endpoint: pulumi.String("/metrics"),
HideOriginalIp: pulumi.Bool(true),
MeasurementId: pulumi.String("GTM-P2F3N47Q"),
SetUpTag: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleGoogleTagGateway = new Cloudflare.GoogleTagGateway("example_google_tag_gateway", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
Enabled = true,
Endpoint = "/metrics",
HideOriginalIp = true,
MeasurementId = "GTM-P2F3N47Q",
SetUpTag = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.GoogleTagGateway;
import com.pulumi.cloudflare.GoogleTagGatewayArgs;
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) {
var exampleGoogleTagGateway = new GoogleTagGateway("exampleGoogleTagGateway", GoogleTagGatewayArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.enabled(true)
.endpoint("/metrics")
.hideOriginalIp(true)
.measurementId("GTM-P2F3N47Q")
.setUpTag(true)
.build());
}
}
resources:
exampleGoogleTagGateway:
type: cloudflare:GoogleTagGateway
name: example_google_tag_gateway
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
enabled: true
endpoint: /metrics
hideOriginalIp: true
measurementId: GTM-P2F3N47Q
setUpTag: true
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_googletaggateway" "example_google_tag_gateway" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
enabled = true
endpoint = "/metrics"
hide_original_ip = true
measurement_id = "GTM-P2F3N47Q"
set_up_tag = true
}
Create GoogleTagGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GoogleTagGateway(name: string, args: GoogleTagGatewayArgs, opts?: CustomResourceOptions);@overload
def GoogleTagGateway(resource_name: str,
args: GoogleTagGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GoogleTagGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
endpoint: Optional[str] = None,
hide_original_ip: Optional[bool] = None,
measurement_id: Optional[str] = None,
zone_id: Optional[str] = None,
set_up_tag: Optional[bool] = None)func NewGoogleTagGateway(ctx *Context, name string, args GoogleTagGatewayArgs, opts ...ResourceOption) (*GoogleTagGateway, error)public GoogleTagGateway(string name, GoogleTagGatewayArgs args, CustomResourceOptions? opts = null)
public GoogleTagGateway(String name, GoogleTagGatewayArgs args)
public GoogleTagGateway(String name, GoogleTagGatewayArgs args, CustomResourceOptions options)
type: cloudflare:GoogleTagGateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_google_tag_gateway" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args GoogleTagGatewayArgs
- 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 GoogleTagGatewayArgs
- 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 GoogleTagGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GoogleTagGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GoogleTagGatewayArgs
- 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 googleTagGatewayResource = new Cloudflare.GoogleTagGateway("googleTagGatewayResource", new()
{
Enabled = false,
Endpoint = "string",
HideOriginalIp = false,
MeasurementId = "string",
ZoneId = "string",
SetUpTag = false,
});
example, err := cloudflare.NewGoogleTagGateway(ctx, "googleTagGatewayResource", &cloudflare.GoogleTagGatewayArgs{
Enabled: pulumi.Bool(false),
Endpoint: pulumi.String("string"),
HideOriginalIp: pulumi.Bool(false),
MeasurementId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
SetUpTag: pulumi.Bool(false),
})
resource "cloudflare_google_tag_gateway" "googleTagGatewayResource" {
lifecycle {
create_before_destroy = true
}
enabled = false
endpoint = "string"
hide_original_ip = false
measurement_id = "string"
zone_id = "string"
set_up_tag = false
}
var googleTagGatewayResource = new GoogleTagGateway("googleTagGatewayResource", GoogleTagGatewayArgs.builder()
.enabled(false)
.endpoint("string")
.hideOriginalIp(false)
.measurementId("string")
.zoneId("string")
.setUpTag(false)
.build());
google_tag_gateway_resource = cloudflare.GoogleTagGateway("googleTagGatewayResource",
enabled=False,
endpoint="string",
hide_original_ip=False,
measurement_id="string",
zone_id="string",
set_up_tag=False)
const googleTagGatewayResource = new cloudflare.GoogleTagGateway("googleTagGatewayResource", {
enabled: false,
endpoint: "string",
hideOriginalIp: false,
measurementId: "string",
zoneId: "string",
setUpTag: false,
});
type: cloudflare:GoogleTagGateway
properties:
enabled: false
endpoint: string
hideOriginalIp: false
measurementId: string
setUpTag: false
zoneId: string
GoogleTagGateway 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 GoogleTagGateway resource accepts the following input properties:
- Enabled bool
- Enables or disables Google Tag Gateway for this zone.
- Endpoint string
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- Hide
Original boolIp - Hides the original client IP address from Google when enabled.
- Measurement
Id string - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- Zone
Id string - Identifier.
- Set
Up boolTag - Set up the associated Google Tag on the zone automatically when enabled.
- Enabled bool
- Enables or disables Google Tag Gateway for this zone.
- Endpoint string
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- Hide
Original boolIp - Hides the original client IP address from Google when enabled.
- Measurement
Id string - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- Zone
Id string - Identifier.
- Set
Up boolTag - Set up the associated Google Tag on the zone automatically when enabled.
- enabled bool
- Enables or disables Google Tag Gateway for this zone.
- endpoint string
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide_
original_ boolip - Hides the original client IP address from Google when enabled.
- measurement_
id string - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- zone_
id string - Identifier.
- set_
up_ booltag - Set up the associated Google Tag on the zone automatically when enabled.
- enabled Boolean
- Enables or disables Google Tag Gateway for this zone.
- endpoint String
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide
Original BooleanIp - Hides the original client IP address from Google when enabled.
- measurement
Id String - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- zone
Id String - Identifier.
- set
Up BooleanTag - Set up the associated Google Tag on the zone automatically when enabled.
- enabled boolean
- Enables or disables Google Tag Gateway for this zone.
- endpoint string
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide
Original booleanIp - Hides the original client IP address from Google when enabled.
- measurement
Id string - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- zone
Id string - Identifier.
- set
Up booleanTag - Set up the associated Google Tag on the zone automatically when enabled.
- enabled bool
- Enables or disables Google Tag Gateway for this zone.
- endpoint str
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide_
original_ boolip - Hides the original client IP address from Google when enabled.
- measurement_
id str - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- zone_
id str - Identifier.
- set_
up_ booltag - Set up the associated Google Tag on the zone automatically when enabled.
- enabled Boolean
- Enables or disables Google Tag Gateway for this zone.
- endpoint String
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide
Original BooleanIp - Hides the original client IP address from Google when enabled.
- measurement
Id String - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- zone
Id String - Identifier.
- set
Up BooleanTag - Set up the associated Google Tag on the zone automatically when enabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the GoogleTagGateway resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing GoogleTagGateway Resource
Get an existing GoogleTagGateway 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?: GoogleTagGatewayState, opts?: CustomResourceOptions): GoogleTagGateway@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
endpoint: Optional[str] = None,
hide_original_ip: Optional[bool] = None,
measurement_id: Optional[str] = None,
set_up_tag: Optional[bool] = None,
zone_id: Optional[str] = None) -> GoogleTagGatewayfunc GetGoogleTagGateway(ctx *Context, name string, id IDInput, state *GoogleTagGatewayState, opts ...ResourceOption) (*GoogleTagGateway, error)public static GoogleTagGateway Get(string name, Input<string> id, GoogleTagGatewayState? state, CustomResourceOptions? opts = null)public static GoogleTagGateway get(String name, Output<String> id, GoogleTagGatewayState state, CustomResourceOptions options)resources: _: type: cloudflare:GoogleTagGateway get: id: ${id}import {
to = cloudflare_google_tag_gateway.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.
- Enabled bool
- Enables or disables Google Tag Gateway for this zone.
- Endpoint string
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- Hide
Original boolIp - Hides the original client IP address from Google when enabled.
- Measurement
Id string - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- Set
Up boolTag - Set up the associated Google Tag on the zone automatically when enabled.
- Zone
Id string - Identifier.
- Enabled bool
- Enables or disables Google Tag Gateway for this zone.
- Endpoint string
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- Hide
Original boolIp - Hides the original client IP address from Google when enabled.
- Measurement
Id string - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- Set
Up boolTag - Set up the associated Google Tag on the zone automatically when enabled.
- Zone
Id string - Identifier.
- enabled bool
- Enables or disables Google Tag Gateway for this zone.
- endpoint string
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide_
original_ boolip - Hides the original client IP address from Google when enabled.
- measurement_
id string - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- set_
up_ booltag - Set up the associated Google Tag on the zone automatically when enabled.
- zone_
id string - Identifier.
- enabled Boolean
- Enables or disables Google Tag Gateway for this zone.
- endpoint String
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide
Original BooleanIp - Hides the original client IP address from Google when enabled.
- measurement
Id String - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- set
Up BooleanTag - Set up the associated Google Tag on the zone automatically when enabled.
- zone
Id String - Identifier.
- enabled boolean
- Enables or disables Google Tag Gateway for this zone.
- endpoint string
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide
Original booleanIp - Hides the original client IP address from Google when enabled.
- measurement
Id string - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- set
Up booleanTag - Set up the associated Google Tag on the zone automatically when enabled.
- zone
Id string - Identifier.
- enabled bool
- Enables or disables Google Tag Gateway for this zone.
- endpoint str
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide_
original_ boolip - Hides the original client IP address from Google when enabled.
- measurement_
id str - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- set_
up_ booltag - Set up the associated Google Tag on the zone automatically when enabled.
- zone_
id str - Identifier.
- enabled Boolean
- Enables or disables Google Tag Gateway for this zone.
- endpoint String
- Specifies the endpoint path for proxying Google Tag Manager requests. Use an absolute path starting with '/', with no nested paths and alphanumeric characters only (e.g. /metrics).
- hide
Original BooleanIp - Hides the original client IP address from Google when enabled.
- measurement
Id String - Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
- set
Up BooleanTag - Set up the associated Google Tag on the zone automatically when enabled.
- zone
Id String - Identifier.
Import
$ pulumi import cloudflare:index/googleTagGateway:GoogleTagGateway example '<zone_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Jul 16, 2026 by Pulumi