Questo contenuto non è disponibile nella lingua selezionata.

18.3. Object Operations


This section lists some of the object operation that can be performed:
  • Get the URL of the route which provides S3 OS
    # s3_storage_url=$(oc get routes   | grep "gluster.*s3"  | awk '{print $2}')
    Copy to Clipboard Toggle word wrap

    Note

    Ensure to download the s3curl tool from https://aws.amazon.com/code/128. This tool will be used for verifying the object operations.
    • s3curl.pl requires Digest::HMAC_SHA1 and Digest::MD5. Install the perl-Digest-HMAC package to get this.
    • Update the s3curl.pl perl script with glusters3object url which was retreived:
      For example:
      my @endpoints = ( 'glusters3object-storage-project.cloudapps.mystorage.com');
      Copy to Clipboard Toggle word wrap
  • To perform PUT operation of the bucket:
    s3curl.pl --debug --id "testvolume:adminuser" --key "itsmine"  --put /dev/null  -- -k -v  http://$s3_storage_url/bucket1
    Copy to Clipboard Toggle word wrap
  • To perform PUT operation of the object inside the bucket:
    s3curl.pl --debug --id "testvolume:adminuser" --key "itsmine" --put  my_object.jpg  -- -k -v -s http://$s3_storage_url/bucket1/my_object.jpg
    Copy to Clipboard Toggle word wrap
  • To verify listing of objects in the bucket:
    s3curl.pl --debug --id "testvolume:adminuser" --key "itsmine"  -- -k -v -s http://$s3_storage_url/bucket1/
    Copy to Clipboard Toggle word wrap
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat