An easier way to programmatically leverage Account Management in Dynatrace. Please review the README. Project URLs are currently broken but will work once project is uploaded to public GitHub repo.
Project description
Dynaccount
Dynaccount is a Python client for the Dynatrace Account Management API. It focuses on providing Dynatrace administrators an easier way to understand their environments, groups, policies, and subscription usage.
Requirements
- Python 3.8 or higher
- OAuth Client Credentials with scopes: account-env-read account-idm-read iam-policies-management
Install
$ pip install dt
Example Use Case
import dynaccount
# Initialize client class
account_client = dynaccount.DynatraceClient("client_id_goes_here", "client_secret_goes_here", "account_urn_goes_here")
# Get policies matching your keyword search (regex is supported)
all_account_policies_detailed = dynaccount.get_policies_detailed(account_client, "search_policies_here", regex=False)
# Initialize exporter class
exporter = dynaccount.Exporter()
# Export to JSON
exporter.policies_to_json(all_account_policies_detailed)
To-Do
- Create tests
- Dynamic scope options
- Add write functionality
- Introduce all API endpoints
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 dynaccount-0.1.0.tar.gz.
File metadata
- Download URL: dynaccount-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55c8a20fa62d2ccc4fb7a786d4341b765059f8497d43386fca1321e0bcbe9c7b
|
|
| MD5 |
d082534c50a5ca803a37ff54782f9128
|
|
| BLAKE2b-256 |
6daad9798a64e721dcca70b319febe9c2b4bde1f0efe4ac24e3c9092f092a8bb
|
File details
Details for the file dynaccount-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dynaccount-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92464ed2cf9b2b64ae657642efe86011fa8e06757584311bb1a07ecf19b69111
|
|
| MD5 |
a7f11a9bf16d6bd4b50839eee8ee2111
|
|
| BLAKE2b-256 |
237c21cf845e41ea8ecb3579a4e48b42bd6f755d193340a6ab832e6d1f0a72c8
|