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

Uploaded Source

Built Distribution

aserto_directory-0.30.1-py3-none-any.whl (121.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aserto_directory-0.30.1.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure

File hashes

Hashes for aserto_directory-0.30.1.tar.gz
Algorithm Hash digest
SHA256 83c7ac6483140d6591e69660d67e9b207906f2a3a2e79e97cfed5a68bff04432
MD5 e65741bab5c0720cf715335e25619552
BLAKE2b-256 21819996aed8a5a4deda7ba2d9f9f80c68c7f76f8fce9d7744523578a7b010b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aserto_directory-0.30.1-py3-none-any.whl
  • Upload date:
  • Size: 121.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure

File hashes

Hashes for aserto_directory-0.30.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f53fe6ae09f77b4ba0985b2bcb43038e95a33e19488f731e396fe5f8031f5fa
MD5 2744dca7c99066d87a33f45cf502bf39
BLAKE2b-256 47e1dfbb3081771e11a2973e17c4df8946e76ece0a9282cedee49ab8498fe0f5

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