Compartir a través de


SecurityAssessmentCollection.GetAsync Método

Definición

Obtención de una evaluación de seguridad en el recurso examinado

  • Ruta de acceso de solicitud/{resourceId}/providers/Microsoft.Security/assessments/{assessmentName}
  • IdAssessments_Get de operación
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource>> GetAsync (string assessmentName, Azure.ResourceManager.SecurityCenter.Models.SecurityAssessmentODataExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * Nullable<Azure.ResourceManager.SecurityCenter.Models.SecurityAssessmentODataExpand> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource>>
override this.GetAsync : string * Nullable<Azure.ResourceManager.SecurityCenter.Models.SecurityAssessmentODataExpand> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource>>
Public Overridable Function GetAsync (assessmentName As String, Optional expand As Nullable(Of SecurityAssessmentODataExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecurityAssessmentResource))

Parámetros

assessmentName
String

Clave de evaluación: clave única para el tipo de evaluación.

expand
Nullable<SecurityAssessmentODataExpand>

OData expande. Opcional.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

assessmentName es una cadena vacía y se espera que no esté vacía.

assessmentName es null.

Se aplica a