TaskAgentHttpClientBase.AddDeploymentTargetAsync 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
| AddDeploymentTargetAsync(Guid, Int32, DeploymentMachine, Object, CancellationToken) |
[Preview API] Register a deployment target to a deployment group. Generally this is called by agent configuration tool. |
| AddDeploymentTargetAsync(String, Int32, DeploymentMachine, Object, CancellationToken) |
[Preview API] Register a deployment target to a deployment group. Generally this is called by agent configuration tool. |
AddDeploymentTargetAsync(Guid, Int32, DeploymentMachine, Object, CancellationToken)
[Preview API] Register a deployment target to a deployment group. Generally this is called by agent configuration tool.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine> AddDeploymentTargetAsync(Guid project, int deploymentGroupId, Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine machine, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member AddDeploymentTargetAsync : Guid * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
override this.AddDeploymentTargetAsync : Guid * 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 to which the deployment target is registered.
- machine
- DeploymentMachine
Deployment target to register.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
AddDeploymentTargetAsync(String, Int32, DeploymentMachine, Object, CancellationToken)
[Preview API] Register a deployment target to a deployment group. Generally this is called by agent configuration tool.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine> AddDeploymentTargetAsync(string project, int deploymentGroupId, Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine machine, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member AddDeploymentTargetAsync : string * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
override this.AddDeploymentTargetAsync : string * 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 to which the deployment target is registered.
- machine
- DeploymentMachine
Deployment target to register.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.