ServiceGroupResource.GetAncestors(CancellationToken) Method

Definition

Get the details of the serviceGroup's ancestors

  • Request Path. : /providers/Microsoft.Management/serviceGroups/{serviceGroupName}/listAncestors.
  • Operation Id. : ServiceGroups_ListAncestors.
  • Default Api Version. : 2024-02-01-preview.
  • Resource. : ServiceGroupResource.
public virtual Azure.Pageable<Azure.ResourceManager.ServiceGroups.ServiceGroupResource> GetAncestors(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAncestors : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>
override this.GetAncestors : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>
Public Overridable Function GetAncestors (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceGroupResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ServiceGroupResource that may take multiple service requests to iterate over.

Applies to