Skip to content

Configuration

All operations require authentication.

14 operationsv1/ovhCloudConnect/{serviceName}
Agent setup

List PoP configurationsProduction

GET
/1.0/ovhCloudConnect/{serviceName}/config/pop

Returns the IDs of the PoP configurations.

Path parameters

serviceName
required
stringuuid

Service name

Response

200integer[]successful operation

Example uses serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ 0]

List availability zonesProduction

GET
/1.0/ovhCloudConnect/{serviceName}/datacenter

Returns the IDs of the availability zones this service can connect to.

Path parameters

serviceName
required
stringuuid

Service name

Response

200integer[]successful operation

Example uses serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/datacenter \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ 0]

List availability zone configurationsProduction

GET
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter

Returns the IDs of the availability zones connected through this PoP configuration.

Path parameters

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Response

200integer[]successful operation

Example uses popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ 0]

List routing configurationsProduction

GET
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra

Returns the IDs of the BGP peers and static routes of this availability zone configuration.

Path parameters

datacenterId
required
integer

Datacenter ID

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Response

200integer[]successful operation

Example uses datacenterId = 0, popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ 0]

Get PoP configurationProduction

GET
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}

Returns the configuration's type, interface, subnet, AS numbers and status.

Path parameters

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Response

200PopConfigsuccessful operation
customerBgpArea
integer

Customer Private AS

id
read-only
integer

ID of the Pop Configuration

interfaceId
required
integer

ID of the interface

ovhBgpArea
integer

OVH Private AS

status
read-only
StatusEnum

Status of the pop configuration

ValuesactiveinittoDelete
subnet
ipv4Block

Subnet should be a /30, first IP for OVH, second IP for customer

type
required
TypeEnum

Type of the pop configuration

Valuesl2l3

Example uses popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "customerBgpArea": 0, "id": 0, "interfaceId": 0, "ovhBgpArea": 0, "status": "active", "subnet": "192.0.2.0/24", "type": "l2"}

Get availability zoneProduction

GET
/1.0/ovhCloudConnect/{serviceName}/datacenter/{id}

Returns the availability zone's name, region, 1-AZ or 3-AZ type, and whether it accepts a new configuration.

Path parameters

id
required
integer

Id

serviceName
required
stringuuid

Service name

Response

200Datacentersuccessful operation
available
read-only
boolean

Get availability to add new configuration on it

id
read-only
integer

ID of the datacenter

name
read-only
string

name of the datacenter

region
read-only
RegionEnum

region of the datacenter

Valuesaf-north-lz-rbaap-south-mumap-southeast-sgpap-southeast-sydca-east-bhsca-east-toreu-central-lz-buheu-central-lz-prgeu-central-lz-sofeu-central-waweu-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-gra-snceu-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-rbx-snceu-west-sbgeu-west-sbg-sncus-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-sea
regionType
read-only
RegionTypeEnum

region type of the datacenter

Values1-AZ3-AZ

Example uses id = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/datacenter/{id} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "available": true, "id": 0, "name": "string", "region": "af-north-lz-rba", "regionType": "1-AZ"}

Get availability zone configurationProduction

GET
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}

Returns the linked availability zone, subnet, OVHcloud AS and status.

Path parameters

datacenterId
required
integer

Datacenter ID

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Response

200DatacenterConfigsuccessful operation
datacenterId
required
integer

ID of the datacenter linked

id
read-only
integer

ID of the Datacenter configuration

ovhBgpArea
integer

OVH Private AS

status
read-only
StatusEnum

Status of the pop configuration

ValuesactiveinittoDelete
subnet
ipv4Block

Subnet should be a /28 min

Example uses datacenterId = 0, popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "datacenterId": 0, "id": 0, "ovhBgpArea": 0, "status": "active", "subnet": "192.0.2.0/24"}

Get routing configurationProduction

GET
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId}

Returns the route type, its BGP peer or static subnet and next hop, and its status.

Path parameters

datacenterId
required
integer

Datacenter ID

extraId
required
integer

Extra ID

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Response

