curl --request GET \
--url https://api.gcore.com/cloud/v1/dbaas/postgres/clusters/{project_id}/{region_id}/{cluster_name} \
--header 'Authorization: <api-key>'
{
"cluster_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"databases": [
{
"name": "mydatabase",
"owner": "myuser",
"size": 2048
}
],
"flavor": {
"cpu": 1,
"memory_gib": 1
},
"high_availability": {
"replication_mode": "sync"
},
"network": {
"acl": [
"92.33.34.127"
],
"connection_string": "postgresql://username:password@address.gcore.dev:5432/dbname",
"host": "address.gcore.dev",
"network_type": "public"
},
"pg_server_configuration": {
"pg_conf": "\nlisten_addresses = 'localhost'\nport = 5432\nmax_connections = 100\nshared_buffers = 128MB\nlogging_collector = on",
"pooler": null,
"version": "<string>"
},
"status": "DELETING",
"storage": {
"size_gib": 100,
"type": "ssd-hiiops"
},
"users": [
{
"is_secret_revealed": true,
"name": "myuser",
"role_attributes": [
"INHERIT"
]
}
]
}
Get detailed information about a specific PostgreSQL cluster.
curl --request GET \
--url https://api.gcore.com/cloud/v1/dbaas/postgres/clusters/{project_id}/{region_id}/{cluster_name} \
--header 'Authorization: <api-key>'
{
"cluster_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"databases": [
{
"name": "mydatabase",
"owner": "myuser",
"size": 2048
}
],
"flavor": {
"cpu": 1,
"memory_gib": 1
},
"high_availability": {
"replication_mode": "sync"
},
"network": {
"acl": [
"92.33.34.127"
],
"connection_string": "postgresql://username:password@address.gcore.dev:5432/dbname",
"host": "address.gcore.dev",
"network_type": "public"
},
"pg_server_configuration": {
"pg_conf": "\nlisten_addresses = 'localhost'\nport = 5432\nmax_connections = 100\nshared_buffers = 128MB\nlogging_collector = on",
"pooler": null,
"version": "<string>"
},
"status": "DELETING",
"storage": {
"size_gib": 100,
"type": "ssd-hiiops"
},
"users": [
{
"is_secret_revealed": true,
"name": "myuser",
"role_attributes": [
"INHERIT"
]
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
Region ID
Cluster name
Cluster details
The response is of type object
.
Was this page helpful?