- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Examples
- Try it!
Use this method to discover a connection profile. The discover API call exposes the data objects and metadata belonging to the profile. Typically, a request returns children data objects of a parent data object that's optionally supplied in the request.
HTTP request
POST https://datastream.googleapis.com/v1/{parent}/connectionProfiles:discover
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The parent resource of the connection profile type. Must be in the format  Authorization requires the following IAM permission on the specified resource  
 | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { // Union field | 
| Fields | |
|---|---|
| Union field target. The connection profile on which to run discover.targetcan be only one of the following: | |
| connectionProfile | 
 An ad-hoc connection profile configuration. | 
| connectionProfileName | 
 A reference to an existing connection profile. | 
| Union field hierarchy. The depth of the retrieved hierarchy of data objects.hierarchycan be only one of the following: | |
| fullHierarchy | 
 Whether to retrieve the full hierarchy of data objects (TRUE) or only the current level (FALSE). | 
| hierarchyDepth | 
 The number of hierarchy levels below the current level to be retrieved. | 
| Union field data_object. The data object to populate with child data objects and metadata.data_objectcan be only one of the following: | |
| oracleRdbms | 
 Oracle RDBMS to enrich with child data objects and metadata. | 
| mysqlRdbms | 
 MySQL RDBMS to enrich with child data objects and metadata. | 
| postgresqlRdbms | 
 PostgreSQL RDBMS to enrich with child data objects and metadata. | 
| sqlServerRdbms | 
 SQLServer RDBMS to enrich with child data objects and metadata. | 
| salesforceOrg | 
 Salesforce organization to enrich with child data objects and metadata. | 
| mongodbCluster | 
 MongoDB cluster to enrich with child data objects and metadata. | 
Response body
Response from a discover request.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| { // Union field | 
| Fields | |
|---|---|
| Union field data_object. The data object that has been enriched by the discover API call.data_objectcan be only one of the following: | |
| oracleRdbms | 
 Enriched Oracle RDBMS object. | 
| mysqlRdbms | 
 Enriched MySQL RDBMS object. | 
| postgresqlRdbms | 
 Enriched PostgreSQL RDBMS object. | 
| sqlServerRdbms | 
 Enriched SQLServer RDBMS object. | 
| salesforceOrg | 
 Enriched Salesforce organization. | 
| mongodbCluster | 
 Enriched MongoDB cluster. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
- datastream.connectionProfiles.discover
For more information, see the IAM documentation.