Download OpenAPI specification:Download
An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based "Data Center Designer" (DCD) tool or via an easy to use API.
The API allows you to create additional PostgreSQL database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
Retrieves a list of PostgreSQL clusters.
limit | integer [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with 'offset' for pagination. |
offset | integer Default: 0 Example: offset=200 The first element to return. Use together with 'limit' for pagination. |
filter.name | string Response filter to list only the PostgreSQL clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field. |
{- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "items": [
- {
- "type": "cluster",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "PostgreSQL cluster",
- "postgresVersion": "13",
- "location": "de/fra",
- "dnsName": "pg.example.com",
- "backupLocation": "de",
- "instances": 2,
- "ram": 2048,
- "cores": 4,
- "storageSize": 5000,
- "storageType": "HDD",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}, - "synchronizationMode": "ASYNCHRONOUS",
- "connectionPooler": {
- "enabled": true,
- "poolMode": "transaction"
}
}
}
], - "offset": 200,
- "limit": 100,
- "links": {
- "prev": "<PREVIOUS-PAGE-URI>",
- "self": "<THIS-PAGE-URI>",
- "next": "<NEXT-PAGE-URI>"
}
}
Creates a new PostgreSQL cluster.
If the fromBackup
field is populated, the new cluster will be created
based on the given backup.
The cluster to be created.
object (ClusterMetadata) Metadata of the resource. | |
object (CreateClusterProperties) Properties with all data needed to create a new PostgreSQL cluster. |
{- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "postgresVersion": "13",
- "instances": 2,
- "cores": 4,
- "ram": 2048,
- "storageSize": 5000,
- "storageType": "HDD",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "location": "de/fra",
- "backupLocation": "de",
- "displayName": "PostgreSQL cluster",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}, - "credentials": {
- "username": "db-admin",
- "password": "password123"
}, - "synchronizationMode": "ASYNCHRONOUS",
- "fromBackup": {
- "backupId": "dcd31531-3ac8-11eb-9feb-046c59cc737e",
- "recoveryTargetTime": "2020-12-10T13:37:50+01:00"
}, - "connectionPooler": {
- "enabled": true,
- "poolMode": "transaction"
}
}
}
{- "type": "cluster",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "PostgreSQL cluster",
- "postgresVersion": "13",
- "location": "de/fra",
- "dnsName": "pg.example.com",
- "backupLocation": "de",
- "instances": 2,
- "ram": 2048,
- "cores": 4,
- "storageSize": 5000,
- "storageType": "HDD",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}, - "synchronizationMode": "ASYNCHRONOUS",
- "connectionPooler": {
- "enabled": true,
- "poolMode": "transaction"
}
}
}
You can retrieve a PostgreSQL cluster by using its ID. This value can be found in the response body when a PostgreSQL cluster is created or when you GET a list of PostgreSQL clusters.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
{- "type": "cluster",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "PostgreSQL cluster",
- "postgresVersion": "13",
- "location": "de/fra",
- "dnsName": "pg.example.com",
- "backupLocation": "de",
- "instances": 2,
- "ram": 2048,
- "cores": 4,
- "storageSize": 5000,
- "storageType": "HDD",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}, - "synchronizationMode": "ASYNCHRONOUS",
- "connectionPooler": {
- "enabled": true,
- "poolMode": "transaction"
}
}
}
Patch attributes of a PostgreSQL cluster.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
Part of the cluster which should be modified.
object (ClusterMetadata) Metadata of the resource. | |
object (PatchClusterProperties) Properties of the payload to change a cluster. |
{- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "cores": 4,
- "ram": 2048,
- "storageSize": 5000,
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "displayName": "PostgreSQL cluster",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}, - "postgresVersion": "13",
- "instances": 2,
- "connectionPooler": {
- "enabled": true,
- "poolMode": "transaction"
}
}
}
{- "type": "cluster",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "PostgreSQL cluster",
- "postgresVersion": "13",
- "location": "de/fra",
- "dnsName": "pg.example.com",
- "backupLocation": "de",
- "instances": 2,
- "ram": 2048,
- "cores": 4,
- "storageSize": 5000,
- "storageType": "HDD",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}, - "synchronizationMode": "ASYNCHRONOUS",
- "connectionPooler": {
- "enabled": true,
- "poolMode": "transaction"
}
}
}
Delete a PostgreSQL cluster.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
{- "type": "cluster",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "john.doe@example.com",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "jane.doe@example.com",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "state": "AVAILABLE"
}, - "properties": {
- "displayName": "PostgreSQL cluster",
- "postgresVersion": "13",
- "location": "de/fra",
- "dnsName": "pg.example.com",
- "backupLocation": "de",
- "instances": 2,
- "ram": 2048,
- "cores": 4,
- "storageSize": 5000,
- "storageType": "HDD",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "cidr": "192.168.1.100/24"
}
], - "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}, - "synchronizationMode": "ASYNCHRONOUS",
- "connectionPooler": {
- "enabled": true,
- "poolMode": "transaction"
}
}
}
Retrieves a list of all PostgreSQL versions available for this cluster including the current version.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
{- "data": [
- {
- "name": "14"
}
]
}
Retrieves a list of all PostgreSQL cluster backups.
limit | integer [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with 'offset' for pagination. |
offset | integer Default: 0 Example: offset=200 The first element to return. Use together with 'limit' for pagination. |
{- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "items": [
- {
- "type": "backup",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "state": "AVAILABLE"
}, - "properties": {
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "clusterId": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "version": "14",
- "isActive": true,
- "earliestRecoveryTargetTime": "2021-10-23T01:21:10Z",
- "size": 2052,
- "location": "de"
}
}
], - "offset": 200,
- "limit": 100,
- "links": {
- "prev": "<PREVIOUS-PAGE-URI>",
- "self": "<THIS-PAGE-URI>",
- "next": "<NEXT-PAGE-URI>"
}
}
Retrieve a PostgreSQL cluster backup by using its ID. This value can be found when you GET a list of PostgreSQL cluster backups.
backupId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e-4oymiqu-12 The unique ID of the backup. |
{- "type": "backup",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "state": "AVAILABLE"
}, - "properties": {
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "clusterId": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "version": "14",
- "isActive": true,
- "earliestRecoveryTargetTime": "2021-10-23T01:21:10Z",
- "size": 2052,
- "location": "de"
}
}
Retrieves a list of all backups of the given PostgreSQL cluster.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
limit | integer [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with 'offset' for pagination. |
offset | integer Default: 0 Example: offset=200 The first element to return. Use together with 'limit' for pagination. |
{- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "items": [
- {
- "type": "backup",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "state": "AVAILABLE"
}, - "properties": {
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "clusterId": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "version": "14",
- "isActive": true,
- "earliestRecoveryTargetTime": "2021-10-23T01:21:10Z",
- "size": 2052,
- "location": "de"
}
}
], - "offset": 200,
- "limit": 100,
- "links": {
- "prev": "<PREVIOUS-PAGE-URI>",
- "self": "<THIS-PAGE-URI>",
- "next": "<NEXT-PAGE-URI>"
}
}
Triggers an in-place restore of the given PostgreSQL.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
The restore request to create.
backupId required | string The unique ID of the backup you want to restore. |
recoveryTargetTime | string <date-time> If this value is supplied as ISO 8601 timestamp, the backup will be replayed up until the given timestamp. If empty, the backup will be applied completely. |
{- "backupId": "dcd31531-3ac8-11eb-9feb-046c59cc737e",
- "recoveryTargetTime": "2020-12-10T13:37:50+01:00"
}
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "dbaas-err-api-123",
- "message": "Error message example"
}
]
}
Retrieves PostgreSQL logs based on the given parameters.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
start | string <date-time> The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago. |
end | string <date-time> The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp. |
direction | string Default: "BACKWARD" Enum: "BACKWARD" "FORWARD" The direction in which to scan through the logs. The logs are returned in order of the direction. |
limit | integer [ 1 .. 5000 ] Default: 100 The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction). |
{- "instances": [
- {
- "name": "postgres-cluster-0",
- "messages": [
- {
- "time": "2021-09-06T10:00:38.253+02:00",
- "message": "Hello World"
}
]
}
]
}
Retrieves a list of users
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
limit | integer [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with 'offset' for pagination. |
offset | integer Default: 0 Example: offset=200 The first element to return. Use together with 'limit' for pagination. |
system | boolean If set to 'true' all users, including system users are returned. System users cannot be deleted or updated. |
{- "offset": 200,
- "limit": 100,
- "_links": {
- "prev": "<PREVIOUS-PAGE-URI>",
- "self": "<THIS-PAGE-URI>",
- "next": "<NEXT-PAGE-URI>"
}, - "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "href": "string",
- "items": [
- {
- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "href": "string",
- "metadata": {
- "createdBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdDate": "2023-05-11T13:37:50Z",
- "lastModifiedBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedDate": "2023-05-11T13:37:50Z",
- "resourceURN": "ionos:postgresql:de-fra:11274857:clusters/c668480f-8627-4b6c-b422-2599d4b568a6/users/benjamin"
}, - "properties": {
- "username": "benjamin",
- "system": false
}
}
]
}
Create a new Postgres User
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
required | object (UserProperties) |
{- "properties": {
- "username": "benjamin",
- "password": "TopSecret!"
}
}
{- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "href": "string",
- "metadata": {
- "createdBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdDate": "2023-05-11T13:37:50Z",
- "lastModifiedBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedDate": "2023-05-11T13:37:50Z",
- "resourceURN": "ionos:postgresql:de-fra:11274857:clusters/c668480f-8627-4b6c-b422-2599d4b568a6/users/benjamin"
}, - "properties": {
- "username": "benjamin",
- "system": false
}
}
Retrieves a single user
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
username required | string [ 1 .. 63 ] characters Example: benjamin The authentication username. |
{- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "href": "string",
- "metadata": {
- "createdBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdDate": "2023-05-11T13:37:50Z",
- "lastModifiedBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedDate": "2023-05-11T13:37:50Z",
- "resourceURN": "ionos:postgresql:de-fra:11274857:clusters/c668480f-8627-4b6c-b422-2599d4b568a6/users/benjamin"
}, - "properties": {
- "username": "benjamin",
- "system": false
}
}
Patches a single user. Only changing the password is supported. System users cannot be patched.
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
username required | string [ 1 .. 63 ] characters Example: benjamin The authentication username. |
Patch containing all properties that should be updated
required | object (PatchUserProperties) |
{- "properties": {
- "password": "TopSecret!"
}
}
{- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "href": "string",
- "metadata": {
- "createdBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdDate": "2023-05-11T13:37:50Z",
- "lastModifiedBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedDate": "2023-05-11T13:37:50Z",
- "resourceURN": "ionos:postgresql:de-fra:11274857:clusters/c668480f-8627-4b6c-b422-2599d4b568a6/users/benjamin"
}, - "properties": {
- "username": "benjamin",
- "system": false
}
}
Deletes a single user
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
username required | string [ 1 .. 63 ] characters Example: benjamin The authentication username. |
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "dbaas-err-api-123",
- "message": "Error message example"
}
]
}
Retrieves a list of databases
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
limit | integer [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with 'offset' for pagination. |
offset | integer Default: 0 Example: offset=200 The first element to return. Use together with 'limit' for pagination. |
{- "offset": 200,
- "limit": 100,
- "_links": {
- "prev": "<PREVIOUS-PAGE-URI>",
- "self": "<THIS-PAGE-URI>",
- "next": "<NEXT-PAGE-URI>"
}, - "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "href": "string",
- "items": [
- {
- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "href": "string",
- "metadata": {
- "createdBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdDate": "2023-05-11T13:37:50Z",
- "lastModifiedBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedDate": "2023-05-11T13:37:50Z",
- "resourceURN": "ionos:postgresql:de-fra:11274857:clusters/c668480f-8627-4b6c-b422-2599d4b568a6/users/benjamin"
}, - "properties": {
- "name": "benjamindb",
- "owner": "benjamin"
}
}
]
}
Create a new database
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
a database to create
required | object (DatabaseProperties) |
{- "properties": {
- "name": "benjamindb",
- "owner": "benjamin"
}
}
{- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "href": "string",
- "metadata": {
- "createdBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdDate": "2023-05-11T13:37:50Z",
- "lastModifiedBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedDate": "2023-05-11T13:37:50Z",
- "resourceURN": "ionos:postgresql:de-fra:11274857:clusters/c668480f-8627-4b6c-b422-2599d4b568a6/users/benjamin"
}, - "properties": {
- "name": "benjamindb",
- "owner": "benjamin"
}
}
Retrieves a single database
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
databasename required | string [ 1 .. 63 ] characters Example: benjamindb The database name. |
{- "type": "collection",
- "id": "498ae72f-411f-11eb-9d07-046c59cc737e",
- "href": "string",
- "metadata": {
- "createdBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "createdDate": "2023-05-11T13:37:50Z",
- "lastModifiedBy": "ionos:iam:cloud::users/f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedByUserId": "f719718d-e0aa-4870-a36c-cc0bdb8c6d90",
- "lastModifiedDate": "2023-05-11T13:37:50Z",
- "resourceURN": "ionos:postgresql:de-fra:11274857:clusters/c668480f-8627-4b6c-b422-2599d4b568a6/users/benjamin"
}, - "properties": {
- "name": "benjamindb",
- "owner": "benjamin"
}
}
Deletes a single database
clusterId required | string Example: 498ae72f-411f-11eb-9d07-046c59cc737e The unique ID of the cluster. |
databasename required | string [ 1 .. 63 ] characters Example: benjamindb The database name. |
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "dbaas-err-api-123",
- "message": "Error message example"
}
]
}