Partager via


SecurityAssessmentCollection.GetAsync Méthode

Définition

Obtenir une évaluation de sécurité sur votre ressource analysée

  • Chemin de la requête/{resourceId}/providers/Microsoft.Security/assessments/{assessmentName}
  • IdAssessments_Get d’opération
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))

Paramètres

assessmentName
String

Clé d’évaluation : clé unique pour le type d’évaluation.

expand
Nullable<SecurityAssessmentODataExpand>

Développez OData. facultatif.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

assessmentName est une chaîne vide et devait être non vide.

assessmentName a la valeur null.

S’applique à