MockableSecurityCenterResourceGroupResource.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 virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.JitNetworkAccessPolicyResource>> GetJitNetworkAccessPolicyAsync (Azure.Core.AzureLocation ascLocation, string jitNetworkAccessPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetJitNetworkAccessPolicyAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.JitNetworkAccessPolicyResource>>
override this.GetJitNetworkAccessPolicyAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.JitNetworkAccessPolicyResource>>
Public Overridable Function GetJitNetworkAccessPolicyAsync (ascLocation As AzureLocation, jitNetworkAccessPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of JitNetworkAccessPolicyResource))

Parameters

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

jitNetworkAccessPolicyName is null.

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

Applies to