1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getGoogleTagGateway
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi

    Accepted Permissions

    • Zone Settings Read
    • Zone Settings Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleGoogleTagGateway = cloudflare.getGoogleTagGateway({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_google_tag_gateway = cloudflare.get_google_tag_gateway(zone_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.GetGoogleTagGateway(ctx, &cloudflare.LookupGoogleTagGatewayArgs{
    			ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, nil)
    		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 = Cloudflare.GetGoogleTagGateway.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetGoogleTagGatewayArgs;
    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 exampleGoogleTagGateway = CloudflareFunctions.getGoogleTagGateway(GetGoogleTagGatewayArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleGoogleTagGateway:
        fn::invoke:
          function: cloudflare:getGoogleTagGateway
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getgoogletaggateway" "exampleGoogleTagGateway" {
      zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getGoogleTagGateway

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getGoogleTagGateway(args: GetGoogleTagGatewayArgs, opts?: InvokeOptions): Promise<GetGoogleTagGatewayResult>
    function getGoogleTagGatewayOutput(args: GetGoogleTagGatewayOutputArgs, opts?: InvokeOptions): Output<GetGoogleTagGatewayResult>
    def get_google_tag_gateway(zone_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetGoogleTagGatewayResult
    def get_google_tag_gateway_output(zone_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetGoogleTagGatewayResult]
    func LookupGoogleTagGateway(ctx *Context, args *LookupGoogleTagGatewayArgs, opts ...InvokeOption) (*LookupGoogleTagGatewayResult, error)
    func LookupGoogleTagGatewayOutput(ctx *Context, args *LookupGoogleTagGatewayOutputArgs, opts ...InvokeOption) LookupGoogleTagGatewayResultOutput

    > Note: This function is named LookupGoogleTagGateway in the Go SDK.

    public static class GetGoogleTagGateway 
    {
        public static Task<GetGoogleTagGatewayResult> InvokeAsync(GetGoogleTagGatewayArgs args, InvokeOptions? opts = null)
        public static Output<GetGoogleTagGatewayResult> Invoke(GetGoogleTagGatewayInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGoogleTagGatewayResult> getGoogleTagGateway(GetGoogleTagGatewayArgs args, InvokeOptions options)
    public static Output<GetGoogleTagGatewayResult> getGoogleTagGateway(GetGoogleTagGatewayArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getGoogleTagGateway:getGoogleTagGateway
      arguments:
        # arguments dictionary
    data "cloudflare_get_google_tag_gateway" "name" {
        # arguments
    }

    The following arguments are supported:

    ZoneId string
    Identifier.
    ZoneId string
    Identifier.
    zone_id string
    Identifier.
    zoneId String
    Identifier.
    zoneId string
    Identifier.
    zone_id str
    Identifier.
    zoneId String
    Identifier.

    getGoogleTagGateway Result

    The following output properties are available:

    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).
    HideOriginalIp bool
    Hides the original client IP address from Google when enabled.
    Id string
    Identifier.
    MeasurementId string
    Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
    SetUpTag bool
    Set up the associated Google Tag on the zone automatically when enabled.
    ZoneId 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).
    HideOriginalIp bool
    Hides the original client IP address from Google when enabled.
    Id string
    Identifier.
    MeasurementId string
    Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
    SetUpTag bool
    Set up the associated Google Tag on the zone automatically when enabled.
    ZoneId 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_ip bool
    Hides the original client IP address from Google when enabled.
    id string
    Identifier.
    measurement_id string
    Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
    set_up_tag bool
    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).
    hideOriginalIp Boolean
    Hides the original client IP address from Google when enabled.
    id String
    Identifier.
    measurementId String
    Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
    setUpTag Boolean
    Set up the associated Google Tag on the zone automatically when enabled.
    zoneId 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).
    hideOriginalIp boolean
    Hides the original client IP address from Google when enabled.
    id string
    Identifier.
    measurementId string
    Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
    setUpTag boolean
    Set up the associated Google Tag on the zone automatically when enabled.
    zoneId 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_ip bool
    Hides the original client IP address from Google when enabled.
    id str
    Identifier.
    measurement_id str
    Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
    set_up_tag bool
    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).
    hideOriginalIp Boolean
    Hides the original client IP address from Google when enabled.
    id String
    Identifier.
    measurementId String
    Specify the Google Tag Manager container or measurement ID (e.g. GTM-XXXXXXX or G-XXXXXXXXXX).
    setUpTag Boolean
    Set up the associated Google Tag on the zone automatically when enabled.
    zoneId String
    Identifier.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.18.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial