MockableAuthorizationArmClient.GetEligibleChildResourcesAsync 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 child resources of a resource on which user has eligible access
- Request Path: /{scope}/providers/Microsoft.Authorization/eligibleChildResources
- Operation Id: EligibleChildResources_Get
- Default Api Version: 2020-10-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.Authorization.Models.EligibleChildResource> GetEligibleChildResourcesAsync (Azure.Core.ResourceIdentifier scope, string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEligibleChildResourcesAsync : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Authorization.Models.EligibleChildResource>
override this.GetEligibleChildResourcesAsync : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Authorization.Models.EligibleChildResource>
Public Overridable Function GetEligibleChildResourcesAsync (scope As ResourceIdentifier, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of EligibleChildResource)
Parameters
- 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
An async collection of EligibleChildResource that may take multiple service requests to iterate over.
Exceptions
scope
is null.
Applies to
Azure SDK for .NET