Bearbeiten

Freigeben über


TaskAgentHttpClientBase.GetServiceGroupAsync Method

Definition

Overloads

GetServiceGroupAsync(Guid, Int32, Int32, Object, CancellationToken)

[Preview API]

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.KubernetesServiceGroup> GetServiceGroupAsync(Guid project, int environmentId, int serviceGroupId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetServiceGroupAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.KubernetesServiceGroup>
override this.GetServiceGroupAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.KubernetesServiceGroup>

Parameters

project
Guid

Project ID

environmentId
Int32
serviceGroupId
Int32
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetServiceGroupAsync(String, Int32, Int32, Object, CancellationToken)

[Preview API]

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.KubernetesServiceGroup> GetServiceGroupAsync(string project, int environmentId, int serviceGroupId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetServiceGroupAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.KubernetesServiceGroup>
override this.GetServiceGroupAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.KubernetesServiceGroup>

Parameters

project
String

Project ID or project name

environmentId
Int32
serviceGroupId
Int32
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to