Skip to content

Configuration

All operations require authentication.

6 operationsv1/ip · /ip/{ip}
Agent setup

List IPsProduction

GET
/1.0/ip

List IPs. Returns your IP blocks, filterable by routed service, type, version, campus, Additional IP or IAM tags.

Query parameters

campus
string

Filter the value of campus property (ilike) (alpha)

description
string

Filter the value of description property (like)

iamTags
object

Filter resources on IAM tags

ip
ipBlock

Filter the value of ip property (contains or equals)

isAdditionalIp
boolean

Filter the value of isAdditionalIp property (=) (alpha)

routedTo.serviceName
string

Filter the value of routedTo.serviceName property (like)

type
IpTypeEnum

Filter the value of type property (=)

Valuescdnclouddedicatedfailoverhosted_sslhousingloadBalancingmailovertheboxpccpciprivatevpnvpsvrackxdsl
version
IpVersionEnum

Filter the value of version property (=) (alpha)

Values46

Response

200ipBlock[]successful operation

Reads your token from $OVH_TOKEN

$ curl https://api.eu.ovhcloud.com/1.0/ip \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ "192.0.2.0/24"]

List move destinationsBeta

GET
/1.0/ip/{ip}/move

List move destinations. Returns, per service type, the services this IP can move to and their next hops.

Path parameters

ip
required
ipBlock

IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)

Response

200Destinationssuccessful operation
cloudProject
Destination[]

list of public cloud projects

dedicatedCloud
Destination[]

list of dedicated clouds

dedicatedServer
Destination[]

list of dedicated servers

hostingReseller
Destination[]

list of hosting reseller services

ipLoadbalancing
Destination[]

list of load balancing services

sncCloudPlatform
Destination[]

list of SNC Cloud Platform projects

vmwareCloudDirector
Destination[]

list of VMware Cloud Director organization services

vps
Destination[]

list of vps

vrackServicesBgp
Destination[]

list of BGP vrack services services

Example uses ip = 192.0.2.0/24

$ curl https://api.eu.ovhcloud.com/1.0/ip/{ip}/move \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "cloudProject": [ { "nexthop": [ "string" ], "service": "string" } ], "dedicatedCloud": [ { "nexthop": [ "string" ], "service": "string" } ], "dedicatedServer": [ { "nexthop": [ "string" ], "service": "string" } ], "hostingReseller": [ { "nexthop": [ "string" ], "service": "string" } ], "ipLoadbalancing": [ { "nexthop": [ "string" ], "service": "string" } ], "sncCloudPlatform": [ { "nexthop": [ "string" ], "service": "string" } ], "vmwareCloudDirector": [ { "nexthop": [ "string" ], "service": "string" } ], "vps": [ { "nexthop": [ "string" ], "service": "string" } ], "vrackServicesBgp": [ { "nexthop": [ "string" ], "service": "string" } ]}

Get an IPProduction

GET
/1.0/ip/{ip}

Get an IP. Returns the block's type, routed service, regions, RIR, organization, and BYOIP / Additional IP flags.

Path parameters

ip
required
ipBlock

IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)

Response

200IpWithIAMsuccessful operation
bringYourOwnIp
read-only
boolean

Is this IP part of the Bring your own IP program (alpha)

campus
read-only
string

Where is the IP used/usable (alpha)

canBeTerminated
read-only
boolean

Is this IP can be terminated

country
read-only
CountryEnum

IP country

Valuesacadaeafagaialamanaoaqarasatauawaxazbabbbdbebfbgbhbibjblbmbnbobqbrbsbtbvbwbybzcacccdcfcgchcickclcmcncocrcscucvcwcxcyczdedjdkdmdodzeceeegeheresetfcfdfifjfkfmfofrfxgagbgdgegfggghgiglgmgngpgqgrgsgtgugwgyhkhmhnhrhthuidieiliminioiqirisitjejmjojpkekgkhkikmknkpkrkwkykzlalblclilklrlsltlulvlymamcmdmemfmgmhmkmlmmmnmompmqmrmsmtmumvmwmxmymznancnenfngninlnonpnrnunzompapepfpgphpkplpmpnprpsptpwpyqaqcrerorsrurwsasbscsdsesgshsisjskslsmsnsosrssstsvsxsysztctdtftgthtjtktltmtntotptrtttvtwtzuaugukumusuyuzvavcvevgvivnvuwewfwsyeytyuzazmzw
description
string

Custom description on your ip

iam
read-only
ResourceMetadata

IAM resource metadata

