1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustDlpDataTags
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 exampleZeroTrustDlpDataTags = cloudflare.getZeroTrustDlpDataTags({
        accountId: "account_id",
        categoryId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dlp_data_tags = cloudflare.get_zero_trust_dlp_data_tags(account_id="account_id",
        category_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.GetZeroTrustDlpDataTags(ctx, &cloudflare.LookupZeroTrustDlpDataTagsArgs{
    			AccountId:  "account_id",
    			CategoryId: "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 exampleZeroTrustDlpDataTags = Cloudflare.GetZeroTrustDlpDataTags.Invoke(new()
        {
            AccountId = "account_id",
            CategoryId = "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.GetZeroTrustDlpDataTagsArgs;
    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 exampleZeroTrustDlpDataTags = CloudflareFunctions.getZeroTrustDlpDataTags(GetZeroTrustDlpDataTagsArgs.builder()
                .accountId("account_id")
                .categoryId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDlpDataTags:
        fn::invoke:
          function: cloudflare:getZeroTrustDlpDataTags
          arguments:
            accountId: account_id
            categoryId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getzerotrustdlpdatatags" "exampleZeroTrustDlpDataTags" {
      account_id  = "account_id"
      category_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
    }
    

    Using getZeroTrustDlpDataTags

    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 getZeroTrustDlpDataTags(args: GetZeroTrustDlpDataTagsArgs, opts?: InvokeOptions): Promise<GetZeroTrustDlpDataTagsResult>
    function getZeroTrustDlpDataTagsOutput(args: GetZeroTrustDlpDataTagsOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDlpDataTagsResult>
    def get_zero_trust_dlp_data_tags(account_id: Optional[str] = None,
                                     category_id: Optional[str] = None,
                                     max_items: Optional[int] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetZeroTrustDlpDataTagsResult
    def get_zero_trust_dlp_data_tags_output(account_id: pulumi.Input[Optional[str]] = None,
                                     category_id: pulumi.Input[Optional[str]] = None,
                                     max_items: pulumi.Input[Optional[int]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDlpDataTagsResult]
    func LookupZeroTrustDlpDataTags(ctx *Context, args *LookupZeroTrustDlpDataTagsArgs, opts ...InvokeOption) (*LookupZeroTrustDlpDataTagsResult, error)
    func LookupZeroTrustDlpDataTagsOutput(ctx *Context, args *LookupZeroTrustDlpDataTagsOutputArgs, opts ...InvokeOption) LookupZeroTrustDlpDataTagsResultOutput

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

    public static class GetZeroTrustDlpDataTags 
    {
        public static Task<GetZeroTrustDlpDataTagsResult> InvokeAsync(GetZeroTrustDlpDataTagsArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDlpDataTagsResult> Invoke(GetZeroTrustDlpDataTagsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDlpDataTagsResult> getZeroTrustDlpDataTags(GetZeroTrustDlpDataTagsArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDlpDataTagsResult> getZeroTrustDlpDataTags(GetZeroTrustDlpDataTagsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDlpDataTags:getZeroTrustDlpDataTags
      arguments:
        # arguments dictionary
    data "cloudflare_get_zero_trust_dlp_data_tags" "name" {
        # arguments
    }

    The following arguments are supported:

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

    getZeroTrustDlpDataTags Result

    The following output properties are available:

    AccountId string
    CategoryId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetZeroTrustDlpDataTagsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    CategoryId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetZeroTrustDlpDataTagsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    category_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
    categoryId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetZeroTrustDlpDataTagsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    categoryId string
    id string
    The provider-assigned unique ID for this managed resource.
    results GetZeroTrustDlpDataTagsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    category_id str
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetZeroTrustDlpDataTagsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    categoryId 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

    GetZeroTrustDlpDataTagsResult

    CreatedAt string
    Description string
    Id string
    Name string
    UpdatedAt string
    CreatedAt string
    Description string
    Id string
    Name string
    UpdatedAt string
    created_at string
    description string
    id string
    name string
    updated_at string
    createdAt String
    description String
    id String
    name String
    updatedAt String
    createdAt string
    description string
    id string
    name string
    updatedAt string
    createdAt String
    description String
    id String
    name String
    updatedAt 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