Advertisement
fkeles

upload-object-create-par,sh

Nov 2nd, 2023 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | Source Code | 0 0
  1. # list buckets
  2. oci os bucket list --compartment-id $COMPARTMENT_ID --namespace-name $NS
  3. # create bucket
  4. oci os bucket create --compartment-id $COMPARTMENT_ID --namespace-name $NS --name my-bucket
  5. # upload object
  6. oci os object put -bn my-bucket -ns $NS --file /tmp/Demo-Outline.pdf
  7. # check the object
  8. oci os object list -bn my-bucket -ns $NS
  9. # create pre-authenticated request for object
  10. oci os preauth-request create --access-type ObjectRead --bucket-name my-bucket --namespace-name $NS --name Demo-Outline.pdf_par --object-name Demo-Outline.pdf --time-expires 2023-11-30T20:30Z
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement