Partilhar via


OperationalInsightsExtensions.GetOperationalInsightsWorkspaceAsync 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 static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>> GetOperationalInsightsWorkspaceAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string workspaceName, System.Threading.CancellationToken cancellationToken = default);
static member GetOperationalInsightsWorkspaceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>>
<Extension()>
Public Function GetOperationalInsightsWorkspaceAsync (resourceGroupResource As ResourceGroupResource, workspaceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of OperationalInsightsWorkspaceResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

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