Last active
May 10, 2023 16:05
-
-
Save EscVector/68a3193b5ca386a856cc672edb7b1b1d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
oci ns get --auth instance_principal | |
export OCI_CLI_AUTH=instance_principal | |
# Downloading with oci os object command is much faster than using Signed URL when Service Gateway is configured. | |
# bulk load files | |
oci os object bulk-upload --bucket-name dmpfiles --src-dir dumpfiles/ | |
# bulk download with filter | |
oci os object bulk-download --bucket-name dmpfiles --include warehouse_01* --download-dir . | |
# put single file | |
oci os object put --bucket-name dmpfiles --file | |
# get namespace | |
oci os ns get | |
# list all objects in a bucket | |
oci os object list --bucket-name dmpfiles --output table | |
# list name and size only | |
oci os object list --bucket-name dmpfiles --output table --query "data[].{Name:name,Size:size}" | |
# get a single file | |
oci os object get --bucket-name dmpfiles --file uapevidence.gif --name uapevidence.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment