1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustGatewayLogging
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getZeroTrustGatewayLogging

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 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
    Redact personally identifiable information from activity logging (PII fields are: source IP, user email, user ID, device ID, URL, referrer, user agent).
    SettingsByRuleType GetZeroTrustGatewayLoggingSettingsByRuleType
    Logging settings by rule type.
    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RedactPii bool
    Redact personally identifiable information from activity logging (PII fields are: source IP, user email, user ID, device ID, URL, referrer, user agent).
    SettingsByRuleType GetZeroTrustGatewayLoggingSettingsByRuleType
    Logging settings by rule type.
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    redactPii Boolean
    Redact personally identifiable information from activity logging (PII fields are: source IP, user email, user ID, device ID, URL, referrer, user agent).
    settingsByRuleType GetZeroTrustGatewayLoggingSettingsByRuleType
    Logging settings by rule type.
    accountId string
    id string
    The provider-assigned unique ID for this managed resource.
    redactPii boolean
    Redact personally identifiable information from activity logging (PII fields are: source IP, user email, user ID, device ID, URL, referrer, user agent).
    settingsByRuleType GetZeroTrustGatewayLoggingSettingsByRuleType
    Logging settings by rule type.
    account_id str
    id str
    The provider-assigned unique ID for this managed resource.
    redact_pii bool
    Redact personally identifiable information from activity logging (PII fields are: source IP, user email, user ID, device ID, URL, referrer, user agent).
    settings_by_rule_type GetZeroTrustGatewayLoggingSettingsByRuleType
    Logging settings by rule type.
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    redactPii Boolean
    Redact personally identifiable information from activity logging (PII fields are: source IP, user email, user ID, device ID, URL, referrer, user agent).
    settingsByRuleType Property Map
    Logging settings by rule type.

    Supporting Types

    GetZeroTrustGatewayLoggingSettingsByRuleType

    GetZeroTrustGatewayLoggingSettingsByRuleTypeDns

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

    GetZeroTrustGatewayLoggingSettingsByRuleTypeHttp

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

    GetZeroTrustGatewayLoggingSettingsByRuleTypeL4

    LogAll bool
    Log all requests to this service.
    LogBlocks bool
    Log only blocking requests to this service.
    LogAll bool
    Log all requests to this service.
    LogBlocks bool
    Log only blocking requests to this service.
    logAll Boolean
    Log all requests to this service.
    logBlocks Boolean
    Log only blocking requests to this service.
    logAll boolean
    Log all requests to this service.
    logBlocks boolean
    Log only blocking requests to this service.
    log_all bool
    Log all requests to this service.
    log_blocks bool
    Log only blocking requests to this service.
    logAll Boolean
    Log all requests to this service.
    logBlocks Boolean
    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.1.2 published on Monday, Apr 28, 2025 by Pulumi