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. target can be only one of the following: |
|
connection |
An ad-hoc connection profile configuration. |
connection |
A reference to an existing connection profile. |
Union field hierarchy . The depth of the retrieved hierarchy of data objects. hierarchy can be only one of the following: |
|
full |
Whether to retrieve the full hierarchy of data objects (TRUE) or only the current level (FALSE). |
hierarchy |
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_object can be only one of the following: |
|
oracle |
Oracle RDBMS to enrich with child data objects and metadata. |
mysql |
MySQL RDBMS to enrich with child data objects and metadata. |
postgresql |
PostgreSQL RDBMS to enrich with child data objects and metadata. |
sql |
SQLServer RDBMS 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_object can be only one of the following: |
|
oracle |
Enriched Oracle RDBMS object. |
mysql |
Enriched MySQL RDBMS object. |
postgresql |
Enriched PostgreSQL RDBMS object. |
sql |
Enriched SQLServer RDBMS object. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.