1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustDlpDataClasses
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

    • Zero Trust Read
    • Zero Trust Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDlpDataClasses = cloudflare.getZeroTrustDlpDataClasses({
        accountId: "account_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dlp_data_classes = cloudflare.get_zero_trust_dlp_data_classes(account_id="account_id")
    
    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.GetZeroTrustDlpDataClasses(ctx, &cloudflare.LookupZeroTrustDlpDataClassesArgs{
    			AccountId: "account_id",
    		}, 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 exampleZeroTrustDlpDataClasses = Cloudflare.GetZeroTrustDlpDataClasses.Invoke(new()
        {
            AccountId = "account_id",
        });
    
    });
    
    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.GetZeroTrustDlpDataClassesArgs;
    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 exampleZeroTrustDlpDataClasses = CloudflareFunctions.getZeroTrustDlpDataClasses(GetZeroTrustDlpDataClassesArgs.builder()
                .accountId("account_id")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDlpDataClasses:
        fn::invoke:
          function: cloudflare:getZeroTrustDlpDataClasses
          arguments:
            accountId: account_id
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getzerotrustdlpdataclasses" "exampleZeroTrustDlpDataClasses" {
      account_id = "account_id"
    }
    

    Using getZeroTrustDlpDataClasses

    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 getZeroTrustDlpDataClasses(args: GetZeroTrustDlpDataClassesArgs, opts?: InvokeOptions): Promise<GetZeroTrustDlpDataClassesResult>
    function getZeroTrustDlpDataClassesOutput(args: GetZeroTrustDlpDataClassesOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDlpDataClassesResult>
    def get_zero_trust_dlp_data_classes(account_id: Optional[str] = None,
                                        max_items: Optional[int] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetZeroTrustDlpDataClassesResult
    def get_zero_trust_dlp_data_classes_output(account_id: pulumi.Input[Optional[str]] = None,
                                        max_items: pulumi.Input[Optional[int]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDlpDataClassesResult]
    func LookupZeroTrustDlpDataClasses(ctx *Context, args *LookupZeroTrustDlpDataClassesArgs, opts ...InvokeOption) (*LookupZeroTrustDlpDataClassesResult, error)
    func LookupZeroTrustDlpDataClassesOutput(ctx *Context, args *LookupZeroTrustDlpDataClassesOutputArgs, opts ...InvokeOption) LookupZeroTrustDlpDataClassesResultOutput

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

    public static class GetZeroTrustDlpDataClasses 
    {
        public static Task<GetZeroTrustDlpDataClassesResult> InvokeAsync(GetZeroTrustDlpDataClassesArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDlpDataClassesResult> Invoke(GetZeroTrustDlpDataClassesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDlpDataClassesResult> getZeroTrustDlpDataClasses(GetZeroTrustDlpDataClassesArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDlpDataClassesResult> getZeroTrustDlpDataClasses(GetZeroTrustDlpDataClassesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDlpDataClasses:getZeroTrustDlpDataClasses
      arguments:
        # arguments dictionary
    data "cloudflare_get_zero_trust_dlp_data_classes" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    max_items number
    Max items to fetch, default: 1000
    accountId String
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    max_items int
    Max items to fetch, default: 1000
    accountId String
    maxItems Number
    Max items to fetch, default: 1000

    getZeroTrustDlpDataClasses Result

    The following output properties are available:

    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetZeroTrustDlpDataClassesResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetZeroTrustDlpDataClassesResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    id string
    The provider-assigned unique ID for this managed resource.
    results list(object)
    The items returned by the data source
    max_items number
    Max items to fetch, default: 1000
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetZeroTrustDlpDataClassesResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    id string
    The provider-assigned unique ID for this managed resource.
    results GetZeroTrustDlpDataClassesResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetZeroTrustDlpDataClassesResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetZeroTrustDlpDataClassesResult

    GetZeroTrustDlpDataClassesResultSensitivityLevel

    GroupId string
    LevelId string
    GroupId string
    LevelId string
    group_id string
    level_id string
    groupId String
    levelId String
    groupId string
    levelId string
    groupId String
    levelId String

    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