zrok/sdk/python/sdk/zrok
Michael Quigley cfe8961745
api-v1
2025-02-26 12:04:51 -05:00
..
.swagger-codegen reset -> regenerate (#191) 2024-02-20 11:40:11 -05:00
docs a round of iteration on improving the version management situation more (#881); update deps in ui/agentUi 2025-02-25 11:48:14 -05:00
test a round of iteration on improving the version management situation more (#881); update deps in ui/agentUi 2025-02-25 11:48:14 -05:00
zrok/environment api-v1 2025-02-26 12:04:51 -05:00
zrok_api a round of iteration on improving the version management situation more (#881); update deps in ui/agentUi 2025-02-25 11:48:14 -05:00
.gitignore python sdk work 2023-10-17 11:24:43 -05:00
.swagger-codegen-ignore remove password requirements (#834); deep regeneration of nodejs and python zrok clients 2025-02-04 11:17:01 -05:00
.travis.yml remove password requirements (#834); deep regeneration of nodejs and python zrok clients 2025-02-04 11:17:01 -05:00
README.md a round of iteration on improving the version management situation more (#881); update deps in ui/agentUi 2025-02-25 11:48:14 -05:00
requirements.txt initial work on token revocation 2024-01-25 09:55:45 -06:00
setup.py remove password requirements (#834); deep regeneration of nodejs and python zrok clients 2025-02-04 11:17:01 -05:00
test-requirements.txt remove password requirements (#834); deep regeneration of nodejs and python zrok clients 2025-02-04 11:17:01 -05:00
tox.ini remove password requirements (#834); deep regeneration of nodejs and python zrok clients 2025-02-04 11:17:01 -05:00

zrok_sdk

zrok client access

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import zrok_api 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import zrok_api

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import zrok_api
from zrok_api.rest import ApiException
from pprint import pprint

# Configure API key authorization: key
configuration = zrok_api.Configuration()
configuration.api_key['x-token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-token'] = 'Bearer'

# create an instance of the API class
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
body = zrok_api.ChangePasswordBody() # ChangePasswordBody |  (optional)

try:
    api_instance.change_password(body=body)
except ApiException as e:
    print("Exception when calling AccountApi->change_password: %s\n" % e)

# create an instance of the API class
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
body = zrok_api.InviteBody() # InviteBody |  (optional)

try:
    api_instance.invite(body=body)
except ApiException as e:
    print("Exception when calling AccountApi->invite: %s\n" % e)

# create an instance of the API class
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
body = zrok_api.LoginBody() # LoginBody |  (optional)

try:
    api_response = api_instance.login(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->login: %s\n" % e)

# Configure API key authorization: key
configuration = zrok_api.Configuration()
configuration.api_key['x-token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-token'] = 'Bearer'

# create an instance of the API class
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
body = zrok_api.RegenerateAccountTokenBody() # RegenerateAccountTokenBody |  (optional)

try:
    api_response = api_instance.regenerate_account_token(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->regenerate_account_token: %s\n" % e)

# create an instance of the API class
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
body = zrok_api.RegisterBody() # RegisterBody |  (optional)

try:
    api_response = api_instance.register(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->register: %s\n" % e)

# create an instance of the API class
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
body = zrok_api.ResetPasswordBody() # ResetPasswordBody |  (optional)

try:
    api_instance.reset_password(body=body)
except ApiException as e:
    print("Exception when calling AccountApi->reset_password: %s\n" % e)

# create an instance of the API class
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
body = zrok_api.ResetPasswordRequestBody() # ResetPasswordRequestBody |  (optional)

try:
    api_instance.reset_password_request(body=body)
except ApiException as e:
    print("Exception when calling AccountApi->reset_password_request: %s\n" % e)

# create an instance of the API class
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
body = zrok_api.VerifyBody() # VerifyBody |  (optional)

try:
    api_response = api_instance.verify(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountApi->verify: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to /api/v1

Class Method HTTP request Description
AccountApi change_password POST /changePassword
AccountApi invite POST /invite
AccountApi login POST /login
AccountApi regenerate_account_token POST /regenerateAccountToken
AccountApi register POST /register
AccountApi reset_password POST /resetPassword
AccountApi reset_password_request POST /resetPasswordRequest
AccountApi verify POST /verify
AdminApi add_organization_member POST /organization/add
AdminApi create_account POST /account
AdminApi create_frontend POST /frontend
AdminApi create_identity POST /identity
AdminApi create_organization POST /organization
AdminApi delete_frontend DELETE /frontend
AdminApi delete_organization DELETE /organization
AdminApi grants POST /grants
AdminApi invite_token_generate POST /invite/token/generate
AdminApi list_frontends GET /frontends
AdminApi list_organization_members POST /organization/list
AdminApi list_organizations GET /organizations
AdminApi remove_organization_member POST /organization/remove
AdminApi update_frontend PATCH /frontend
EnvironmentApi disable POST /disable
EnvironmentApi enable POST /enable
MetadataApi client_version_check POST /clientVersionCheck
MetadataApi configuration GET /configuration
MetadataApi get_account_detail GET /detail/account
MetadataApi get_account_metrics GET /metrics/account
MetadataApi get_environment_detail GET /detail/environment/{envZId}
MetadataApi get_environment_metrics GET /metrics/environment/{envId}
MetadataApi get_frontend_detail GET /detail/frontend/{frontendId}
MetadataApi get_share_detail GET /detail/share/{shareToken}
MetadataApi get_share_metrics GET /metrics/share/{shareToken}
MetadataApi get_sparklines POST /sparklines
MetadataApi list_memberships GET /memberships
MetadataApi list_org_members GET /members/{organizationToken}
MetadataApi org_account_overview GET /overview/{organizationToken}/{accountEmail}
MetadataApi overview GET /overview
MetadataApi version GET /version
MetadataApi version_inventory GET /versions
ShareApi access POST /access
ShareApi share POST /share
ShareApi unaccess DELETE /unaccess
ShareApi unshare DELETE /unshare
ShareApi update_access PATCH /access
ShareApi update_share PATCH /share

Documentation For Models

Documentation For Authorization

key

  • Type: API key
  • API key parameter name: x-token
  • Location: HTTP header

Author