Update-UDDashboard
SYNOPSIS
Updates a running dashboard.
SYNTAX
Content
Update-UDDashboard -Url <Object> -UpdateToken <Object> -Content <ScriptBlock> [-AllowTLs10]
[<CommonParameters>]
FilePath
Update-UDDashboard -Url <Object> -UpdateToken <Object> -FilePath <String> [-AllowTLs10] [<CommonParameters>]
DESCRIPTION
Updates a running dashboard. To be able to support this cmdlet you need to specify the UpdateToken parameter on Start-UDDashboard.
EXAMPLES
Example 1
PS C:\> Start-UDDashboard -UpdateToken 1234 -Port 8080
PS C:\> Update-UDDashboard -UpdateToken 1234 -Url http://localhost:8080 -Content {
New-UDDashboard -Title "Updated" -Content {
New-UDCard -TItle "Updated Content"
}
}
Starts a dashboard and updates it using Update-UDDashboard.
PARAMETERS
-AllowTLs10
Allows TLS 1.0 for the web request.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Content
The content of the dashboard to update.
Type: System.Management.Automation.ScriptBlock
Parameter Sets: Content
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-FilePath
The file path of a PS1 that returns a New-UDDashboard.
Type: System.String
Parameter Sets: FilePath
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UpdateToken
The update token for the dashboard. This is specified with Start-UDDashboard. Treat this as a password.
Type: System.Object
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
The URL of the running Universal Dashboard.
Type: System.Object
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
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.