Closed Tchanove closed 2 years ago
Hello, Sorry for the late answer.
This issue tracker is dedicated on problems with the php-ovh wrapper, please note that for every questions related to the API, you need to subscribe to the api-subscribe@ml.ovh.net
, then, post your question to api@ml.ovh.net
.
Regarding your question, a call to POST /me/document
just return a putUrl
as you said, and this URL is not related to the OVH API, so you don't need to use the php-ovh to call it. A simple cURL will work.
The content of the file should be sent directly in request body, with the correct header Content-Type
set.
Thanks Romain
Hi,
I'm having some trouble about the
POST /me/document
endpoint.My use case is the following :
If my understanding of the OVH Api is right, I need to do the following steps :
POST /hosting/privateDatabase/MyService/database/DB1/dump
GET /hosting/privateDatabase/MyService/database/DB1/dump/xxxx
url
field from the responseGET
on theurl
POST /me/document
putUrl
field from the responseputUrl
with a file contentPOST /hosting/privateDatabase/MyService/database/DB2/import
with the document ID created just before.Maybe my workflow is wrong too and there is another / simpler way to provision a database with a dump from another database ?
Help ! ^^