Viewing connection information
Getting a list of connections
Note
The connection list only displays those connections to which the user has access (the connection-manager.auditor or connection-manager.viewer role). A user with access permissions for a folder will be able to view all connections in that folder.
- In the management console
, select a folder. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To get a list of connections:
-
See the description of the CLI command for getting a list of connections:
yc metadata-hub connection-manager connection list --help -
Get the list of connections by running this comand:
yc metadata-hub connection-manager connection listTo get only specific connections, provide one or more flags in the command:
-
--db-type: Database type. Possible values:postgresql,mysql,clickhouse,mongodb,kafka,redis,opensearch,trino,valkey,greenplum. -
--is-manual: Connections created manually. -
--mdb-cluster-id: Cluster ID. -
--is-on-premise: Connections to custom installations.
For example, to get the connections to custom
mysqlDB installations, run this command:yc metadata-hub connection-manager connection list \ --db-type mysql \ --is-on-premise -
To get the list of Connection Manager connections in the default folder, use the Connection.List REST API method or the ConnectionService.List gRPC API method.
To view the list of connections in a different folder, provide the folder ID in the request. Learn more about how to get a folder ID.
Viewing connection information
- In the management console
, select a folder. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - Click the line with the connection to view its details.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To get information about a connection:
-
See the description of the CLI command for getting information about a connection:
yc metadata-hub connection-manager connection get --help -
Get information about a connection by running this command:
yc metadata-hub connection-manager connection get <connection_ID>You can get the connection ID with the list of connections in the folder.
To get information about a Connection Manager connection, use the Connection.Get REST API method or the ConnectionService.Get gRPC API method and provide the connection ID in the request.
You can get the connection ID with the list of connections in the folder.
Viewing connection dependencies
-
In the management console
, select a folder. -
Select Yandex MetaData Hub.
-
In the left-hand panel, select
Connection manager and click the name of the connection you need. -
In the left-hand panel, select
Dependencies.The dependency list shows managed database clusters and service instances that use Connection Manager to store connection information. Click a line in the dependency list to go to a cluster or service instance.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To get information about connection dependencies:
-
See the description of the CLI command for getting information about command dependencies:
yc metadata-hub connection-manager connection resolve-cluster --help -
Get information about connection dependencies by running this command:
yc metadata-hub connection-manager connection resolve-cluster <connection_ID>You can get the connection ID with the list of connections in the folder.
Note
For connections to managed database clusters, the
resolve-clustercommand returns the cluster topology. For connections to custom database installations, it returns the same information as the get command.
To get information about Connection Manager connection dependencies, use the Connection.ResolveCluster REST API method or the ConnectionService.ResolveCluster gRPC API method and provide the connection ID in the request.
You can get the connection ID with the list of connections in the folder.
Note
For connections to managed database clusters, the ResolveCluster method returns the cluster topology. For connections to custom database installations, it returns the same information as the Get method.
Viewing the history of operations
-
In the management console
, select a folder. -
Select Yandex MetaData Hub.
-
In the left-hand panel, select
Connection manager and click the name of the connection you need. -
In the left-hand panel, select
Operations.In the list of operations, you can view all the operations for the selected connection since its creation:
Create: Connection created.Update: Connection updated.Delete: Connection deleted.Set access bindings: Connection user roles assigned.Update access bindings: Connection user roles updated.
You can also view the technical operations:
Bump version: Secret version for MDB connections updated.Update references: Connection references updated.Update version references: Updated the connection version references used when creating or deleting an MDB cluster backup.Delete version: Connection version deleted after removing the most recent MDB cluster backup.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To get information about completed operations for a specific connection:
-
See the description of the CLI command for getting information about completed operations:
yc metadata-hub connection-manager connection list-operations --help -
Get information about completed operations by running this command:
yc metadata-hub connection-manager connection list-operations <connection_ID>You can get the connection ID with the list of connections in the folder.
To get information about operations performed for a specific Connection Manager connection, use the Connection.ListOperations REST API method or the ConnectionService.ListOperations gRPC API method and provide the connection ID in the request.
You can get the connection ID with the list of connections in the folder.