> ## Documentation Index > Fetch the complete documentation index at: https://support.fortanix.com/llms.txt > Use this file to discover all available pages before exploring further. # Get Azure Services report grouped by subscription > Get Azure Services report grouped by subscription. ## OpenAPI ````json GET /api/v1/discovery/scans/{id}/services_report/azure/by_subscription { "openapi": "3.0.0", "info": { "description": "**API of the Fortanix Unified Data and AI Security Platform**\n\nThe API client *must* follow HTTP redirects, including 308 redirects. Many HTTP libraries (such as Python Requests, JavaScript fetch) do this by default. With cURL, you must pass `--location`.\n", "title": "Armor API", "version": "0.1.0" }, "servers": [ { "url": "https://api.armor.fortanix.com" } ], "tags": [ { "description": "APIs regarding creating or ending a session.", "name": "Authentication" }, { "description": "APIs regarding obtaining details about the connection.", "name": "DiscoveryConnection" }, { "description": "APIs regarding obtaining details about the policies.", "name": "DiscoveryPolicies" }, { "description": "APIs regarding obtaining details about the scans.", "name": "DiscoveryScan" }, { "description": "APIs regarding obtaining the reports related to AWS.", "name": "DiscoveryAwsReports" }, { "description": "APIs regarding obtaining the reports related to Azure.", "name": "DiscoveryAzureReports" }, { "description": "APIs regarding obtaining the reports for Services.", "name": "DiscoveryServicesReports" }, { "description": "APIs regarding obtaining the PQC reports.", "name": "DiscoveryPqcReports" }, { "description": "APIs regarding obtaining the reports related to DSM.", "name": "DiscoveryDsmReports" }, { "description": "APIs regarding obtaining the details about the inventory objects.", "name": "DiscoveryInventory" }, { "description": "APIs regarding obtaining the reports related to On-Prem infrastructure.", "name": "DiscoveryOnPremReports" }, { "description": "APIs regarding obtaining the details about the inventory objects associated to a scan.", "name": "DiscoveryScanInventory" } ], "paths": { "/api/v1/discovery/scans/{id}/services_report/azure/by_subscription": { "get": { "description": "Get Azure Services report grouped by subscription.", "operationId": "GetAzureServicesReportGroupedBySubscriptions", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "format": "uuid", "type": "string" } }, { "$ref": "#/components/parameters/DiscoveryAzureScannedServicesReportBySubscriptionParams" } ], "responses": { "2XX": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscoveryAzureScannedServicesResponseBySubscription" } } }, "description": "Success result" } }, "security": [ { "Oauth2ClientCredentials": [] } ], "summary": "Get Azure Services report grouped by subscription.", "tags": [ "DiscoveryServicesReports" ] } } }, "components": { "parameters": { "DiscoveryAzureScannedServicesReportBySubscriptionParams": { "explode": true, "in": "query", "name": "DiscoveryAzureScannedServicesReportBySubscriptionParams", "schema": { "$ref": "#/components/schemas/DiscoveryAzureScannedServicesReportBySubscriptionParams" } } }, "schemas": { "DiscoveryAzureScannedServicesResponseBySubscription": { "allOf": [ { "properties": { "items": { "items": { "$ref": "#/components/schemas/DiscoveryAzureServicesViolationMetrics" }, "type": "array" }, "metadata": { "$ref": "#/components/schemas/DiscoveryAzureServicesReportMetadata" } }, "required": [ "items", "metadata" ], "type": "object" } ] }, "DiscoveryAzureScannedServicesReportBySubscriptionParams": { "allOf": [ { "properties": { "filter": { "type": "string" }, "limit": { "type": "integer" }, "previous_id": { "format": "uuid", "type": "string" }, "previous_sort_value": { "type": "string" }, "sort_by": { "type": "string" } }, "type": "object" } ] }, "DiscoveryAzureServicesViolationMetrics": { "allOf": [ { "properties": { "subscription_id": { "format": "uuid", "type": "string" }, "violations_by_resource_group": { "additionalProperties": { "$ref": "#/components/schemas/DiscoveryAzureResourceGroupViolationMetrics" }, "type": "object" } }, "required": [ "subscription_id", "violations_by_resource_group" ], "type": "object" } ] }, "DiscoveryAzureServicesReportMetadata": { "allOf": [ { "properties": { "region_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" }, "resource_group_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" }, "service_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" }, "subscription_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" }, "violation_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" } }, "required": [ "violation_metrics", "service_metrics", "region_metrics", "resource_group_metrics", "subscription_metrics" ], "type": "object" } ] }, "DiscoveryAzureResourceGroupViolationMetrics": { "allOf": [ { "properties": { "overall_risk": { "$ref": "#/components/schemas/DiscoveryRiskLevel" }, "violations_by_region": { "additionalProperties": { "$ref": "#/components/schemas/DiscoveryAzureRegionViolationMetrics" }, "type": "object" } }, "required": [ "overall_risk", "violations_by_region" ], "type": "object" } ] }, "DiscoveryServiceMetadataMetrics": { "allOf": [ { "properties": { "filtered_count": { "type": "integer" }, "total_count": { "type": "integer" } }, "required": [ "total_count", "filtered_count" ], "type": "object" } ] }, "DiscoveryRiskLevel": { "enum": [ "critical", "high", "medium", "low", "good" ], "type": "string" }, "DiscoveryAzureRegionViolationMetrics": { "allOf": [ { "properties": { "overall_risk": { "$ref": "#/components/schemas/DiscoveryRiskLevel" }, "violations_by_service_type": { "additionalProperties": { "$ref": "#/components/schemas/DiscoveryServiceViolationMetricsWithOverallRisk" }, "type": "object" } }, "required": [ "overall_risk", "violations_by_service_type" ], "type": "object" } ] }, "DiscoveryServiceViolationMetricsWithOverallRisk": { "allOf": [ { "properties": { "overall_risk": { "$ref": "#/components/schemas/DiscoveryRiskLevel" }, "total_resources": { "type": "integer" }, "violation_metrics": { "additionalProperties": { "$ref": "#/components/schemas/DiscoveryViolationDetails" }, "type": "object" } }, "required": [ "overall_risk", "total_resources", "violation_metrics" ], "type": "object" } ] }, "DiscoveryViolationDetails": { "allOf": [ { "properties": { "count": { "type": "integer" }, "risk_level": { "$ref": "#/components/schemas/DiscoveryRiskLevel" } }, "required": [ "count" ], "type": "object" } ] } }, "securitySchemes": { "Oauth2ClientCredentials": { "description": "OAuth 2.0 client credential flow, see https://datatracker.ietf.org/doc/html/rfc6749#section-4.4.", "flows": { "clientCredentials": { "scopes": {}, "tokenUrl": "https://api.armor.fortanix.com/api/v1/iam/session/oauth2/token" } }, "type": "oauth2" } } } } ````