Skip to content

Set-UAJobFeedback

SYNOPSIS

Sets the feedback for a job that has requested it.

SYNTAX

Set-UAJobFeedback -JobFeedback <JobFeedback> [-Response <String>] [-ComputerName <String>] [-AppToken <String>]
 [-UseDefaultCredentials] [<CommonParameters>]

DESCRIPTION

Sets the feedback for a job that has requested it. Use Get-UAJobFeedback to retrieve feedback objects for a job.

EXAMPLES

Example 1

PS C:\> $Job = Get-UAJob -Id 2
PS C:\> $JobFeedback = Get-UAJobFeedback -Job $Job
PS C:\> Set-UAJobFeedback -JobFeedback $JobFeedback -Response "Hello, world!"

Responds to the job feedback with 'Hello, world!'

PARAMETERS

-AppToken

An app token to access the UA API.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ComputerName

The HTTP address of the UA REST API server.

Type: System.String
Parameter Sets: (All)
Aliases: Uri

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-JobFeedback

The job feedback to respond to. Use Get-UAJobFeedback to retrieve a JobFeedback object.

Type: PowerShellUniversal.JobFeedback
Parameter Sets: (All)
Aliases:

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

-Response

The reponse to the feedback.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UseDefaultCredentials

Use default credentials when connecting to the management API

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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

None

OUTPUTS

System.Object

NOTES

Back to top