Resource
dcloud_db_branch
A copy-on-write branch of a managed database: a masked clone on the database's branch pool, with its own port and a new password for every login role (dcloud rds branches get-credentials). The first branch of a database builds the pool (minutes); later ones take seconds. Suits a long-lived staging or preview database; pull-request branches are made by the branch settings, not here.
Schema
Required
db_instance_id(String) The id of the parent resource ({id}in the path). Changing it replaces the resource.name(String) Branch name: lowercase letters, digits and dashes (pr-42, alice-test). Up to 40 characters. Must match^[a-z0-9][a-z0-9-]*$. Changing it replaces the resource.
Optional
recovery_target_time(String) Branch the database as it was at this second (restored on the pool, minutes); omitted: now, a copy-on-write clone of the pool base (seconds). An RFC 3339 timestamp. Changing it replaces the resource.ttl_hours(Number) Hours until the branch is deleted; default 168 (7 days). From 1 to 720.
Read-Only
data_as_of(String) The moment the branch's data is from.expires_at(String) When the branch is deleted.id(String) The resource's id.port(Number) The pool machine's port this branch listens on.status(String) queued, creating, available, deleting, failed.
Generated from the provider's schema.
Related