To list all of the database clusters available on your account, send a GET request to /v2/databases. To limit the results to database clusters with a specific tag, include the tag_name query parameter set to the name of the tag. For example, /v2/databases?tag_name=$TAG_NAME.
The result will be a JSON object with a databases key. This will be set to an array of database objects, each of which will contain the standard database attributes.
The embedded connection and private_connection objects will contain the information needed to access the database cluster:
The embedded maintenance_window object will contain information about any scheduled maintenance for the database cluster.
643 matches
60 actions
DigitalOcean
60 actions
- Create a New DomainPOSTv1.0.0
- Create a New Domain RecordPOSTv1.0.0
- Get Customer BalanceGETv1.0.0
- Get NamespaceGETv1.0.0
- Get TriggerGETv1.0.0
- Get User InformationGETv1.0.0
- List All ActionsGETv1.0.0
- List All Actions for a Floating IPGETv1.0.0
- List All Actions for an ImageGETv1.0.0
- List all app alertsGETv1.0.0
- List All CDN EndpointsGETv1.0.0
- List All CertificatesGETv1.0.0
- List All Database ClustersGETv1.0.0
- List all Database UsersGETv1.0.0
- List All DatabasesGETv1.0.0
- List All Domain RecordsGETv1.0.0
- List All DomainsGETv1.0.0
- List All Droplet NeighborsGETv1.0.0
- List All FirewallsGETv1.0.0
- List All Floating IPsGETv1.0.0
- List All Read-only ReplicasGETv1.0.0
- List App RegionsGETv1.0.0
- List App TiersGETv1.0.0
- List Associated Resources for a DropletGETv1.0.0
- List Backups for a Database ClusterGETv1.0.0
- List Billing HistoryGETv1.0.0
- List Connection Pools (PostgreSQL)GETv1.0.0
- List Database OptionsGETv1.0.0
- List Default Project ResourcesGETv1.0.0
- List Firewall Rules (Trusted Sources) for a Database ClusterGETv1.0.0
- List Instance SizesGETv1.0.0
- List NamespacesGETv1.0.0
- List Neighbors for a DropletGETv1.0.0
- List TriggersGETv1.0.0
- Retrieve a Droplet ActionGETv1.0.0
- Retrieve an App DeploymentGETv1.0.0
- Retrieve an App TierGETv1.0.0
- Retrieve an Existing ActionGETv1.0.0
- Retrieve an Existing ActionGETv1.0.0
- Retrieve an Existing AppGETv1.0.0
- Retrieve an Existing CDN EndpointGETv1.0.0
- Retrieve an Existing CertificateGETv1.0.0
- Retrieve an Existing DatabaseGETv1.0.0
- Retrieve an Existing Database ClusterGETv1.0.0
- Retrieve an Existing Database Cluster ConfigurationGETv1.0.0
- Retrieve an Existing Database UserGETv1.0.0
- Retrieve an Existing DomainGETv1.0.0
- Retrieve an Existing Domain RecordGETv1.0.0
- Retrieve an Existing DropletGETv1.0.0
- Retrieve an Existing FirewallGETv1.0.0
- Retrieve an Existing Floating IPGETv1.0.0
- Retrieve an Existing Floating IP ActionGETv1.0.0
- Retrieve an Existing Read-only ReplicaGETv1.0.0
- Retrieve an Instance SizeGETv1.0.0
- Retrieve App Daily Bandwidth MetricsGETv1.0.0
- Retrieve Existing Connection Pool (PostgreSQL)GETv1.0.0
- Retrieve the Eviction Policy for a Redis ClusterGETv1.0.0
- Retrieve the Public CertificateGETv1.0.0
- Retrieve the SQL Modes for a MySQL ClusterGETv1.0.0
- Retrieve the Status of an Online MigrationGETv1.0.0
Infrastructure/DigitalOcean
List All Database Clusters
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
{
"type": "object",
"properties": {
"tag_name": {
"type": "string"
}
},
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
{
"properties": {
"databases": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"engine",
"num_nodes",
"size",
"region"
],
"properties": {
"connection": {
"type": "object"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "A time value given in ISO8601 combined date and time format that represents when the database cluster was created."
},
"db_names": {
"type": "array",
"description": "An array of strings containing the names of databases created in the database cluster.",
"items": {
"type": "string"
}
},
"engine": {
"type": "string",
"description": "A slug representing the database engine used for the cluster. The possible values are: \"pg\" for PostgreSQL, \"mysql\" for MySQL, \"redis\" for Redis, and \"mongodb\" for MongoDB.",
"enum": [
"pg",
"mysql",
"redis",
"mongodb"
]
},
"id": {
"type": "string",
"format": "uuid",
"description": "A unique ID that can be used to identify and reference a database cluster."
},
"maintenance_window": {
"type": "object"
},
"name": {
"type": "string",
"description": "A unique, human-readable name referring to a database cluster."
},
"num_nodes": {
"type": "integer",
"description": "The number of nodes in the database cluster."
},
"private_connection": {
"type": "object"
},
"private_network_uuid": {
"type": "string",
"description": "A string specifying the UUID of the VPC to which the database cluster will be assigned. If excluded, the cluster when creating a new database cluster, it will be assigned to your account's default VPC for the region."
},
"project_id": {
"type": "string",
"format": "uuid",
"description": "The ID of the project that the database cluster is assigned to. If excluded when creating a new database cluster, it will be assigned to your default project."
},
"region": {
"type": "string",
"description": "The slug identifier for the region where the database cluster is located."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"cluster_uuid": {
"type": "string",
"description": "A unique ID for the database cluster to which the rule is applied."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "A time value given in ISO8601 combined date and time format that represents when the firewall rule was created."
},
"type": {
"type": "string",
"description": "The type of resource that the firewall rule allows to access the database cluster.",
"enum": [
"droplet",
"k8s",
"ip_addr",
"tag",
"app"
]
},
"uuid": {
"type": "string",
"description": "A unique ID for the firewall rule itself."
},
"value": {
"type": "string",
"description": "The ID of the specific resource, the name of a tag applied to a group of resources, or the IP address that the firewall rule allows to access the database cluster."
}
}
}
},
"size": {
"type": "string",
"description": "The slug identifier representing the size of the nodes in the database cluster."
},
"status": {
"type": "string",
"description": "A string representing the current status of the database cluster.",
"enum": [
"creating",
"online",
"resizing",
"migrating",
"forking"
]
},
"tags": {
"type": "array",
"description": "An array of tags that have been applied to the database cluster.",
"items": {
"type": "string"
}
},
"users": {
"type": "array",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"mysql_settings": {
"type": "object",
"required": [
"auth_plugin"
],
"properties": {
"auth_plugin": {
"type": "string",
"description": "A string specifying the authentication method to be used for connections\nto the MySQL user account. The valid values are `mysql_native_password`\nor `caching_sha2_password`. If excluded when creating a new user, the\ndefault for the version of MySQL in use will be used. As of MySQL 8.0, the\ndefault is `caching_sha2_password`.\n",
"enum": [
"mysql_native_password",
"caching_sha2_password"
]
}
}
},
"name": {
"type": "string",
"description": "The name of a database user."
},
"password": {
"type": "string",
"description": "A randomly generated password for the database user."
},
"role": {
"type": "string",
"description": "A string representing the database user's role. The value will be either\n\"primary\" or \"normal\".\n",
"enum": [
"primary",
"normal"
]
}
}
}
},
"version": {
"type": "string",
"description": "A string representing the version of the database engine in use for the cluster."
},
"version_end_of_availability": {
"type": "string",
"description": "A timestamp referring to the date when the particular version will no longer be available for creating new clusters. If null, the version does not have an end of availability timeline."
},
"version_end_of_life": {
"type": "string",
"description": "A timestamp referring to the date when the particular version will no longer be supported. If null, the version does not have an end of life timeline."
}
}
}
}
}
}