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.URLCategoriesresource 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
Createoperation issues a PUT to update the category’s mutable fields. - No deletion — Predefined categories cannot be removed. Running
terraform destroysimply removes the resource from state without making any API calls. - Incremental updates — The provider uses incremental
ADD_TO_LISTandREMOVE_FROM_LISTAPI 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:
- The resource is removed from the Terraform state file.
- No API call is made — the predefined category remains unchanged on the Zscaler platform.
- 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:
- Ip
Ranges List<string> - Custom IP address ranges associated to the URL category.
- Ip
Ranges List<string>Retaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- Keywords List<string>
- Custom keywords associated to the URL category.
- Keywords
Retaining List<string>Parent Categories - Retained custom keywords from the parent URL category.
- Name string
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - Urls List<string>
- Custom URLs to add to the predefined URL category.
- Urls
Retaining List<string>Parent Categories - URLs that are also retained under the original parent URL category.
- Ip
Ranges []string - Custom IP address ranges associated to the URL category.
- Ip
Ranges []stringRetaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- Keywords []string
- Custom keywords associated to the URL category.
- Keywords
Retaining []stringParent Categories - Retained custom keywords from the parent URL category.
- Name string
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - Urls []string
- Custom URLs to add to the predefined URL category.
- Urls
Retaining []stringParent Categories - URLs that are also retained under the original parent URL category.
- ip
Ranges List<String> - Custom IP address ranges associated to the URL category.
- ip
Ranges List<String>Retaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- keywords List<String>
- Custom keywords associated to the URL category.
- keywords
Retaining List<String>Parent Categories - Retained custom keywords from the parent URL category.
- name String
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - urls List<String>
- Custom URLs to add to the predefined URL category.
- urls
Retaining List<String>Parent Categories - URLs that are also retained under the original parent URL category.
- ip
Ranges string[] - Custom IP address ranges associated to the URL category.
- ip
Ranges string[]Retaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- keywords string[]
- Custom keywords associated to the URL category.
- keywords
Retaining string[]Parent Categories - Retained custom keywords from the parent URL category.
- name string
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - urls string[]
- Custom URLs to add to the predefined URL category.
- urls
Retaining string[]Parent Categories - 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_ Sequence[str]retaining_ parent_ categories - Retaining parent custom IP address ranges associated to the URL category.
- keywords Sequence[str]
- Custom keywords associated to the URL category.
- keywords_
retaining_ Sequence[str]parent_ categories - Retained custom keywords from the parent URL category.
- name str
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - urls Sequence[str]
- Custom URLs to add to the predefined URL category.
- urls_
retaining_ Sequence[str]parent_ categories - URLs that are also retained under the original parent URL category.
- ip
Ranges List<String> - Custom IP address ranges associated to the URL category.
- ip
Ranges List<String>Retaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- keywords List<String>
- Custom keywords associated to the URL category.
- keywords
Retaining List<String>Parent Categories - Retained custom keywords from the parent URL category.
- name String
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - urls List<String>
- Custom URLs to add to the predefined URL category.
- urls
Retaining List<String>Parent Categories - 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:
- Category
Id string - The canonical predefined URL category identifier resolved by the provider.
- Configured
Name string - The display name of the predefined URL category. Read-only.
- Custom
Ip intRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- Custom
Urls intCount - The number of custom URLs associated to the URL category. Read-only.
- Db
Categorized List<string>Urls - 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.
- Ip
Ranges intRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- Super
Category string - The super category of the predefined URL category. Read-only.
- Type string
- The type of the URL category. Read-only.
- Url
Keyword List<zscaler.Counts Pulumi Package. Zia. Outputs. URLCategories Predefined Url Keyword Count> - URL and keyword counts for the URL category. Read-only.
- Url
Type string - The URL type (e.g.,
EXACT). Read-only. - Urls
Retaining intParent Category Count - The number of URLs retaining the parent category. Read-only.
- Val int
- (Number) The numeric identifier for the URL category.
- Category
Id string - The canonical predefined URL category identifier resolved by the provider.
- Configured
Name string - The display name of the predefined URL category. Read-only.
- Custom
Ip intRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- Custom
Urls intCount - The number of custom URLs associated to the URL category. Read-only.
- Db
Categorized []stringUrls - 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.
- Ip
Ranges intRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- Super
Category string - The super category of the predefined URL category. Read-only.
- Type string
- The type of the URL category. Read-only.
- Url
Keyword []URLCategoriesCounts Predefined Url Keyword Count - URL and keyword counts for the URL category. Read-only.
- Url
Type string - The URL type (e.g.,
EXACT). Read-only. - Urls
Retaining intParent Category Count - The number of URLs retaining the parent category. Read-only.
- Val int
- (Number) The numeric identifier for the URL category.
- category
Id String - The canonical predefined URL category identifier resolved by the provider.
- configured
Name String - The display name of the predefined URL category. Read-only.
- custom
Ip IntegerRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- custom
Urls IntegerCount - The number of custom URLs associated to the URL category. Read-only.
- db
Categorized List<String>Urls - 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.
- ip
Ranges IntegerRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- super
Category String - The super category of the predefined URL category. Read-only.
- type String
- The type of the URL category. Read-only.
- url
Keyword List<URLCategoriesCounts Predefined Url Keyword Count> - URL and keyword counts for the URL category. Read-only.
- url
Type String - The URL type (e.g.,
EXACT). Read-only. - urls
Retaining IntegerParent Category Count - The number of URLs retaining the parent category. Read-only.
- val Integer
- (Number) The numeric identifier for the URL category.
- category
Id string - The canonical predefined URL category identifier resolved by the provider.
- configured
Name string - The display name of the predefined URL category. Read-only.
- custom
Ip numberRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- custom
Urls numberCount - The number of custom URLs associated to the URL category. Read-only.
- db
Categorized string[]Urls - 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.
- ip
Ranges numberRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- super
Category string - The super category of the predefined URL category. Read-only.
- type string
- The type of the URL category. Read-only.
- url
Keyword URLCategoriesCounts Predefined Url Keyword Count[] - URL and keyword counts for the URL category. Read-only.
- url
Type string - The URL type (e.g.,
EXACT). Read-only. - urls
Retaining numberParent Category Count - 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_ intranges_ count - The number of custom IP address ranges associated to the URL category. Read-only.
- custom_
urls_ intcount - The number of custom URLs associated to the URL category. Read-only.
- db_
categorized_ Sequence[str]urls - 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_ intretaining_ parent_ category_ count - 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_ Sequence[URLCategoriescounts Predefined Url Keyword Count] - URL and keyword counts for the URL category. Read-only.
- url_
type str - The URL type (e.g.,
EXACT). Read-only. - urls_
retaining_ intparent_ category_ count - The number of URLs retaining the parent category. Read-only.
- val int
- (Number) The numeric identifier for the URL category.
- category
Id String - The canonical predefined URL category identifier resolved by the provider.
- configured
Name String - The display name of the predefined URL category. Read-only.
- custom
Ip NumberRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- custom
Urls NumberCount - The number of custom URLs associated to the URL category. Read-only.
- db
Categorized List<String>Urls - 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.
- ip
Ranges NumberRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- super
Category String - The super category of the predefined URL category. Read-only.
- type String
- The type of the URL category. Read-only.
- url
Keyword List<Property Map>Counts - URL and keyword counts for the URL category. Read-only.
- url
Type String - The URL type (e.g.,
EXACT). Read-only. - urls
Retaining NumberParent Category Count - 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) -> URLCategoriesPredefinedfunc 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.
- Category
Id string - The canonical predefined URL category identifier resolved by the provider.
- Configured
Name string - The display name of the predefined URL category. Read-only.
- Custom
Ip intRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- Custom
Urls intCount - The number of custom URLs associated to the URL category. Read-only.
- Db
Categorized List<string>Urls - URLs categorized by the Zscaler database. Read-only.
- Editable bool
- (Boolean) Whether the category is editable.
- Ip
Ranges List<string> - Custom IP address ranges associated to the URL category.
- Ip
Ranges List<string>Retaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- Ip
Ranges intRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- Keywords List<string>
- Custom keywords associated to the URL category.
- Keywords
Retaining List<string>Parent Categories - Retained custom keywords from the parent URL category.
- Name string
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - Super
Category string - The super category of the predefined URL category. Read-only.
- Type string
- The type of the URL category. Read-only.
- Url
Keyword List<zscaler.Counts Pulumi Package. Zia. Inputs. URLCategories Predefined Url Keyword Count> - URL and keyword counts for the URL category. Read-only.
- Url
Type string - The URL type (e.g.,
EXACT). Read-only. - Urls List<string>
- Custom URLs to add to the predefined URL category.
- Urls
Retaining List<string>Parent Categories - URLs that are also retained under the original parent URL category.
- Urls
Retaining intParent Category Count - The number of URLs retaining the parent category. Read-only.
- Val int
- (Number) The numeric identifier for the URL category.
- Category
Id string - The canonical predefined URL category identifier resolved by the provider.
- Configured
Name string - The display name of the predefined URL category. Read-only.
- Custom
Ip intRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- Custom
Urls intCount - The number of custom URLs associated to the URL category. Read-only.
- Db
Categorized []stringUrls - URLs categorized by the Zscaler database. Read-only.
- Editable bool
- (Boolean) Whether the category is editable.
- Ip
Ranges []string - Custom IP address ranges associated to the URL category.
- Ip
Ranges []stringRetaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- Ip
Ranges intRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- Keywords []string
- Custom keywords associated to the URL category.
- Keywords
Retaining []stringParent Categories - Retained custom keywords from the parent URL category.
- Name string
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - Super
Category string - The super category of the predefined URL category. Read-only.
- Type string
- The type of the URL category. Read-only.
- Url
Keyword []URLCategoriesCounts Predefined Url Keyword Count Args - URL and keyword counts for the URL category. Read-only.
- Url
Type string - The URL type (e.g.,
EXACT). Read-only. - Urls []string
- Custom URLs to add to the predefined URL category.
- Urls
Retaining []stringParent Categories - URLs that are also retained under the original parent URL category.
- Urls
Retaining intParent Category Count - The number of URLs retaining the parent category. Read-only.
- Val int
- (Number) The numeric identifier for the URL category.
- category
Id String - The canonical predefined URL category identifier resolved by the provider.
- configured
Name String - The display name of the predefined URL category. Read-only.
- custom
Ip IntegerRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- custom
Urls IntegerCount - The number of custom URLs associated to the URL category. Read-only.
- db
Categorized List<String>Urls - URLs categorized by the Zscaler database. Read-only.
- editable Boolean
- (Boolean) Whether the category is editable.
- ip
Ranges List<String> - Custom IP address ranges associated to the URL category.
- ip
Ranges List<String>Retaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- ip
Ranges IntegerRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- keywords List<String>
- Custom keywords associated to the URL category.
- keywords
Retaining List<String>Parent Categories - Retained custom keywords from the parent URL category.
- name String
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - super
Category String - The super category of the predefined URL category. Read-only.
- type String
- The type of the URL category. Read-only.
- url
Keyword List<URLCategoriesCounts Predefined Url Keyword Count> - URL and keyword counts for the URL category. Read-only.
- url
Type String - The URL type (e.g.,
EXACT). Read-only. - urls List<String>
- Custom URLs to add to the predefined URL category.
- urls
Retaining List<String>Parent Categories - URLs that are also retained under the original parent URL category.
- urls
Retaining IntegerParent Category Count - The number of URLs retaining the parent category. Read-only.
- val Integer
- (Number) The numeric identifier for the URL category.
- category
Id string - The canonical predefined URL category identifier resolved by the provider.
- configured
Name string - The display name of the predefined URL category. Read-only.
- custom
Ip numberRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- custom
Urls numberCount - The number of custom URLs associated to the URL category. Read-only.
- db
Categorized string[]Urls - URLs categorized by the Zscaler database. Read-only.
- editable boolean
- (Boolean) Whether the category is editable.
- ip
Ranges string[] - Custom IP address ranges associated to the URL category.
- ip
Ranges string[]Retaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- ip
Ranges numberRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- keywords string[]
- Custom keywords associated to the URL category.
- keywords
Retaining string[]Parent Categories - Retained custom keywords from the parent URL category.
- name string
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - super
Category string - The super category of the predefined URL category. Read-only.
- type string
- The type of the URL category. Read-only.
- url
Keyword URLCategoriesCounts Predefined Url Keyword Count[] - URL and keyword counts for the URL category. Read-only.
- url
Type string - The URL type (e.g.,
EXACT). Read-only. - urls string[]
- Custom URLs to add to the predefined URL category.
- urls
Retaining string[]Parent Categories - URLs that are also retained under the original parent URL category.
- urls
Retaining numberParent Category Count - 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_ intranges_ count - The number of custom IP address ranges associated to the URL category. Read-only.
- custom_
urls_ intcount - The number of custom URLs associated to the URL category. Read-only.
- db_
categorized_ Sequence[str]urls - 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_ Sequence[str]retaining_ parent_ categories - Retaining parent custom IP address ranges associated to the URL category.
- ip_
ranges_ intretaining_ parent_ category_ count - The number of IP ranges retaining the parent category. Read-only.
- keywords Sequence[str]
- Custom keywords associated to the URL category.
- keywords_
retaining_ Sequence[str]parent_ categories - Retained custom keywords from the parent URL category.
- name str
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). 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_ Sequence[URLCategoriescounts Predefined Url Keyword Count Args] - 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_ Sequence[str]parent_ categories - URLs that are also retained under the original parent URL category.
- urls_
retaining_ intparent_ category_ count - The number of URLs retaining the parent category. Read-only.
- val int
- (Number) The numeric identifier for the URL category.
- category
Id String - The canonical predefined URL category identifier resolved by the provider.
- configured
Name String - The display name of the predefined URL category. Read-only.
- custom
Ip NumberRanges Count - The number of custom IP address ranges associated to the URL category. Read-only.
- custom
Urls NumberCount - The number of custom URLs associated to the URL category. Read-only.
- db
Categorized List<String>Urls - URLs categorized by the Zscaler database. Read-only.
- editable Boolean
- (Boolean) Whether the category is editable.
- ip
Ranges List<String> - Custom IP address ranges associated to the URL category.
- ip
Ranges List<String>Retaining Parent Categories - Retaining parent custom IP address ranges associated to the URL category.
- ip
Ranges NumberRetaining Parent Category Count - The number of IP ranges retaining the parent category. Read-only.
- keywords List<String>
- Custom keywords associated to the URL category.
- keywords
Retaining List<String>Parent Categories - Retained custom keywords from the parent URL category.
- name String
- The predefined URL category ID or display name (e.g.,
FINANCEorFinance). The provider resolves this to the canonical category ID. - super
Category String - The super category of the predefined URL category. Read-only.
- type String
- The type of the URL category. Read-only.
- url
Keyword List<Property Map>Counts - URL and keyword counts for the URL category. Read-only.
- url
Type String - The URL type (e.g.,
EXACT). Read-only. - urls List<String>
- Custom URLs to add to the predefined URL category.
- urls
Retaining List<String>Parent Categories - URLs that are also retained under the original parent URL category.
- urls
Retaining NumberParent Category Count - The number of URLs retaining the parent category. Read-only.
- val Number
- (Number) The numeric identifier for the URL category.
Supporting Types
URLCategoriesPredefinedUrlKeywordCount, URLCategoriesPredefinedUrlKeywordCountArgs
- Retain
Parent intKeyword Count - Count of total keywords with retain parent category.
- Retain
Parent intUrl Count - Count of URLs with retain parent category.
- Total
Keyword intCount - Total keyword count for the category.
- Total
Url intCount - Custom URL count for the category.
- Retain
Parent intKeyword Count - Count of total keywords with retain parent category.
- Retain
Parent intUrl Count - Count of URLs with retain parent category.
- Total
Keyword intCount - Total keyword count for the category.
- Total
Url intCount - Custom URL count for the category.
- retain
Parent IntegerKeyword Count - Count of total keywords with retain parent category.
- retain
Parent IntegerUrl Count - Count of URLs with retain parent category.
- total
Keyword IntegerCount - Total keyword count for the category.
- total
Url IntegerCount - Custom URL count for the category.
- retain
Parent numberKeyword Count - Count of total keywords with retain parent category.
- retain
Parent numberUrl Count - Count of URLs with retain parent category.
- total
Keyword numberCount - Total keyword count for the category.
- total
Url numberCount - Custom URL count for the category.
- retain_
parent_ intkeyword_ count - Count of total keywords with retain parent category.
- retain_
parent_ inturl_ count - Count of URLs with retain parent category.
- total_
keyword_ intcount - Total keyword count for the category.
- total_
url_ intcount - Custom URL count for the category.
- retain
Parent NumberKeyword Count - Count of total keywords with retain parent category.
- retain
Parent NumberUrl Count - Count of URLs with retain parent category.
- total
Keyword NumberCount - Total keyword count for the category.
- total
Url NumberCount - 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
ziaTerraform Provider.
