This repository was archived by the owner on May 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
reverse ip how to give ipV4 argument? POST and DELETE #6
Copy link
Copy link
Closed
Description
Salut
https://eu.api.ovh.com/console/#/ip/{ip}/reverse#POST
./ovh-eu ip 149.202.177.165 reverse post --ipReverse 149.202.177.165 --reverse pilote.opensource-expert.com
returns
usage: POST /ip/149.202.177.165/reverse [-h] --ipReverse IPREVERSE --reverse
REVERSE
POST /ip/149.202.177.165/reverse: error: argument --ipReverse: invalid loads value: '149.202.177.165'
but on console:
POST /1.0/ip/149.202.177.165/reverse HTTP/1.1
Host: eu.api.ovh.com
Accept: application/json
Content-Type: application/json;charset=utf-8
X-Ovh-Application: xxxxxxxxxxxxxxxxxxx
X-Ovh-Consumer: xxxxxxxxxxxxxxxxxxxxxxxxx
X-Ovh-Signature: $xxxxxxxxxxxxxxxxxxxx
X-Ovh-Timestamp: 1480341817
{
"ipReverse": "149.202.177.165",
"reverse": "pilote.opensource-expert.com"
}
it seems to be a type string… on schema it is
"dataType": "ip",
also what about delete?
./ovh-eu ip 149.202.177.165 reverse delete
[ipReverse] Given data (delete) is not valid for type ip
isn't working neither.
-h give a strange GET
./ovh-eu ip 149.202.177.165 reverse delete -h
usage: GET /ip/149.202.177.165/reverse/delete [-h]
optional arguments:
-h, --help show this help message and exit
works on console.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels