1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustDlpDataClass
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 exampleZeroTrustDlpDataClass = cloudflare.getZeroTrustDlpDataClass({
        accountId: "account_id",
        dataClassId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dlp_data_class = cloudflare.get_zero_trust_dlp_data_class(account_id="account_id",
        data_class_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
    
    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.GetZeroTrustDlpDataClass(ctx, &cloudflare.LookupZeroTrustDlpDataClassArgs{
    			AccountId:   "account_id",
    			DataClassId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    		}, 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 exampleZeroTrustDlpDataClass = Cloudflare.GetZeroTrustDlpDataClass.Invoke(new()
        {
            AccountId = "account_id",
            DataClassId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        });
    
    });
    
    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.GetZeroTrustDlpDataClassArgs;
    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 exampleZeroTrustDlpDataClass = CloudflareFunctions.getZeroTrustDlpDataClass(GetZeroTrustDlpDataClassArgs.builder()
                .accountId("account_id")
                .dataClassId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDlpDataClass:
        fn::invoke:
          function: cloudflare:getZeroTrustDlpDataClass
          arguments:
            accountId: account_id
            dataClassId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getzerotrustdlpdataclass" "exampleZeroTrustDlpDataClass" {
      account_id    = "account_id"
      data_class_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
    }
    

    Using getZeroTrustDlpDataClass

    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 getZeroTrustDlpDataClass(args: GetZeroTrustDlpDataClassArgs, opts?: InvokeOptions): Promise<GetZeroTrustDlpDataClassResult>
    function getZeroTrustDlpDataClassOutput(args: GetZeroTrustDlpDataClassOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDlpDataClassResult>
    def get_zero_trust_dlp_data_class(account_id: Optional[str] = None,
                                      data_class_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetZeroTrustDlpDataClassResult
    def get_zero_trust_dlp_data_class_output(account_id: pulumi.Input[Optional[str]] = None,
                                      data_class_id: pulumi.Input[Optional[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDlpDataClassResult]
    func LookupZeroTrustDlpDataClass(ctx *Context, args *LookupZeroTrustDlpDataClassArgs, opts ...InvokeOption) (*LookupZeroTrustDlpDataClassResult, error)
    func LookupZeroTrustDlpDataClassOutput(ctx *Context, args *LookupZeroTrustDlpDataClassOutputArgs, opts ...InvokeOption) LookupZeroTrustDlpDataClassResultOutput

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

    public static class GetZeroTrustDlpDataClass 
    {
        public static Task<GetZeroTrustDlpDataClassResult> InvokeAsync(GetZeroTrustDlpDataClassArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDlpDataClassResult> Invoke(GetZeroTrustDlpDataClassInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDlpDataClassResult> getZeroTrustDlpDataClass(GetZeroTrustDlpDataClassArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDlpDataClassResult> getZeroTrustDlpDataClass(GetZeroTrustDlpDataClassArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDlpDataClass:getZeroTrustDlpDataClass
      arguments:
        # arguments dictionary
    data "cloudflare_get_zero_trust_dlp_data_class" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    DataClassId string
    AccountId string
    DataClassId string
    accountId String
    dataClassId String
    accountId string
    dataClassId string
    accountId String
    dataClassId String

    getZeroTrustDlpDataClass Result

    The following output properties are available:

    AccountId string
    CreatedAt string
    DataClassId string
    DataTags List<string>
    Description string
    Expression string
    Id string
    The ID of this resource.
    Name string
    SensitivityLevels List<GetZeroTrustDlpDataClassSensitivityLevel>
    UpdatedAt string
    AccountId string
    CreatedAt string
    DataClassId string
    DataTags []string
    Description string
    Expression string
    Id string
    The ID of this resource.
    Name string
    SensitivityLevels []GetZeroTrustDlpDataClassSensitivityLevel
    UpdatedAt string
    account_id string
    created_at string
    data_class_id string
    data_tags list(string)
    description string
    expression string
    id string
    The ID of this resource.
    name string
    sensitivity_levels list(object)
    updated_at string
    accountId String
    createdAt String
    dataClassId String
    dataTags List<String>
    description String
    expression String
    id String
    The ID of this resource.
    name String
    sensitivityLevels List<GetZeroTrustDlpDataClassSensitivityLevel>
    updatedAt String
    accountId string
    createdAt string
    dataClassId string
    dataTags string[]
    description string
    expression string
    id string
    The ID of this resource.
    name string
    sensitivityLevels GetZeroTrustDlpDataClassSensitivityLevel[]
    updatedAt string
    accountId String
    createdAt String
    dataClassId String
    dataTags List<String>
    description String
    expression String
    id String
    The ID of this resource.
    name String
    sensitivityLevels List<Property Map>
    updatedAt String

    Supporting Types

    GetZeroTrustDlpDataClassSensitivityLevel

    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