Language

CommvaultContentStoreExtensions.CountByProtectionGroupsAsync Method

Definition

Gets the count of protected items for provided CCA resource IDs across subscriptions. <item> Mocking. To mock this method, please mock CountByProtectionGroupsAsync(CountProtectedItemsContent, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CommvaultContentStore.Models.CountProtectedItemsResult>> CountByProtectionGroupsAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.CommvaultContentStore.Models.CountProtectedItemsContent content, System.Threading.CancellationToken cancellationToken = default);
static member CountByProtectionGroupsAsync : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.CommvaultContentStore.Models.CountProtectedItemsContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CommvaultContentStore.Models.CountProtectedItemsResult>>
<Extension()>
Public Function CountByProtectionGroupsAsync (tenantResource As TenantResource, content As CountProtectedItemsContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CountProtectedItemsResult))

Parameters

tenantResource
TenantResource

The TenantResource the method will execute against.

content
CountProtectedItemsContent

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

tenantResource is null.

Applies to