Custom Assessment Automations - List By Subscription
List custom assessment automations in a subscription
List custom assessment automations by provided subscription
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/customAssessmentAutomations?api-version=2021-07-01-preview
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
subscription
|
path | True |
string pattern: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$ |
Azure subscription ID |
|
api-version
|
query | True |
string |
API version for the operation |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK - Returns a collection of Custom Assessment Automations |
|
| Other Status Codes |
Error response that describes 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
List Custom Assessment Automations in a subscription
Sample request
Sample response
{
"value": [
{
"id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation1",
"name": "MyCustomAssessmentAutomation1",
"type": "Microsoft.Security/customAssessmentAutomations",
"systemData": {
"createdBy": "user@contoso.com",
"createdByType": "User",
"createdAt": "2021-08-31T13:47:50.328Z",
"lastModifiedBy": "user@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-31T13:47:50.328Z"
},
"properties": {
"compressedQuery": "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=",
"supportedCloud": "AWS",
"severity": "Medium",
"displayName": "Password Policy",
"description": "organization passwords policy",
"remediationDescription": "Change password policy to...",
"assessmentKey": "d5f442f7-7e77-4bcf-a450-a9c1b9a94eeb"
}
},
{
"id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation2",
"name": "MyCustomAssessmentAutomation2",
"type": "Microsoft.Security/customAssessmentAutomations",
"systemData": {
"createdBy": "user@contoso.com",
"createdByType": "User",
"createdAt": "2021-08-31T13:01:50.328Z",
"lastModifiedBy": "user@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-31T13:01:50.328Z"
},
"properties": {
"compressedQuery": "Q29tcHV0ZV9OZXR3b3JrCnwgZXh0ZW5kIEhlYWx0aFN0YXR1cyA9ICdVTkhFQUxUSFkn",
"supportedCloud": "GCP",
"severity": "Low",
"displayName": "Password Policy",
"description": "organization passwords policy",
"remediationDescription": "Change password policy to...",
"assessmentKey": "fc1dbcd0-502c-4eab-9312-4014cfc8ea56"
}
}
],
"nextLink": "link"
}
Definitions
| Name | Description |
|---|---|
|
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. |
|
created |
The type of identity that created the resource. |
|
custom |
Custom Assessment Automation |
|
custom |
A list of Custom Assessment Automations |
|
Error |
The resource management error additional info. |
|
severity |
The severity to relate to the assessments generated by this assessment automation. |
|
supported |
Relevant cloud for the custom assessment automation. |
|
system |
Metadata pertaining to creation and last modification of the resource. |
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 |
string |
The error code. |
| error.details |
The error details. |
|
| error.message |
string |
The error message. |
| error.target |
string |
The error target. |
CloudErrorBody
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
customAssessmentAutomation
Custom Assessment Automation
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource Id |
| name |
string |
Resource name |
| properties.assessmentKey |
string |
The assessment metadata key used when an assessment is generated for this assessment automation. |
| properties.compressedQuery |
string |
GZip encoded KQL query representing the assessment automation results required. |
| properties.description |
string |
The description to relate to the assessments generated by this assessment automation. |
| properties.displayName |
string |
The display name of the assessments generated by this assessment automation. |
| properties.remediationDescription |
string |
The remediation description to relate to the assessments generated by this assessment automation. |
| properties.severity |
The severity to relate to the assessments generated by this assessment automation. |
|
| properties.supportedCloud |
Relevant cloud for the custom assessment automation. |
|
| systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
| type |
string |
Resource type |
customAssessmentAutomationsListResult
A list of Custom Assessment Automations
| Name | Type | Description |
|---|---|---|
| nextLink |
string |
The link used to get the next page of operations. |
| value |
Collection of Custom Assessment Automations |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
severityEnum
The severity to relate to the assessments generated by this assessment automation.
| Value | Description |
|---|---|
| High | |
| Medium | |
| Low |
supportedCloudEnum
Relevant cloud for the custom assessment automation.
| Value | Description |
|---|---|
| AWS | |
| GCP |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |