Bearbeiten

Freigeben über


TaskAgentHttpClientBase.GetDeploymentTargetAsync Method

Definition

Overloads

GetDeploymentTargetAsync(Guid, Int32, Int32, Nullable<DeploymentTargetExpands>, Object, CancellationToken)

[Preview API] Get a deployment target by its ID in a deployment group

GetDeploymentTargetAsync(String, Int32, Int32, Nullable<DeploymentTargetExpands>, Object, CancellationToken)

[Preview API] Get a deployment target by its ID in a deployment group

GetDeploymentTargetAsync(Guid, Int32, Int32, Nullable<DeploymentTargetExpands>, Object, CancellationToken)

[Preview API] Get a deployment target by its ID in a deployment group

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine> GetDeploymentTargetAsync(Guid project, int deploymentGroupId, int targetId, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentTargetExpands> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetDeploymentTargetAsync : Guid * int * int * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentTargetExpands> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
override this.GetDeploymentTargetAsync : Guid * int * int * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentTargetExpands> * 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 deployment target belongs.

targetId
Int32

ID of the deployment target to return.

expand
Nullable<DeploymentTargetExpands>

Include these additional details in the returned objects.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetDeploymentTargetAsync(String, Int32, Int32, Nullable<DeploymentTargetExpands>, Object, CancellationToken)

[Preview API] Get a deployment target by its ID in a deployment group

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine> GetDeploymentTargetAsync(string project, int deploymentGroupId, int targetId, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentTargetExpands> expand = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetDeploymentTargetAsync : string * int * int * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentTargetExpands> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
override this.GetDeploymentTargetAsync : string * int * int * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentTargetExpands> * 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 deployment target belongs.

targetId
Int32

ID of the deployment target to return.

expand
Nullable<DeploymentTargetExpands>

Include these additional details in the returned objects.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to