TaskAgentHttpClientBase.GenerateDeploymentPoolAccessTokenAsync 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.
[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.