共用方式為


HybridDataPublicKeyCollection.GetAsync(String, CancellationToken) Method

Definition

This method gets the public keys.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/publicKeys/{publicKeyName}
  • Operation Id: PublicKeys_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HybridData.HybridDataPublicKeyResource>> GetAsync (string publicKeyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HybridData.HybridDataPublicKeyResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HybridData.HybridDataPublicKeyResource>>
Public Overridable Function GetAsync (publicKeyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HybridDataPublicKeyResource))

Parameters

publicKeyName
String

Name of the public key.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

publicKeyName is null.

Applies to