db_setup_save
Commit staged DB credentials to the secret store and create a db_profile to enable database monitoring tools like process list and top queries.
Instructions
Commit a staged DB credential (from db_setup_scan) to the secret store and write a db_profile, making db_processlist / db_top_queries work for the instance. The password is read from server-side staging by token — never from your context. Mutating: confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Override DB host. | |
| port | No | Override DB port. | |
| user | No | Override DB user. | |
| token | Yes | Staging token from db_setup_scan. | |
| engine | No | Override engine (mysql|postgres). | |
| database | No | Override default database. | |
| instance_id | No | Instance to attach the profile to. | |
| password_secret | No | Secret-store key name (default db/<instance>). |