Object storage api
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Object storage api

by
YassineZ2
Created on 2021-02-10 12:30:37 (edited on 2024-09-04 12:13:14) in Public Cloud OVHcloud

Bonjour,

Je souhaite upload un fichier sur mon object storage via postman, mais je n'y arrive pas du tout. Auriez-vous une aide à m'offrir s'il vous plait ?

Merci d'avance.

Cordialement,


1 Reply ( Latest reply on 2021-11-09 12:09:45 by
ThibaultC13
)

Je le fais via sftp:

`ovh_site="gra"
ovh_host="gateways.storage.${ovh_site}.cloud.ovh.net"
ovh_user="mon_user"
directory_secured=mon_dossier_a_sauvegarder

sshpass -e sftp $ovh_user@$ovh_host << EOF
cd "${container_name}"
put "${directory_secured}"
exit
EOF`

Edit : mais en fait ça fonctionne que avec du cold archive et pas du stockage objet