1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustGatewayLogging
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

cloudflare.getZeroTrustGatewayLogging

Get Started
cloudflare logo
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustGatewayLogging = cloudflare.getZeroTrustGatewayLogging({
        accountId: "699d98642c564d2e855e9661899b7252",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_gateway_logging = cloudflare.get_zero_trust_gateway_logging(account_id="699d98642c564d2e855e9661899b7252")
    
    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.LookupZeroTrustGatewayLogging(ctx, &cloudflare.LookupZeroTrustGatewayLoggingArgs{
    			AccountId: "699d98642c564d2e855e9661899b7252",
    		}, 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 exampleZeroTrustGatewayLogging = Cloudflare.GetZeroTrustGatewayLogging.Invoke(new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
        });
    
    });
    
    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.GetZeroTrustGatewayLoggingArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 exampleZeroTrustGatewayLogging = CloudflareFunctions.getZeroTrustGatewayLogging(GetZeroTrustGatewayLoggingArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustGatewayLogging:
        fn::invoke:
          function: cloudflare:getZeroTrustGatewayLogging
          arguments:
            accountId: 699d98642c564d2e855e9661899b7252
    

    Using getZeroTrustGatewayLogging

    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 getZeroTrustGatewayLogging(args: GetZeroTrustGatewayLoggingArgs, opts?: InvokeOptions): Promise<GetZeroTrustGatewayLoggingResult>
    function getZeroTrustGatewayLoggingOutput(args: GetZeroTrustGatewayLoggingOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustGatewayLoggingResult>
    def get_zero_trust_gateway_logging(account_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetZeroTrustGatewayLoggingResult
    def get_zero_trust_gateway_logging_output(account_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustGatewayLoggingResult]
    func LookupZeroTrustGatewayLogging(ctx *Context, args *LookupZeroTrustGatewayLoggingArgs, opts ...InvokeOption) (*LookupZeroTrustGatewayLoggingResult, error)
    func LookupZeroTrustGatewayLoggingOutput(ctx *Context, args *LookupZeroTrustGatewayLoggingOutputArgs, opts ...InvokeOption) LookupZeroTrustGatewayLoggingResultOutput

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

    public static class GetZeroTrustGatewayLogging 
    {
        public static Task<GetZeroTrustGatewayLoggingResult> InvokeAsync(GetZeroTrustGatewayLoggingArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustGatewayLoggingResult> Invoke(GetZeroTrustGatewayLoggingInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustGatewayLoggingResult> getZeroTrustGatewayLogging(GetZeroTrustGatewayLoggingArgs args, InvokeOptions options)
    public static Output<GetZeroTrustGatewayLoggingResult> getZeroTrustGatewayLogging(GetZeroTrustGatewayLoggingArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustGatewayLogging:getZeroTrustGatewayLogging
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    AccountId string
    accountId String
    accountId string
    accountId String

    getZeroTrustGatewayLogging Result

    The following output properties are available:

    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RedactPii bool
    Indicate whether to redact personally identifiable information from activity logging (PII fields include source IP, user email, user ID, device ID, URL, referrer, and user agent).
    SettingsByRuleType GetZeroTrustGatewayLoggingSettingsByRuleType
    Configure logging settings for each rule type.
    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RedactPii bool
    Indicate whether to redact personally identifiable information from activity logging (PII fields include source IP, user email, user ID, device ID, URL, referrer, and user agent).
    SettingsByRuleType GetZeroTrustGatewayLoggingSettingsByRuleType
    Configure logging settings for each rule type.
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    redactPii Boolean
    Indicate whether to redact personally identifiable information from activity logging (PII fields include source IP, user email, user ID, device ID, URL, referrer, and user agent).
    settingsByRuleType GetZeroTrustGatewayLoggingSettingsByRuleType
    Configure logging settings for each rule type.
    accountId string
    id string
    The provider-assigned unique ID for this managed resource.
    redactPii boolean
    Indicate whether to redact personally identifiable information from activity logging (PII fields include source IP, user email, user ID, device ID, URL, referrer, and user agent).
    settingsByRuleType GetZeroTrustGatewayLoggingSettingsByRuleType
    Configure logging settings for each rule type.
    account_id str
    id str
    The provider-assigned unique ID for this managed resource.
    redact_pii bool
    Indicate whether to redact personally identifiable information from activity logging (PII fields include source IP, user email, user ID, device ID, URL, referrer, and user agent).
    settings_by_rule_type GetZeroTrustGatewayLoggingSettingsByRuleType
    Configure logging settings for each rule type.
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    redactPii Boolean
    Indicate whether to redact personally identifiable information from activity logging (PII fields include source IP, user email, user ID, device ID, URL, referrer, and user agent).
    settingsByRuleType Property Map
    Configure logging settings for each rule type.

    Supporting Types

    GetZeroTrustGatewayLoggingSettingsByRuleType

    Dns GetZeroTrustGatewayLoggingSettingsByRuleTypeDns
    Configure logging settings for DNS firewall.
    Http GetZeroTrustGatewayLoggingSettingsByRuleTypeHttp
    Configure logging settings for HTTP/HTTPS firewall.
    L4 GetZeroTrustGatewayLoggingSettingsByRuleTypeL4
    Configure logging settings for Network firewall.
    Dns GetZeroTrustGatewayLoggingSettingsByRuleTypeDns
    Configure logging settings for DNS firewall.
    Http GetZeroTrustGatewayLoggingSettingsByRuleTypeHttp
    Configure logging settings for HTTP/HTTPS firewall.
    L4 GetZeroTrustGatewayLoggingSettingsByRuleTypeL4
    Configure logging settings for Network firewall.
    dns GetZeroTrustGatewayLoggingSettingsByRuleTypeDns
    Configure logging settings for DNS firewall.
    http GetZeroTrustGatewayLoggingSettingsByRuleTypeHttp
    Configure logging settings for HTTP/HTTPS firewall.
    l4 GetZeroTrustGatewayLoggingSettingsByRuleTypeL4
    Configure logging settings for Network firewall.
    dns GetZeroTrustGatewayLoggingSettingsByRuleTypeDns
    Configure logging settings for DNS firewall.
    http GetZeroTrustGatewayLoggingSettingsByRuleTypeHttp
    Configure logging settings for HTTP/HTTPS firewall.
    l4 GetZeroTrustGatewayLoggingSettingsByRuleTypeL4
    Configure logging settings for Network firewall.
    dns GetZeroTrustGatewayLoggingSettingsByRuleTypeDns
    Configure logging settings for DNS firewall.
    http GetZeroTrustGatewayLoggingSettingsByRuleTypeHttp
    Configure logging settings for HTTP/HTTPS firewall.
    l4 GetZeroTrustGatewayLoggingSettingsByRuleTypeL4
    Configure logging settings for Network firewall.
    dns Property Map
    Configure logging settings for DNS firewall.
    http Property Map
    Configure logging settings for HTTP/HTTPS firewall.
    l4 Property Map
    Configure logging settings for Network firewall.

    GetZeroTrustGatewayLoggingSettingsByRuleTypeDns

    LogAll bool
    Specify whether to log all requests to this service.
    LogBlocks bool
    Specify whether to log only blocking requests to this service.
    LogAll bool
    Specify whether to log all requests to this service.
    LogBlocks bool
    Specify whether to log only blocking requests to this service.
    logAll Boolean
    Specify whether to log all requests to this service.
    logBlocks Boolean
    Specify whether to log only blocking requests to this service.
    logAll boolean
    Specify whether to log all requests to this service.
    logBlocks boolean
    Specify whether to log only blocking requests to this service.
    log_all bool
    Specify whether to log all requests to this service.
    log_blocks bool
    Specify whether to log only blocking requests to this service.
    logAll Boolean
    Specify whether to log all requests to this service.
    logBlocks Boolean
    Specify whether to log only blocking requests to this service.

    GetZeroTrustGatewayLoggingSettingsByRuleTypeHttp

    LogAll bool
    Specify whether to log all requests to this service.
    LogBlocks bool
    Specify whether to log only blocking requests to this service.
    LogAll bool
    Specify whether to log all requests to this service.
    LogBlocks bool
    Specify whether to log only blocking requests to this service.
    logAll Boolean
    Specify whether to log all requests to this service.
    logBlocks Boolean
    Specify whether to log only blocking requests to this service.
    logAll boolean
    Specify whether to log all requests to this service.
    logBlocks boolean
    Specify whether to log only blocking requests to this service.
    log_all bool
    Specify whether to log all requests to this service.
    log_blocks bool
    Specify whether to log only blocking requests to this service.
    logAll Boolean
    Specify whether to log all requests to this service.
    logBlocks Boolean
    Specify whether to log only blocking requests to this service.

    GetZeroTrustGatewayLoggingSettingsByRuleTypeL4

    LogAll bool
    Specify whether to log all requests to this service.
    LogBlocks bool
    Specify whether to log only blocking requests to this service.
    LogAll bool
    Specify whether to log all requests to this service.
    LogBlocks bool
    Specify whether to log only blocking requests to this service.
    logAll Boolean
    Specify whether to log all requests to this service.
    logBlocks Boolean
    Specify whether to log only blocking requests to this service.
    logAll boolean
    Specify whether to log all requests to this service.
    logBlocks boolean
    Specify whether to log only blocking requests to this service.
    log_all bool
    Specify whether to log all requests to this service.
    log_blocks bool
    Specify whether to log only blocking requests to this service.
    logAll Boolean
    Specify whether to log all requests to this service.
    logBlocks Boolean
    Specify whether to log only blocking requests to this service.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate