Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to have an optional name when creating a backup #161

Open
tbarn opened this issue Apr 25, 2023 · 0 comments
Open

Add ability to have an optional name when creating a backup #161

tbarn opened this issue Apr 25, 2023 · 0 comments

Comments

@tbarn
Copy link

tbarn commented Apr 25, 2023

POST /organizations/{organization}/databases/{database}/branches/{branch}/backups endpoint to create a backup supports a body param for name that would be useful for Terraform providers to be able to use from planetscale-go.

API reference for endpoint: https://api-docs.planetscale.com/reference/create-a-backup

Handy link to backups.go code:

path := backupsAPIPath(createReq.Organization, createReq.Database, createReq.Branch)

Might consider adding the option to pass in retention_unit and retention_value too.

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

No branches or pull requests

1 participant