ServiceGroupResource.GetAncestorsAsync(CancellationToken) 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.
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.AsyncPageable<Azure.ResourceManager.ServiceGroups.ServiceGroupResource> GetAncestorsAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAncestorsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>
override this.GetAncestorsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>
Public Overridable Function GetAncestorsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ServiceGroupResource)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ServiceGroupResource that may take multiple service requests to iterate over.