Managed Service for PostgreSQL API, gRPC: DatabaseService.Get
Returns the specified PostgreSQL Database resource.
To get the list of available PostgreSQL Database resources, make a List request.
gRPC request
rpc Get (GetDatabaseRequest) returns (Database)
GetDatabaseRequest
{
"cluster_id": "string",
"database_name": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the PostgreSQL cluster that the database belongs to. |
database_name |
string Required field. Name of the PostgreSQL Database resource to return. |
Database
{
"name": "string",
"cluster_id": "string",
"owner": "string",
"lc_collate": "string",
"lc_ctype": "string",
"extensions": [
{
"name": "string",
"version": "string"
}
],
"template_db": "string",
"deletion_protection": "google.protobuf.BoolValue"
}
A PostgreSQL Database resource. For more information, see
the Developer's Guide.
Field |
Description |
name |
string Name of the database. |
cluster_id |
string ID of the PostgreSQL cluster that the database belongs to. |
owner |
string Name of the user assigned as the owner of the database. |
lc_collate |
string POSIX locale for string sorting order. |
lc_ctype |
string POSIX locale for character classification. |
extensions[] |
PostgreSQL extensions enabled for the database. |
template_db |
string Name of the database template. |
deletion_protection |
Deletion Protection inhibits deletion of the database Default value: |
Extension
Field |
Description |
name |
string Name of the extension, e.g. |
version |
string Version of the extension. |