Compartilhar via


SecurityAssessmentCollection.ExistsAsync Método

Definição

Verifica se o recurso existe no azure.

  • Caminho da Solicitação/{resourceId}/providers/Microsoft.Security/assessments/{assessmentName}
  • IdAssessments_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (string assessmentName, Azure.ResourceManager.SecurityCenter.Models.SecurityAssessmentODataExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : string * Nullable<Azure.ResourceManager.SecurityCenter.Models.SecurityAssessmentODataExpand> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : string * Nullable<Azure.ResourceManager.SecurityCenter.Models.SecurityAssessmentODataExpand> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (assessmentName As String, Optional expand As Nullable(Of SecurityAssessmentODataExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parâmetros

assessmentName
String

A Chave de Avaliação – Chave exclusiva para o tipo de avaliação.

expand
Nullable<SecurityAssessmentODataExpand>

Expanda OData. Opcional.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

assessmentName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

assessmentName é nulo.

Aplica-se a