Zscaler Internet Access v0.0.6 published on Wednesday, Apr 10, 2024 by Zscaler
zia.getURLCategories
Explore with Pulumi AI
Use the zia_url_categories data source to get information about all or custom URL categories. By default, the response includes keywords.
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@pulumi/zia";
const example = zia.getURLCategories({
id: "CUSTOM_08",
});
import pulumi
import pulumi_zia as zia
example = zia.get_url_categories(id="CUSTOM_08")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zia/sdk/go/zia"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zia.LookupURLCategories(ctx, &zia.LookupURLCategoriesArgs{
Id: pulumi.StringRef("CUSTOM_08"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zia = Pulumi.Zia;
return await Deployment.RunAsync(() =>
{
var example = Zia.GetURLCategories.Invoke(new()
{
Id = "CUSTOM_08",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.ZiaFunctions;
import com.pulumi.zia.inputs.GetURLCategoriesArgs;
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 = ZiaFunctions.getURLCategories(GetURLCategoriesArgs.builder()
.id("CUSTOM_08")
.build());
}
}
variables:
example:
fn::invoke:
Function: zia:getURLCategories
Arguments:
id: CUSTOM_08
Using getURLCategories
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 getURLCategories(args: GetURLCategoriesArgs, opts?: InvokeOptions): Promise<GetURLCategoriesResult>
function getURLCategoriesOutput(args: GetURLCategoriesOutputArgs, opts?: InvokeOptions): Output<GetURLCategoriesResult>
def get_url_categories(configured_name: Optional[str] = None,
custom_category: Optional[bool] = None,
custom_ip_ranges_count: Optional[int] = None,
id: Optional[str] = None,
super_category: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetURLCategoriesResult
def get_url_categories_output(configured_name: Optional[pulumi.Input[str]] = None,
custom_category: Optional[pulumi.Input[bool]] = None,
custom_ip_ranges_count: Optional[pulumi.Input[int]] = None,
id: Optional[pulumi.Input[str]] = None,
super_category: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetURLCategoriesResult]
func LookupURLCategories(ctx *Context, args *LookupURLCategoriesArgs, opts ...InvokeOption) (*LookupURLCategoriesResult, error)
func LookupURLCategoriesOutput(ctx *Context, args *LookupURLCategoriesOutputArgs, opts ...InvokeOption) LookupURLCategoriesResultOutput
> Note: This function is named LookupURLCategories
in the Go SDK.
public static class GetURLCategories
{
public static Task<GetURLCategoriesResult> InvokeAsync(GetURLCategoriesArgs args, InvokeOptions? opts = null)
public static Output<GetURLCategoriesResult> Invoke(GetURLCategoriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetURLCategoriesResult> getURLCategories(GetURLCategoriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zia:index/getURLCategories:getURLCategories
arguments:
# arguments dictionary
The following arguments are supported:
- Configured
Name string - (String) Name of the URL category. This is only required for custom URL categories.
- Custom
Category bool - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- Custom
Ip intRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- Id string
- URL category
- Super
Category string - (String)
- Configured
Name string - (String) Name of the URL category. This is only required for custom URL categories.
- Custom
Category bool - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- Custom
Ip intRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- Id string
- URL category
- Super
Category string - (String)
- configured
Name String - (String) Name of the URL category. This is only required for custom URL categories.
- custom
Category Boolean - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- custom
Ip IntegerRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- id String
- URL category
- super
Category String - (String)
- configured
Name string - (String) Name of the URL category. This is only required for custom URL categories.
- custom
Category boolean - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- custom
Ip numberRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- id string
- URL category
- super
Category string - (String)
- configured_
name str - (String) Name of the URL category. This is only required for custom URL categories.
- custom_
category bool - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- custom_
ip_ intranges_ count - (Number) The number of custom IP address ranges associated to the URL category.
- id str
- URL category
- super_
category str - (String)
- configured
Name String - (String) Name of the URL category. This is only required for custom URL categories.
- custom
Category Boolean - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- custom
Ip NumberRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- id String
- URL category
- super
Category String - (String)
getURLCategories Result
The following output properties are available:
- Configured
Name string - (String) Name of the URL category. This is only required for custom URL categories.
- Custom
Category bool - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- Custom
Urls intCount - (Number) The number of custom URLs associated to the URL category.
- Db
Categorized List<string>Urls - (List of String) URLs added to a custom URL category are also retained under the original parent URL category (i.e., the predefined category the URL previously belonged to).
- Description string
- (String) Description of the category.
- Editable bool
- (Boolean) Value is set to false for custom URL category when due to scope user does not have edit permission
- Id string
- (String) Identifier that uniquely identifies an entity
- Ip
Ranges List<string> - Ip
Ranges List<string>Retaining Parent Categories - Ip
Ranges intRetaining Parent Category Count - (Number) The number of custom IP address ranges associated to the URL category, that also need to be retained under the original parent category.
- Keywords List<string>
- (List of String) Custom keywords associated to a URL category. Up to 2048 custom keywords can be added per organization across all categories (including bandwidth classes).
- Keywords
Retaining List<string>Parent Categories - Scopes
List<zscaler.
Pulumi Package. Zia. Outputs. Get URLCategories Scope> - (List of Object) Scope of the custom categories.
- Type string
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- Url
Keyword List<zscaler.Counts Pulumi Package. Zia. Outputs. Get URLCategories Url Keyword Count> - (List of Object) URL and keyword counts for the category.
- Urls List<string>
- (List of String) Custom URLs to add to a URL category. Up to 25,000 custom URLs can be added per organization across all categories (including bandwidth classes).
- Urls
Retaining intParent Category Count - (Number) The number of custom URLs associated to the URL category, that also need to be retained under the original parent category.
- Val int
- (Number)
- Custom
Ip intRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- Super
Category string - (String)
- Configured
Name string - (String) Name of the URL category. This is only required for custom URL categories.
- Custom
Category bool - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- Custom
Urls intCount - (Number) The number of custom URLs associated to the URL category.
- Db
Categorized []stringUrls - (List of String) URLs added to a custom URL category are also retained under the original parent URL category (i.e., the predefined category the URL previously belonged to).
- Description string
- (String) Description of the category.
- Editable bool
- (Boolean) Value is set to false for custom URL category when due to scope user does not have edit permission
- Id string
- (String) Identifier that uniquely identifies an entity
- Ip
Ranges []string - Ip
Ranges []stringRetaining Parent Categories - Ip
Ranges intRetaining Parent Category Count - (Number) The number of custom IP address ranges associated to the URL category, that also need to be retained under the original parent category.
- Keywords []string
- (List of String) Custom keywords associated to a URL category. Up to 2048 custom keywords can be added per organization across all categories (including bandwidth classes).
- Keywords
Retaining []stringParent Categories - Scopes
[]Get
URLCategories Scope - (List of Object) Scope of the custom categories.
- Type string
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- Url
Keyword []GetCounts URLCategories Url Keyword Count - (List of Object) URL and keyword counts for the category.
- Urls []string
- (List of String) Custom URLs to add to a URL category. Up to 25,000 custom URLs can be added per organization across all categories (including bandwidth classes).
- Urls
Retaining intParent Category Count - (Number) The number of custom URLs associated to the URL category, that also need to be retained under the original parent category.
- Val int
- (Number)
- Custom
Ip intRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- Super
Category string - (String)
- configured
Name String - (String) Name of the URL category. This is only required for custom URL categories.
- custom
Category Boolean - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- custom
Urls IntegerCount - (Number) The number of custom URLs associated to the URL category.
- db
Categorized List<String>Urls - (List of String) URLs added to a custom URL category are also retained under the original parent URL category (i.e., the predefined category the URL previously belonged to).
- description String
- (String) Description of the category.
- editable Boolean
- (Boolean) Value is set to false for custom URL category when due to scope user does not have edit permission
- id String
- (String) Identifier that uniquely identifies an entity
- ip
Ranges List<String> - ip
Ranges List<String>Retaining Parent Categories - ip
Ranges IntegerRetaining Parent Category Count - (Number) The number of custom IP address ranges associated to the URL category, that also need to be retained under the original parent category.
- keywords List<String>
- (List of String) Custom keywords associated to a URL category. Up to 2048 custom keywords can be added per organization across all categories (including bandwidth classes).
- keywords
Retaining List<String>Parent Categories - scopes
List<Get
URLCategories Scope> - (List of Object) Scope of the custom categories.
- type String
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- url
Keyword List<GetCounts URLCategories Url Keyword Count> - (List of Object) URL and keyword counts for the category.
- urls List<String>
- (List of String) Custom URLs to add to a URL category. Up to 25,000 custom URLs can be added per organization across all categories (including bandwidth classes).
- urls
Retaining IntegerParent Category Count - (Number) The number of custom URLs associated to the URL category, that also need to be retained under the original parent category.
- val Integer
- (Number)
- custom
Ip IntegerRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- super
Category String - (String)
- configured
Name string - (String) Name of the URL category. This is only required for custom URL categories.
- custom
Category boolean - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- custom
Urls numberCount - (Number) The number of custom URLs associated to the URL category.
- db
Categorized string[]Urls - (List of String) URLs added to a custom URL category are also retained under the original parent URL category (i.e., the predefined category the URL previously belonged to).
- description string
- (String) Description of the category.
- editable boolean
- (Boolean) Value is set to false for custom URL category when due to scope user does not have edit permission
- id string
- (String) Identifier that uniquely identifies an entity
- ip
Ranges string[] - ip
Ranges string[]Retaining Parent Categories - ip
Ranges numberRetaining Parent Category Count - (Number) The number of custom IP address ranges associated to the URL category, that also need to be retained under the original parent category.
- keywords string[]
- (List of String) Custom keywords associated to a URL category. Up to 2048 custom keywords can be added per organization across all categories (including bandwidth classes).
- keywords
Retaining string[]Parent Categories - scopes
Get
URLCategories Scope[] - (List of Object) Scope of the custom categories.
- type string
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- url
Keyword GetCounts URLCategories Url Keyword Count[] - (List of Object) URL and keyword counts for the category.
- urls string[]
- (List of String) Custom URLs to add to a URL category. Up to 25,000 custom URLs can be added per organization across all categories (including bandwidth classes).
- urls
Retaining numberParent Category Count - (Number) The number of custom URLs associated to the URL category, that also need to be retained under the original parent category.
- val number
- (Number)
- custom
Ip numberRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- super
Category string - (String)
- configured_
name str - (String) Name of the URL category. This is only required for custom URL categories.
- custom_
category bool - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- custom_
urls_ intcount - (Number) The number of custom URLs associated to the URL category.
- db_
categorized_ Sequence[str]urls - (List of String) URLs added to a custom URL category are also retained under the original parent URL category (i.e., the predefined category the URL previously belonged to).
- description str
- (String) Description of the category.
- editable bool
- (Boolean) Value is set to false for custom URL category when due to scope user does not have edit permission
- id str
- (String) Identifier that uniquely identifies an entity
- ip_
ranges Sequence[str] - ip_
ranges_ Sequence[str]retaining_ parent_ categories - ip_
ranges_ intretaining_ parent_ category_ count - (Number) The number of custom IP address ranges associated to the URL category, that also need to be retained under the original parent category.
- keywords Sequence[str]
- (List of String) Custom keywords associated to a URL category. Up to 2048 custom keywords can be added per organization across all categories (including bandwidth classes).
- keywords_
retaining_ Sequence[str]parent_ categories - scopes
Sequence[Get
URLCategories Scope] - (List of Object) Scope of the custom categories.
- type str
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- url_
keyword_ Sequence[Getcounts URLCategories Url Keyword Count] - (List of Object) URL and keyword counts for the category.
- urls Sequence[str]
- (List of String) Custom URLs to add to a URL category. Up to 25,000 custom URLs can be added per organization across all categories (including bandwidth classes).
- urls_
retaining_ intparent_ category_ count - (Number) The number of custom URLs associated to the URL category, that also need to be retained under the original parent category.
- val int
- (Number)
- custom_
ip_ intranges_ count - (Number) The number of custom IP address ranges associated to the URL category.
- super_
category str - (String)
- configured
Name String - (String) Name of the URL category. This is only required for custom URL categories.
- custom
Category Boolean - (Boolean) Set to true for custom URL category. Up to 48 custom URL categories can be added per organization.
- custom
Urls NumberCount - (Number) The number of custom URLs associated to the URL category.
- db
Categorized List<String>Urls - (List of String) URLs added to a custom URL category are also retained under the original parent URL category (i.e., the predefined category the URL previously belonged to).
- description String
- (String) Description of the category.
- editable Boolean
- (Boolean) Value is set to false for custom URL category when due to scope user does not have edit permission
- id String
- (String) Identifier that uniquely identifies an entity
- ip
Ranges List<String> - ip
Ranges List<String>Retaining Parent Categories - ip
Ranges NumberRetaining Parent Category Count - (Number) The number of custom IP address ranges associated to the URL category, that also need to be retained under the original parent category.
- keywords List<String>
- (List of String) Custom keywords associated to a URL category. Up to 2048 custom keywords can be added per organization across all categories (including bandwidth classes).
- keywords
Retaining List<String>Parent Categories - scopes List<Property Map>
- (List of Object) Scope of the custom categories.
- type String
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- url
Keyword List<Property Map>Counts - (List of Object) URL and keyword counts for the category.
- urls List<String>
- (List of String) Custom URLs to add to a URL category. Up to 25,000 custom URLs can be added per organization across all categories (including bandwidth classes).
- urls
Retaining NumberParent Category Count - (Number) The number of custom URLs associated to the URL category, that also need to be retained under the original parent category.
- val Number
- (Number)
- custom
Ip NumberRanges Count - (Number) The number of custom IP address ranges associated to the URL category.
- super
Category String - (String)
Supporting Types
GetURLCategoriesScope
- Scope
Entities List<zscaler.Pulumi Package. Zia. Inputs. Get URLCategories Scope Scope Entity> - (List of Object)
- Scope
Group List<zscaler.Member Entities Pulumi Package. Zia. Inputs. Get URLCategories Scope Scope Group Member Entity> - (List of Object) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group. The attribute name is subject to change.
- Type string
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- Scope
Entities []GetURLCategories Scope Scope Entity - (List of Object)
- Scope
Group []GetMember Entities URLCategories Scope Scope Group Member Entity - (List of Object) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group. The attribute name is subject to change.
- Type string
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- scope
Entities List<GetURLCategories Scope Scope Entity> - (List of Object)
- scope
Group List<GetMember Entities URLCategories Scope Scope Group Member Entity> - (List of Object) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group. The attribute name is subject to change.
- type String
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- scope
Entities GetURLCategories Scope Scope Entity[] - (List of Object)
- scope
Group GetMember Entities URLCategories Scope Scope Group Member Entity[] - (List of Object) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group. The attribute name is subject to change.
- type string
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- scope_
entities Sequence[GetURLCategories Scope Scope Entity] - (List of Object)
- scope_
group_ Sequence[Getmember_ entities URLCategories Scope Scope Group Member Entity] - (List of Object) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group. The attribute name is subject to change.
- type str
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
- scope
Entities List<Property Map> - (List of Object)
- scope
Group List<Property Map>Member Entities - (List of Object) Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group. The attribute name is subject to change.
- type String
- (String) The admin scope type. The attribute name is subject to change.
ORGANIZATION
,DEPARTMENT
,LOCATION
,LOCATION_GROUP
GetURLCategoriesScopeScopeEntity
- Extensions Dictionary<string, string>
- (Map of String)
- Id int
- URL category
- Name string
- (String) The configured name of the entity
- Extensions map[string]string
- (Map of String)
- Id int
- URL category
- Name string
- (String) The configured name of the entity
- extensions Map<String,String>
- (Map of String)
- id Integer
- URL category
- name String
- (String) The configured name of the entity
- extensions {[key: string]: string}
- (Map of String)
- id number
- URL category
- name string
- (String) The configured name of the entity
- extensions Mapping[str, str]
- (Map of String)
- id int
- URL category
- name str
- (String) The configured name of the entity
- extensions Map<String>
- (Map of String)
- id Number
- URL category
- name String
- (String) The configured name of the entity
GetURLCategoriesScopeScopeGroupMemberEntity
- Extensions Dictionary<string, string>
- (Map of String)
- Id int
- URL category
- Name string
- (String) The configured name of the entity
- Extensions map[string]string
- (Map of String)
- Id int
- URL category
- Name string
- (String) The configured name of the entity
- extensions Map<String,String>
- (Map of String)
- id Integer
- URL category
- name String
- (String) The configured name of the entity
- extensions {[key: string]: string}
- (Map of String)
- id number
- URL category
- name string
- (String) The configured name of the entity
- extensions Mapping[str, str]
- (Map of String)
- id int
- URL category
- name str
- (String) The configured name of the entity
- extensions Map<String>
- (Map of String)
- id Number
- URL category
- name String
- (String) The configured name of the entity
GetURLCategoriesUrlKeywordCount
- Retain
Parent intKeyword Count - (Number) Count of total keywords with retain parent category.
- Retain
Parent intUrl Count - (Number) Count of URLs with retain parent category.
- Total
Keyword intCount - (Number) Total keyword count for the category.
- Total
Url intCount - (Number) Custom URL count for the category.
- Retain
Parent intKeyword Count - (Number) Count of total keywords with retain parent category.
- Retain
Parent intUrl Count - (Number) Count of URLs with retain parent category.
- Total
Keyword intCount - (Number) Total keyword count for the category.
- Total
Url intCount - (Number) Custom URL count for the category.
- retain
Parent IntegerKeyword Count - (Number) Count of total keywords with retain parent category.
- retain
Parent IntegerUrl Count - (Number) Count of URLs with retain parent category.
- total
Keyword IntegerCount - (Number) Total keyword count for the category.
- total
Url IntegerCount - (Number) Custom URL count for the category.
- retain
Parent numberKeyword Count - (Number) Count of total keywords with retain parent category.
- retain
Parent numberUrl Count - (Number) Count of URLs with retain parent category.
- total
Keyword numberCount - (Number) Total keyword count for the category.
- total
Url numberCount - (Number) Custom URL count for the category.
- retain_
parent_ intkeyword_ count - (Number) Count of total keywords with retain parent category.
- retain_
parent_ inturl_ count - (Number) Count of URLs with retain parent category.
- total_
keyword_ intcount - (Number) Total keyword count for the category.
- total_
url_ intcount - (Number) Custom URL count for the category.
- retain
Parent NumberKeyword Count - (Number) Count of total keywords with retain parent category.
- retain
Parent NumberUrl Count - (Number) Count of URLs with retain parent category.
- total
Keyword NumberCount - (Number) Total keyword count for the category.
- total
Url NumberCount - (Number) Custom URL count for the category.
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the
zia
Terraform Provider.