SecurityCenterExtensions.GetJitNetworkAccessPolicy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Policies for protecting resources using Just-in-Time access control for the subscription, location <item> Mocking. To mock this method, please mock GetJitNetworkAccessPolicy(AzureLocation, String, CancellationToken) instead. </item>
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 the method will execute against.
- ascLocation
- AzureLocation
The ascLocation for the resource.
- jitNetworkAccessPolicyName
- String
Name of a Just-in-Time access configuration policy.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
jitNetworkAccessPolicyName is an empty string, and was expected to be non-empty.
resourceGroupResource is null.