ip
read-only
ipBlock

IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)

isAdditionalIp
read-only
boolean

Is this IP an Additional IP (alpha)

organisationId
read-only
string

IP block organisation Id

regions
read-only
RegionCodenameEnum[]

Where is the IP used/usable, in the form of region codenames (alpha)

Valuesaf-central-lz-abjaf-north-lz-rbaap-south-lz-aklap-south-lz-blrap-south-lz-icdap-south-mumap-southeast-sgpap-southeast-sydca-east-bhsca-east-toreu-central-lz-buheu-central-lz-sofeu-central-waweu-east-lz-prgeu-north-lz-cpheu-north-lz-heleu-north-lz-osleu-north-lz-stoeu-south-lz-liseu-south-lz-madeu-south-lz-mileu-south-mileu-west-erieu-west-graeu-west-limeu-west-lz-amseu-west-lz-brueu-west-lz-dlneu-west-lz-luxeu-west-lz-mnceu-west-lz-mrseu-west-lz-vieeu-west-lz-zrheu-west-pareu-west-rbxeu-west-sbgme-south-lz-dxbsa-central-lz-mexsa-east-lz-saosa-west-lz-buesa-west-lz-sclus-central-lz-slcus-central-lz-stlus-east-lz-atlus-east-lz-bosus-east-lz-chius-east-lz-dalus-east-lz-miaus-east-lz-nycus-east-vinus-west-hilus-west-lz-denus-west-lz-laxus-west-lz-paous-west-lz-phxus-west-lz-sea
rir
read-only
string

Regional Internet Registry of the IP (alpha)

routedTo
read-only
RoutedTo

Routage information

type
read-only
IpTypeEnum

Possible values for ip type

Valuescdnclouddedicatedfailoverhosted_sslhousingloadBalancingmailovertheboxpccpciprivatevpnvpsvrackxdsl
version
read-only
IpVersionEnum

Version of the IP (alpha)

Values46

Example uses ip = 192.0.2.0/24

$ curl https://api.eu.ovhcloud.com/1.0/ip/{ip} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "bringYourOwnIp": true, "campus": "string", "canBeTerminated": true, "country": "ac", "description": "string", "iam": { "displayName": "string", "id": "00000000-0000-0000-0000-000000000000", "state": "EXPIRED", "tags": { "key": "string" }, "urn": "string" }, "ip": "192.0.2.0/24", "isAdditionalIp": true, "organisationId": "string", "regions": [ "af-central-lz-abj" ], "rir": "string", "routedTo": { "serviceName": "string" }, "type": "cdn", "version": 4}

Move an IPProduction

POST
/1.0/ip/{ip}/move

Move an IP. Routes the IP to another service of your account, with an optional next hop (async task).

Path parameters

ip
required
ipBlock

IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)

Request body (required)

nexthop
string

Nexthop of destination service

to
required
string

Service destination

Response

200IpTasksuccessful operation
comment
read-only
string

Details of this task

destination
read-only
RoutedTo

Destination for moveFloatingIp tasks

doneDate
read-only
stringdate-time

Completion date

function
read-only
TaskFunctionEnum

Function name

ValuesarinBlockReassignchangeRipeOrgcheckAndReleaseIpgenericMoveFloatingIpsupernetByoipFailoverPartitioning
lastUpdate
read-only
stringdate-time

last update

startDate
read-only
stringdate-time

Task Creation date

status
read-only
TaskStatusEnum

Task status

ValuescancelledcustomerErrordoingdoneinitovhErrortodo
taskId
read-only
integer

the id of the task

Example uses ip = 192.0.2.0/24

$ curl https://api.eu.ovhcloud.com/1.0/ip/{ip}/move \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "comment": "string", "destination": { "serviceName": "string" }, "doneDate": "2024-01-01T12:00:00Z", "function": "arinBlockReassign", "lastUpdate": "2024-01-01T12:00:00Z", "startDate": "2024-01-01T12:00:00Z", "status": "cancelled", "taskId": 0}

Park an IPProduction

POST
/1.0/ip/{ip}/park

Park an IP. Detaches the IP from its service and keeps it on your account, unrouted. Returns the task that applies the change.

Path parameters

ip
required
ipBlock

IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)

Response

200IpTasksuccessful operation
comment
read-only
string

Details of this task

destination
read-only
RoutedTo

Destination for moveFloatingIp tasks

doneDate
read-only
stringdate-time

Completion date

function
read-only
TaskFunctionEnum

Function name

