Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Managed Service for MySQL
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Information about existing clusters
    • Creating clusters
    • Connecting to databases
    • Stopping and starting clusters
    • Changing clusters
    • Connecting to DataLens
    • How to manage MySQL hosts
    • Database management
    • Database setup
    • Managing database users
    • Managing backups
    • Deleting clusters
    • Database migration to the Cloud
  • Concepts
    • Relationship between service resources
    • Host classes
    • Network in Managed Service for MySQL
    • Quotas and limits
    • Storage types
    • Backups
    • Replication
  • Access management
  • Pricing policy
    • Current pricing policy
    • Archive
      • Before February 1, 2020
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • BackupService
      • ClusterService
      • DatabaseService
      • ResourcePresetService
      • UserService
      • OperationService
    • REST
      • Overview
      • Backup
        • Overview
        • get
        • list
      • Cluster
        • Overview
        • addHosts
        • backup
        • create
        • delete
        • deleteHosts
        • get
        • list
        • listBackups
        • listHosts
        • listLogs
        • listOperations
        • restore
        • start
        • stop
        • update
      • Database
        • Overview
        • create
        • delete
        • get
        • list
      • ResourcePreset
        • Overview
        • get
        • list
      • User
        • Overview
        • create
        • delete
        • get
        • grantPermission
        • list
        • revokePermission
        • update
      • Operation
        • Overview
        • get
  • Questions and answers
    • General questions
    • Questions about MySQL
    • All questions on the same page
  1. API reference
  2. REST
  3. Database
  4. get

Method get

  • HTTP request
  • Path parameters
  • Response

Returns the specified MySQL database.

To get the list of available MySQL databases, make a list request.

HTTP request

GET https://mdb.api.cloud.yandex.net/managed-mysql/v1alpha/clusters/{clusterId}/databases/{databaseName}

Path parameters

Parameter Description
clusterId Required. ID of the MySQL cluster that the database belongs to. To get the cluster ID use a list request. The maximum string length in characters is 50.
databaseName Required. Name of the MySQL database to return. To get the name of the database use a list request. The maximum string length in characters is 63. Value must match the regular expression [a-zA-Z0-9_-]*.

Response

HTTP Code: 200 - OK

{
  "name": "string",
  "clusterId": "string"
}

A MySQL database. For more information, see
the documentation.

Field Description
name string

Name of the database.

clusterId string

ID of the MySQL cluster that the database belongs to.

In this article:
  • HTTP request
  • Path parameters
  • Response
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC