VirtualHubResource.GetConnectionPolicyAsync(String, CancellationToken) Method

Definition

Retrieves the details of a ConnectionPolicy.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ConnectionPolicyResource>> GetConnectionPolicyAsync(string connectionPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConnectionPolicyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ConnectionPolicyResource>>
override this.GetConnectionPolicyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ConnectionPolicyResource>>
Public Overridable Function GetConnectionPolicyAsync (connectionPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConnectionPolicyResource))

Parameters

connectionPolicyName
String

The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

connectionPolicyName is null.

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

Applies to