TaskAgentHttpClientBase.UpdateDeploymentTargetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.