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