1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustDlpDataTag
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 exampleZeroTrustDlpDataTag = cloudflare.getZeroTrustDlpDataTag({
        accountId: "account_id",
        categoryId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        tagId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dlp_data_tag = cloudflare.get_zero_trust_dlp_data_tag(account_id="account_id",
        category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        tag_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.GetZeroTrustDlpDataTag(ctx, &cloudflare.LookupZeroTrustDlpDataTagArgs{
    			AccountId:  "account_id",
    			CategoryId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    			TagId:      "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 exampleZeroTrustDlpDataTag = Cloudflare.GetZeroTrustDlpDataTag.Invoke(new()
        {
            AccountId = "account_id",
            CategoryId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            TagId = "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.GetZeroTrustDlpDataTagArgs;
    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 exampleZeroTrustDlpDataTag = CloudflareFunctions.getZeroTrustDlpDataTag(GetZeroTrustDlpDataTagArgs.builder()
                .accountId("account_id")
                .categoryId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .tagId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDlpDataTag:
        fn::invoke:
          function: cloudflare:getZeroTrustDlpDataTag
          arguments:
            accountId: account_id
            categoryId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
            tagId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getzerotrustdlpdatatag" "exampleZeroTrustDlpDataTag" {
      account_id  = "account_id"
      category_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
      tag_id      = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
    }
    

    Using getZeroTrustDlpDataTag

    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 getZeroTrustDlpDataTag(args: GetZeroTrustDlpDataTagArgs, opts?: InvokeOptions): Promise<GetZeroTrustDlpDataTagResult>
    function getZeroTrustDlpDataTagOutput(args: GetZeroTrustDlpDataTagOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDlpDataTagResult>
    def get_zero_trust_dlp_data_tag(account_id: Optional[str] = None,
                                    category_id: Optional[str] = None,
                                    tag_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetZeroTrustDlpDataTagResult
    def get_zero_trust_dlp_data_tag_output(account_id: pulumi.Input[Optional[str]] = None,
                                    category_id: pulumi.Input[Optional[str]] = None,
                                    tag_id: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDlpDataTagResult]
    func LookupZeroTrustDlpDataTag(ctx *Context, args *LookupZeroTrustDlpDataTagArgs, opts ...InvokeOption) (*LookupZeroTrustDlpDataTagResult, error)
    func LookupZeroTrustDlpDataTagOutput(ctx *Context, args *LookupZeroTrustDlpDataTagOutputArgs, opts ...InvokeOption) LookupZeroTrustDlpDataTagResultOutput

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

    public static class GetZeroTrustDlpDataTag 
    {
        public static Task<GetZeroTrustDlpDataTagResult> InvokeAsync(GetZeroTrustDlpDataTagArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDlpDataTagResult> Invoke(GetZeroTrustDlpDataTagInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDlpDataTagResult> getZeroTrustDlpDataTag(GetZeroTrustDlpDataTagArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDlpDataTagResult> getZeroTrustDlpDataTag(GetZeroTrustDlpDataTagArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDlpDataTag:getZeroTrustDlpDataTag
      arguments:
        # arguments dictionary
    data "cloudflare_get_zero_trust_dlp_data_tag" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    CategoryId string
    TagId string
    AccountId string
    CategoryId string
    TagId string
    account_id string
    category_id string
    tag_id string
    accountId String
    categoryId String
    tagId String
    accountId string
    categoryId string
    tagId string
    accountId String
    categoryId String
    tagId String

    getZeroTrustDlpDataTag Result

    The following output properties are available:

    AccountId string
    CategoryId string
    CreatedAt string
    Description string
    Id string
    The ID of this resource.
    Name string
    TagId string
    UpdatedAt string
    AccountId string
    CategoryId string
    CreatedAt string
    Description string
    Id string
    The ID of this resource.
    Name string
    TagId string
    UpdatedAt string
    account_id string
    category_id string
    created_at string
    description string
    id string
    The ID of this resource.
    name string
    tag_id string
    updated_at string
    accountId String
    categoryId String
    createdAt String
    description String
    id String
    The ID of this resource.
    name String
    tagId String
    updatedAt String
    accountId string
    categoryId string
    createdAt string
    description string
    id string
    The ID of this resource.
    name string
    tagId string
    updatedAt string
    account_id str
    category_id str
    created_at str
    description str
    id str
    The ID of this resource.
    name str
    tag_id str
    updated_at str
    accountId String
    categoryId String
    createdAt String
    description String
    id String
    The ID of this resource.
    name String
    tagId 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