Acronis
Acronis Cyber Protect Cloud unites backup and next-generation, AI-based anti-malware, antivirus, and endpoint protection management in one solution. Integration and automation provide unmatched ease for service providers — reducing complexity while increasing productivity and decreasing operating costs.
Getting started with Acronis
To start integrating Acronis with Kisi, you need to set up an Acronis Python environment as well as generate authentication tokens (Client ID, Secret, and Data center URL) for use on the Acronis platform. You can find steps on how to do this on the Acronis developer platform.
For the sake of this guide, we will integrate Kisi Places with Acronis Location via a third-party integration tool - Zapier. We’ll focus on a specific use case which is to create a location in Acronis every time a new location is created in Kisi.
Resources we’ll use from Acronis:
- Locations are the groups, registered on the platform, which incorporate infrastructure components.
- Storage is represented as an infrastructure component, like Acronis-hosted cloud storage or partner-hosted storage, that can be registered on the platform and offered in the form of an offering item.
- Owner_tenant_id: The UUID of the tenant a Location belongs to.
- Authenticating.
Steps:
A. Kisi
1. Create a new zap and add the Zapier webhook URL as the trigger.
2. Add this webhook URL as an integration on Kisi, and add the desired event to be tracked. In this case, we want to track place creation events (place.create).
3. Test the Zapier trigger by creating a place on Kisi, and pull the data.
B. Acronis
1. Follow the steps on the Acronis dev platform to learn how to authenticate with Acronis and eventually generate a Client ID, Secret, and Data center URL. These will be useful in the next steps.
2. Add a “Run Python in Code” action to Zapier.
3. Set up action and add the necessary input data from step 1 (name of Location, base URL, owner_tenant_id, Client ID, Secret, and Data center URL).
4. Create a location using the Acronis create location API and insert this into the code block.
import json
import requests
location_data = { "owner_tenant_id": input['owner_tenant_id'],
"name": input['raw_body']['object_name'] }
location_data = json.dumps(location_data, indent=4) response = requests.post( f'{base_url}/locations', headers={'Content-Type': 'application/json', **auth}, data=location_data, )
print(response.json())
5. Test the action to make sure the action is successful. Acronis returns a 200 response in the case of a successful API.
Moving forward, anytime a new place is created on Kisi, it triggers the creation of a new location on Acronis as well. Other possible Acronis and Kisi integrations include user management or data imports.