SecurityCenterExtensions.GetSecurityConnectors Method

Definition

Overloads

GetSecurityConnectors(ResourceGroupResource)

Gets a collection of SecurityConnectorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSecurityConnectors() instead.

GetSecurityConnectors(SubscriptionResource, CancellationToken)

Lists all the security connectors in the specified subscription. Use the 'nextLink' property in the response to get the next page of security connectors for the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/securityConnectors
  • Operation Id: SecurityConnectors_List
  • Default Api Version: 2023-10-01-preview
  • Resource: SecurityConnectorResource

GetSecurityConnectors(ResourceGroupResource)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Gets a collection of SecurityConnectorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSecurityConnectors() instead.

C#
public static Azure.ResourceManager.SecurityCenter.SecurityConnectorCollection GetSecurityConnectors(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of SecurityConnectorResources and their operations over a SecurityConnectorResource.

Exceptions

resourceGroupResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetSecurityConnectors(SubscriptionResource, CancellationToken)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Lists all the security connectors in the specified subscription. Use the 'nextLink' property in the response to get the next page of security connectors for the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/securityConnectors
  • Operation Id: SecurityConnectors_List
  • Default Api Version: 2023-10-01-preview
  • Resource: SecurityConnectorResource
C#
public static Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityConnectorResource> GetSecurityConnectors(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview