zscaler.ziacloud.zia_bandwidth_control_rules module – Adds a new Bandwidth Control policy rule
Note
This module is part of the zscaler.ziacloud collection (version 2.0.3).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install zscaler.ziacloud
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: zscaler.ziacloud.zia_bandwidth_control_rules
.
New in zscaler.ziacloud 2.0.0
Synopsis
Adds a new Bandwidth Control policy rule
Requirements
The below requirements are needed on the host that executes this module.
Zscaler SDK Python can be obtained from PyPI https://pypi.org/project/zscaler-sdk-python/
Parameters
Parameter |
Comments |
---|---|
A string that contains the obfuscated API key. |
|
The bandwidth classes to which you want to apply this rule. You first must add URLs or cloud applications to predefined or custom bandwidth classes. |
|
The client ID for OAuth2 authentication. |
|
The client secret for OAuth2 authentication. |
|
The Zscaler cloud name provisioned for your organization. Choices:
|
|
Additional information about the rule |
|
Determines whether the Bandwidth Control Rule is enabled or disabled Choices:
|
|
Unique identifier for the Bandwidth Control Rule |
|
The URL Filtering rule label. Rule labels allow you to logically group your organization policy rules. Policy rules that are not associated with a rule label are grouped under the Untagged label. |
|
The location groups to which the Bandwidth Control Rule applies |
|
The locations to which the Bandwidth Control Rule applies |
|
The maximum percentage of a location’s bandwidth to be guaranteed for each selected bandwidth class. This percentage includes bandwidth for uploads and downloads. |
|
The minimum percentage of a location’s bandwidth you want to be guaranteed for each selected bandwidth class. This percentage includes bandwidth for uploads and downloads. |
|
Name of the Bandwidth Control Rule |
|
Rule order number of the Bandwidth Control Rule |
|
A string that contains the password for the API admin. |
|
The private key for JWT-based OAuth2 authentication. |
|
Protocol criteria Choices:
|
|
A dict containing authentication credentials. |
|
Obfuscated API key. |
|
OAuth2 client ID. |
|
OAuth2 client secret. |
|
Zscaler cloud name. Choices:
|
|
Password for the API admin. |
|
Private key for OAuth2 JWT. |
|
Sandbox Cloud environment. |
|
Sandbox API Key. |
|
Whether to use the legacy Zscaler API client. Choices:
|
|
Email ID of the API admin. |
|
Vanity domain for OAuth2. |
|
Admin rank of the Bandwidth Control Rule Default: |
|
The Sandbox cloud environment for API access. |
|
A string that contains the Sandbox API Key. |
|
Specifies the desired state of the resource. Choices:
|
|
The time interval in which the Bandwidth Control Rule applies |
|
Whether to use the legacy Zscaler API client. Choices:
|
|
A string that contains the email ID of the API admin. |
|
The vanity domain provisioned by Zscaler for OAuth2 flows. |
Notes
Note
Check mode is supported.
Examples
- name: Create/update Bandwidth Control Rule
zscaler.ziacloud.zia_bandwidth_control_rules:
provider: '{{ provider }}'
state: present
name: "Ansible_Example_Rule"
description: "TT#1965232865"
enabled: true
order: 1
max_bandwidth: 100
min_bandwidth: 20
bandwidth_class_ids:
- 4
- 8
locations:
- 123545
- 654654
protocols:
- WEBSOCKETSSL_RULE
- WEBSOCKET_RULE
- DOHTTPS_RULE
- TUNNELSSL_RULE
- HTTP_PROXY
- FOHTTP_RULE
- FTP_RULE
- HTTPS_RULE
- HTTP_RULE
- SSL_RULE
- TUNNEL_RULE