You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""The class includes all necessary methods to access the Grafana licensing API endpoints. Be aware that the functionality is a Grafana ENTERPRISE v7.4+ feature
15
+
16
+
HINT: Note Grafana Enterprise API need required permissions if fine-grained access control is enabled
17
+
18
+
Args:
19
+
grafana_api_model (APIModel): Inject a Grafana API model object that includes all necessary values and information
20
+
21
+
Attributes:
22
+
grafana_api_model (APIModel): This is where we store the grafana_api_model
23
+
"""
24
+
25
+
def__init__(self, grafana_api_model: APIModel):
26
+
self.grafana_api_model=grafana_api_model
27
+
28
+
defcheck_license_availability(self):
29
+
"""The method includes a functionality to checks if a valid license is available
30
+
31
+
Required Permissions:
32
+
Action: licensing:read
33
+
Scope: N/A
34
+
35
+
Raises:
36
+
Exception: Unspecified error by executing the API call
37
+
38
+
Returns:
39
+
api_call (bool): Returns the result if the license is available or not
0 commit comments