Partilhar via


SecurityCenterLocationResource.GetSubscriptionSecurityTaskAsync Método

Definição

Tarefas recomendadas que ajudarão a melhorar a segurança da assinatura proativamente

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}
  • Operação IdTasks_GetSubscriptionLevelTask
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityTaskResource>> GetSubscriptionSecurityTaskAsync (string taskName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSubscriptionSecurityTaskAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityTaskResource>>
override this.GetSubscriptionSecurityTaskAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityTaskResource>>
Public Overridable Function GetSubscriptionSecurityTaskAsync (taskName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SubscriptionSecurityTaskResource))

Parâmetros

taskName
String

O nome do objeto de tarefa será um GUID.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

taskName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

taskName é nulo.

Aplica-se a