18 Oct 2023
04:03 PM
- last edited on
23 Oct 2023
08:47 AM
by
MaciejNeumann
Hello everyone,
Is there any dynatrace API which we can utilise to fetch the configured quotas / limits (which we have configured on our own ) for Host units, DDUs and other license info?
So, what we see in the dynatrace UI (called as max limits / quotas), I NEED TO FETCH THAT INFO USING THE API and then calculate how much DDUs/HUs quota is left in my dynatrace environment. (after subtracting it from the consumed DDUs/HUs)
Thank you in advance !!
Solved! Go to Solution.
18 Oct 2023 10:25 PM - edited 18 Oct 2023 10:26 PM
19 Oct 2023 08:15 AM
Hi @radek_jasinski
I am NOT looking for license consumption data. This I already know. 🙂
I am looking for an api which could fetch me the configured quotas / (max) limits for license consumption / HU / DDU.
Thanks
19 Oct 2023 08:30 AM
Hi,
I would use the settings API for this, as each configuration variable is reflected in a parameter object: https://www.dynatrace.com/support/help/shortlink/api-v2-settings
Here is a more comprehensive description:
https://www.dynatrace.com/support/help/shortlink/settings20-landing
However, these settings only apply to a specific environment and not to the entire Dynatrace Managed (or SaaS) cluster. If you want to get the information from the CMC, you have to use the cluster API (I don't know if such detailed license consumption limit settings are available).
https://www.dynatrace.com/support/help/managed-cluster/cluster-api/cluster-api-v2
Radek
19 Oct 2023 01:05 PM
Thanks @radek_jasinski .
I used this api https://www.dynatrace.com/support/help/managed-cluster/cluster-api/cluster-api-v2 and is able to fetch the quotas.
However, the values are coming different from the ones which I see the dynatrace console. For some environments, the values are correct (HU/DDU and other values) & for some environments, the values are wrong.
This is an unexpected bahavior.
I don't understand which one is correct?
the api call or the dynatrace console
19 Oct 2023 01:11 PM
In my experience, the data in the DT GUI can refresh with a slight delay.
Can you show an example? Perhaps you have chosen a different data range:)
19 Oct 2023 02:38 PM
Yes, I am now able to see the correct data. It was an issue from my end.
Thank you so much for your help 🙂
19 Oct 2023 02:39 PM
Great 👍