--- title: "Get-NectarDevice" slug: "get-nectardevice" updated: 2023-08-18T16:18:53Z published: 2023-08-18T16:18:53Z canonical: "support.nectarcorp.com/get-nectardevice" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.nectarcorp.com/llms.txt > Use this file to discover all available pages before exploring further. # Get-NectarDevice Return a list of Nectar monitored devices ## Syntax ``` Get-NectarDevice -SearchQuery -OrderByField -OrderDirection -TenantName -PageSize ``` ## Examples ### Example 1 ``` Get-NectarDevice ``` Returns a list of all devices ### Example 2 ``` Get-NectarDevice -SearchQuery Dallas ``` Returns a list of devices that has 'Dallas' in any field ### Example 3 ``` Get-NectarDevice -OrderByField HealthStatus -OrderDirection Descending ``` Returns a list of devices sorted by Health Status ## Parameters **-SearchQuery ** Limit the results to the specified search query. Will match against all fields. | Parameter | Value | | --- | --- | | Required | false | | Position | 1 | | Required | false | | Default Value | None | | Accept pipeline input? | false | | Accept wildcard characters? | false | **-OrderByField ** Order the resultset by the specified field. Choose from id, type, lastTime, displayName, deviceName, description, eventId, time, delay, source, location, sourceId | Parameter | Value | | --- | --- | | Required | false | | Position | 2 | | Required | false | | Default Value | None | | Accept pipeline input? | false | | Accept wildcard characters? | false | **-OrderDirection ** Sort order. Pick from ASC or DESC | Parameter | Value | | --- | --- | | Required | false | | Position | 3 | | Required | false | | Default Value | None | | Accept pipeline input? | false | | Accept wildcard characters? | false | **-TenantName ** The name of the Nectar DXP tenant. Used in multi-tenant configurations. | Parameter | Value | | --- | --- | | Required | false | | Position | 4 | | Required | false | | Default Value | None | | Accept pipeline input? | true (ByPropertyName) | | Accept wildcard characters? | false | **-PageSize ** The size of the page used to return data. Defaults to 1000 | Parameter | Value | | --- | --- | | Required | false | | Position | 5 | | Required | false | | Default Value | 1000 | | Accept pipeline input? | false | | Accept wildcard characters? | false |