gRPC client for Aserto Directory service instances
Project description
Aserto Directory gRPC client
This is an automatically generated client for interacting with Aserto's Directory service using the gRPC protocol.
Installation
Using Pip
pip install aserto-directory
Using Poetry
poetry add aserto-directory
Usage
import grpc
from aserto.directory.reader.v2 import ReaderStub, GetObjectTypesRequest
with grpc.secure_channel(
target="directory.prod.aserto.com:8443",
credentials=grpc.ssl_channel_credentials(),
) as channel:
reader = ReaderStub(channel)
# List all object types in the directory
response = reader.GetObjectTypes(
GetObjectTypesRequest(),
metadata=(
("authorization", f"basic {ASERTO_DIRECTORY_API_KEY}"),
("aserto-tenant-id", ASERTO_TENANT_ID),
),
)
for object_type in response.results:
print("Object Type:", object_type.name)
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
aserto_directory-0.31.1.tar.gz
(69.2 kB
view details)
Built Distribution
File details
Details for the file aserto_directory-0.31.1.tar.gz
.
File metadata
- Download URL: aserto_directory-0.31.1.tar.gz
- Upload date:
- Size: 69.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3553fc0c4c38cfc91a98a09bd724a0d00e642a4f5d8a91b72d22be87217531ce |
|
MD5 | 49d8ab5edd641ef61b0463e0b7e34804 |
|
BLAKE2b-256 | ab11e2d6bdf548eb4bb87c1b621ac98641484ab035df897acadb538e26a4eada |
File details
Details for the file aserto_directory-0.31.1-py3-none-any.whl
.
File metadata
- Download URL: aserto_directory-0.31.1-py3-none-any.whl
- Upload date:
- Size: 121.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08adcce29b6eea2f62139329ebc90b953039eb7e2fb9015a9e45e375dafe8159 |
|
MD5 | 2cb5c7f8d00fbbe4a9234fb6ab4ee9aa |
|
BLAKE2b-256 | 13e836bf7ea55e66791946f3319a1a283d3cb3cab108ab1faae3242d03d03a9d |