Share via


SecurityCenterExtensions.GetSecurityCenterApiCollections Method

Definition

Overloads

GetSecurityCenterApiCollections(ResourceGroupResource, String)

Gets a collection of SecurityCenterApiCollectionResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSecurityCenterApiCollections(String) instead.

GetSecurityCenterApiCollections(ResourceGroupResource, CancellationToken)

Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/apiCollections
  • Operation Id: APICollections_ListByResourceGroup
  • Default Api Version: 2023-11-15
  • Resource: SecurityCenterApiCollectionResource
GetSecurityCenterApiCollections(SubscriptionResource, CancellationToken)

Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/apiCollections
  • Operation Id: APICollections_ListBySubscription
  • Default Api Version: 2023-11-15
  • Resource: SecurityCenterApiCollectionResource

GetSecurityCenterApiCollections(ResourceGroupResource, String)

Source:
SecurityCenterExtensions.cs

Gets a collection of SecurityCenterApiCollectionResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSecurityCenterApiCollections(String) instead.

public static Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionCollection GetSecurityCenterApiCollections (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string serviceName);
static member GetSecurityCenterApiCollections : Azure.ResourceManager.Resources.ResourceGroupResource * string -> Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionCollection
<Extension()>
Public Function GetSecurityCenterApiCollections (resourceGroupResource As ResourceGroupResource, serviceName As String) As SecurityCenterApiCollectionCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

serviceName
String

The name of the API Management service.

Returns

An object representing collection of SecurityCenterApiCollectionResources and their operations over a SecurityCenterApiCollectionResource.

Exceptions

resourceGroupResource or serviceName is null.

serviceName is an empty string, and was expected to be non-empty.

Applies to

GetSecurityCenterApiCollections(ResourceGroupResource, CancellationToken)

Source:
SecurityCenterExtensions.cs

Gets a list of API collections within a resource group that have been onboarded to Microsoft Defender for APIs.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/apiCollections
  • Operation Id: APICollections_ListByResourceGroup
  • Default Api Version: 2023-11-15
  • Resource: SecurityCenterApiCollectionResource
public static Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionResource> GetSecurityCenterApiCollections (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterApiCollections : Azure.ResourceManager.Resources.ResourceGroupResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionResource>
<Extension()>
Public Function GetSecurityCenterApiCollections (resourceGroupResource As ResourceGroupResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SecurityCenterApiCollectionResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

resourceGroupResource is null.

Applies to

GetSecurityCenterApiCollections(SubscriptionResource, CancellationToken)

Source:
SecurityCenterExtensions.cs

Gets a list of API collections within a subscription that have been onboarded to Microsoft Defender for APIs.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/apiCollections
  • Operation Id: APICollections_ListBySubscription
  • Default Api Version: 2023-11-15
  • Resource: SecurityCenterApiCollectionResource
public static Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionResource> GetSecurityCenterApiCollections (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterApiCollections : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionResource>
<Extension()>
Public Function GetSecurityCenterApiCollections (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SecurityCenterApiCollectionResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to