> ## 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 a specific connection > Get a specific connection ## OpenAPI ````json GET /api/v1/discovery/connections/{id} { "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/connections/{id}": { "get": { "description": "Get a specific connection", "operationId": "GetConnection", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "2XX": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DiscoveryConnection" } } }, "description": "Success result" } }, "security": [ { "Oauth2ClientCredentials": [] } ], "summary": "Get a specific connection", "tags": [ "DiscoveryConnection" ] } } }, "components": { "schemas": { "DiscoveryConnection": { "allOf": [ { "properties": { "acct_id": { "description": "Uuid of the account that the connection belongs to", "format": "uuid", "type": "string" }, "connection_config": { "$ref": "#/components/schemas/DiscoveryConnectionConfig" }, "connection_id": { "description": "An internally generated Uuid for the Connection type", "format": "uuid", "type": "string" }, "created_at": { "description": "The time this Connection object was created", "example": "20170509T070912Z", "pattern": "^\\d{4}\\d{2}\\d{2}T\\d{2}\\d{2}\\d{2}Z$", "type": "string" }, "external_key_sources": { "description": "External key source", "items": { "format": "uuid", "type": "string" }, "nullable": true, "type": "array", "uniqueItems": true }, "group_id": { "description": "Uuid of the group to which the connection object belongs", "format": "uuid", "type": "string" }, "name": { "description": "Name of the Connection", "maxLength": 4096, "pattern": "^[^\\n]*[^\\s\\n][^\\n]*$", "type": "string" }, "policies": { "$ref": "#/components/schemas/DiscoveryConnectionPolicies" }, "scan_filter": { "description": "The scan filter representing which cloud service provider entities to scan" } }, "required": [ "connection_id", "name", "acct_id", "group_id", "created_at", "scan_filter", "connection_config" ], "type": "object" } ] }, "DiscoveryConnectionConfig": { "discriminator": { "mapping": { "aws": "DiscoveryConnectionConfigVariantAws", "azure": "DiscoveryConnectionConfigVariantAzure", "dsm": "DiscoveryConnectionConfigVariantDsm", "dsm_agent": "DiscoveryConnectionConfigVariantDsmAgent", "on_prem": "DiscoveryConnectionConfigVariantOnPrem" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryConnectionConfigVariantAws" }, { "$ref": "#/components/schemas/DiscoveryConnectionConfigVariantAzure" }, { "$ref": "#/components/schemas/DiscoveryConnectionConfigVariantOnPrem" }, { "$ref": "#/components/schemas/DiscoveryConnectionConfigVariantDsm" }, { "$ref": "#/components/schemas/DiscoveryConnectionConfigVariantDsmAgent" } ] }, "DiscoveryConnectionPolicies": { "allOf": [ { "properties": { "crypto_policy": { "format": "uuid", "nullable": true, "type": "string" } }, "type": "object" } ] }, "DiscoveryConnectionConfigVariantAws": { "allOf": [ { "properties": { "$type": { "enum": [ "aws" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAwsConfig" } ] }, "DiscoveryConnectionConfigVariantAzure": { "allOf": [ { "properties": { "$type": { "enum": [ "azure" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAzureConfig" } ] }, "DiscoveryConnectionConfigVariantOnPrem": { "allOf": [ { "properties": { "$type": { "enum": [ "on_prem" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryOnPremConnection" } ] }, "DiscoveryConnectionConfigVariantDsm": { "allOf": [ { "properties": { "$type": { "enum": [ "dsm" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryDsmConnectionConfig" } ] }, "DiscoveryConnectionConfigVariantDsmAgent": { "allOf": [ { "properties": { "$type": { "enum": [ "dsm_agent" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryDsmAgentConnectionConfig" } ] }, "DiscoveryAwsConfig": { "allOf": [ { "properties": { "aws_scope": { "$ref": "#/components/schemas/DiscoveryAwsScope" }, "creds": { "$ref": "#/components/schemas/DiscoveryAwsCredentials" }, "endpoint": { "format": "url", "nullable": true, "type": "string" }, "role_arn": { "description": "ARN for AWS Role configured for scanning AWS account/organization", "nullable": true, "type": "string" } }, "required": [ "creds", "aws_scope" ], "type": "object" } ] }, "DiscoveryAzureConfig": { "allOf": [ { "properties": { "azure_scope": { "$ref": "#/components/schemas/DiscoveryAzureScope" }, "credentials": { "$ref": "#/components/schemas/DiscoveryAzureCredentials" }, "tenant_id": { "format": "uuid", "type": "string" } }, "required": [ "credentials", "azure_scope", "tenant_id" ], "type": "object" } ] }, "DiscoveryOnPremConnection": { "allOf": [ { "properties": { "config": { "$ref": "#/components/schemas/DiscoveryOnPremConnectionConfig" }, "on_prem_details": { "$ref": "#/components/schemas/DiscoveryOnPremDetails" }, "state": { "$ref": "#/components/schemas/DiscoveryOnPremConnectionState" } }, "required": [ "config", "state" ], "type": "object" } ] }, "DiscoveryDsmConnectionConfig": { "allOf": [ { "properties": { "active_credential_id": { "nullable": true, "type": "string" }, "credentials": { "additionalProperties": { "$ref": "#/components/schemas/DiscoveryConnectionCredential" }, "nullable": true, "type": "object" }, "deployment": { "$ref": "#/components/schemas/DiscoveryDsmDeployment" } }, "required": [ "deployment" ], "type": "object" } ] }, "DiscoveryDsmAgentConnectionConfig": { "allOf": [ { "properties": { "credentials": { "additionalProperties": { "$ref": "#/components/schemas/DiscoveryConnectionCredential" }, "type": "object" }, "details": { "$ref": "#/components/schemas/DiscoveryDsmAgentDetails" }, "state": { "$ref": "#/components/schemas/DiscoveryDsmAgentConnectionState" } }, "required": [ "state", "credentials" ], "type": "object" } ] }, "DiscoveryAwsScope": { "description": "The scope that current AWS credentials should have access to", "discriminator": { "mapping": { "account": "DiscoveryAwsScopeVariantAccount", "organization": "DiscoveryAwsScopeVariantOrganization" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryAwsScopeVariantAccount" }, { "$ref": "#/components/schemas/DiscoveryAwsScopeVariantOrganization" } ] }, "DiscoveryAwsCredentials": { "discriminator": { "mapping": { "access_and_secret_key": "DiscoveryAwsCredentialsVariantAccessAndSecretKey", "open_id_connect": "DiscoveryAwsCredentialsVariantOpenIdConnect" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryAwsCredentialsVariantAccessAndSecretKey" }, { "$ref": "#/components/schemas/DiscoveryAwsCredentialsVariantOpenIdConnect" } ] }, "DiscoveryAzureScope": { "description": "The scope that current Azure credentials should have access to", "discriminator": { "mapping": { "management_group": "DiscoveryAzureScopeVariantManagementGroup", "subscription": "DiscoveryAzureScopeVariantSubscription" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryAzureScopeVariantManagementGroup" }, { "$ref": "#/components/schemas/DiscoveryAzureScopeVariantSubscription" } ] }, "DiscoveryAzureCredentials": { "discriminator": { "mapping": { "client_id_and_secret": "DiscoveryAzureCredentialsVariantClientIdAndSecret", "open_id_connect": "DiscoveryAzureCredentialsVariantOpenIdConnect" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryAzureCredentialsVariantClientIdAndSecret" }, { "$ref": "#/components/schemas/DiscoveryAzureCredentialsVariantOpenIdConnect" } ] }, "DiscoveryOnPremConnectionConfig": { "allOf": [ { "properties": { "auth": { "$ref": "#/components/schemas/DiscoveryOnPremConnectionAuth" }, "previous_credential": { "$ref": "#/components/schemas/DiscoveryOnPremPreviousCredential" } }, "required": [ "auth" ], "type": "object" } ] }, "DiscoveryOnPremDetails": { "allOf": [ { "properties": { "hostname": { "type": "string" }, "resource_summary": { "$ref": "#/components/schemas/DiscoveryResourceSummary" } }, "required": [ "hostname", "resource_summary" ], "type": "object" } ] }, "DiscoveryOnPremConnectionState": { "allOf": [ { "properties": { "last_polled_at": { "description": "The time this OnPremConnection was last polled", "example": "20170509T070912Z", "pattern": "^\\d{4}\\d{2}\\d{2}T\\d{2}\\d{2}\\d{2}Z$", "type": "string" }, "status": { "$ref": "#/components/schemas/DiscoveryOnPremConnectionStatus" } }, "required": [ "status" ], "type": "object" } ] }, "DiscoveryConnectionCredential": { "discriminator": { "mapping": { "dsm_agent": "DiscoveryConnectionCredentialVariantDsmAgent", "dsm_certificate": "DiscoveryConnectionCredentialVariantDsmCertificate" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryConnectionCredentialVariantDsmCertificate" }, { "$ref": "#/components/schemas/DiscoveryConnectionCredentialVariantDsmAgent" } ] }, "DiscoveryDsmDeployment": { "discriminator": { "mapping": { "other": "DiscoveryDsmDeploymentVariantOther", "saas": "DiscoveryDsmDeploymentVariantSaaS" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryDsmDeploymentVariantSaaS" }, { "$ref": "#/components/schemas/DiscoveryDsmDeploymentVariantOther" } ] }, "DiscoveryDsmAgentDetails": { "allOf": [ { "properties": { "agent_hostname": { "nullable": true, "type": "string" }, "app_id": { "format": "uuid", "nullable": true, "type": "string" }, "dsm_account_id": { "format": "uuid", "nullable": true, "type": "string" }, "dsm_url": { "format": "url", "type": "string" } }, "required": [ "dsm_url" ], "type": "object" } ] }, "DiscoveryDsmAgentConnectionState": { "allOf": [ { "properties": { "last_polled_at": { "description": "The time this DsmAgentConnection was last polled", "example": "20170509T070912Z", "pattern": "^\\d{4}\\d{2}\\d{2}T\\d{2}\\d{2}\\d{2}Z$", "type": "string" }, "status": { "$ref": "#/components/schemas/DiscoveryDsmAgentConnectionStatus" } }, "required": [ "status" ], "type": "object" } ] }, "DiscoveryAwsScopeVariantAccount": { "allOf": [ { "properties": { "$type": { "enum": [ "account" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAwsScopeAccount" } ] }, "DiscoveryAwsScopeVariantOrganization": { "allOf": [ { "properties": { "$type": { "enum": [ "organization" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "properties": {}, "type": "object" } ] }, "DiscoveryAwsCredentialsVariantAccessAndSecretKey": { "allOf": [ { "properties": { "$type": { "enum": [ "access_and_secret_key" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAwsCredentialsAccessAndSecretKey" } ] }, "DiscoveryAwsCredentialsVariantOpenIdConnect": { "allOf": [ { "properties": { "$type": { "enum": [ "open_id_connect" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAwsCredentialsOpenIdConnect" } ] }, "DiscoveryAzureScopeVariantManagementGroup": { "allOf": [ { "properties": { "$type": { "enum": [ "management_group" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAzureScopeManagementGroup" } ] }, "DiscoveryAzureScopeVariantSubscription": { "allOf": [ { "properties": { "$type": { "enum": [ "subscription" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAzureScopeSubscription" } ] }, "DiscoveryAzureCredentialsVariantClientIdAndSecret": { "allOf": [ { "properties": { "$type": { "enum": [ "client_id_and_secret" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAzureCredentialsClientIdAndSecret" } ] }, "DiscoveryAzureCredentialsVariantOpenIdConnect": { "allOf": [ { "properties": { "$type": { "enum": [ "open_id_connect" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryAzureCredentialsOpenIdConnect" } ] }, "DiscoveryOnPremConnectionAuth": { "discriminator": { "mapping": { "certificate": "DiscoveryOnPremConnectionAuthVariantCertificate", "secret": "DiscoveryOnPremConnectionAuthVariantSecret" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryOnPremConnectionAuthVariantCertificate" }, { "$ref": "#/components/schemas/DiscoveryOnPremConnectionAuthVariantSecret" } ] }, "DiscoveryOnPremPreviousCredential": { "allOf": [ { "properties": { "credential": { "$ref": "#/components/schemas/DiscoveryOnPremConnectionAuth" }, "valid_until": { "example": "20170509T070912Z", "pattern": "^\\d{4}\\d{2}\\d{2}T\\d{2}\\d{2}\\d{2}Z$", "type": "string" } }, "required": [ "credential", "valid_until" ], "type": "object" } ] }, "DiscoveryResourceSummary": { "allOf": [ { "properties": { "database_count": { "type": "integer" }, "fs_known_agents_count": { "nullable": true, "type": "integer" }, "source_code_repo_count": { "nullable": true, "type": "integer" } }, "required": [ "database_count" ], "type": "object" } ] }, "DiscoveryOnPremConnectionStatus": { "enum": [ "pending", "connected", "disconnected" ], "type": "string" }, "DiscoveryConnectionCredentialVariantDsmCertificate": { "allOf": [ { "properties": { "$type": { "enum": [ "dsm_certificate" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryDsmCertificate" } ] }, "DiscoveryConnectionCredentialVariantDsmAgent": { "allOf": [ { "properties": { "$type": { "enum": [ "dsm_agent" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryDsmAgentCredential" } ] }, "DiscoveryDsmDeploymentVariantSaaS": { "allOf": [ { "properties": { "$type": { "enum": [ "saas" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryDsmDeploymentSaaS" } ] }, "DiscoveryDsmDeploymentVariantOther": { "allOf": [ { "properties": { "$type": { "enum": [ "other" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryDsmDeploymentOther" } ] }, "DiscoveryDsmAgentConnectionStatus": { "enum": [ "pending", "connected", "disconnected" ], "type": "string" }, "DiscoveryAwsScopeAccount": { "allOf": [ { "properties": { "account_id": { "nullable": true, "type": "string" } }, "type": "object" } ] }, "DiscoveryAwsCredentialsAccessAndSecretKey": { "allOf": [ { "properties": { "access_key": { "type": "string" }, "secret_key": { "nullable": true, "type": "string" } }, "required": [ "access_key" ], "type": "object" } ] }, "DiscoveryAwsCredentialsOpenIdConnect": { "allOf": [ { "properties": { "auth_config_id": { "description": "Uuid for the AuthConfig object within Account", "format": "uuid", "type": "string" } }, "required": [ "auth_config_id" ], "type": "object" } ] }, "DiscoveryAzureScopeManagementGroup": { "allOf": [ { "properties": { "management_group_id": { "type": "string" } }, "required": [ "management_group_id" ], "type": "object" } ] }, "DiscoveryAzureScopeSubscription": { "allOf": [ { "properties": { "subscription_id": { "format": "uuid", "type": "string" } }, "required": [ "subscription_id" ], "type": "object" } ] }, "DiscoveryAzureCredentialsClientIdAndSecret": { "allOf": [ { "properties": { "client_id": { "type": "string" }, "client_secret": { "nullable": true, "type": "string" } }, "required": [ "client_id" ], "type": "object" } ] }, "DiscoveryAzureCredentialsOpenIdConnect": { "allOf": [ { "properties": { "auth_config_id": { "description": "Uuid for the AuthConfig object within Account", "format": "uuid", "type": "string" }, "client_id": { "type": "string" } }, "required": [ "client_id", "auth_config_id" ], "type": "object" } ] }, "DiscoveryOnPremConnectionAuthVariantCertificate": { "allOf": [ { "properties": { "$type": { "enum": [ "certificate" ], "type": "string" }, "$value": { "format": "byte", "type": "string" } }, "required": [ "$type", "$value" ], "type": "object" } ] }, "DiscoveryOnPremConnectionAuthVariantSecret": { "allOf": [ { "properties": { "$type": { "enum": [ "secret" ], "type": "string" }, "$value": { "type": "string" } }, "required": [ "$type", "$value" ], "type": "object" } ] }, "DiscoveryDsmCertificate": { "allOf": [ { "properties": { "app_id": { "format": "uuid", "nullable": true, "type": "string" }, "certificate_chain": { "items": { "format": "byte", "type": "string" }, "nullable": true, "type": "array" }, "created_at": { "example": "20170509T070912Z", "pattern": "^\\d{4}\\d{2}\\d{2}T\\d{2}\\d{2}\\d{2}Z$", "type": "string" }, "credential_id": { "type": "string" }, "private_key": { "format": "byte", "type": "string" } }, "required": [ "credential_id", "created_at" ], "type": "object" } ] }, "DiscoveryDsmAgentCredential": { "allOf": [ { "properties": { "credential": { "$ref": "#/components/schemas/DiscoveryDsmAgentCredentialDetails" } }, "required": [ "credential" ], "type": "object" } ] }, "DiscoveryDsmDeploymentSaaS": { "allOf": [ { "properties": { "region": { "$ref": "#/components/schemas/DiscoveryDsmRegion" } }, "required": [ "region" ], "type": "object" } ] }, "DiscoveryDsmDeploymentOther": { "allOf": [ { "properties": { "url": { "format": "url", "type": "string" } }, "required": [ "url" ], "type": "object" } ] }, "DiscoveryDsmAgentCredentialDetails": { "discriminator": { "mapping": { "secret": "DiscoveryDsmAgentCredentialDetailsVariantSecret" }, "propertyName": "$type" }, "oneOf": [ { "$ref": "#/components/schemas/DiscoveryDsmAgentCredentialDetailsVariantSecret" } ] }, "DiscoveryDsmRegion": { "enum": [ "north_america", "european_union", "united_kingdom", "asia_pacific", "australia", "saudi_arabia" ], "type": "string" }, "DiscoveryDsmAgentCredentialDetailsVariantSecret": { "allOf": [ { "properties": { "$type": { "enum": [ "secret" ], "type": "string" } }, "required": [ "$type" ], "type": "object" }, { "$ref": "#/components/schemas/DiscoveryDsmAgentCredentialDetailsSecret" } ] }, "DiscoveryDsmAgentCredentialDetailsSecret": { "allOf": [ { "properties": { "created_at": { "example": "20170509T070912Z", "pattern": "^\\d{4}\\d{2}\\d{2}T\\d{2}\\d{2}\\d{2}Z$", "type": "string" }, "credential_id": { "format": "uuid", "type": "string" }, "value": { "type": "string" } }, "required": [ "credential_id", "created_at", "value" ], "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" } } } } ````