Skip to content
This repository was archived by the owner on May 10, 2020. It is now read-only.

reverse ip how to give ipV4 argument? POST and DELETE #6

@Sylvain303

Description

@Sylvain303

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions