Bearbeiten

Freigeben über


TaskAgentHttpClientBase.UpdateDeploymentTargetAsync Method

Definition

Overloads

UpdateDeploymentTargetAsync(Guid, Int32, Int32, DeploymentMachine, Object, CancellationToken)

[Preview API] Update a deployment target and its agent properties in a deployment group. Generally this is called by agent configuration tool.

UpdateDeploymentTargetAsync(String, Int32, Int32, DeploymentMachine, Object, CancellationToken)

[Preview API] Update a deployment target and its agent properties in a deployment group. Generally this is called by agent configuration tool.

UpdateDeploymentTargetAsync(Guid, Int32, Int32, DeploymentMachine, Object, CancellationToken)

[Preview API] Update a deployment target and its agent properties in a deployment group. Generally this is called by agent configuration tool.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine> UpdateDeploymentTargetAsync(Guid project, int deploymentGroupId, int targetId, Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine machine, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateDeploymentTargetAsync : Guid * int * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
override this.UpdateDeploymentTargetAsync : Guid * int * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>

Parameters

project
Guid

Project ID

deploymentGroupId
Int32

ID of the deployment group in which deployment target is updated.

targetId
Int32

ID of the deployment target to update.

machine
DeploymentMachine

Deployment target to update.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

UpdateDeploymentTargetAsync(String, Int32, Int32, DeploymentMachine, Object, CancellationToken)

[Preview API] Update a deployment target and its agent properties in a deployment group. Generally this is called by agent configuration tool.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine> UpdateDeploymentTargetAsync(string project, int deploymentGroupId, int targetId, Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine machine, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateDeploymentTargetAsync : string * int * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
override this.UpdateDeploymentTargetAsync : string * int * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>

Parameters

project
String

Project ID or project name

deploymentGroupId
Int32

ID of the deployment group in which deployment target is updated.

targetId
Int32

ID of the deployment target to update.

machine
DeploymentMachine

Deployment target to update.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to