你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

JitNetworkAccessPoliciesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create a policy for protecting resources using Just-in-Time access control

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.JitNetworkAccessPolicy> CreateOrUpdateAsync (this Microsoft.Azure.Management.Security.IJitNetworkAccessPoliciesOperations operations, string resourceGroupName, string jitNetworkAccessPolicyName, Microsoft.Azure.Management.Security.Models.JitNetworkAccessPolicy body, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Security.IJitNetworkAccessPoliciesOperations * string * string * Microsoft.Azure.Management.Security.Models.JitNetworkAccessPolicy * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.JitNetworkAccessPolicy>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IJitNetworkAccessPoliciesOperations, resourceGroupName As String, jitNetworkAccessPolicyName As String, body As JitNetworkAccessPolicy, Optional cancellationToken As CancellationToken = Nothing) As Task(Of JitNetworkAccessPolicy)

Parameters

operations
IJitNetworkAccessPoliciesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the user's subscription. The name is case insensitive.

jitNetworkAccessPolicyName
String

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

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to