1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustGatewayCategoriesList
Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi

cloudflare.getZeroTrustGatewayCategoriesList

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustGatewayCategoriesList = cloudflare.getZeroTrustGatewayCategoriesList({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_gateway_categories_list = cloudflare.get_zero_trust_gateway_categories_list(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.LookupZeroTrustGatewayCategoriesList(ctx, &cloudflare.LookupZeroTrustGatewayCategoriesListArgs{
    			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 exampleZeroTrustGatewayCategoriesList = Cloudflare.GetZeroTrustGatewayCategoriesList.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.GetZeroTrustGatewayCategoriesListArgs;
    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 exampleZeroTrustGatewayCategoriesList = CloudflareFunctions.getZeroTrustGatewayCategoriesList(GetZeroTrustGatewayCategoriesListArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustGatewayCategoriesList:
        fn::invoke:
          function: cloudflare:getZeroTrustGatewayCategoriesList
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getZeroTrustGatewayCategoriesList

    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 getZeroTrustGatewayCategoriesList(args: GetZeroTrustGatewayCategoriesListArgs, opts?: InvokeOptions): Promise<GetZeroTrustGatewayCategoriesListResult>
    function getZeroTrustGatewayCategoriesListOutput(args: GetZeroTrustGatewayCategoriesListOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustGatewayCategoriesListResult>
    def get_zero_trust_gateway_categories_list(account_id: Optional[str] = None,
                                               max_items: Optional[int] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetZeroTrustGatewayCategoriesListResult
    def get_zero_trust_gateway_categories_list_output(account_id: Optional[pulumi.Input[str]] = None,
                                               max_items: Optional[pulumi.Input[int]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustGatewayCategoriesListResult]
    func LookupZeroTrustGatewayCategoriesList(ctx *Context, args *LookupZeroTrustGatewayCategoriesListArgs, opts ...InvokeOption) (*LookupZeroTrustGatewayCategoriesListResult, error)
    func LookupZeroTrustGatewayCategoriesListOutput(ctx *Context, args *LookupZeroTrustGatewayCategoriesListOutputArgs, opts ...InvokeOption) LookupZeroTrustGatewayCategoriesListResultOutput

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

    public static class GetZeroTrustGatewayCategoriesList 
    {
        public static Task<GetZeroTrustGatewayCategoriesListResult> InvokeAsync(GetZeroTrustGatewayCategoriesListArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustGatewayCategoriesListResult> Invoke(GetZeroTrustGatewayCategoriesListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustGatewayCategoriesListResult> getZeroTrustGatewayCategoriesList(GetZeroTrustGatewayCategoriesListArgs args, InvokeOptions options)
    public static Output<GetZeroTrustGatewayCategoriesListResult> getZeroTrustGatewayCategoriesList(GetZeroTrustGatewayCategoriesListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustGatewayCategoriesList:getZeroTrustGatewayCategoriesList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Provide the identifier string.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Provide the identifier string.
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Provide the identifier string.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Provide the identifier string.
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Provide the identifier string.
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Provide the identifier string.
    maxItems Number
    Max items to fetch, default: 1000

    getZeroTrustGatewayCategoriesList Result

    The following output properties are available:

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

    GetZeroTrustGatewayCategoriesListResult

    Beta bool
    Indicate whether the category is in beta and subject to change.
    Class string
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    Description string
    Provide a short summary of domains in the category.
    Id int
    Identify this category. Only one category per ID.
    Name string
    Specify the category name.
    Subcategories List<GetZeroTrustGatewayCategoriesListResultSubcategory>
    Provide all subcategories for this category.
    Beta bool
    Indicate whether the category is in beta and subject to change.
    Class string
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    Description string
    Provide a short summary of domains in the category.
    Id int
    Identify this category. Only one category per ID.
    Name string
    Specify the category name.
    Subcategories []GetZeroTrustGatewayCategoriesListResultSubcategory
    Provide all subcategories for this category.
    beta Boolean
    Indicate whether the category is in beta and subject to change.
    class_ String
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    description String
    Provide a short summary of domains in the category.
    id Integer
    Identify this category. Only one category per ID.
    name String
    Specify the category name.
    subcategories List<GetZeroTrustGatewayCategoriesListResultSubcategory>
    Provide all subcategories for this category.
    beta boolean
    Indicate whether the category is in beta and subject to change.
    class string
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    description string
    Provide a short summary of domains in the category.
    id number
    Identify this category. Only one category per ID.
    name string
    Specify the category name.
    subcategories GetZeroTrustGatewayCategoriesListResultSubcategory[]
    Provide all subcategories for this category.
    beta bool
    Indicate whether the category is in beta and subject to change.
    class_ str
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    description str
    Provide a short summary of domains in the category.
    id int
    Identify this category. Only one category per ID.
    name str
    Specify the category name.
    subcategories Sequence[GetZeroTrustGatewayCategoriesListResultSubcategory]
    Provide all subcategories for this category.
    beta Boolean
    Indicate whether the category is in beta and subject to change.
    class String
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    description String
    Provide a short summary of domains in the category.
    id Number
    Identify this category. Only one category per ID.
    name String
    Specify the category name.
    subcategories List<Property Map>
    Provide all subcategories for this category.

    GetZeroTrustGatewayCategoriesListResultSubcategory

    Beta bool
    Indicate whether the category is in beta and subject to change.
    Class string
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    Description string
    Provide a short summary of domains in the category.
    Id int
    Identify this category. Only one category per ID.
    Name string
    Specify the category name.
    Beta bool
    Indicate whether the category is in beta and subject to change.
    Class string
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    Description string
    Provide a short summary of domains in the category.
    Id int
    Identify this category. Only one category per ID.
    Name string
    Specify the category name.
    beta Boolean
    Indicate whether the category is in beta and subject to change.
    class_ String
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    description String
    Provide a short summary of domains in the category.
    id Integer
    Identify this category. Only one category per ID.
    name String
    Specify the category name.
    beta boolean
    Indicate whether the category is in beta and subject to change.
    class string
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    description string
    Provide a short summary of domains in the category.
    id number
    Identify this category. Only one category per ID.
    name string
    Specify the category name.
    beta bool
    Indicate whether the category is in beta and subject to change.
    class_ str
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    description str
    Provide a short summary of domains in the category.
    id int
    Identify this category. Only one category per ID.
    name str
    Specify the category name.
    beta Boolean
    Indicate whether the category is in beta and subject to change.
    class String
    Specify which account types can create policies for this category. blocked Blocks unconditionally for all accounts. removalPending Allows removal from policies but disables addition. noBlock Prevents blocking. Available values: "free", "premium", "blocked", "removalPending", "noBlock".
    description String
    Provide a short summary of domains in the category.
    id Number
    Identify this category. Only one category per ID.
    name String
    Specify 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 v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi
      AI Agentic Workflows: Register now