Skip to content

DBAAS-8142: Add GET/PUT /v2/databases/{uuid}/do_settings#1195

Open
lprasanth-nadiminti wants to merge 1 commit into
digitalocean:mainfrom
lprasanth-nadiminti:feature/dbaas-8142-do-settings-endpoint
Open

DBAAS-8142: Add GET/PUT /v2/databases/{uuid}/do_settings#1195
lprasanth-nadiminti wants to merge 1 commit into
digitalocean:mainfrom
lprasanth-nadiminti:feature/dbaas-8142-do-settings-endpoint

Conversation

@lprasanth-nadiminti

@lprasanth-nadiminti lprasanth-nadiminti commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the dedicated DO settings endpoint to the public API spec:

  • GET /v2/databases/{database_cluster_uuid}/do_settings — retrieve current service CNAMEs
  • PUT /v2/databases/{database_cluster_uuid}/do_settings — update service CNAMEs (204 on success)

Backend shipped in cthulhu #154593. Model (do_settings.yml) and create/replica fields already merged in #1137.

Test plan

  • make bundle passes (zero Spectral errors)
  • Bundled spec contains both GET and PUT for /do_settings
  • Stage2 live validation against deployed backend (user 8142845, cluster bkp-st2-doset-mysql-0619 / ccadf744-1481-43ab-b25f-128a79f2c3bd):
Case Expected Result
GET baseline 200, service_cnames: [] PASS
PUT set cnames (api.myapp.io, a1.x.com) 204 PASS
GET after set 200, cnames match PASS
PUT clear (service_cnames: []) 204 PASS
GET after clear 200, service_cnames: [] PASS
PUT invalid field (per_table_metrics) 422 PASS
PUT missing do_settings ({}) 400 PASS

Adds dedicated DO settings endpoint to the public API spec:
- GET databases_get_do_settings (database:read)
- PUT databases_update_do_settings (database:update, 204/400/422)

Backend: cthulhu PR 154593. Model from digitalocean#1137.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant