Getting started
Welcome to the documentation of the Armis Python SDK!
This website will provide you all the information you'll need to interact with the SDK.
Installation
Use your favourite package manager to install the SDK, for example:
Usage
All interaction with the SDK happens through the ArmisSdk class. You'll need five things:
- Audience: The url of the tenant you want to interact with, including trailing slash (e.g.
https://acme.armis.com/). - Client ID: The email address of the user account within the tenant that was used to generate the Client Secret.
- Client Secret: The confidential credential generated by your customer within Armis, paired with the Client ID.
- Vendor ID: An identifier unique to your developer account or integration, obtained when you register on our developer portal.
- Scopes: The specific permissions required by your access token to interact with the desired API endpoints.
You can either provide these values using the environment variables ARMIS_AUDIENCE, ARMIS_CLIENT_ID, ARMIS_CLIENT_SECRET, ARMIS_VENDOR_ID, and ARMIS_CLIENT_ID:
or by passing them explicitly:
Tip
If you're building an application that interacts with multiple tenants, you can populate only the ARMIS_VENDOR_ID and ARMIS_SCOPES environment variable and pass the audience, client_id and client_secret explicitly:
Entity clients
Once you have an instance of ArmisSdk, you can start interacting with the various clients. Each handles use-cases of a specific entity.
Info
Note that all functions in this SDK that eventually make HTTP requests are asynchronous.
However, for convenience, all public asynchronous functions can also be executed in a synchronous way.
For example, if you want to update a site's location: