SnykBrokerConnection
Model for Snyk Broker Connections.
Overview
This model represents broker connections integrated with an organization. Broker connections allow Snyk to access private repositories and registries.
Uses the Snyk v2 REST API endpoint: /orgs/{org_id}/brokers/connections
import clearskies
from clearskies_snyk.models import SnykBrokerConnection
def my_handler(snyk_broker_connection: SnykBrokerConnection):
# Fetch all broker connections for an org
connections = snyk_broker_connection.where("org_id=org-id-123")
for conn in connections:
print(f"Connection: {conn.name} - Type: {conn.connection_type}")