You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/defender-for-cloud/subassessment-rest-api.md
+8-164Lines changed: 8 additions & 164 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,13 @@ ms.topic: how-to
15
15
Azure Resource Graph (ARG) provides a REST API that can be used to programmatically access vulnerability assessment results for both Azure registry and runtime vulnerabilities recommendations.
16
16
Learn more about [ARG references and query examples](/azure/governance/resource-graph/overview).
17
17
18
-
Azure, AWS, and GCP container registry vulnerabilities sub-assessments are published to ARG as part of the security resources. Learn more about [security sub-assessments](/azure/governance/resource-graph/samples/samples-by-category?tabs=azure-cli#list-container-registry-vulnerability-assessment-results).
18
+
Azureand AWS container registry vulnerabilities sub-assessments are published to ARG as part of the security resources. Learn more about [security sub-assessments](/azure/governance/resource-graph/samples/samples-by-category?tabs=azure-cli#list-container-registry-vulnerability-assessment-results).
19
19
20
20
## ARG query examples
21
21
22
22
To pull specific sub assessments, you need the assessment key.
23
23
* For Azure container vulnerability assessment powered by MDVM the key is `c0b7cfc6-3172-465a-b378-53c7ff2cc0d5`.
24
24
* For AWS container vulnerability assessment powered by MDVM the key is `c27441ae-775c-45be-8ffa-655de37362ce`.
25
-
* For GCP container vulnerability assessment powered by MDVM the key is `5cc3a2c1-8397-456f-8792-fe9d0d4c9145`.
26
25
27
26
The following is a generic security sub assessment query example that can be used as an example to build queries with. This query pulls the first sub assessment generated in the last hour.
"description": "This vulnerability affects the following vendors: Alpine, Debian, Libtiff, Suse, Ubuntu. To view more details about this vulnerability please visit the vendor website.",
| id | string | Azure resource ID of the assessed resource |
640
-
| source | string: Aws/Gcp| The platform where the assessed resource resides |
484
+
| source | string: Aws| The platform where the assessed resource resides |
641
485
| connectorId | string | Connector ID |
642
486
| region | string | Region |
643
487
| nativeCloudUniqueIdentifier | string | Native Cloud's Resource ID of the Assessed resource in |
644
-
| resourceProvider | string: ecr/gar| The assessed resource provider |
488
+
| resourceProvider | string: ecr| The assessed resource provider |
645
489
| resourceType | string | The assessed resource type |
646
490
| resourceName | string | The assessed resource name |
647
-
| hierarchyId | string | Account ID (Aws) / Project ID (Gcp)|
491
+
| hierarchyId | string | Account ID (Aws) |
648
492
649
493
### SubAssessmentStatus
650
494
@@ -682,7 +526,7 @@ Security subassessment on a resource
682
526
| properties.id | string | Vulnerability ID |
683
527
| properties.impact | string | Description of the impact of this subassessment |
684
528
| properties.remediation | string | Information on how to remediate this subassessment |
685
-
| properties.resourceDetails | ResourceDetails: <br> [Azure Resource Details](/azure/defender-for-cloud/subassessment-rest-api#resourcedetails---azure) <br> [AWS/GCP Resource Details](/azure/defender-for-cloud/subassessment-rest-api#resourcedetails---aws--gcp)| Details of the resource that was assessed |
529
+
| properties.resourceDetails | ResourceDetails: <br> [Azure Resource Details](/azure/defender-for-cloud/subassessment-rest-api#resourcedetails---azure) <br> [AWS Resource Details](/azure/defender-for-cloud/subassessment-rest-api#resourcedetails---aws)| Details of the resource that was assessed |
686
530
| properties.status |[SubAssessmentStatus](/azure/defender-for-cloud/subassessment-rest-api#subassessmentstatus)| Status of the subassessment |
687
531
| properties.timeGenerated | string | The date and time the subassessment was generated |
0 commit comments