SecurityCenterExtensions.GetSecurityCenterAllowedConnections Method

Definition

Overloads

Name Description
GetSecurityCenterAllowedConnections(ResourceGroupResource)

Gets a collection of SecurityCenterAllowedConnections in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetSecurityCenterAllowedConnections() instead. </item>

GetSecurityCenterAllowedConnections(SubscriptionResource, AzureLocation, CancellationToken)

Gets the list of all possible traffic between resources for the subscription and location. <item> Mocking. To mock this method, please mock GetSecurityCenterAllowedConnections(AzureLocation, CancellationToken) instead. </item>

GetSecurityCenterAllowedConnections(ResourceGroupResource)

Source:
SecurityCenterExtensions.cs

Gets a collection of SecurityCenterAllowedConnections in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetSecurityCenterAllowedConnections() instead. </item>

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

Returns

An object representing collection of SecurityCenterAllowedConnections and their operations over a SecurityCenterAllowedConnectionResource.

Exceptions

resourceGroupResource is null.

Applies to

GetSecurityCenterAllowedConnections(SubscriptionResource, AzureLocation, CancellationToken)

Source:
SecurityCenterExtensions.cs

Gets the list of all possible traffic between resources for the subscription and location. <item> Mocking. To mock this method, please mock GetSecurityCenterAllowedConnections(AzureLocation, CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityCenterAllowedConnectionResource> GetSecurityCenterAllowedConnections(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation ascLocation, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterAllowedConnections : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityCenterAllowedConnectionResource>
<Extension()>
Public Function GetSecurityCenterAllowedConnections (subscriptionResource As SubscriptionResource, ascLocation As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SecurityCenterAllowedConnectionResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

ascLocation
AzureLocation

The location where ASC stores the data of the subscription. can be retrieved from Get locations.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to