1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustResourceLibraryCategory
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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustResourceLibraryCategory = cloudflare.getZeroTrustResourceLibraryCategory({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        id: "0b63249c-95bf-4cc0-a7cc-d7faaaf1dac0",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_resource_library_category = cloudflare.get_zero_trust_resource_library_category(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        id="0b63249c-95bf-4cc0-a7cc-d7faaaf1dac0")
    
    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.GetZeroTrustResourceLibraryCategory(ctx, &cloudflare.GetZeroTrustResourceLibraryCategoryArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    			Id:        "0b63249c-95bf-4cc0-a7cc-d7faaaf1dac0",
    		}, 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 exampleZeroTrustResourceLibraryCategory = Cloudflare.GetZeroTrustResourceLibraryCategory.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Id = "0b63249c-95bf-4cc0-a7cc-d7faaaf1dac0",
        });
    
    });
    
    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.GetZeroTrustResourceLibraryCategoryArgs;
    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 exampleZeroTrustResourceLibraryCategory = CloudflareFunctions.getZeroTrustResourceLibraryCategory(GetZeroTrustResourceLibraryCategoryArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .id("0b63249c-95bf-4cc0-a7cc-d7faaaf1dac0")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustResourceLibraryCategory:
        fn::invoke:
          function: cloudflare:getZeroTrustResourceLibraryCategory
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            id: 0b63249c-95bf-4cc0-a7cc-d7faaaf1dac0
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getzerotrustresourcelibrarycategory" "exampleZeroTrustResourceLibraryCategory" {
      account_id = "023e105f4ecef8ad9ca31a8372d0c353"
      id         = "0b63249c-95bf-4cc0-a7cc-d7faaaf1dac0"
    }
    

    Using getZeroTrustResourceLibraryCategory

    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 getZeroTrustResourceLibraryCategory(args: GetZeroTrustResourceLibraryCategoryArgs, opts?: InvokeOptions): Promise<GetZeroTrustResourceLibraryCategoryResult>
    function getZeroTrustResourceLibraryCategoryOutput(args: GetZeroTrustResourceLibraryCategoryOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustResourceLibraryCategoryResult>
    def get_zero_trust_resource_library_category(account_id: Optional[str] = None,
                                                 id: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetZeroTrustResourceLibraryCategoryResult
    def get_zero_trust_resource_library_category_output(account_id: pulumi.Input[Optional[str]] = None,
                                                 id: pulumi.Input[Optional[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustResourceLibraryCategoryResult]
    func GetZeroTrustResourceLibraryCategory(ctx *Context, args *GetZeroTrustResourceLibraryCategoryArgs, opts ...InvokeOption) (*GetZeroTrustResourceLibraryCategoryResult, error)
    func GetZeroTrustResourceLibraryCategoryOutput(ctx *Context, args *GetZeroTrustResourceLibraryCategoryOutputArgs, opts ...InvokeOption) GetZeroTrustResourceLibraryCategoryResultOutput

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

    public static class GetZeroTrustResourceLibraryCategory 
    {
        public static Task<GetZeroTrustResourceLibraryCategoryResult> InvokeAsync(GetZeroTrustResourceLibraryCategoryArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustResourceLibraryCategoryResult> Invoke(GetZeroTrustResourceLibraryCategoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustResourceLibraryCategoryResult> getZeroTrustResourceLibraryCategory(GetZeroTrustResourceLibraryCategoryArgs args, InvokeOptions options)
    public static Output<GetZeroTrustResourceLibraryCategoryResult> getZeroTrustResourceLibraryCategory(GetZeroTrustResourceLibraryCategoryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustResourceLibraryCategory:getZeroTrustResourceLibraryCategory
      arguments:
        # arguments dictionary
    data "cloudflare_get_zero_trust_resource_library_category" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Id string
    The ID of this resource.
    AccountId string
    Id string
    The ID of this resource.
    account_id string
    id string
    The ID of this resource.
    accountId String
    id String
    The ID of this resource.
    accountId string
    id string
    The ID of this resource.
    account_id str
    id str
    The ID of this resource.
    accountId String
    id String
    The ID of this resource.

    getZeroTrustResourceLibraryCategory Result

    The following output properties are available:

    AccountId string
    CreatedAt string
    Returns the category creation time.
    Description string
    Returns the category description.
    Id string
    The ID of this resource.
    Name string
    Returns the category name.
    AccountId string
    CreatedAt string
    Returns the category creation time.
    Description string
    Returns the category description.
    Id string
    The ID of this resource.
    Name string
    Returns the category name.
    account_id string
    created_at string
    Returns the category creation time.
    description string
    Returns the category description.
    id string
    The ID of this resource.
    name string
    Returns the category name.
    accountId String
    createdAt String
    Returns the category creation time.
    description String
    Returns the category description.
    id String
    The ID of this resource.
    name String
    Returns the category name.
    accountId string
    createdAt string
    Returns the category creation time.
    description string
    Returns the category description.
    id string
    The ID of this resource.
    name string
    Returns the category name.
    account_id str
    created_at str
    Returns the category creation time.
    description str
    Returns the category description.
    id str
    The ID of this resource.
    name str
    Returns the category name.
    accountId String
    createdAt String
    Returns the category creation time.
    description String
    Returns the category description.
    id String
    The ID of this resource.
    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
    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