app_catalog

The following methods allow for interaction with the ZMS App Catalog API endpoints.

Methods are accessible via zms.app_catalog

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 AppCatalogAPI

Bases: APIClient

A Client object for the ZMS App Catalog domain.

Provides access to app catalog operations including: - List app catalog entries with filtering, ordering, and pagination

list_app_catalog(customer_id, page_num=1, page_size=20, filter_by=None, order_by=None)

Get application catalog entries for a given customer.

Parameters:
  • customer_id – The customer ID.

  • page_num – Page number (default 1).

  • page_size – Number of items per page (default 20).

  • filter_by – Filter options using AppCatalogQueryFilter.

  • order_by – Ordering options using AppCatalogQueryOrderBy.

Returns:

(app_catalog_connection dict, response, error)

Return type:

tuple

Examples

List app catalog:

>>> result, _, err = client.zms.app_catalog.list_app_catalog(
...     customer_id="123456789"
... )
>>> if err:
...     print(err)
>>> for app in result.get("nodes", []):
...     print(app.get("name"), app.get("category"))