SecurityCenterExtensions.GetJitNetworkAccessPolicies Method

Definition

Overloads

GetJitNetworkAccessPolicies(ResourceGroupResource, AzureLocation)

Gets a collection of JitNetworkAccessPolicyResources in the ResourceGroupResource. MockingTo mock this method, please mock GetJitNetworkAccessPolicies(AzureLocation) instead.

GetJitNetworkAccessPolicies(ResourceGroupResource, CancellationToken)

Policies for protecting resources using Just-in-Time access control for the subscription, location

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/jitNetworkAccessPolicies
  • Operation Id: JitNetworkAccessPolicies_ListByResourceGroup
  • Default Api Version: 2020-01-01
  • Resource: JitNetworkAccessPolicyResource
GetJitNetworkAccessPolicies(SubscriptionResource, CancellationToken)

Policies for protecting resources using Just-in-Time access control.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/jitNetworkAccessPolicies
  • Operation Id: JitNetworkAccessPolicies_List
  • Default Api Version: 2020-01-01
  • Resource: JitNetworkAccessPolicyResource

GetJitNetworkAccessPolicies(ResourceGroupResource, AzureLocation)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Gets a collection of JitNetworkAccessPolicyResources in the ResourceGroupResource. MockingTo mock this method, please mock GetJitNetworkAccessPolicies(AzureLocation) instead.

public static Azure.ResourceManager.SecurityCenter.JitNetworkAccessPolicyCollection GetJitNetworkAccessPolicies (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation ascLocation);
static member GetJitNetworkAccessPolicies : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation -> Azure.ResourceManager.SecurityCenter.JitNetworkAccessPolicyCollection
<Extension()>
Public Function GetJitNetworkAccessPolicies (resourceGroupResource As ResourceGroupResource, ascLocation As AzureLocation) As JitNetworkAccessPolicyCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

ascLocation
AzureLocation

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

Returns

An object representing collection of JitNetworkAccessPolicyResources and their operations over a JitNetworkAccessPolicyResource.

Exceptions

resourceGroupResource is null.

Applies to

GetJitNetworkAccessPolicies(ResourceGroupResource, CancellationToken)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Policies for protecting resources using Just-in-Time access control for the subscription, location

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

resourceGroupResource is null.

Applies to

GetJitNetworkAccessPolicies(SubscriptionResource, CancellationToken)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Policies for protecting resources using Just-in-Time access control.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/jitNetworkAccessPolicies
  • Operation Id: JitNetworkAccessPolicies_List
  • Default Api Version: 2020-01-01
  • Resource: JitNetworkAccessPolicyResource
public static Azure.Pageable<Azure.ResourceManager.SecurityCenter.JitNetworkAccessPolicyResource> GetJitNetworkAccessPolicies (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetJitNetworkAccessPolicies : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.JitNetworkAccessPolicyResource>
<Extension()>
Public Function GetJitNetworkAccessPolicies (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of JitNetworkAccessPolicyResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to