Skip to content

ConvertFrom-ConfigurationItem

SYNOPSIS

Convierte un elemento de la Configuración de API genérica en la versión fuertemente tipificada de ese tipo de objeto.

SYNTAX

ConvertFrom-ConfigurationItem [-Path] <String> [-ItemType] <String> [<CommonParameters>]

DESCRIPTION

Convierte un elemento de Configuración de API genérica en la versión fuertemente tipificada de ese tipo de objeto. Por ejemplo, un elemento de configuración que representa una cámara tiene un tipo de elemento de cámara y una ruta como 'Camera[a6756a0e-886a-4050-a5a5-81317743c32a]'. Algunos comandos requieren un objeto de Cámara fuertemente tipificada como parámetro, por lo que si tiene un elemento genérico como el que obtiene de Find-ConfigurationItem o Get-ConfigurationItem, puede convertir ese elemento en una clase fuertemente tipificada canalizando ese elemento a ConvertFrom-ConfigurationItem.

REQUIREMENTS

  • Requires VMS connection and will attempt to connect automatically

EXAMPLES

EXAMPLE 1

Find-ConfigurationItem -ItemType Camera -EnableFilter Enabled | ConvertFrom-ConfigurationItem

Encuentra todas las cámaras habilitadas y las convierte en objetos de cámara. Esto debería funcionar más rápido que 'Get-VmsHardware | Where-Object Enabled | Get-VmsCamera | Where-Object Enabled'

PARAMETERS

-ItemType

Especifica el valor del 'ItemType' de Milestone como 'Camera', 'Hardware', o 'InputEvent'

Type: String
Parameter Sets: (All)
Aliases:

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

-Path

Specifies the Milestone Configuration API 'Path' value of the configuration item. For example, 'Hardware[a6756a0e-886a-4050-a5a5-81317743c32a]' where the guid is the ID of an existing Hardware item.

Especifica el valor 'Path' de la API de configuración de Milestone del elemento de configuración. Por ejemplo, 'Hardware [a6756a0e-886a-4050-a5a5-81317743c32a]' donde el GUID es el ID de un elemento de hardware existente.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
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

NOTES

No todos los ItemType disponibles a través de la API de configuración tienen clases coincidentes "fuertemente tipificada", por lo que para los tipos de elementos que se usan con menos frecuencia, es posible que vea un error al usar esta función.

Online Help