---
title: getTopLevelResources
type: method
---

A method that retrieves only top-level [Resources](resource-object).

<div class='spec'>

.getTopLevelResources()

</div>

Will return an array of resources that are not nested under any other resource. Nested child resources are available via the [getChildren](Resource-getChildren) method.
