custom_ip_base_apps

The following methods allow for interaction with the ZCC Custom IP-based Apps API endpoints.

Methods are accessible via zcc.custom_ip_base_apps

Copyright (c) 2023, Zscaler Inc.

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

class CustomIPBasedAppsAPI

Bases: APIClient

get_custom_ip_base_app(app_id)

Retrieves the custom IP-based application using app ID.

Parameters:

app_id (str) – The unique identifier of the custom IP-based application.

Returns:

Retrieves the custom IP-based application.

Return type:

list

Examples

Prints the custom IP-based application:

>>> app, _, err = client.zcc.custom_ip_base_apps.get_custom_ip_base_app('1234567890')
>>> if err:
...     print(f"Error listing custom IP-based application: {err}")
...     return
... print(app.as_dict())
get_custom_ip_base_apps()

Retrieves the list of custom IP-based applications.

Parameters:

query_params (dict, optional) –

A dictionary containing supported filters.

[query_params.page] {str}: Specifies the page offset.

[query_params.page_size] {str}: Specifies the page size. The default size is 50.

[query_params.search] {str}: The search string used to match against the policies.

Returns:

Retrieves the list of custom IP-based applications.

Return type:

list

Examples

Prints all custom IP-based applications:

>>> apps_list, _, err = client.zcc.custom_ip_base_apps.get_custom_ip_base_apps()
>>> if err:
...     print(f"Error listing custom IP-based applications: {err}")
...     return
... for app in apps_list:
...     print(app.as_dict())