Skip to main content

Avi Networks Okta SDK

Introduction

Provides a client abstraction to programmatically perform CRUD operations on resources in the avinetworks Okta org.

Supported objects

  • Applications

  • Users

  • User groups

  • Trusted origins

  • API tokens

Design Overview

The design philosphy is for client operations to achieve a desired state. Therefore if a resource aleady exists, calling create on that same resource will simply return the existing resource. Likewise a delete operations will succeed if the resource already does not exist. Calling get on a non-existant resource will throw an exception.

Return Values

Most client methods will return a JSON representation of a resource, but a few such as delete operations will return the status code of the API request.

Usage Examples

Initialize an API client

The client will typically be initizialized with an API token, but if you need to programatically create API tokens you’ll need to initialize with a username and password.

client = AviOktaClient(token='<your API token>')

Applications

Only SAML application creation is supported for now.

app = client.create_app("my-app", "https://my-app.example.com")
app['_created'] # True
app = client.create_app("my-app")
app['_created'] # False
app = client.get_app(label="my-app")
apps = client.list_apps()
client.delete_app(app['id'])

Users

User creation will also send a user activation email to the specified email address. Application-user resources support up to ten tenant/role mappings with names Tenant<n> and Role<n> where <n> is a number from 1 to 10.

user = client.create_user("FirstName", "LastName", "example@avinetworks.com")
user = client.get_user(login="example@avinetorks.com")
users = client.list_users()
attrs = {'Tenant1': 'my-tenant', 'Role1': 'Tenant-Admin'}
app_user = client.assign_user_to_app(app['id'], user['id'], attributes=attrs)
client.delete_user(user['id'])

User Groups

group = client.create_group('my-group')
group = client.get_group(name='my-group')
groups = client.list_groups()
client.assign_user_to_group(user['id'], group['id'])
client.delete_group(group['id'])

Trusted Origins

trusted_origin = client.create_trusted_origin('My App', 'https://my-app.example.com', cors=False, redirect=True)

API Tokens

Created tokens will be associated with the user who’s credentials were used to initialize the client

token = client.create_token('my-token')

Metadata

Release files for avi-okta 0.0.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for avi-okta 0.0.18
File Size Uploaded
avi_okta-0.0.18.tar.gz 48.0 kB Details

Release files / avi_okta-0.0.18.tar.gz

Download URL avi_okta-0.0.18.tar.gz
Size 48.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3ecf0ddc0c8dd06698b5631d874a71fb19dbc95b90ba4f77aae05ea6c71d3b03
BLAKE2b-256 checksum
How to use checksums
136715141475e2880796ff0963507749205bdd502a0bfaa997ab65cf2eeb4aac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

0.0.18 This release

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page