Tasks interface

Interface representing a Tasks.

Methods

getResourceGroupLevelTask(string, string, string, TasksGetResourceGroupLevelTaskOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

getSubscriptionLevelTask(string, string, TasksGetSubscriptionLevelTaskOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

list(TasksListOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

listByHomeRegion(string, TasksListByHomeRegionOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

listByResourceGroup(string, string, TasksListByResourceGroupOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

updateResourceGroupLevelTaskState(string, string, string, string, TasksUpdateResourceGroupLevelTaskStateOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

updateSubscriptionLevelTaskState(string, string, string, TasksUpdateSubscriptionLevelTaskStateOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

Method Details

getResourceGroupLevelTask(string, string, string, TasksGetResourceGroupLevelTaskOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

function getResourceGroupLevelTask(resourceGroupName: string, ascLocation: string, taskName: string, options?: TasksGetResourceGroupLevelTaskOptionalParams): Promise<SecurityTask>

Parameters

resourceGroupName

string

The name of the resource group within the user's subscription. The name is case insensitive.

ascLocation

string

The location where ASC stores the data of the subscription. can be retrieved from Get locations

taskName

string

Name of the task object, will be a GUID

options
TasksGetResourceGroupLevelTaskOptionalParams

The options parameters.

Returns

Promise<SecurityTask>

getSubscriptionLevelTask(string, string, TasksGetSubscriptionLevelTaskOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

function getSubscriptionLevelTask(ascLocation: string, taskName: string, options?: TasksGetSubscriptionLevelTaskOptionalParams): Promise<SecurityTask>

Parameters

ascLocation

string

The location where ASC stores the data of the subscription. can be retrieved from Get locations

taskName

string

Name of the task object, will be a GUID

options
TasksGetSubscriptionLevelTaskOptionalParams

The options parameters.

Returns

Promise<SecurityTask>

list(TasksListOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

function list(options?: TasksListOptionalParams): PagedAsyncIterableIterator<SecurityTask, SecurityTask[], PageSettings>

Parameters

options
TasksListOptionalParams

The options parameters.

Returns

listByHomeRegion(string, TasksListByHomeRegionOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

function listByHomeRegion(ascLocation: string, options?: TasksListByHomeRegionOptionalParams): PagedAsyncIterableIterator<SecurityTask, SecurityTask[], PageSettings>

Parameters

ascLocation

string

The location where ASC stores the data of the subscription. can be retrieved from Get locations

options
TasksListByHomeRegionOptionalParams

The options parameters.

Returns

listByResourceGroup(string, string, TasksListByResourceGroupOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

function listByResourceGroup(resourceGroupName: string, ascLocation: string, options?: TasksListByResourceGroupOptionalParams): PagedAsyncIterableIterator<SecurityTask, SecurityTask[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group within the user's subscription. The name is case insensitive.

ascLocation

string

The location where ASC stores the data of the subscription. can be retrieved from Get locations

options
TasksListByResourceGroupOptionalParams

The options parameters.

Returns

updateResourceGroupLevelTaskState(string, string, string, string, TasksUpdateResourceGroupLevelTaskStateOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

function updateResourceGroupLevelTaskState(resourceGroupName: string, ascLocation: string, taskName: string, taskUpdateActionType: string, options?: TasksUpdateResourceGroupLevelTaskStateOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group within the user's subscription. The name is case insensitive.

ascLocation

string

The location where ASC stores the data of the subscription. can be retrieved from Get locations

taskName

string

Name of the task object, will be a GUID

taskUpdateActionType

string

Type of the action to do on the task

Returns

Promise<void>

updateSubscriptionLevelTaskState(string, string, string, TasksUpdateSubscriptionLevelTaskStateOptionalParams)

Recommended tasks that will help improve the security of the subscription proactively

function updateSubscriptionLevelTaskState(ascLocation: string, taskName: string, taskUpdateActionType: string, options?: TasksUpdateSubscriptionLevelTaskStateOptionalParams): Promise<void>

Parameters

ascLocation

string

The location where ASC stores the data of the subscription. can be retrieved from Get locations

taskName

string

Name of the task object, will be a GUID

taskUpdateActionType

string

Type of the action to do on the task

options
TasksUpdateSubscriptionLevelTaskStateOptionalParams

The options parameters.

Returns

Promise<void>