Skip to main content

Asset Relationships

Generated Cmdlet Help

This page has been generated from the NinjaOne PowerShell module source. To make changes please edit the appropriate PowerShell source file.

SYNOPSIS

Gets asset relationships.

SYNTAX

All (Default)

Get-NinjaOneAssetRelationships [-ProgressAction <ActionPreference>] [<CommonParameters>]

ByEntity

Get-NinjaOneAssetRelationships -EntityType <String> -EntityId <Int32> [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION

Retrieves asset relationships for all supported entities or for a specific entity from the NinjaOne v2 API.

EXAMPLES

EXAMPLE 1

Get-NinjaOneAssetRelationships

Gets all available asset relationships.

EXAMPLE 2

Get-NinjaOneAssetRelationships -EntityType DEVICE -EntityId 1

Gets asset relationships for the specified entity.

PARAMETERS

-EntityType

The related entity type.

Type: String
Parameter Sets: ByEntity
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-EntityId

The related entity ID.

Type: Int32
Parameter Sets: ByEntity
Aliases:

Required: True
Position: Named
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

A PowerShell object containing the response.

NOTES

https://docs.homotechsual.dev/modules/ninjaone/commandlets/Get/assetrelationships