Thales CipherTrust SDK RestAPI
Project description
ciphertrust-sdk
Thales CipherTrust API
Installation
>>> python -m pip install ciphertrust-sdk
Usage
This is a baseline SDK that allows you to pass the url path and parmeters for each action:
- GET
- POST
- DELETE
- PATCH
Please see the CipherTrust Manager Playground to see full url_paths. This will only pass the authorization and return the results as described within the documentation. It can be leveraged to handle authorization and return the work for orchestration.
Creating API Authentication:
from ciphertrust.api import API
import json
# User based credentials
username = "username"
passwd = "secretpassword"
host = "thales-host01.example.com"
api = API(username=username,password=passwd,hostname=host,verify="/path/to/certificate.pem")
response = api.get.call(url_path="vault/keys2/")
print(json.dumps(response, indent=2))
Sample Output:
{
"skip": 0,
"limit": 10,
"total": 100,
"resources": [
{
"id": "",
"uri": "",
"account": "",
"application": "",
"devAccount": "",
"createdAt": "",
"name": "",
"updatedAt": "",
"activationDate": "",
"state": "",
"usageMask": 0,
"meta": null,
"objectType": "",
"sha1Fingerprint": "",
"sha256Fingerprint": "",
"defaultIV": "",
"version": 0,
"algorithm": "",
"size": 0,
"muid": ""
}
]
}
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
ciphertrust-sdk-1.0.1.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for ciphertrust_sdk-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86f0c93d2616ca64ea61486b36ab83865d99d807e18ace2c1a622743f090406b |
|
MD5 | 6b90b327d2e957b99d0f29ef58da0328 |
|
BLAKE2b-256 | 4ac3626b79d71c47d44fef43fc2eecd2aff188f501f22a1cba8c12352edeeb23 |