> ## 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 Services report grouped by violation type > Get Services report grouped by violation type. ## OpenAPI ````json GET /api/v1/discovery/scans/{id}/services_report/by_violation { "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/by_violation": { "get": { "description": "Get Services report grouped by violation type.", "operationId": "GetServicesReportGroupedByViolationType", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "format": "uuid", "type": "string" } }, { "$ref": "#/components/parameters/DiscoveryScannedServicesReportByViolationTypeParams" } ], "responses": { "2XX": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscoveryScannedServicesResponseByViolationType" } } }, "description": "Success result" } }, "security": [ { "Oauth2ClientCredentials": [] } ], "summary": "Get Services report grouped by violation type.", "tags": [ "DiscoveryServicesReports" ] } } }, "components": { "parameters": { "DiscoveryScannedServicesReportByViolationTypeParams": { "explode": true, "in": "query", "name": "DiscoveryScannedServicesReportByViolationTypeParams", "schema": { "$ref": "#/components/schemas/DiscoveryScannedServicesReportByViolationTypeParams" } } }, "schemas": { "DiscoveryScannedServicesResponseByViolationType": { "allOf": [ { "properties": { "items": { "items": { "$ref": "#/components/schemas/DiscoveryViolationTypeMetrics" }, "type": "array" }, "metadata": { "$ref": "#/components/schemas/DiscoveryServicesMetadata" } }, "required": [ "items", "metadata" ], "type": "object" } ] }, "DiscoveryScannedServicesReportByViolationTypeParams": { "allOf": [ { "properties": { "filter": { "type": "string" } }, "type": "object" } ] }, "DiscoveryViolationTypeMetrics": { "allOf": [ { "properties": { "overall_risk": { "$ref": "#/components/schemas/DiscoveryRiskLevel" }, "violation": { "$ref": "#/components/schemas/DiscoveryViolation" }, "violations_by_service": { "additionalProperties": { "$ref": "#/components/schemas/DiscoveryViolationMetrics" }, "type": "object" } }, "required": [ "violation", "overall_risk", "violations_by_service" ], "type": "object" } ] }, "DiscoveryServicesMetadata": { "allOf": [ { "properties": { "scan_inventory_provider_metrics": { "$ref": "#/components/schemas/DiscoveryCspServicesMetadata" }, "service_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" }, "violation_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" } }, "required": [ "violation_metrics", "service_metrics", "scan_inventory_provider_metrics" ], "type": "object" } ] }, "DiscoveryRiskLevel": { "enum": [ "critical", "high", "medium", "low", "good" ], "type": "string" }, "DiscoveryViolation": { "enum": [ "shared_keys", "expired_keys", "exportable_keys", "noncompliant_keys", "csp_generated_keys", "keys_without_expiry", "unused_keys", "quantum_vulnerable_keys", "keys_with_rotation_disabled", "cross_account_keys", "shared_certificate", "expired_certificate", "non_compliant_certificate_by_key_algorithm", "non_compliant_certificate_by_signature_algorithm", "overly_permissive_certificate_usage", "overly_permissive_key_usage", "overly_permissive_key_management", "services_encrypted_with_overly_permissive_usage_key", "services_encrypted_with_overly_permissive_management_key", "unencrypted_services", "services_encrypted_with_shared_key", "services_encrypted_with_noncompliant_key", "services_encrypted_with_soft_deleted_key", "services_encrypted_with_purged_key", "services_encrypted_with_expired_key", "services_encrypted_with_exportable_key", "services_encrypted_with_quantum_vulnerable_key", "services_encrypted_with_csp_generated_key", "services_encrypted_with_platform_managed_key", "services_encrypted_with_cross_account_key" ], "type": "string" }, "DiscoveryViolationMetrics": { "allOf": [ { "description": "A structure to store the violation metrics for each violation.", "properties": { "count": { "type": "integer" } }, "required": [ "count" ], "type": "object" } ] }, "DiscoveryCspServicesMetadata": { "discriminator": { "mapping": { "aws": "DiscoveryCspServicesMetadataVariantAws", "azure": "DiscoveryCspServicesMetadataVariantAzure" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryCspServicesMetadataVariantAws" }, { "$ref": "#/components/schemas/DiscoveryCspServicesMetadataVariantAzure" } ] }, "DiscoveryServiceMetadataMetrics": { "allOf": [ { "properties": { "filtered_count": { "type": "integer" }, "total_count": { "type": "integer" } }, "required": [ "total_count", "filtered_count" ], "type": "object" } ] }, "DiscoveryCspServicesMetadataVariantAws": { "allOf": [ { "properties": { "$type": { "enum": [ "aws" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAwsFilterMetadata" } ] }, "DiscoveryCspServicesMetadataVariantAzure": { "allOf": [ { "properties": { "$type": { "enum": [ "azure" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAzureFilterMetadata" } ] }, "DiscoveryAwsFilterMetadata": { "allOf": [ { "properties": { "account_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" }, "region_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" } }, "required": [ "account_metrics", "region_metrics" ], "type": "object" } ] }, "DiscoveryAzureFilterMetadata": { "allOf": [ { "properties": { "region_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" }, "resource_group_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" }, "subscription_metrics": { "$ref": "#/components/schemas/DiscoveryServiceMetadataMetrics" } }, "required": [ "subscription_metrics", "resource_group_metrics", "region_metrics" ], "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" } } } } ````