Reminder for OVH Object storage API
- GET
/cloud/project
[
"123"
]
- GET
/cloud/project/{serviceName}/storage
serviceName = 123
[
{
storedBytes: 186452
region: "SBG1"
name: "igloo-test"
id: "123"
storedObjects: 2
}
]
- GET
/cloud/project/{serviceName}/storage/access
serviceName = 123
{
token: "xyz"
endpoints: [
{
url: "https://storage.sbg1.cloud.ovh.net/v1/AUTH_abc"
region: "SBG1"
}
]
}
curl -i \
-H "X-Auth-Token: xyz" \
-X GET \
https://storage.sbg1.cloud.ovh.net/v1/AUTH_abc/igloo-test
$FILENAME
: File name
curl -i \
-H "X-Auth-Token: xyz" \
-X PUT \
--data @file.png \
https://storage.sbg1.cloud.ovh.net/v1/AUTH_abc/igloo-test/$FILENAME
$FILENAME
: File name
curl -i \
-H "X-Auth-Token: xyz" \
-X DELETE \
https://storage.sbg1.cloud.ovh.net/v1/AUTH_abc/igloo-test/$FILENAME