Partilhar via


OperationalInsightsWorkspaceCollection.GetAsync Método

Definição

Obtém uma instância de workspace.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}
  • Operação IdWorkspaces_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>> GetAsync (string workspaceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>>
Public Overridable Function GetAsync (workspaceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of OperationalInsightsWorkspaceResource))

Parâmetros

workspaceName
String

O nome do workspace.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

workspaceName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

workspaceName é nulo.

Aplica-se a