Add support for cluster export jobs #449
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of the changes / Why this is an improvement
This adds the following commands that allow organization admins to export data from crateDB and manage these export jobs.
$ croud clusters export-jobs create --cluster-id {cluster_id} --table {table} --file-format {format}
- exports data from the given table in the given format and displays a link to download the exported file.$ croud clusters export-jobs create --cluster-id {cluster_id} --table {table} --file-format {format} --save-as {target_file}
- exports data from the given table in the given format and downloads the file to the given location$ croud clusters export-jobs list --cluster-id {cluster_id}
- lists all export jobs for the given cluster$ croud clusters export-jobs delete --cluster-id {cluster_id} --export-job-id {export_job_id}
- deletes the given export job$ croud organizations files get --org-id {org_id} --file-id {file_id}
- gets the details (e.g.download_url
) for a given filehttps://github.com/crate/cloud/issues/1298
Checklist