Compartilhar via


EventGridNamespaceResource.GetSharedAccessKeysAsync(CancellationToken) Método

Definição

Liste as duas chaves usadas para publicar em um namespace.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/listKeys
  • IdNamespaces_ListSharedAccessKeys de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.Models.NamespaceSharedAccessKeys>> GetSharedAccessKeysAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetSharedAccessKeysAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.Models.NamespaceSharedAccessKeys>>
override this.GetSharedAccessKeysAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.Models.NamespaceSharedAccessKeys>>
Public Overridable Function GetSharedAccessKeysAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NamespaceSharedAccessKeys))

Parâmetros

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a