Skip to main content

Add-ClientResponseType

SYNOPSIS​

Add a PowerShell type to a Cumulocity object

SYNTAX​

Add-ClientResponseType
-InputObject <Object[]>
[-Type] <String>
[<CommonParameters>]

DESCRIPTION​

This allows a custom type name to be given to powershell objects, so that the view formatting can be used (i.e. .ps1xml)

EXAMPLES​

EXAMPLE 1​

$data | Add-ClientResponseType -Type "customType1"

Add a type customType1 to the input object

PARAMETERS​

-InputObject​

Object to add the type name to

Type: Object[]
Parameter Sets: (All)
Aliases:

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

-Type​

Type name to assign to the input objects

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
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​

Object[]​

OUTPUTS​

Object[]​

NOTES​