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

Uploaded Source

Built Distribution

aserto_directory-0.31.3-py3-none-any.whl (127.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aserto_directory-0.31.3.tar.gz
  • Upload date:
  • Size: 73.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.14 Linux/6.5.0-1016-azure

File hashes

Hashes for aserto_directory-0.31.3.tar.gz
Algorithm Hash digest
SHA256 95c9788615706cf6298b3bca4267b1cd91fa671346d37bc919282570cdcd5a0e
MD5 dfb97c957cffb7ebc24fc5e04df0ce9b
BLAKE2b-256 d638369582c89b4f3af350dab2431fdd5fd68d985b9b211bd1d969ada98a2108

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aserto_directory-0.31.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ab2edab1349345fd435e6b2353f9434e689149d4fb5fe6b724cb4ca08f08db20
MD5 43ba85ef0be6201a23609b22e8a750cd
BLAKE2b-256 b09a03d62e7b491abd45940b36abc64cdbd7df7affa6a72126b7cc2a16a34210

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