Tasks - List By Resource Group
Recommended tasks that will help improve the security of the subscription proactively
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks?api-version=2015-06-01-preview
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks?api-version=2015-06-01-preview&$filter={$filter}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
asc
|
path | True |
|
The location where ASC stores the data of the subscription. can be retrieved from Get locations |
resource
|
path | True |
|
The name of the resource group within the user's subscription. The name is case insensitive. Regex pattern: |
subscription
|
path | True |
|
Azure subscription ID Regex pattern: |
api-version
|
query | True |
|
API version for the operation |
$filter
|
query |
|
OData filter. Optional. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get security recommendation tasks in a resource group
Sample Request
GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Security/locations/westeurope/tasks?api-version=2015-06-01-preview
Sample Response
{
"value": [
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Security/locations/westeurope/tasks/d55b4dc0-779c-c66c-33e5-d7bce24c4222",
"name": "d55b4dc0-779c-c66c-33e5-d7bce24c4222",
"type": "Microsoft.Security/locations/tasks",
"properties": {
"state": "Active",
"subState": "NA",
"creationTimeUtc": "2018-04-02T11:41:27.0541014Z",
"lastStateChangeTimeUtc": "2018-04-02T11:41:27.0541014Z",
"securityTaskParameters": {
"vmId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/vm1",
"vmName": "vm1",
"severity": "High",
"isOsDiskEncrypted": false,
"isDataDiskEncrypted": false,
"name": "EncryptionOnVm",
"uniqueKey": "EncryptionOnVmTaskParameters_/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/vm1",
"resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/vm1"
}
}
}
]
}
Definitions
Cloud |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). |
Cloud |
The error detail. |
Error |
The resource management error additional info. |
Security |
Security task that we recommend to do in order to strengthen security |
Security |
List of security task recommendations |
Security |
Changing set of properties, depending on the task type that is derived from the name field |
CloudError
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
Name | Type | Description |
---|---|---|
error.additionalInfo |
The error additional info. |
|
error.code |
|
The error code. |
error.details |
The error details. |
|
error.message |
|
The error message. |
error.target |
|
The error target. |
CloudErrorBody
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
|
The error code. |
details |
The error details. |
|
message |
|
The error message. |
target |
|
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
|
The additional info. |
type |
|
The additional info type. |
SecurityTask
Security task that we recommend to do in order to strengthen security
Name | Type | Description |
---|---|---|
id |
|
Resource Id |
name |
|
Resource name |
properties.creationTimeUtc |
|
The time this task was discovered in UTC |
properties.lastStateChangeTimeUtc |
|
The time this task's details were last changed in UTC |
properties.securityTaskParameters |
Changing set of properties, depending on the task type that is derived from the name field |
|
properties.state |
|
State of the task (Active, Resolved etc.) |
properties.subState |
|
Additional data on the state of the task |
type |
|
Resource type |
SecurityTaskList
List of security task recommendations
Name | Type | Description |
---|---|---|
nextLink |
|
The URI to fetch the next page. |
value |
Security task that we recommend to do in order to strengthen security |
SecurityTaskParameters
Changing set of properties, depending on the task type that is derived from the name field
Name | Type | Description |
---|---|---|
name |
|
Name of the task type |