Compartilhar via


OperationalInsightsWorkspaceCollection.Get(String, CancellationToken) Método

Definição

Obtém uma instância de workspace.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}
  • IdWorkspaces_Get de operação
public virtual Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource> Get (string workspaceName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.OperationalInsights.OperationalInsightsWorkspaceResource>
Public Overridable Function Get (workspaceName As String, Optional cancellationToken As CancellationToken = Nothing) As 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 era esperado que não estivesse vazio.

workspaceName é nulo.

Aplica-se a