List of endpoints

The discovery list information command lets you get a list of endpoints for the YDB cluster that you can establish connections with in order to access your database:

  1. ydb [connection options] discovery list

List of endpoints - 图1

where [connection options] are database connection options

The output rows in the response contain the following information:

  1. Endpoint, including protocol and port
  2. Availability zone (in square brackets)
  3. 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

  1. $ ydb --profile db1 discovery list
  2. grpcs://vm-etn01q5-ysor.etn01q5k.ydb.mdb.yandexcloud.net:2135 [sas] #table_service #scripting #discovery #rate_limiter #locking #kesus
  3. grpcs://vm-etn01q5-arum.etn01ftr.ydb.mdb.yandexcloud.net:2135 [vla] #table_service #scripting #discovery #rate_limiter #locking #kesus
  4. grpcs://vm-etn01q5beftr.ydb.mdb.yandexcloud.net:2135 [myt] #table_service #scripting #discovery #rate_limiter #locking #kesus

List of endpoints - 图2