Share via


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.

public static Azure.ResourceManager.SecurityCenter.SecurityConnectorCollection GetSecurityConnectors (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSecurityConnectors : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.SecurityCenter.SecurityConnectorCollection
<Extension()>
Public Function GetSecurityConnectors (resourceGroupResource As ResourceGroupResource) As SecurityConnectorCollection

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

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

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