# Need assistances with Settings 2.0 API call

**URL:** <https://community.dynatrace.com/t/need-assistances-with-settings-2-0-api-call/38668>\
**Category:** Dynatrace API\
**Tags:** settings, dynatrace-api\
**Created:** [March 2, 2023, 2:41pm UTC](https://community.dynatrace.com/t/need-assistances-with-settings-2-0-api-call/38668 "2023-03-02T14:41:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ct\_27](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ct_27/32/10499_2.png) [@ct\_27](https://community.dynatrace.com/u/ct_27)\
**Post date:** [March 2, 2023, 2:41pm UTC](https://community.dynatrace.com/t/need-assistances-with-settings-2-0-api-call/38668/1 "2023-03-02T14:41:16Z")

</div>

I seem to struggle a bit wit the Settings API. I’m trying to list all hosts in my environment that have custom anomaly disk detection configurations.&nbsp; I tried the 'Hierarchy and overrides" but the list it provides is definitely not right.

This is the schema&nbsp;builtin:anomaly-detection.infrastructure-disks.per-disk-override.

I’m trying to list each host that has custom disk-overrides and then list what each of those are. (at the per-disk level)&nbsp; I need to report on this as part of a QA process of our monitors.

I’m looking for any guidance though I admit I’m afraid the solution is going to be a very code-level set of multiple-API calls to obtain. This Settings api is far more complicated than the old API created for each function.

Thanks in advance to anyone with guidance.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 4, 2023, 6:12pm UTC](https://community.dynatrace.com/t/need-assistances-with-settings-2-0-api-call/38668/2 "2023-03-04T18:12:41Z")

</div>

Hi&nbsp;[@ct\_27](https://community.dynatrace.com/user/38037)

Yep you will need a small automation code that will collect all the _ **object ids** _ with v2\*/settings/objects\* and then for each&nbsp;_ **objectId** _&nbsp; fetch with _v2/settings/objects/{objectId}_&nbsp;the&nbsp;_ **hostid** &nbsp;_from the scope filed and if you need the host name … you know what to do with _v1/entity/infrastructure/hosts/{meIdentifier}._

HTH

Yos

---

<div class="post-metadata">

**Author:** ![ct\_27](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ct_27/32/10499_2.png) [@ct\_27](https://community.dynatrace.com/u/ct_27)\
**Post date:** [March 4, 2023, 8:19pm UTC](https://community.dynatrace.com/t/need-assistances-with-settings-2-0-api-call/38668/3 "2023-03-04T20:19:26Z")

</div>

Thank you&nbsp;[@Yosi\_Neuman](https://community.dynatrace.com/user/6931)&nbsp;for confirming what i was afraid to be the solution.

For those reading this post, I use a product called Node-Red to handle such advanced API call requirements. I suggest others give it a try as a low-code solution to iterate over the results of one API (and pages) to then collect details from a second, third, forth API. Apparently this will be needed if having to use Settings 2.0 API.

Most large companies probably don’t have issue with such code dependent approaches because they have multiple resources and developers at hand.&nbsp; I’m in a situation where it’s 2 people supporting this service, so we need APIs that are more efficient, require less code, or use low-code solutions to fill in for lack of resources.

Dynatrace I’d be interested to here from your API team why you’re trying to move to a One-API-Fits-All solution with Settings 2.0.&nbsp; This is making it more difficult to use Dynatrace.

---

<div class="post-metadata">

**Author:** ![Bert\_VanderHeyd](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bert_vanderheyd/32/162_2.png) [@Bert\_VanderHeyd](https://community.dynatrace.com/u/Bert_VanderHeyd)\
**Post date:** [March 10, 2023, 8:40pm UTC](https://community.dynatrace.com/t/need-assistances-with-settings-2-0-api-call/38668/4 "2023-03-10T20:40:25Z")

</div>

I like the settings API a lot. The fact is that the last year a huge amount of possible config was added to Dynatrace. Having separate API’s for them would not be better or worse in my opinion. There would just be a lot of them and probably less consistent.

As an alternative for your question you could use monaco v2 ([Release Preview Release 2.0.0 · Dynatrace/dynatrace-configuration-as-code · GitHub](https://github.com/Dynatrace/dynatrace-configuration-as-code/releases/tag/v2.0.0-rc.4)) and download the configuration to start with.  
But I would also invest in a GitOps approach to maintain the configuration so you know exactly at any time what the deviations of all settings are on all scopes.