200DatacenterExtraConfigsuccessful operation
bgpNeighborArea
integer

BGP AS number

bgpNeighborIp
ipv4

Router IP for BGP

id
read-only
integer

ID of the extra configuration

nextHop
ipv4

Static route next hop

status
read-only
StatusEnum

Status of the pop configuration

ValuesactiveinittoDelete
subnet
ipv4Block

Static route ip

type
required
TypeEnum

Type of the configuration

Valuesbgpnetwork

Example uses datacenterId = 0, extraId = 0, popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "bgpNeighborArea": 0, "bgpNeighborIp": "192.0.2.0", "id": 0, "nextHop": "192.0.2.0", "status": "active", "subnet": "192.0.2.0/24", "type": "bgp"}

Create PoP configurationProduction

POST
/1.0/ovhCloudConnect/{serviceName}/config/pop

Sets configuration for an interface from interfaceList; Provided settings depends on type L2 or L3 (async task).

Path parameters

serviceName
required
stringuuid

Service name

Request body (required)

customerBgpArea
integer

Customer Private AS

id
read-only
integer

ID of the Pop Configuration

interfaceId
required
integer

ID of the interface

ovhBgpArea
integer

OVH Private AS

status
read-only
StatusEnum

Status of the pop configuration

ValuesactiveinittoDelete
subnet
ipv4Block

Subnet should be a /30, first IP for OVH, second IP for customer

type
required
TypeEnum

Type of the pop configuration

Valuesl2l3

Response

200Tasksuccessful operation
function
read-only
FunctionEnum

Task function

ValuesaddDatacenterConfigurationaddDatacenterExtraConfigurationaddPopConfigurationaddVrackconsumePairingKeydelDatacenterConfigurationdelDatacenterExtraConfigurationdelPopConfigurationdeleteCircuitdiagAccessEdgediagMacsdiagPeeringdiagPeeringExtradiagRouteslockInterfaceremoveVrackresetEdgeConfigurationunlockInterface
id
read-only
integer

Task id

resourceId
read-only
integer

Reference of the created resource

status
read-only
StatusEnum

Task status

Valuesdenieddoingdoneerrorpausetodo

Example uses serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "function": "addDatacenterConfiguration", "id": 0, "resourceId": 0, "status": "denied"}

Create availability zone configurationProduction

POST
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter

Connects an availability zone to this PoP configuration; L3 also needs a /28 subnet and the OVHcloud AS (async task).

Path parameters

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Request body (required)

datacenterId
required
integer

ID of the datacenter linked

id
read-only
integer

ID of the Datacenter configuration

ovhBgpArea
integer

OVH Private AS

status
read-only
StatusEnum

Status of the pop configuration

ValuesactiveinittoDelete
subnet
ipv4Block

Subnet should be a /28 min

Response

200Tasksuccessful operation
function
read-only
FunctionEnum

Task function

ValuesaddDatacenterConfigurationaddDatacenterExtraConfigurationaddPopConfigurationaddVrackconsumePairingKeydelDatacenterConfigurationdelDatacenterExtraConfigurationdelPopConfigurationdeleteCircuitdiagAccessEdgediagMacsdiagPeeringdiagPeeringExtradiagRouteslockInterfaceremoveVrackresetEdgeConfigurationunlockInterface
id
read-only
integer

Task id

resourceId
read-only
integer

Reference of the created resource

status
read-only
StatusEnum

Task status

Valuesdenieddoingdoneerrorpausetodo

Example uses popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "function": "addDatacenterConfiguration", "id": 0, "resourceId": 0, "status": "denied"}

Create routing configurationProduction

POST
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra

Adds a BGP peer (bgp) or a static route (network) to this availability zone configuration (async task).

Path parameters

datacenterId
required
integer

Datacenter ID

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Request body (required)

bgpNeighborArea
integer

BGP AS number

bgpNeighborIp
ipv4

Router IP for BGP

id
read-only
integer

ID of the extra configuration

nextHop
ipv4

Static route next hop

status
read-only
StatusEnum

