Share via


SecurityCenterExtensions.GetJitNetworkAccessPolicyAsync Method

Definition

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}
  • Operation Id: JitNetworkAccessPolicies_Get
  • Default Api Version: 2020-01-01
  • Resource: JitNetworkAccessPolicyResource
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.JitNetworkAccessPolicyResource>> GetJitNetworkAccessPolicyAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation ascLocation, string jitNetworkAccessPolicyName, System.Threading.CancellationToken cancellationToken = default);
static member GetJitNetworkAccessPolicyAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.JitNetworkAccessPolicyResource>>
<Extension()>
Public Function GetJitNetworkAccessPolicyAsync (resourceGroupResource As ResourceGroupResource, ascLocation As AzureLocation, jitNetworkAccessPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of JitNetworkAccessPolicyResource))

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.

jitNetworkAccessPolicyName
String

Name of a Just-in-Time access configuration policy.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or jitNetworkAccessPolicyName is null.

jitNetworkAccessPolicyName is an empty string, and was expected to be non-empty.

Applies to