1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getDlpDatasets
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

cloudflare.getDlpDatasets

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

    Use this data source to retrieve all DLP datasets for an account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = cloudflare.getDlpDatasets({
        accountId: "f037e56e89293a057740de681ac9abbe",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.get_dlp_datasets(account_id="f037e56e89293a057740de681ac9abbe")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetDlpDatasets(ctx, &cloudflare.GetDlpDatasetsArgs{
    			AccountId: "f037e56e89293a057740de681ac9abbe",
    		}, 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 example = Cloudflare.GetDlpDatasets.Invoke(new()
        {
            AccountId = "f037e56e89293a057740de681ac9abbe",
        });
    
    });
    
    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.GetDlpDatasetsArgs;
    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 example = CloudflareFunctions.getDlpDatasets(GetDlpDatasetsArgs.builder()
                .accountId("f037e56e89293a057740de681ac9abbe")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: cloudflare:getDlpDatasets
          Arguments:
            accountId: f037e56e89293a057740de681ac9abbe
    

    Using getDlpDatasets

    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 getDlpDatasets(args: GetDlpDatasetsArgs, opts?: InvokeOptions): Promise<GetDlpDatasetsResult>
    function getDlpDatasetsOutput(args: GetDlpDatasetsOutputArgs, opts?: InvokeOptions): Output<GetDlpDatasetsResult>
    def get_dlp_datasets(account_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDlpDatasetsResult
    def get_dlp_datasets_output(account_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDlpDatasetsResult]
    func GetDlpDatasets(ctx *Context, args *GetDlpDatasetsArgs, opts ...InvokeOption) (*GetDlpDatasetsResult, error)
    func GetDlpDatasetsOutput(ctx *Context, args *GetDlpDatasetsOutputArgs, opts ...InvokeOption) GetDlpDatasetsResultOutput

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

    public static class GetDlpDatasets 
    {
        public static Task<GetDlpDatasetsResult> InvokeAsync(GetDlpDatasetsArgs args, InvokeOptions? opts = null)
        public static Output<GetDlpDatasetsResult> Invoke(GetDlpDatasetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDlpDatasetsResult> getDlpDatasets(GetDlpDatasetsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: cloudflare:index/getDlpDatasets:getDlpDatasets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    The account ID to fetch DLP Datasets from.
    AccountId string
    The account ID to fetch DLP Datasets from.
    accountId String
    The account ID to fetch DLP Datasets from.
    accountId string
    The account ID to fetch DLP Datasets from.
    account_id str
    The account ID to fetch DLP Datasets from.
    accountId String
    The account ID to fetch DLP Datasets from.

    getDlpDatasets Result

    The following output properties are available:

    AccountId string
    The account ID to fetch DLP Datasets from.
    Datasets List<GetDlpDatasetsDataset>
    A list of DLP Datasets.
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountId string
    The account ID to fetch DLP Datasets from.
    Datasets []GetDlpDatasetsDataset
    A list of DLP Datasets.
    Id string
    The provider-assigned unique ID for this managed resource.
    accountId String
    The account ID to fetch DLP Datasets from.
    datasets List<GetDlpDatasetsDataset>
    A list of DLP Datasets.
    id String
    The provider-assigned unique ID for this managed resource.
    accountId string
    The account ID to fetch DLP Datasets from.
    datasets GetDlpDatasetsDataset[]
    A list of DLP Datasets.
    id string
    The provider-assigned unique ID for this managed resource.
    account_id str
    The account ID to fetch DLP Datasets from.
    datasets Sequence[GetDlpDatasetsDataset]
    A list of DLP Datasets.
    id str
    The provider-assigned unique ID for this managed resource.
    accountId String
    The account ID to fetch DLP Datasets from.
    datasets List<Property Map>
    A list of DLP Datasets.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetDlpDatasetsDataset

    Description string
    Id string
    Name string
    Secret bool
    Status string
    Description string
    Id string
    Name string
    Secret bool
    Status string
    description String
    id String
    name String
    secret Boolean
    status String
    description string
    id string
    name string
    secret boolean
    status string
    description str
    id str
    name str
    secret bool
    status str
    description String
    id String
    name String
    secret Boolean
    status 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
    Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi