Client

Client is the root object of the ngrok-api library. Construct a Client with an API Key. Then you can access API Services as properties of the Client object:

import ngrok

# construct the api client
ng = ngrok.Client("<API KEY>")

# list all ip policies
for policy in ng.ip_policies.list():
    print(policy)

# create an ngrok agent authtoken
cred = ng.credentials.create()
print(cred)
class ngrok.Client(api_key, base_url='https://api.ngrok.com')[source]
property abuse_reports
Return type

AbuseReportsClient

property api_keys
Return type

APIKeysClient

property certificate_authorities
Return type

CertificateAuthoritiesClient

property credentials
Return type

CredentialsClient

property endpoint_configurations

Endpoint Configuration managementAn Endpoint Configuration <https://ngrok.com/docs/ngrok-link#api-endpoint-configurations>`_ describes a ngrok network endpoint instance.*Endpoints are your gateway to ngrok features!*

Return type

EndpointConfigurationsClient

property event_destinations
Return type

EventDestinationsClient

property event_streams
Return type

EventStreamsClient

property ip_policies
Return type

IPPoliciesClient

property ip_policy_rules
Return type

IPPolicyRulesClient

property ip_restrictions
Return type

IPRestrictionsClient

property ip_whitelist
Return type

IPWhitelistClient

property pointcfg_module
property reserved_addrs
Return type

ReservedAddrsClient

property reserved_domains
Return type

ReservedDomainsClient

property ssh_certificate_authorities
Return type

SSHCertificateAuthoritiesClient

property ssh_credentials
Return type

SSHCredentialsClient

property ssh_host_certificates
Return type

SSHHostCertificatesClient

property ssh_user_certificates
Return type

SSHUserCertificatesClient

property tls_certificates
Return type

TLSCertificatesClient

property tunnel_sessions
Return type

TunnelSessionsClient

property tunnels
Return type

TunnelsClient