Created
February 15, 2021 18:14
-
-
Save pentium10/56a49fa5045924c9e01459ba45a62fd3 to your computer and use it in GitHub Desktop.
Workflow_exportFirestoreDatabaseAll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- initialize: | |
assign: | |
- project: ${sys.get_env("GOOGLE_CLOUD_PROJECT_ID")} | |
- firestoreDatabaseId: (default) | |
- firestoreBackupBucket: gs://my_bucket_for_backups | |
- exportFirestoreDatabaseAll: | |
call: http.post | |
args: | |
url: ${"https://firestore.googleapis.com/v1/projects/"+project+"/databases/"+firestoreDatabaseId+":exportDocuments"} | |
auth: | |
type: OAuth2 | |
body: | |
outputUriPrefix: ${firestoreBackupBucket} | |
result: result | |
- returnResult: | |
return: ${result} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment