AuthorizationExtensions.GetEligibleChildResources Method

Definition

Get the child resources of a resource on which user has eligible access <item> Mocking. To mock this method, please mock GetEligibleChildResources(ResourceIdentifier, String, CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.Authorization.Models.EligibleChildResource> GetEligibleChildResources(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetEligibleChildResources : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Authorization.Models.EligibleChildResource>
<Extension()>
Public Function GetEligibleChildResources (client As ArmClient, scope As ResourceIdentifier, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of EligibleChildResource)

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

filter
String

The filter to apply on the operation. Use $filter=resourceType+eq+'Subscription' to filter on only resource of type = 'Subscription'. Use $filter=resourceType+eq+'subscription'+or+resourceType+eq+'resourcegroup' to filter on resource of type = 'Subscription' or 'ResourceGroup'.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

client is null.

Applies to