powerdns-client
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This Python package is automatically generated by the Swagger Codegen project:
- API version: 0.0.13
- Package version: 1.0.4
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Requirements.
Python 2.7 and 3.4+
Installation & Usage
pip install
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/nrfta/python-powerdns-client.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/nrfta/python-powerdns-client.git)
Then import the package:
import powerdns_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import powerdns_client
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import powerdns_client
from powerdns_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: APIKeyHeader
configuration = powerdns_client.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = powerdns_client.ConfigApi(powerdns_client.ApiClient(configuration))
server_id = 'server_id_example' # str | The id of the server to retrieve
try:
# Returns all ConfigSettings for a single server
api_response = api_instance.get_config(server_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigApi->get_config: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://localhost/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ConfigApi | get_config | GET /servers/{server_id}/config | Returns all ConfigSettings for a single server |
| ConfigApi | get_config_setting | GET /servers/{server_id}/config/{config_setting_name} | Returns a specific ConfigSetting for a single server |
| SearchApi | search_data | GET /servers/{server_id}/search-data | Search the data inside PowerDNS |
| ServersApi | cache_flush_by_name | PUT /servers/{server_id}/cache/flush | Flush a cache-entry by name |
| ServersApi | list_server | GET /servers/{server_id} | List a server |
| ServersApi | list_servers | GET /servers | List all servers |
| StatsApi | get_stats | GET /servers/{server_id}/statistics | Query statistics. |
| TsigkeyApi | create_tsig_key | POST /servers/{server_id}/tsigkeys | Add a TSIG key |
| TsigkeyApi | delete_tsig_key | DELETE /servers/{server_id}/tsigkeys/{tsigkey_id} | Delete the TSIGKey with tsigkey_id |
| TsigkeyApi | get_tsig_key | GET /servers/{server_id}/tsigkeys/{tsigkey_id} | Get a specific TSIGKeys on the server, including the actual key |
| TsigkeyApi | list_tsig_keys | GET /servers/{server_id}/tsigkeys | Get all TSIGKeys on the server, except the actual key |
| TsigkeyApi | put_tsig_key | PUT /servers/{server_id}/tsigkeys/{tsigkey_id} | |
| ZonecryptokeyApi | create_cryptokey | POST /servers/{server_id}/zones/{zone_id}/cryptokeys | Creates a Cryptokey |
| ZonecryptokeyApi | delete_cryptokey | DELETE /servers/{server_id}/zones/{zone_id}/cryptokeys/{cryptokey_id} | This method deletes a key specified by cryptokey_id. |
| ZonecryptokeyApi | get_cryptokey | GET /servers/{server_id}/zones/{zone_id}/cryptokeys/{cryptokey_id} | Returns all data about the CryptoKey, including the privatekey. |
| ZonecryptokeyApi | list_cryptokeys | GET /servers/{server_id}/zones/{zone_id}/cryptokeys | Get all CryptoKeys for a zone, except the privatekey |
| ZonecryptokeyApi | modify_cryptokey | PUT /servers/{server_id}/zones/{zone_id}/cryptokeys/{cryptokey_id} | This method (de)activates a key from zone_name specified by cryptokey_id |
| ZonemetadataApi | create_metadata | POST /servers/{server_id}/zones/{zone_id}/metadata | Creates a set of metadata entries |
| ZonemetadataApi | delete_metadata | DELETE /servers/{server_id}/zones/{zone_id}/metadata/{metadata_kind} | Delete all items of a single kind of domain metadata. |
| ZonemetadataApi | get_metadata | GET /servers/{server_id}/zones/{zone_id}/metadata/{metadata_kind} | Get the content of a single kind of domain metadata as a Metadata object. |
| ZonemetadataApi | list_metadata | GET /servers/{server_id}/zones/{zone_id}/metadata | Get all the Metadata associated with the zone. |
| ZonemetadataApi | modify_metadata | PUT /servers/{server_id}/zones/{zone_id}/metadata/{metadata_kind} | Replace the content of a single kind of domain metadata. |
| ZonesApi | axfr_export_zone | GET /servers/{server_id}/zones/{zone_id}/export | Returns the zone in AXFR format. |
| ZonesApi | axfr_retrieve_zone | PUT /servers/{server_id}/zones/{zone_id}/axfr-retrieve | Retrieve slave zone from its master. |
| ZonesApi | create_zone | POST /servers/{server_id}/zones | Creates a new domain, returns the Zone on creation. |
| ZonesApi | delete_zone | DELETE /servers/{server_id}/zones/{zone_id} | Deletes this zone, all attached metadata and rrsets. |
| ZonesApi | list_zone | GET /servers/{server_id}/zones/{zone_id} | zone managed by a server |
| ZonesApi | list_zones | GET /servers/{server_id}/zones | List all Zones in a server |
| ZonesApi | notify_zone | PUT /servers/{server_id}/zones/{zone_id}/notify | Send a DNS NOTIFY to all slaves. |
| ZonesApi | patch_zone | PATCH /servers/{server_id}/zones/{zone_id} | Creates/modifies/deletes RRsets present in the payload and their comments. Returns 204 No Content on success. |
| ZonesApi | put_zone | PUT /servers/{server_id}/zones/{zone_id} | Modifies basic zone data (metadata). |
| ZonesApi | rectify_zone | PUT /servers/{server_id}/zones/{zone_id}/rectify | Rectify the zone data. |
Documentation For Models
- CacheFlushResult
- Comment
- ConfigSetting
- Cryptokey
- Error
- MapStatisticItem
- Metadata
- RRSet
- Record
- RingStatisticItem
- SearchResult
- SearchResultComment
- SearchResultRecord
- SearchResultZone
- SearchResults
- Server
- Servers
- SimpleStatisticItem
- StatisticItem
- TSIGKey
- Zone
- Zones
Documentation For Authorization
APIKeyHeader
- Type: API key
- API key parameter name: X-API-Key
- Location: HTTP header
Author
Metadata
Release files for powerdns-client 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| powerdns-client-1.0.4.tar.gz | 39.6 kB | Without provenance | Details for powerdns-client-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| powerdns_client-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for powerdns_client-1.0.4-py3-none-any.whl |
Total release size: 129.1 kB
Release files / powerdns-client-1.0.4.tar.gz
| Download URL | powerdns-client-1.0.4.tar.gz |
|---|---|
| Size | 39.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
567cbb5c8e51e26ff508bf1449b877b23aab67695c07dd05d0503fab90821ab1
|
|
BLAKE2b-256 checksum How to use checksums |
7c2ee0d7789df0bfbc5fefc38e557d5bd8168dc3b58acb41145385928c8dcfb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Release files / powerdns_client-1.0.4-py3-none-any.whl
| Download URL | powerdns_client-1.0.4-py3-none-any.whl |
|---|---|
| Size | 89.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
651b6c40b24584e71f883319d33d8c29e0cdff04d8191dc3e0c0b3f594e7f261
|
|
BLAKE2b-256 checksum How to use checksums |
2d185954eb461cb4f7442de475c2e034a73192c671936fda682b5e0b8a3074d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Security for powerdns-client 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.