1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustResourceLibraryCategories
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustResourceLibraryCategories = cloudflare.getZeroTrustResourceLibraryCategories({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_resource_library_categories = cloudflare.get_zero_trust_resource_library_categories(account_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.GetZeroTrustResourceLibraryCategories(ctx, &cloudflare.LookupZeroTrustResourceLibraryCategoriesArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, 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 exampleZeroTrustResourceLibraryCategories = Cloudflare.GetZeroTrustResourceLibraryCategories.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetZeroTrustResourceLibraryCategoriesArgs;
    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 exampleZeroTrustResourceLibraryCategories = CloudflareFunctions.getZeroTrustResourceLibraryCategories(GetZeroTrustResourceLibraryCategoriesArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustResourceLibraryCategories:
        fn::invoke:
          function: cloudflare:getZeroTrustResourceLibraryCategories
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_zero_trust_resource_library_categories" "exampleZeroTrustResourceLibraryCategories" {
      account_id = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getZeroTrustResourceLibraryCategories

    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 getZeroTrustResourceLibraryCategories(args: GetZeroTrustResourceLibraryCategoriesArgs, opts?: InvokeOptions): Promise<GetZeroTrustResourceLibraryCategoriesResult>
    function getZeroTrustResourceLibraryCategoriesOutput(args: GetZeroTrustResourceLibraryCategoriesOutputArgs, opts?: InvokeOutputOptions): Output<GetZeroTrustResourceLibraryCategoriesResult>
    def get_zero_trust_resource_library_categories(account_id: Optional[str] = None,
                                                   limit: Optional[int] = None,
                                                   max_items: Optional[int] = None,
                                                   offset: Optional[int] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetZeroTrustResourceLibraryCategoriesResult
    def get_zero_trust_resource_library_categories_output(account_id: pulumi.Input[Optional[str]] = None,
                                                   limit: pulumi.Input[Optional[int]] = None,
                                                   max_items: pulumi.Input[Optional[int]] = None,
                                                   offset: pulumi.Input[Optional[int]] = None,
                                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetZeroTrustResourceLibraryCategoriesResult]
    func LookupZeroTrustResourceLibraryCategories(ctx *Context, args *LookupZeroTrustResourceLibraryCategoriesArgs, opts ...InvokeOption) (*LookupZeroTrustResourceLibraryCategoriesResult, error)
    func LookupZeroTrustResourceLibraryCategoriesOutput(ctx *Context, args *LookupZeroTrustResourceLibraryCategoriesOutputArgs, opts ...InvokeOption) LookupZeroTrustResourceLibraryCategoriesResultOutput

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

    public static class GetZeroTrustResourceLibraryCategories 
    {
        public static Task<GetZeroTrustResourceLibraryCategoriesResult> InvokeAsync(GetZeroTrustResourceLibraryCategoriesArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustResourceLibraryCategoriesResult> Invoke(GetZeroTrustResourceLibraryCategoriesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustResourceLibraryCategoriesResult> Invoke(GetZeroTrustResourceLibraryCategoriesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetZeroTrustResourceLibraryCategoriesResult> getZeroTrustResourceLibraryCategories(GetZeroTrustResourceLibraryCategoriesArgs args, InvokeOptions options)
    public static Output<GetZeroTrustResourceLibraryCategoriesResult> getZeroTrustResourceLibraryCategories(GetZeroTrustResourceLibraryCategoriesArgs args, InvokeOptions options)
    public static Output<GetZeroTrustResourceLibraryCategoriesResult> getZeroTrustResourceLibraryCategories(GetZeroTrustResourceLibraryCategoriesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustResourceLibraryCategories:getZeroTrustResourceLibraryCategories
      arguments:
        # arguments dictionary
    data "cloudflare_get_zero_trust_resource_library_categories" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Limit int
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    MaxItems int
    Max items to fetch, default: 1000
    Offset int
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    AccountId string
    Limit int
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    MaxItems int
    Max items to fetch, default: 1000
    Offset int
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    account_id string
    limit number
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    max_items number
    Max items to fetch, default: 1000
    offset number
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    accountId String
    limit Integer
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    maxItems Integer
    Max items to fetch, default: 1000
    offset Integer
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    accountId string
    limit number
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    maxItems number
    Max items to fetch, default: 1000
    offset number
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    account_id str
    limit int
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    max_items int
    Max items to fetch, default: 1000
    offset int
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    accountId String
    limit Number
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    maxItems Number
    Max items to fetch, default: 1000
    offset Number
    Number of results to skip. Defaults to 0; negative values are clamped to 0.

    getZeroTrustResourceLibraryCategories Result

    The following output properties are available:

    AccountId string
    Limit int
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    Offset int
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    Results List<GetZeroTrustResourceLibraryCategoriesResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Limit int
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    Offset int
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    Results []GetZeroTrustResourceLibraryCategoriesResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    limit number
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    offset number
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    results list(object)
    The items returned by the data source
    max_items number
    Max items to fetch, default: 1000
    accountId String
    limit Integer
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    offset Integer
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    results List<GetZeroTrustResourceLibraryCategoriesResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    limit number
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    offset number
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    results GetZeroTrustResourceLibraryCategoriesResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    limit int
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    offset int
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    results Sequence[GetZeroTrustResourceLibraryCategoriesResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    limit Number
    Number of results to return. Defaults to 25; values are clamped to 1–250.
    offset Number
    Number of results to skip. Defaults to 0; negative values are clamped to 0.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetZeroTrustResourceLibraryCategoriesResult

    CreatedAt string
    Returns the category creation time.
    Description string
    Returns the category description.
    Id int
    Numeric identifier for an application category.
    Name string
    Returns the category name.
    CreatedAt string
    Returns the category creation time.
    Description string
    Returns the category description.
    Id int
    Numeric identifier for an application category.
    Name string
    Returns the category name.
    created_at string
    Returns the category creation time.
    description string
    Returns the category description.
    id number
    Numeric identifier for an application category.
    name string
    Returns the category name.
    createdAt String
    Returns the category creation time.
    description String
    Returns the category description.
    id Integer
    Numeric identifier for an application category.
    name String
    Returns the category name.
    createdAt string
    Returns the category creation time.
    description string
    Returns the category description.
    id number
    Numeric identifier for an application category.
    name string
    Returns the category name.
    created_at str
    Returns the category creation time.
    description str
    Returns the category description.
    id int
    Numeric identifier for an application category.
    name str
    Returns the category name.
    createdAt String
    Returns the category creation time.
    description String
    Returns the category description.
    id Number
    Numeric identifier for an application category.
    name String
    Returns the category name.

    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 logo
    Viewing docs for Cloudflare v6.23.1
    published on Wednesday, Oct 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial