Performing a Multipart Download
On Compute Cloud@Customer, you can download an object in multiple parts using CLI and API operations.
This task isn't available in the Console.
Use the oci os object get command and required parameters to operation to download an object in multiple parts.
Syntax (entered on a single line):
oci os object get --namespace-name <object_storage_namespace> --bucket-name <bucket_name> --name <object_name> --file <file_location> --range bytes=<byte_range> [OPTIONS]
The byte-range for the download. Multipart object downloading is available using the byte-range request standard defined in RFC 7233, section 2.1
Example:
oci os object get \ --namespace-name examplenamespace \ --bucket-name MyBucket \ --name MyObject.mp4 \ --file c:\workspace\Downloads\MyObject.mp4 \ --range bytes=0-50 cusobjstorenamespace --range bytes=0-50 Downloading object [#-----------------------------------] 3% # ls -l total 12 -rw-r--r-- 1 root root 1363 Jun 1 17:56 abc.mp41 -rw-r--r-- 1 root root 51 Jun 1 21:50 def.mp4 -rw-r--r-- 1 root root 1363 Jun 1 21:40 ghi.mp4 -rw-r--r-- 1 root root 0 Jun 1 20:42 jkl.mp4 -rw-r--r-- 1 root root 0 Jun 1 20:42 mno.mp4 -rw-r--r-- 1 root root 0 Jun 1 20:42 pqr.mp4
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use theGetObject operation to download an object in multiple parts.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.