Python client for the Universal DDI APIs
Project description
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
- Infrastructure Management
- Infrastructure Provision (HostActivation API)
- Anycast Configuration Manager
- Upgrade Policy
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_URLis deprecated and will be removed in future releases. It is recommended to useINFOBLOX_PORTAL_URLinstead.
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_KEYis deprecated and will be removed in future releases. It is recommended to useINFOBLOX_PORTAL_KEYinstead.
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",
}
)
Debugging
To enable debugging, you can set the debug parameter to True when creating an instance of Configuration. For example:
from universal_ddi_client import Configuration
config = Configuration(
debug = True,
)
This will enable debugging for the client and log all requests and responses to the console.
Alternatively, You can also enable debugging using the environment variable IB_LOG_LEVEL by setting it to DEBUG.
Support
For support and inquiries, contact Infoblox Support or refer to the official Universal DDI documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file universal_ddi_python_client-0.1.1.tar.gz.
File metadata
- Download URL: universal_ddi_python_client-0.1.1.tar.gz
- Upload date:
- Size: 526.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa76ca08c850813f0af584c9573d87ae6abee7e5c178ac9c49c6dc68f2a523a3
|
|
| MD5 |
28bca61d0e0c9d76dab4303baae12fbc
|
|
| BLAKE2b-256 |
6525d2222e29d338f9f1d28316d0d95c3f376400b451cdf9f5895eb080436423
|
Provenance
The following attestation bundles were made for universal_ddi_python_client-0.1.1.tar.gz:
Publisher:
release.yml on infobloxopen/universal-ddi-python-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
universal_ddi_python_client-0.1.1.tar.gz -
Subject digest:
aa76ca08c850813f0af584c9573d87ae6abee7e5c178ac9c49c6dc68f2a523a3 - Sigstore transparency entry: 203534410
- Sigstore integration time:
-
Permalink:
infobloxopen/universal-ddi-python-client@d12a8b4b7cf3071cf48a1859fdd270a6d3fd225a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/infobloxopen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d12a8b4b7cf3071cf48a1859fdd270a6d3fd225a -
Trigger Event:
push
-
Statement type:
File details
Details for the file universal_ddi_python_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: universal_ddi_python_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43c215ab0488455189a52d9a098e2bad0b3381b55452d2168f7d3ac951b74ffe
|
|
| MD5 |
97b8447813db5f48449b08ee2a2f297f
|
|
| BLAKE2b-256 |
92e52b65e94727879c82a6f6a3c0aee714297f0580ede03ed7ea93190739b756
|
Provenance
The following attestation bundles were made for universal_ddi_python_client-0.1.1-py3-none-any.whl:
Publisher:
release.yml on infobloxopen/universal-ddi-python-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
universal_ddi_python_client-0.1.1-py3-none-any.whl -
Subject digest:
43c215ab0488455189a52d9a098e2bad0b3381b55452d2168f7d3ac951b74ffe - Sigstore transparency entry: 203534412
- Sigstore integration time:
-
Permalink:
infobloxopen/universal-ddi-python-client@d12a8b4b7cf3071cf48a1859fdd270a6d3fd225a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/infobloxopen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d12a8b4b7cf3071cf48a1859fdd270a6d3fd225a -
Trigger Event:
push
-
Statement type: