---
schema_version: "1"
id: 9596ad38308ae9d4d0b9e6d582d7e9d1787491293d1bc590dbd092a01df8b8bc
title: CdpConnection Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_ConnectAPI_CdpConnection_static_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpConnection_static_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f9baee6da61648affde6ce3ca4768c732412a368946eae11ab5501694e14c4f1
description: Get database schemas for a Data 360 connection.These methods are for CdpConnection. All methods are static.Get a list of database schemas for a connection.
---
# CdpConnection Class

Get database schemas for a Data 360 connection.

## Namespace

[ConnectApi](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_connect_api.htm "The ConnectApi namespace (also called Connect in Apex) provides classes for accessing the same data available in Connect REST API. Use Connect in Apex to create custom experiences in Salesforce.")

## CdpConnection Methods

These methods are for CdpConnection. All methods are static.

- **[getDatabaseSchemas(connectionId, getDatabaseSchemasInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpConnection_static_methods.htm#apex_ConnectAPI_CdpConnection_getDatabaseSchemas_1)**  
    Get a list of database schemas for a connection.

### getDatabaseSchemas(connectionId, getDatabaseSchemasInput)

Get a list of database schemas for a connection.

#### API Version

63.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ConnectionDbSchemaCollection getDatabaseSchemas(String connectionId, ConnectApi.ConnectionDbSchemaCollectionInputRepresentation getDatabaseSchemasInput)

#### Parameters

connectionId

Type: String

ID for the connection.

getDatabaseSchemasInput

Type: [ConnectApi.ConnectionDbSchemaCollectionInputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_connection_db_schema_collection.htm "Represents the input for a database schema collection.")

Input representation for a database schema collection.

#### Return Value

Type: [ConnectApi.ConnectionDbSchemaCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_connection_db_schema_collection.htm "Represents a collection of database schemas.")