Compartilhar via


SecurityCenterLocationResource.GetSubscriptionSecurityTask 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 Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityTaskResource> GetSubscriptionSecurityTask (string taskName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSubscriptionSecurityTask : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityTaskResource>
override this.GetSubscriptionSecurityTask : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityTaskResource>
Public Overridable Function GetSubscriptionSecurityTask (taskName As String, Optional cancellationToken As CancellationToken = Nothing) As 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