--- title: "system.config.getResources" description: "Returns all resources of the specified type." --- # system.config.getResources > Returns all resources of the specified type. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](ignition-modules\vision\vision-project-properties\vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.config.getResources(*moduleId, typeId)` :::tip An asterisk indicates that **all** parameters following it are expecting keywords when the function is being called in your script. This means that, when using an asterisk-marked parameter, **both** the parameter and argument **must** be specified. For example, `moduleId="ignition"`. ::: ### Parameters | Type | Parameter | Description | |---|---|---| | String | moduleId | The module ID portion of the resource type identifier. | | String | typeId | The type ID portion of the resource type identifier. | ### Returns **List** - A List of all the resources of the specified type, as a PyResource. ### Scope Gateway ## Code Examples ```python title="Code Snippet" # This example will return all available database connections on the Gateway and # print them to a label on the same view. moduleId = "ignition" typeId = "database-connection" allDBConnections = system.config.getResources(moduleId = moduleId, typeId = typeId) self.getSibling("Label").props.text = str(allDBConnections) ```