We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

Problem in accessing OVH API REST calls


papilip
2015-12-03, 06:59 AM
Change path to '/domain/*' ;-)
Il you have any redirection, dont use it.

johnbritto
2015-10-15, 05:10 AM
Hi,
My manager granted GET, PUT, POST, DELETE to /domain call and I am not able to call /domain/zone

Following is the curl statement I used to get validation URL

curl -XPOST -H"X-Ovh-Application: XXXXXXXXXX" -H "Content-type: application/json" \
https://eu.api.ovh.com/1.0/auth/credential -d '{
"accessRules": [
{
"method": "GET",
"path": "/domain"
},
{
"method": "POST",
"path": "/domain"
},
{
"method": "PUT",
"path": "/domain"
},
{
"method": "DELETE",
"path": "/domain"
}
],
"redirection":"http://www.example.com/"
}'


Please help me to properly set the accessRules. Also where do I find the internal name of zone for a domain?
When I tried to call /domain/zone I get 403 error.

Regards,
John Britto