Table of contents
Introduction
This article is dedicated to some examples of how to get, modify, and upload new report schedules to ILAP analytics. All the examples are written using Python, but the concepts used in each can be used in other languages too.
Authentication
As ILAP Analytics uses Azure.Identity, we recommend you follow their security guidelines for authentication found here. In all the examples, we show DefaultAzureCredential. This implementation has a credential chain that chains multiple different authentication methods together until it finds one that is setup correctly. You can read more about it here.
Python
from azure.identity import DefaultAzureCredential
# Get token
credential = DefaultAzureCredential() # DefaultAzureCredential will try and find the option that is setup
token = credential.get_token(f"api://{your_api_azure_id}/.Default")Node
import { DefaultAzureCredential } from "@azure/identity";
const credential = new DefaultAzureCredential();
const token = credential.getToken(`api://${your_api_azure_id}/.Default`);C#
using Azure.Identity;
string scope = $"api://{your_api_azure_id}/.default";
DefaultAzureCredential credential = new();
var request = new TokenRequestContext(new[] { scope })
var token = credential.GetToken(request);Getting Report Schedules
Getting some report schedule types
Get a specific schedule and upload new report
Get specific and upload new report
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article