Get-NectarDevice
    • 18 Aug 2023
    • 1 Minute to read
    • Contributors
    • Dark
      Light
    • PDF

    Get-NectarDevice

    • Dark
      Light
    • PDF

    Article Summary

    Return a list of Nectar monitored devices

    Syntax

    Get-NectarDevice
      -SearchQuery  <String>
      -OrderByField  <String>
      -OrderDirection  <String>
      -TenantName  <String>
      -PageSize  <Int32>
    

    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 <String>
    Limit the results to the specified search query. Will match against all fields.

    ParameterValue
    Requiredfalse
    Position1
    Requiredfalse
    Default ValueNone
    Accept pipeline input?false
    Accept wildcard characters?false

    -OrderByField <String>
    Order the resultset by the specified field. Choose from id, type, lastTime, displayName, deviceName, description, eventId, time, delay, source, location, sourceId

    ParameterValue
    Requiredfalse
    Position2
    Requiredfalse
    Default ValueNone
    Accept pipeline input?false
    Accept wildcard characters?false

    -OrderDirection <String>
    Sort order. Pick from ASC or DESC

    ParameterValue
    Requiredfalse
    Position3
    Requiredfalse
    Default ValueNone
    Accept pipeline input?false
    Accept wildcard characters?false

    -TenantName <String>
    The name of the Nectar DXP tenant. Used in multi-tenant configurations.

    ParameterValue
    Requiredfalse
    Position4
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -PageSize <Int32>
    The size of the page used to return data. Defaults to 1000

    ParameterValue
    Requiredfalse
    Position5
    Requiredfalse
    Default Value1000
    Accept pipeline input?false
    Accept wildcard characters?false

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses