SecurityCenterExtensions.GetApiCollections 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.
Overloads
| Name | Description |
|---|---|
| GetApiCollections(ArmClient, ResourceIdentifier) |
Gets a collection of ApiCollectionCollection objects within the specified scope. <item> Mocking. To mock this method, please mock GetApiCollections(ResourceIdentifier) instead. </item> |
| GetApiCollections(ResourceGroupResource, CancellationToken) |
Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs. <item> Mocking. To mock this method, please mock GetApiCollections(CancellationToken) instead. </item> |
GetApiCollections(ArmClient, ResourceIdentifier)
- Source:
- SecurityCenterExtensions.cs
Gets a collection of ApiCollectionCollection objects within the specified scope. <item> Mocking. To mock this method, please mock GetApiCollections(ResourceIdentifier) instead. </item>
public static Azure.ResourceManager.SecurityCenter.ApiCollectionCollection GetApiCollections(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope);
static member GetApiCollections : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.SecurityCenter.ApiCollectionCollection
<Extension()>
Public Function GetApiCollections (client As ArmClient, scope As ResourceIdentifier) As ApiCollectionCollection
Parameters
- scope
- ResourceIdentifier
The scope of the resource collection to get.
Returns
Returns a collection of ApiCollectionResource objects.
Exceptions
client is null.
Applies to
GetApiCollections(ResourceGroupResource, CancellationToken)
- Source:
- SecurityCenterExtensions.cs
Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs. <item> Mocking. To mock this method, please mock GetApiCollections(CancellationToken) instead. </item>
public static Azure.Pageable<Azure.ResourceManager.SecurityCenter.ApiCollectionResource> GetApiCollections(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, System.Threading.CancellationToken cancellationToken = default);
static member GetApiCollections : Azure.ResourceManager.Resources.ResourceGroupResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.ApiCollectionResource>
<Extension()>
Public Function GetApiCollections (resourceGroupResource As ResourceGroupResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApiCollectionResource)
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ApiCollectionResource that may take multiple service requests to iterate over.
Exceptions
resourceGroupResource is null.