Skip to main content

Universal DDI Python Client

This repository provides a Python Client library for interacting with Infoblox APIs. The library is generated using the OpenAPI Generator project.

The following Infoblox APIs are supported:

Infoblox Cloud

Infoblox Threat Defense

Universal DDI

Installation

To install the Universal DDI Python Client, use the following command:

pip install universal-ddi-python-client

Usage

To use the Universal DDI Python Client, you need to import the client and create an instance of the client. For example:

from universal_ddi_client import ApiClient

client = ApiClient()

Additionally , you can also add a custom config to the client. For example:

from universal_ddi_client import Configuration, ApiClient

config = Configuration()

client = ApiClient(config)

Furthermore , you can import the specific API module and use the client to interact with the API. For example:

from dns_config import ViewApi

view_api = ViewApi(client)

Configuration

Client Name

The client name is used to identify the client in the logs. By default, the client name is set to universal-ddi-python-client. You can change this by creating an instance of Configuration and setting the client name. For example:

from universal_ddi_client import Configuration

config = Configuration(
    client_name = "my-client",
)

Server URL

The default URL for the Cloud Services Portal is https://csp.infoblox.com. If you need to change this, you can create an instance of Configuration and set the URL. For example:

from universal_ddi_client import Configuration

config = Configuration(
    portal_url = "https://csp.eu.infoblox.com",
)

You can also set the URL using the environment variable INFOBLOX_PORTAL_URL or BLOXONE_CSP_URL.

Note: BLOXONE_CSP_URL is deprecated and will be removed in future releases. It is recommended to use INFOBLOX_PORTAL_URL instead.

Authorization

An API key is required to access Infoblox API. You can obtain an API key by following the instructions in the guide for Configuring User API Keys.

To use an API key with Infoblox API, you can create a new instance of Configuration . For example:

from universal_ddi_client import Configuration

config = Configuration(
    portal_key = "PORTAL_KEY",
)

Alternatively, You can also set the API key using the environment variable INFOBLOX_PORTAL_KEY or BLOXONE_API_KEY .

Note: BLOXONE_API_KEY is deprecated and will be removed in future releases. It is recommended to use INFOBLOX_PORTAL_KEY instead.

Note: The API key is a secret and should be handled securely. Hardcoding the API key in your code is not recommended.

Default Tags

The Infoblox API supports tagging resources. You can set default tags for all resources created using the client.

To set the Default Tags , you can create a new instance of Configuration to set the tags. For example:

from universal_ddi_client import Configuration

config = Configuration(
    default_tags = {
        "tag1": "value1",
        "tag2": "value2",
    }
)

Support

For support and inquiries, contact Infoblox Support or refer to the official Universal DDI documentation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

universal_ddi_python_client-0.1.0.tar.gz (525.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

universal_ddi_python_client-0.1.0-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file universal_ddi_python_client-0.1.0.tar.gz.

File metadata

File hashes

Hashes for universal_ddi_python_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1181815e26b4a36e24cb79ece5d56382498e4c5a9adb265751072c2a9c06d1c7
MD5 2140ff45a9dd5b7e7d862285c3c2ab10
BLAKE2b-256 36ac13807378a45a9cd35f00bfb17df60c8f51ff5b3a98e2b98de1d8d9722baf

See more details on using hashes here.

Provenance

The following attestation bundles were made for universal_ddi_python_client-0.1.0.tar.gz:

Publisher: release.yml on infobloxopen/universal-ddi-python-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file universal_ddi_python_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for universal_ddi_python_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e732e9bb4aec2b47569d16e58d891b9f2a3e7b35d6cbb95b50e03e9f243378b
MD5 98ebb5535c9a1c45d3307668fa3c5f2a
BLAKE2b-256 58292c657000799fb6c07c0757d74a0e00fa06e3a94d7c5c4a87de3cbf73f102

See more details on using hashes here.

Provenance

The following attestation bundles were made for universal_ddi_python_client-0.1.0-py3-none-any.whl:

Publisher: release.yml on infobloxopen/universal-ddi-python-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page