WebPubSubResource.GetWebPubSubReplicaAsync(String, CancellationToken) Method

Definition

Get the replica and its properties.

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

Parameters

replicaName
String

The name of the replica.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

replicaName is null.

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

Applies to