Share via


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