Compartir a través de


SecurityAssessmentResource.GetGovernanceAssignmentAsync Método

Definición

Obtener una gobernanza específicaAssignment para el ámbito solicitado por AssignmentKey

  • Ruta de acceso de solicitud/{ámbito}/providers/Microsoft.Security/assessments/{assessmentName}/governanceAssignments/{assignmentKey}
  • IdGovernanceAssignments_Get de operación
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.GovernanceAssignmentResource>> GetGovernanceAssignmentAsync (string assignmentKey, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGovernanceAssignmentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.GovernanceAssignmentResource>>
override this.GetGovernanceAssignmentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.GovernanceAssignmentResource>>
Public Overridable Function GetGovernanceAssignmentAsync (assignmentKey As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of GovernanceAssignmentResource))

Parámetros

assignmentKey
String

Clave de asignación de gobernanza: la clave de evaluación de la asignación de gobernanza necesaria.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

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

assignmentKey es null.

Se aplica a