List of endpoints
Using the discovery list
information command, you can get a list of YDB cluster endponts that you can connect to in order to access your database:
ydb [connection options] discovery list
where [connection options] are database connection options
The output rows in the response contain the following information:
- Endpoint, including protocol and port
- Availability zone (in square brackets)
- The
#
character is used for the list of YDB services available on this endpoint
An endpoint discovery request to the YDB cluster is executed in the YDB SDK at driver initialization so that you can use the discovery list
CLI command to localize connection issues.
Example
$ ydb -p quickstart discovery list
grpcs://vm-etn01q5-ysor.etn01q5k.ydb.mdb.yandexcloud.net:2135 [sas] #table_service #scripting #discovery #rate_limiter #locking #kesus
grpcs://vm-etn01q5-arum.etn01ftr.ydb.mdb.yandexcloud.net:2135 [vla] #table_service #scripting #discovery #rate_limiter #locking #kesus
grpcs://vm-etn01q5beftr.ydb.mdb.yandexcloud.net:2135 [myt] #table_service #scripting #discovery #rate_limiter #locking #kesus