Bearbeiten

Freigeben über


TaskAgentHttpClientBase.GenerateDeploymentPoolAccessTokenAsync Method

Definition

[Preview API] GET a PAT token for managing (configuring, removing, tagging) deployment agents in a deployment pool.

public virtual System.Threading.Tasks.Task<string> GenerateDeploymentPoolAccessTokenAsync(int poolId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GenerateDeploymentPoolAccessTokenAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GenerateDeploymentPoolAccessTokenAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>

Parameters

poolId
Int32

ID of the deployment pool in which deployment agents are managed.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to