Status of the pop configuration

ValuesactiveinittoDelete
subnet
ipv4Block

Static route ip

type
required
TypeEnum

Type of the configuration

Valuesbgpnetwork

Response

200Tasksuccessful operation
function
read-only
FunctionEnum

Task function

ValuesaddDatacenterConfigurationaddDatacenterExtraConfigurationaddPopConfigurationaddVrackconsumePairingKeydelDatacenterConfigurationdelDatacenterExtraConfigurationdelPopConfigurationdeleteCircuitdiagAccessEdgediagMacsdiagPeeringdiagPeeringExtradiagRouteslockInterfaceremoveVrackresetEdgeConfigurationunlockInterface
id
read-only
integer

Task id

resourceId
read-only
integer

Reference of the created resource

status
read-only
StatusEnum

Task status

Valuesdenieddoingdoneerrorpausetodo

Example uses datacenterId = 0, popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "function": "addDatacenterConfiguration", "id": 0, "resourceId": 0, "status": "denied"}

Delete PoP configurationProduction

DELETE
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}

Removes the PoP configuration from its interface (async task).

Path parameters

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Response

200Tasksuccessful operation
function
read-only
FunctionEnum

Task function

ValuesaddDatacenterConfigurationaddDatacenterExtraConfigurationaddPopConfigurationaddVrackconsumePairingKeydelDatacenterConfigurationdelDatacenterExtraConfigurationdelPopConfigurationdeleteCircuitdiagAccessEdgediagMacsdiagPeeringdiagPeeringExtradiagRouteslockInterfaceremoveVrackresetEdgeConfigurationunlockInterface
id
read-only
integer

Task id

resourceId
read-only
integer

Reference of the created resource

status
read-only
StatusEnum

Task status

Valuesdenieddoingdoneerrorpausetodo

Example uses popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "function": "addDatacenterConfiguration", "id": 0, "resourceId": 0, "status": "denied"}

Delete availability zone configurationProduction

DELETE
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}

Disconnects the availability zone from this PoP configuration (async task).

Path parameters

datacenterId
required
integer

Datacenter ID

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Response

200Tasksuccessful operation
function
read-only
FunctionEnum

Task function

ValuesaddDatacenterConfigurationaddDatacenterExtraConfigurationaddPopConfigurationaddVrackconsumePairingKeydelDatacenterConfigurationdelDatacenterExtraConfigurationdelPopConfigurationdeleteCircuitdiagAccessEdgediagMacsdiagPeeringdiagPeeringExtradiagRouteslockInterfaceremoveVrackresetEdgeConfigurationunlockInterface
id
read-only
integer

Task id

resourceId
read-only
integer

Reference of the created resource

status
read-only
StatusEnum

Task status

Valuesdenieddoingdoneerrorpausetodo

Example uses datacenterId = 0, popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "function": "addDatacenterConfiguration", "id": 0, "resourceId": 0, "status": "denied"}

Delete routing configurationProduction

DELETE
/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId}

Removes the BGP peer or static route (async task).

Path parameters

datacenterId
required
integer

Datacenter ID

extraId
required
integer

Extra ID

popId
required
integer

Pop ID

serviceName
required
stringuuid

Service name

Response

200Tasksuccessful operation
function
read-only
FunctionEnum

Task function

ValuesaddDatacenterConfigurationaddDatacenterExtraConfigurationaddPopConfigurationaddVrackconsumePairingKeydelDatacenterConfigurationdelDatacenterExtraConfigurationdelPopConfigurationdeleteCircuitdiagAccessEdgediagMacsdiagPeeringdiagPeeringExtradiagRouteslockInterfaceremoveVrackresetEdgeConfigurationunlockInterface
id
read-only
integer

Task id

resourceId
read-only
integer

Reference of the created resource

status
read-only
StatusEnum

Task status

Valuesdenieddoingdoneerrorpausetodo

Example uses datacenterId = 0, extraId = 0, popId = 0, serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "function": "addDatacenterConfiguration", "id": 0, "resourceId": 0, "status": "denied"}