SecurityCenterExtensions.GetApiCollection Method

Definition

Gets an Azure API Management API if it has been onboarded to Microsoft Defender for APIs. If an Azure API Management API is onboarded to Microsoft Defender for APIs, the system will monitor the operations within the Azure API Management API for intrusive behaviors and provide alerts for attacks that have been detected. <item> Mocking. To mock this method, please mock GetApiCollection(ResourceIdentifier, String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.SecurityCenter.ApiCollectionResource> GetApiCollection(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string apiId, System.Threading.CancellationToken cancellationToken = default);
static member GetApiCollection : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.ApiCollectionResource>
<Extension()>
Public Function GetApiCollection (client As ArmClient, scope As ResourceIdentifier, apiId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ApiCollectionResource)

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope of the resource collection to get.

apiId
String

API revision identifier. Must be unique in the API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to