1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. URLCategoriesPredefined
Zscaler Internet Access v1.2.0 published on Friday, Feb 20, 2026 by Zscaler
zia logo
Zscaler Internet Access v1.2.0 published on Friday, Feb 20, 2026 by Zscaler

    The zia_url_categories_predefined resource allows you to manage mutable fields of existing predefined URL categories. Predefined URL categories are built-in to the Zscaler platform and cannot be created or deleted — only specific fields can be updated.

    NOTE: This an Early Access feature.

    This resource is designed for use cases where you need to add custom URLs, keywords, or IP ranges to a predefined category such as FINANCE, CORPORATE_MARKETING, etc.

    For managing custom URL categories (full CRUD lifecycle), use the zia.URLCategories resource instead.

    How This Resource Works

    Unlike standard Terraform resources, predefined URL categories have a unique lifecycle:

    • No creation — The predefined category already exists on the Zscaler platform. The Create operation issues a PUT to update the category’s mutable fields.
    • No deletion — Predefined categories cannot be removed. Running terraform destroy simply removes the resource from state without making any API calls.
    • Incremental updates — The provider uses incremental ADD_TO_LIST and REMOVE_FROM_LIST API operations for all list fields (urls, ip_ranges, keywords, keywords_retaining_parent_category, ip_ranges_retaining_parent_category). This means the provider compares the current API state against the desired Terraform configuration and issues targeted add/remove calls rather than a full replacement.

    ⚠️ IMPORTANT: The description attribute is not supported by this resource. Although the API accepts a description in the PUT payload, the value is not returned in the GET response for predefined categories, which would cause persistent state drift. If you need to set a description on a predefined category, use the ZIA Admin Portal directly.

    Example Usage

    Adding Custom URLs

    resource "zia_url_categories_predefined" "education" {
      name = "EDUCATION"
      urls = [
        ".internal-learning.example.com",
        ".corporate-training.example.com",
      ]
    }
    

    Adding Keywords And IP Ranges

    resource "zia_url_categories_predefined" "finance" {
      name = "FINANCE"
      keywords = [
        "internal-trading",
        "corporate-finance",
      ]
      ip_ranges = [
        "10.0.0.0/8",
        "172.16.0.0/12",
      ]
    }
    

    URLs Retaining Parent Category

    resource "zia_url_categories_predefined" "corporate_marketing" {
      name = "CORPORATE_MARKETING"
      urls = [
        ".marketing-internal.example.com",
      ]
      urls_retaining_parent_category = [
        ".brand-portal.example.com",
      ]
      keywords_retaining_parent_category = [
        "brand-assets",
      ]
    }
    

    Destroy Behavior

    ⚠️ This resource does not support deletion. Predefined URL categories are built-in to the Zscaler platform and cannot be removed.

    When you run terraform destroy or remove this resource from your configuration:

    1. The resource is removed from the Terraform state file.
    2. No API call is made — the predefined category remains unchanged on the Zscaler platform.
    3. Any custom URLs, keywords, or IP ranges that were added will persist on the predefined category.

    If you need to remove custom URLs, keywords, or IP ranges from a predefined category, update the resource to set the fields to empty before destroying:

    resource "zia_url_categories_predefined" "education" {
      name      = "EDUCATION"
      urls      = []
      keywords  = []
      ip_ranges = []
    }
    

    Then run pulumi up to clear the items, followed by terraform destroy to remove from state.

    Create URLCategoriesPredefined Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new URLCategoriesPredefined(name: string, args?: URLCategoriesPredefinedArgs, opts?: CustomResourceOptions);
    @overload
    def URLCategoriesPredefined(resource_name: str,
                                args: Optional[URLCategoriesPredefinedArgs] = None,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def URLCategoriesPredefined(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                ip_ranges: Optional[Sequence[str]] = None,
                                ip_ranges_retaining_parent_categories: Optional[Sequence[str]] = None,
                                keywords: Optional[Sequence[str]] = None,
                                keywords_retaining_parent_categories: Optional[Sequence[str]] = None,
                                name: Optional[str] = None,
                                urls: Optional[Sequence[str]] = None,
                                urls_retaining_parent_categories: Optional[Sequence[str]] = None)
    func NewURLCategoriesPredefined(ctx *Context, name string, args *URLCategoriesPredefinedArgs, opts ...ResourceOption) (*URLCategoriesPredefined, error)
    public URLCategoriesPredefined(string name, URLCategoriesPredefinedArgs? args = null, CustomResourceOptions? opts = null)
    public URLCategoriesPredefined(String name, URLCategoriesPredefinedArgs args)
    public URLCategoriesPredefined(String name, URLCategoriesPredefinedArgs args, CustomResourceOptions options)
    
    type: zia:URLCategoriesPredefined
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args URLCategoriesPredefinedArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args URLCategoriesPredefinedArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args URLCategoriesPredefinedArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args URLCategoriesPredefinedArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args URLCategoriesPredefinedArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var urlcategoriesPredefinedResource = new Zia.URLCategoriesPredefined("urlcategoriesPredefinedResource", new()
    {
        IpRanges = new[]
        {
            "string",
        },
        IpRangesRetainingParentCategories = new[]
        {
            "string",
        },
        Keywords = new[]
        {
            "string",
        },
        KeywordsRetainingParentCategories = new[]
        {
            "string",
        },
        Name = "string",
        Urls = new[]
        {
            "string",
        },
        UrlsRetainingParentCategories = new[]
        {
            "string",
        },
    });
    
    example, err := zia.NewURLCategoriesPredefined(ctx, "urlcategoriesPredefinedResource", &zia.URLCategoriesPredefinedArgs{
    	IpRanges: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IpRangesRetainingParentCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Keywords: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	KeywordsRetainingParentCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	Urls: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UrlsRetainingParentCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var urlcategoriesPredefinedResource = new URLCategoriesPredefined("urlcategoriesPredefinedResource", URLCategoriesPredefinedArgs.builder()
        .ipRanges("string")
        .ipRangesRetainingParentCategories("string")
        .keywords("string")
        .keywordsRetainingParentCategories("string")
        .name("string")
        .urls("string")
        .urlsRetainingParentCategories("string")
        .build());
    
    urlcategories_predefined_resource = zia.URLCategoriesPredefined("urlcategoriesPredefinedResource",
        ip_ranges=["string"],
        ip_ranges_retaining_parent_categories=["string"],
        keywords=["string"],
        keywords_retaining_parent_categories=["string"],
        name="string",
        urls=["string"],
        urls_retaining_parent_categories=["string"])
    
    const urlcategoriesPredefinedResource = new zia.URLCategoriesPredefined("urlcategoriesPredefinedResource", {
        ipRanges: ["string"],
        ipRangesRetainingParentCategories: ["string"],
        keywords: ["string"],
        keywordsRetainingParentCategories: ["string"],
        name: "string",
        urls: ["string"],
        urlsRetainingParentCategories: ["string"],
    });
    
    type: zia:URLCategoriesPredefined
    properties:
        ipRanges:
            - string
        ipRangesRetainingParentCategories:
            - string
        keywords:
            - string
        keywordsRetainingParentCategories:
            - string
        name: string
        urls:
            - string
        urlsRetainingParentCategories:
            - string
    

    URLCategoriesPredefined Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The URLCategoriesPredefined resource accepts the following input properties:

    IpRanges List<string>
    Custom IP address ranges associated to the URL category.
    IpRangesRetainingParentCategories List<string>
    Retaining parent custom IP address ranges associated to the URL category.
    Keywords List<string>
    Custom keywords associated to the URL category.
    KeywordsRetainingParentCategories List<string>
    Retained custom keywords from the parent URL category.
    Name string
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    Urls List<string>
    Custom URLs to add to the predefined URL category.
    UrlsRetainingParentCategories List<string>
    URLs that are also retained under the original parent URL category.
    IpRanges []string
    Custom IP address ranges associated to the URL category.
    IpRangesRetainingParentCategories []string
    Retaining parent custom IP address ranges associated to the URL category.
    Keywords []string
    Custom keywords associated to the URL category.
    KeywordsRetainingParentCategories []string
    Retained custom keywords from the parent URL category.
    Name string
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    Urls []string
    Custom URLs to add to the predefined URL category.
    UrlsRetainingParentCategories []string
    URLs that are also retained under the original parent URL category.
    ipRanges List<String>
    Custom IP address ranges associated to the URL category.
    ipRangesRetainingParentCategories List<String>
    Retaining parent custom IP address ranges associated to the URL category.
    keywords List<String>
    Custom keywords associated to the URL category.
    keywordsRetainingParentCategories List<String>
    Retained custom keywords from the parent URL category.
    name String
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    urls List<String>
    Custom URLs to add to the predefined URL category.
    urlsRetainingParentCategories List<String>
    URLs that are also retained under the original parent URL category.
    ipRanges string[]
    Custom IP address ranges associated to the URL category.
    ipRangesRetainingParentCategories string[]
    Retaining parent custom IP address ranges associated to the URL category.
    keywords string[]
    Custom keywords associated to the URL category.
    keywordsRetainingParentCategories string[]
    Retained custom keywords from the parent URL category.
    name string
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    urls string[]
    Custom URLs to add to the predefined URL category.
    urlsRetainingParentCategories string[]
    URLs that are also retained under the original parent URL category.
    ip_ranges Sequence[str]
    Custom IP address ranges associated to the URL category.
    ip_ranges_retaining_parent_categories Sequence[str]
    Retaining parent custom IP address ranges associated to the URL category.
    keywords Sequence[str]
    Custom keywords associated to the URL category.
    keywords_retaining_parent_categories Sequence[str]
    Retained custom keywords from the parent URL category.
    name str
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    urls Sequence[str]
    Custom URLs to add to the predefined URL category.
    urls_retaining_parent_categories Sequence[str]
    URLs that are also retained under the original parent URL category.
    ipRanges List<String>
    Custom IP address ranges associated to the URL category.
    ipRangesRetainingParentCategories List<String>
    Retaining parent custom IP address ranges associated to the URL category.
    keywords List<String>
    Custom keywords associated to the URL category.
    keywordsRetainingParentCategories List<String>
    Retained custom keywords from the parent URL category.
    name String
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    urls List<String>
    Custom URLs to add to the predefined URL category.
    urlsRetainingParentCategories List<String>
    URLs that are also retained under the original parent URL category.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the URLCategoriesPredefined resource produces the following output properties:

    CategoryId string
    The canonical predefined URL category identifier resolved by the provider.
    ConfiguredName string
    The display name of the predefined URL category. Read-only.
    CustomIpRangesCount int
    The number of custom IP address ranges associated to the URL category. Read-only.
    CustomUrlsCount int
    The number of custom URLs associated to the URL category. Read-only.
    DbCategorizedUrls List<string>
    URLs categorized by the Zscaler database. Read-only.
    Editable bool
    (Boolean) Whether the category is editable.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpRangesRetainingParentCategoryCount int
    The number of IP ranges retaining the parent category. Read-only.
    SuperCategory string
    The super category of the predefined URL category. Read-only.
    Type string
    The type of the URL category. Read-only.
    UrlKeywordCounts List<zscaler.PulumiPackage.Zia.Outputs.URLCategoriesPredefinedUrlKeywordCount>
    URL and keyword counts for the URL category. Read-only.
    UrlType string
    The URL type (e.g., EXACT). Read-only.
    UrlsRetainingParentCategoryCount int
    The number of URLs retaining the parent category. Read-only.
    Val int
    (Number) The numeric identifier for the URL category.
    CategoryId string
    The canonical predefined URL category identifier resolved by the provider.
    ConfiguredName string
    The display name of the predefined URL category. Read-only.
    CustomIpRangesCount int
    The number of custom IP address ranges associated to the URL category. Read-only.
    CustomUrlsCount int
    The number of custom URLs associated to the URL category. Read-only.
    DbCategorizedUrls []string
    URLs categorized by the Zscaler database. Read-only.
    Editable bool
    (Boolean) Whether the category is editable.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpRangesRetainingParentCategoryCount int
    The number of IP ranges retaining the parent category. Read-only.
    SuperCategory string
    The super category of the predefined URL category. Read-only.
    Type string
    The type of the URL category. Read-only.
    UrlKeywordCounts []URLCategoriesPredefinedUrlKeywordCount
    URL and keyword counts for the URL category. Read-only.
    UrlType string
    The URL type (e.g., EXACT). Read-only.
    UrlsRetainingParentCategoryCount int
    The number of URLs retaining the parent category. Read-only.
    Val int
    (Number) The numeric identifier for the URL category.
    categoryId String
    The canonical predefined URL category identifier resolved by the provider.
    configuredName String
    The display name of the predefined URL category. Read-only.
    customIpRangesCount Integer
    The number of custom IP address ranges associated to the URL category. Read-only.
    customUrlsCount Integer
    The number of custom URLs associated to the URL category. Read-only.
    dbCategorizedUrls List<String>
    URLs categorized by the Zscaler database. Read-only.
    editable Boolean
    (Boolean) Whether the category is editable.
    id String
    The provider-assigned unique ID for this managed resource.
    ipRangesRetainingParentCategoryCount Integer
    The number of IP ranges retaining the parent category. Read-only.
    superCategory String
    The super category of the predefined URL category. Read-only.
    type String
    The type of the URL category. Read-only.
    urlKeywordCounts List<URLCategoriesPredefinedUrlKeywordCount>
    URL and keyword counts for the URL category. Read-only.
    urlType String
    The URL type (e.g., EXACT). Read-only.
    urlsRetainingParentCategoryCount Integer
    The number of URLs retaining the parent category. Read-only.
    val Integer
    (Number) The numeric identifier for the URL category.
    categoryId string
    The canonical predefined URL category identifier resolved by the provider.
    configuredName string
    The display name of the predefined URL category. Read-only.
    customIpRangesCount number
    The number of custom IP address ranges associated to the URL category. Read-only.
    customUrlsCount number
    The number of custom URLs associated to the URL category. Read-only.
    dbCategorizedUrls string[]
    URLs categorized by the Zscaler database. Read-only.
    editable boolean
    (Boolean) Whether the category is editable.
    id string
    The provider-assigned unique ID for this managed resource.
    ipRangesRetainingParentCategoryCount number
    The number of IP ranges retaining the parent category. Read-only.
    superCategory string
    The super category of the predefined URL category. Read-only.
    type string
    The type of the URL category. Read-only.
    urlKeywordCounts URLCategoriesPredefinedUrlKeywordCount[]
    URL and keyword counts for the URL category. Read-only.
    urlType string
    The URL type (e.g., EXACT). Read-only.
    urlsRetainingParentCategoryCount number
    The number of URLs retaining the parent category. Read-only.
    val number
    (Number) The numeric identifier for the URL category.
    category_id str
    The canonical predefined URL category identifier resolved by the provider.
    configured_name str
    The display name of the predefined URL category. Read-only.
    custom_ip_ranges_count int
    The number of custom IP address ranges associated to the URL category. Read-only.
    custom_urls_count int
    The number of custom URLs associated to the URL category. Read-only.
    db_categorized_urls Sequence[str]
    URLs categorized by the Zscaler database. Read-only.
    editable bool
    (Boolean) Whether the category is editable.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_ranges_retaining_parent_category_count int
    The number of IP ranges retaining the parent category. Read-only.
    super_category str
    The super category of the predefined URL category. Read-only.
    type str
    The type of the URL category. Read-only.
    url_keyword_counts Sequence[URLCategoriesPredefinedUrlKeywordCount]
    URL and keyword counts for the URL category. Read-only.
    url_type str
    The URL type (e.g., EXACT). Read-only.
    urls_retaining_parent_category_count int
    The number of URLs retaining the parent category. Read-only.
    val int
    (Number) The numeric identifier for the URL category.
    categoryId String
    The canonical predefined URL category identifier resolved by the provider.
    configuredName String
    The display name of the predefined URL category. Read-only.
    customIpRangesCount Number
    The number of custom IP address ranges associated to the URL category. Read-only.
    customUrlsCount Number
    The number of custom URLs associated to the URL category. Read-only.
    dbCategorizedUrls List<String>
    URLs categorized by the Zscaler database. Read-only.
    editable Boolean
    (Boolean) Whether the category is editable.
    id String
    The provider-assigned unique ID for this managed resource.
    ipRangesRetainingParentCategoryCount Number
    The number of IP ranges retaining the parent category. Read-only.
    superCategory String
    The super category of the predefined URL category. Read-only.
    type String
    The type of the URL category. Read-only.
    urlKeywordCounts List<Property Map>
    URL and keyword counts for the URL category. Read-only.
    urlType String
    The URL type (e.g., EXACT). Read-only.
    urlsRetainingParentCategoryCount Number
    The number of URLs retaining the parent category. Read-only.
    val Number
    (Number) The numeric identifier for the URL category.

    Look up Existing URLCategoriesPredefined Resource

    Get an existing URLCategoriesPredefined resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: URLCategoriesPredefinedState, opts?: CustomResourceOptions): URLCategoriesPredefined
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            category_id: Optional[str] = None,
            configured_name: Optional[str] = None,
            custom_ip_ranges_count: Optional[int] = None,
            custom_urls_count: Optional[int] = None,
            db_categorized_urls: Optional[Sequence[str]] = None,
            editable: Optional[bool] = None,
            ip_ranges: Optional[Sequence[str]] = None,
            ip_ranges_retaining_parent_categories: Optional[Sequence[str]] = None,
            ip_ranges_retaining_parent_category_count: Optional[int] = None,
            keywords: Optional[Sequence[str]] = None,
            keywords_retaining_parent_categories: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            super_category: Optional[str] = None,
            type: Optional[str] = None,
            url_keyword_counts: Optional[Sequence[URLCategoriesPredefinedUrlKeywordCountArgs]] = None,
            url_type: Optional[str] = None,
            urls: Optional[Sequence[str]] = None,
            urls_retaining_parent_categories: Optional[Sequence[str]] = None,
            urls_retaining_parent_category_count: Optional[int] = None,
            val: Optional[int] = None) -> URLCategoriesPredefined
    func GetURLCategoriesPredefined(ctx *Context, name string, id IDInput, state *URLCategoriesPredefinedState, opts ...ResourceOption) (*URLCategoriesPredefined, error)
    public static URLCategoriesPredefined Get(string name, Input<string> id, URLCategoriesPredefinedState? state, CustomResourceOptions? opts = null)
    public static URLCategoriesPredefined get(String name, Output<String> id, URLCategoriesPredefinedState state, CustomResourceOptions options)
    resources:  _:    type: zia:URLCategoriesPredefined    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CategoryId string
    The canonical predefined URL category identifier resolved by the provider.
    ConfiguredName string
    The display name of the predefined URL category. Read-only.
    CustomIpRangesCount int
    The number of custom IP address ranges associated to the URL category. Read-only.
    CustomUrlsCount int
    The number of custom URLs associated to the URL category. Read-only.
    DbCategorizedUrls List<string>
    URLs categorized by the Zscaler database. Read-only.
    Editable bool
    (Boolean) Whether the category is editable.
    IpRanges List<string>
    Custom IP address ranges associated to the URL category.
    IpRangesRetainingParentCategories List<string>
    Retaining parent custom IP address ranges associated to the URL category.
    IpRangesRetainingParentCategoryCount int
    The number of IP ranges retaining the parent category. Read-only.
    Keywords List<string>
    Custom keywords associated to the URL category.
    KeywordsRetainingParentCategories List<string>
    Retained custom keywords from the parent URL category.
    Name string
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    SuperCategory string
    The super category of the predefined URL category. Read-only.
    Type string
    The type of the URL category. Read-only.
    UrlKeywordCounts List<zscaler.PulumiPackage.Zia.Inputs.URLCategoriesPredefinedUrlKeywordCount>
    URL and keyword counts for the URL category. Read-only.
    UrlType string
    The URL type (e.g., EXACT). Read-only.
    Urls List<string>
    Custom URLs to add to the predefined URL category.
    UrlsRetainingParentCategories List<string>
    URLs that are also retained under the original parent URL category.
    UrlsRetainingParentCategoryCount int
    The number of URLs retaining the parent category. Read-only.
    Val int
    (Number) The numeric identifier for the URL category.
    CategoryId string
    The canonical predefined URL category identifier resolved by the provider.
    ConfiguredName string
    The display name of the predefined URL category. Read-only.
    CustomIpRangesCount int
    The number of custom IP address ranges associated to the URL category. Read-only.
    CustomUrlsCount int
    The number of custom URLs associated to the URL category. Read-only.
    DbCategorizedUrls []string
    URLs categorized by the Zscaler database. Read-only.
    Editable bool
    (Boolean) Whether the category is editable.
    IpRanges []string
    Custom IP address ranges associated to the URL category.
    IpRangesRetainingParentCategories []string
    Retaining parent custom IP address ranges associated to the URL category.
    IpRangesRetainingParentCategoryCount int
    The number of IP ranges retaining the parent category. Read-only.
    Keywords []string
    Custom keywords associated to the URL category.
    KeywordsRetainingParentCategories []string
    Retained custom keywords from the parent URL category.
    Name string
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    SuperCategory string
    The super category of the predefined URL category. Read-only.
    Type string
    The type of the URL category. Read-only.
    UrlKeywordCounts []URLCategoriesPredefinedUrlKeywordCountArgs
    URL and keyword counts for the URL category. Read-only.
    UrlType string
    The URL type (e.g., EXACT). Read-only.
    Urls []string
    Custom URLs to add to the predefined URL category.
    UrlsRetainingParentCategories []string
    URLs that are also retained under the original parent URL category.
    UrlsRetainingParentCategoryCount int
    The number of URLs retaining the parent category. Read-only.
    Val int
    (Number) The numeric identifier for the URL category.
    categoryId String
    The canonical predefined URL category identifier resolved by the provider.
    configuredName String
    The display name of the predefined URL category. Read-only.
    customIpRangesCount Integer
    The number of custom IP address ranges associated to the URL category. Read-only.
    customUrlsCount Integer
    The number of custom URLs associated to the URL category. Read-only.
    dbCategorizedUrls List<String>
    URLs categorized by the Zscaler database. Read-only.
    editable Boolean
    (Boolean) Whether the category is editable.
    ipRanges List<String>
    Custom IP address ranges associated to the URL category.
    ipRangesRetainingParentCategories List<String>
    Retaining parent custom IP address ranges associated to the URL category.
    ipRangesRetainingParentCategoryCount Integer
    The number of IP ranges retaining the parent category. Read-only.
    keywords List<String>
    Custom keywords associated to the URL category.
    keywordsRetainingParentCategories List<String>
    Retained custom keywords from the parent URL category.
    name String
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    superCategory String
    The super category of the predefined URL category. Read-only.
    type String
    The type of the URL category. Read-only.
    urlKeywordCounts List<URLCategoriesPredefinedUrlKeywordCount>
    URL and keyword counts for the URL category. Read-only.
    urlType String
    The URL type (e.g., EXACT). Read-only.
    urls List<String>
    Custom URLs to add to the predefined URL category.
    urlsRetainingParentCategories List<String>
    URLs that are also retained under the original parent URL category.
    urlsRetainingParentCategoryCount Integer
    The number of URLs retaining the parent category. Read-only.
    val Integer
    (Number) The numeric identifier for the URL category.
    categoryId string
    The canonical predefined URL category identifier resolved by the provider.
    configuredName string
    The display name of the predefined URL category. Read-only.
    customIpRangesCount number
    The number of custom IP address ranges associated to the URL category. Read-only.
    customUrlsCount number
    The number of custom URLs associated to the URL category. Read-only.
    dbCategorizedUrls string[]
    URLs categorized by the Zscaler database. Read-only.
    editable boolean
    (Boolean) Whether the category is editable.
    ipRanges string[]
    Custom IP address ranges associated to the URL category.
    ipRangesRetainingParentCategories string[]
    Retaining parent custom IP address ranges associated to the URL category.
    ipRangesRetainingParentCategoryCount number
    The number of IP ranges retaining the parent category. Read-only.
    keywords string[]
    Custom keywords associated to the URL category.
    keywordsRetainingParentCategories string[]
    Retained custom keywords from the parent URL category.
    name string
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    superCategory string
    The super category of the predefined URL category. Read-only.
    type string
    The type of the URL category. Read-only.
    urlKeywordCounts URLCategoriesPredefinedUrlKeywordCount[]
    URL and keyword counts for the URL category. Read-only.
    urlType string
    The URL type (e.g., EXACT). Read-only.
    urls string[]
    Custom URLs to add to the predefined URL category.
    urlsRetainingParentCategories string[]
    URLs that are also retained under the original parent URL category.
    urlsRetainingParentCategoryCount number
    The number of URLs retaining the parent category. Read-only.
    val number
    (Number) The numeric identifier for the URL category.
    category_id str
    The canonical predefined URL category identifier resolved by the provider.
    configured_name str
    The display name of the predefined URL category. Read-only.
    custom_ip_ranges_count int
    The number of custom IP address ranges associated to the URL category. Read-only.
    custom_urls_count int
    The number of custom URLs associated to the URL category. Read-only.
    db_categorized_urls Sequence[str]
    URLs categorized by the Zscaler database. Read-only.
    editable bool
    (Boolean) Whether the category is editable.
    ip_ranges Sequence[str]
    Custom IP address ranges associated to the URL category.
    ip_ranges_retaining_parent_categories Sequence[str]
    Retaining parent custom IP address ranges associated to the URL category.
    ip_ranges_retaining_parent_category_count int
    The number of IP ranges retaining the parent category. Read-only.
    keywords Sequence[str]
    Custom keywords associated to the URL category.
    keywords_retaining_parent_categories Sequence[str]
    Retained custom keywords from the parent URL category.
    name str
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    super_category str
    The super category of the predefined URL category. Read-only.
    type str
    The type of the URL category. Read-only.
    url_keyword_counts Sequence[URLCategoriesPredefinedUrlKeywordCountArgs]
    URL and keyword counts for the URL category. Read-only.
    url_type str
    The URL type (e.g., EXACT). Read-only.
    urls Sequence[str]
    Custom URLs to add to the predefined URL category.
    urls_retaining_parent_categories Sequence[str]
    URLs that are also retained under the original parent URL category.
    urls_retaining_parent_category_count int
    The number of URLs retaining the parent category. Read-only.
    val int
    (Number) The numeric identifier for the URL category.
    categoryId String
    The canonical predefined URL category identifier resolved by the provider.
    configuredName String
    The display name of the predefined URL category. Read-only.
    customIpRangesCount Number
    The number of custom IP address ranges associated to the URL category. Read-only.
    customUrlsCount Number
    The number of custom URLs associated to the URL category. Read-only.
    dbCategorizedUrls List<String>
    URLs categorized by the Zscaler database. Read-only.
    editable Boolean
    (Boolean) Whether the category is editable.
    ipRanges List<String>
    Custom IP address ranges associated to the URL category.
    ipRangesRetainingParentCategories List<String>
    Retaining parent custom IP address ranges associated to the URL category.
    ipRangesRetainingParentCategoryCount Number
    The number of IP ranges retaining the parent category. Read-only.
    keywords List<String>
    Custom keywords associated to the URL category.
    keywordsRetainingParentCategories List<String>
    Retained custom keywords from the parent URL category.
    name String
    The predefined URL category ID or display name (e.g., FINANCE or Finance). The provider resolves this to the canonical category ID.
    superCategory String
    The super category of the predefined URL category. Read-only.
    type String
    The type of the URL category. Read-only.
    urlKeywordCounts List<Property Map>
    URL and keyword counts for the URL category. Read-only.
    urlType String
    The URL type (e.g., EXACT). Read-only.
    urls List<String>
    Custom URLs to add to the predefined URL category.
    urlsRetainingParentCategories List<String>
    URLs that are also retained under the original parent URL category.
    urlsRetainingParentCategoryCount Number
    The number of URLs retaining the parent category. Read-only.
    val Number
    (Number) The numeric identifier for the URL category.

    Supporting Types

    URLCategoriesPredefinedUrlKeywordCount, URLCategoriesPredefinedUrlKeywordCountArgs

    RetainParentKeywordCount int
    Count of total keywords with retain parent category.
    RetainParentUrlCount int
    Count of URLs with retain parent category.
    TotalKeywordCount int
    Total keyword count for the category.
    TotalUrlCount int
    Custom URL count for the category.
    RetainParentKeywordCount int
    Count of total keywords with retain parent category.
    RetainParentUrlCount int
    Count of URLs with retain parent category.
    TotalKeywordCount int
    Total keyword count for the category.
    TotalUrlCount int
    Custom URL count for the category.
    retainParentKeywordCount Integer
    Count of total keywords with retain parent category.
    retainParentUrlCount Integer
    Count of URLs with retain parent category.
    totalKeywordCount Integer
    Total keyword count for the category.
    totalUrlCount Integer
    Custom URL count for the category.
    retainParentKeywordCount number
    Count of total keywords with retain parent category.
    retainParentUrlCount number
    Count of URLs with retain parent category.
    totalKeywordCount number
    Total keyword count for the category.
    totalUrlCount number
    Custom URL count for the category.
    retain_parent_keyword_count int
    Count of total keywords with retain parent category.
    retain_parent_url_count int
    Count of URLs with retain parent category.
    total_keyword_count int
    Total keyword count for the category.
    total_url_count int
    Custom URL count for the category.
    retainParentKeywordCount Number
    Count of total keywords with retain parent category.
    retainParentUrlCount Number
    Count of URLs with retain parent category.
    totalKeywordCount Number
    Total keyword count for the category.
    totalUrlCount Number
    Custom URL count for the category.

    Import

    Predefined URL categories can be imported by using the predefined category ID or display name as the import ID.

    For example:

    $ pulumi import zia:index/uRLCategoriesPredefined:URLCategoriesPredefined example EDUCATION
    

    or

    $ pulumi import zia:index/uRLCategoriesPredefined:URLCategoriesPredefined example FINANCE
    

    ⚠️ NOTE: This resource only supports importing predefined URL categories. For custom URL categories, use the zia.URLCategories resource.

    Important Import Considerations

    When importing a predefined category that already has custom URLs, keywords, or IP ranges configured (e.g., via the ZIA Admin Portal), those existing items will be captured in the Terraform state. If your HCL configuration does not include those items, the next pulumi up will attempt to remove them to match the desired state defined in your configuration.

    To avoid unintended removals after import, ensure your HCL includes all existing custom items that should be retained, or review the plan output carefully before applying.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    MIT
    Notes
    This Pulumi package is based on the zia Terraform Provider.
    zia logo
    Zscaler Internet Access v1.2.0 published on Friday, Feb 20, 2026 by Zscaler
      Meet Neo: Your AI Platform Teammate