ValuesarinBlockReassignchangeRipeOrgcheckAndReleaseIpgenericMoveFloatingIpsupernetByoipFailoverPartitioning
lastUpdate
read-only
stringdate-time

last update

startDate
read-only
stringdate-time

Task Creation date

status
read-only
TaskStatusEnum

Task status

ValuescancelledcustomerErrordoingdoneinitovhErrortodo
taskId
read-only
integer

the id of the task

Example uses ip = 192.0.2.0/24

$ curl https://api.eu.ovhcloud.com/1.0/ip/{ip}/park \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "comment": "string", "destination": { "serviceName": "string" }, "doneDate": "2024-01-01T12:00:00Z", "function": "arinBlockReassign", "lastUpdate": "2024-01-01T12:00:00Z", "startDate": "2024-01-01T12:00:00Z", "status": "cancelled", "taskId": 0}

Update the IP descriptionProduction

PUT
/1.0/ip/{ip}

Update the IP description. Changes the block's free-text description, its only editable field. List IPs can filter on this description.

Path parameters

ip
required
ipBlock

IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)

Request body (required)

bringYourOwnIp
read-only
boolean

Is this IP part of the Bring your own IP program (alpha)

campus
read-only
string

Where is the IP used/usable (alpha)

canBeTerminated
read-only
boolean

Is this IP can be terminated

country
read-only
CountryEnum

IP country

Valuesacadaeafagaialamanaoaqarasatauawaxazbabbbdbebfbgbhbibjblbmbnbobqbrbsbtbvbwbybzcacccdcfcgchcickclcmcncocrcscucvcwcxcyczdedjdkdmdodzeceeegeheresetfcfdfifjfkfmfofrfxgagbgdgegfggghgiglgmgngpgqgrgsgtgugwgyhkhmhnhrhthuidieiliminioiqirisitjejmjojpkekgkhkikmknkpkrkwkykzlalblclilklrlsltlulvlymamcmdmemfmgmhmkmlmmmnmompmqmrmsmtmumvmwmxmymznancnenfngninlnonpnrnunzompapepfpgphpkplpmpnprpsptpwpyqaqcrerorsrurwsasbscsdsesgshsisjskslsmsnsosrssstsvsxsysztctdtftgthtjtktltmtntotptrtttvtwtzuaugukumusuyuzvavcvevgvivnvuwewfwsyeytyuzazmzw
description
string

Custom description on your ip

ip
read-only
ipBlock

IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)

isAdditionalIp
read-only
boolean

Is this IP an Additional IP (alpha)

organisationId
read-only
string

IP block organisation Id

regions
read-only
RegionCodenameEnum[]

Where is the IP used/usable, in the form of region codenames (alpha)

Valuesaf-central-lz-abjaf-north-lz-rbaap-south-lz-aklap-south-lz-blrap-south-lz-icdap-south-mumap-southeast-sgpap-southeast-sydca-east-bhsca-east-toreu-central-lz-buheu-central-lz-sofeu-central-waweu-east-lz-prgeu-north-lz-cpheu-north-lz-heleu-north-lz-osleu-north-lz-stoeu-south-lz-liseu-south-lz-madeu-south-lz-mileu-south-mileu-west-erieu-west-graeu-west-limeu-west-lz-amseu-west-lz-brueu-west-lz-dlneu-west-lz-luxeu-west-lz-mnceu-west-lz-mrseu-west-lz-vieeu-west-lz-zrheu-west-pareu-west-rbxeu-west-sbgme-south-lz-dxbsa-central-lz-mexsa-east-lz-saosa-west-lz-buesa-west-lz-sclus-central-lz-slcus-central-lz-stlus-east-lz-atlus-east-lz-bosus-east-lz-chius-east-lz-dalus-east-lz-miaus-east-lz-nycus-east-vinus-west-hilus-west-lz-denus-west-lz-laxus-west-lz-paous-west-lz-phxus-west-lz-sea
rir
read-only
string

Regional Internet Registry of the IP (alpha)

routedTo
read-only
RoutedTo

Routage information

type
read-only
IpTypeEnum

Possible values for ip type

Valuescdnclouddedicatedfailoverhosted_sslhousingloadBalancingmailovertheboxpccpciprivatevpnvpsvrackxdsl
version
read-only
IpVersionEnum

Version of the IP (alpha)

Values46

Response

200—successful operation

Example uses ip = 192.0.2.0/24

$ curl https://api.eu.ovhcloud.com/1.0/ip/{ip} \
  -H "authorization: Bearer $OVH_TOKEN"