deploy.host-database-branches.listAn app's database branches, newest first
Request syntax
GET /deploy/api/apps/{id}/host-database/branchesPath parameters
idRequiredstring
Constraints: uuid
Query parameters
includeDeletedOptionalenum
Include deleted branches
One of:
true,false
Response
200 with `data`: the branches as get describes each, newest first (deleted ones with includeDeleted=true). 400 for an app not on pooled hosting.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Fields of data
[].idAlwaysstring
Branch id[].appIdAlwaysstring
The app whose database it copies[].nameAlwaysstring
Its database (and role) name on the pool host[].parentNameAlwaysstring
The database it was copied from[].stateAlwaysone of creating, ready, failed, deleting, deleted
creating, then ready or failed; deleting, then deleted[].errorAlwaysstring, may be null
Why the copy failed[].bytesAlwaysnumber, may be null
Its size as the pool host last reported it[].expiresAtAlwaysstring
When it is deleted (ISO 8601)[].createdAtAlwaysstring
When it was cut[].readyAtAlwaysstring, may be null
When the copy was done[].deletedAtAlwaysstring, may be null
When it was deleted[].migrationAlwaysobject, may be null
The last migrate run on the branch; null before the first[].migration.stateAlwaysone of running, done, failed
running until the pool host answers; done: exit code 0; failed otherwise[].migration.deploymentIdAlwaysstring, may be null
The deployment whose migrate command ran[].migration.requestedAtAlwaysstring, may be null
When it was asked for[].migration.exitCodeAlwaysnumber, may be null
Its exit code; -1 when stopped after 10 minutes; null when it could not run[].migration.summaryAlwaysstring, may be null
What it did, in one line: "2 columns added, the 42 existing rows stay"[].migration.diffAlwaysobject, may be null
The shape before and after, compared; null when it could not run[].migration.diff.summaryAlwaysstring
The same line[].migration.diff.tablesAddedAlwaysarray of string
schema.table[].migration.diff.tablesDroppedAlwaysarray of string
schema.table[].migration.diff.columnsAddedAlwaysarray of string
schema.table.column and its type[].migration.diff.columnsDroppedAlwaysarray of string
schema.table.column[].migration.diff.columnsChangedAlwaysarray of string
schema.table.column: before → after[].migration.diff.indexesAddedAlwaysarray of string
Index definitions[].migration.diff.indexesDroppedAlwaysarray of string
Index definitions[].migration.diff.constraintsAddedAlwaysarray of string
table: name and definition[].migration.diff.constraintsDroppedAlwaysarray of string
table: name and definition[].migration.diff.rowsChangedAlwaysarray of string
table: rows before → after[].migration.diff.rowsBeforeAlwaysnumber
Rows in the tables that stayed, before[].migration.diff.rowsAfterAlwaysnumber
Rows in those tables, after[].migration.logTailAlwaysstring, may be null
The last 64 KiB of its output[].migration.errorAlwaysstring, may be null
Why it could not run[].migration.finishedAtAlwaysstring, may be null
When the pool host answered
Checked against the handlers: every route test validates their answers against this schema.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow deploy:DescribeApp on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud deploy host-database-branches list idcurl -X GET "https://console.platform.deutschecloud.app/deploy/api/apps/id/host-database/branches" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY"import { DcloudClient } from '@dcloud/sdk';
const client = new DcloudClient();
const result = await client.deploy.hostDatabaseBranches.list({ id: "id" });from dcloud import Client
client = Client()
result = client.deploy.host_database_branches.list(id="id")Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_deploy_host-database-branches_list.