다음을 통해 공유


SecurityCenterExtensions.GetSecurityCenterApiCollectionsAsync Method

Definition

Overloads

GetSecurityCenterApiCollectionsAsync(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
GetSecurityCenterApiCollectionsAsync(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

GetSecurityCenterApiCollectionsAsync(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.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionResource> GetSecurityCenterApiCollectionsAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterApiCollectionsAsync : Azure.ResourceManager.Resources.ResourceGroupResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionResource>
<Extension()>
Public Function GetSecurityCenterApiCollectionsAsync (resourceGroupResource As ResourceGroupResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SecurityCenterApiCollectionResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

resourceGroupResource is null.

Applies to

GetSecurityCenterApiCollectionsAsync(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.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionResource> GetSecurityCenterApiCollectionsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterApiCollectionsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterApiCollectionResource>
<Extension()>
Public Function GetSecurityCenterApiCollectionsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SecurityCenterApiCollectionResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to