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

Uploaded Source

Built Distribution

aserto_directory-0.31.4-py3-none-any.whl (131.0 kB view details)

Uploaded Python 3

File details

Details for the file aserto_directory-0.31.4.tar.gz.

File metadata

  • Download URL: aserto_directory-0.31.4.tar.gz
  • Upload date:
  • Size: 74.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1022-azure

File hashes

Hashes for aserto_directory-0.31.4.tar.gz
Algorithm Hash digest
SHA256 91b0bda795a64827ece9b2c24489e9c8fd3bc24b7d2ada3b2a9e8f858dec668f
MD5 f450c322742e7947f9b3ab8cf0031d25
BLAKE2b-256 2ad6382b1e4b31e46d9617e4114ae17e4c6d97a4d3b39e903fed7dc448304925

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aserto_directory-0.31.4-py3-none-any.whl
  • Upload date:
  • Size: 131.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1022-azure

File hashes

Hashes for aserto_directory-0.31.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8d3eb2cc8da6eb9c8e5909b82d7fc4b1d01d0bbf75e1263343404991fd19301a
MD5 ebf2117f4ffe5bdd64608a8217856189
BLAKE2b-256 cc126bac2801b7f5b00b60a0973f82deaee9d388664c638935524821a568fd10

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