> ## 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 service type > Get Services report grouped by service type. ## OpenAPI ````json GET /api/v1/discovery/scans/{id}/services_report/by_service { "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_service": { "get": { "description": "Get Services report grouped by service type.", "operationId": "GetServicesReportGroupedByServiceType", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "format": "uuid", "type": "string" } }, { "$ref": "#/components/parameters/DiscoveryScannedServicesReportByServiceTypeParams" } ], "responses": { "2XX": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscoveryScannedServicesResponseByServiceType" } } }, "description": "Success result" } }, "security": [ { "Oauth2ClientCredentials": [] } ], "summary": "Get Services report grouped by service type.", "tags": [ "DiscoveryServicesReports" ] } } }, "components": { "parameters": { "DiscoveryScannedServicesReportByServiceTypeParams": { "explode": true, "in": "query", "name": "DiscoveryScannedServicesReportByServiceTypeParams", "schema": { "$ref": "#/components/schemas/DiscoveryScannedServicesReportByServiceTypeParams" } } }, "schemas": { "DiscoveryScannedServicesResponseByServiceType": { "allOf": [ { "properties": { "items": { "items": { "$ref": "#/components/schemas/DiscoveryServiceViolationMetrics" }, "type": "array" }, "metadata": { "$ref": "#/components/schemas/DiscoveryServicesMetadata" } }, "required": [ "items", "metadata" ], "type": "object" } ] }, "DiscoveryScannedServicesReportByServiceTypeParams": { "allOf": [ { "properties": { "filter": { "type": "string" } }, "type": "object" } ] }, "DiscoveryServiceViolationMetrics": { "allOf": [ { "properties": { "cloud_provider_service_type": { "$ref": "#/components/schemas/DiscoveryCloudProviderServiceType" }, "overall_risk": { "$ref": "#/components/schemas/DiscoveryRiskLevel" }, "violations": { "additionalProperties": { "$ref": "#/components/schemas/DiscoveryViolationDetails" }, "type": "object" } }, "required": [ "cloud_provider_service_type", "overall_risk", "violations" ], "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" } ] }, "DiscoveryCloudProviderServiceType": { "discriminator": { "mapping": { "aws": "DiscoveryCloudProviderServiceTypeVariantAws", "azure": "DiscoveryCloudProviderServiceTypeVariantAzure" }, "propertyName": "cloud_provider" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryCloudProviderServiceTypeVariantAws" }, { "$ref": "#/components/schemas/DiscoveryCloudProviderServiceTypeVariantAzure" } ] }, "DiscoveryRiskLevel": { "enum": [ "critical", "high", "medium", "low", "good" ], "type": "string" }, "DiscoveryViolationDetails": { "allOf": [ { "properties": { "count": { "type": "integer" }, "risk_level": { "$ref": "#/components/schemas/DiscoveryRiskLevel" } }, "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" } ] }, "DiscoveryCloudProviderServiceTypeVariantAws": { "allOf": [ { "properties": { "cloud_provider": { "enum": [ "aws" ], "type": "string" } }, "required": [ "cloud_provider" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryCloudProviderServiceTypeAws" } ] }, "DiscoveryCloudProviderServiceTypeVariantAzure": { "allOf": [ { "properties": { "cloud_provider": { "enum": [ "azure" ], "type": "string" } }, "required": [ "cloud_provider" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryCloudProviderServiceTypeAzure" } ] }, "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" } ] }, "DiscoveryCloudProviderServiceTypeAws": { "allOf": [ { "properties": { "service_type": { "$ref": "#/components/schemas/DiscoveryAwsService" } }, "required": [ "service_type" ], "type": "object" } ] }, "DiscoveryCloudProviderServiceTypeAzure": { "allOf": [ { "properties": { "service_type": { "$ref": "#/components/schemas/DiscoveryAzureService" } }, "required": [ "service_type" ], "type": "object" } ] }, "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" } ] }, "DiscoveryAwsService": { "enum": [ "acm", "ebs", "kms", "s3", "rds", "dynamo_db", "eks", "efs", "redshift" ], "type": "string" }, "DiscoveryAzureService": { "enum": [ "key_vaults", "storage_accounts", "sql_server", "cosmos_db", "container_groups", "managed_disks", "managed_clusters", "storage_account_blobs" ], "type": "string" } }, "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" } } } } ````