Skip to main content

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


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.30.0.tar.gz (69.6 kB view details)

Uploaded Source

Built Distribution

aserto_directory-0.30.0-py3-none-any.whl (120.9 kB view details)

Uploaded Python 3

File details

Details for the file aserto-directory-0.30.0.tar.gz.

File metadata

  • Download URL: aserto-directory-0.30.0.tar.gz
  • Upload date:
  • Size: 69.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.7.12 Darwin/23.0.0

File hashes

Hashes for aserto-directory-0.30.0.tar.gz
Algorithm Hash digest
SHA256 dded89cb8e56d88523c1d8656f52be6ef1d7b42ff9dcdd27c90e6b1503c256b7
MD5 bfb2284ff5cdd9208549a1fa2ba288d6
BLAKE2b-256 b6faf00065cecb8b8d8040ce651823793b8859ab5eeb11e040def1458ac333e0

See more details on using hashes here.

File details

Details for the file aserto_directory-0.30.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aserto_directory-0.30.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a09bcc4e26c3f39526fdb100ddec5426585d2207e058f01f305557f9fea25c2
MD5 9a069a1fcaf576f0bbfc65fbd1ecc0ae
BLAKE2b-256 b831678e909e56dad3a5aa6443409da649edb9b2a93661670ae0120b1a468213

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page