OVHCloud

Use the Service Key Validation to find Console Connect port information associated with an existing OVH service.

Choosing Your Source Port

Request

curl 'https://api.consoleconnect.com/api/company/:companyUsername/ports?deleted=false' \
--header 'Authorization: Bearer <API_KEY>' \

Make sure to replace :companyUsername with your actual company username and <API_KEY> with your API key.

Response

You might have multiple ports returned in the results but only choose one.

Take note of the id property since we will use this as the portId.

{
  "results": [
    {
      "id": "66c29b3c6dcad34e5b728c9c", // This property will be the portId of the request payload
      "name": "My-Port-1",
      "speed": {
        "value": 1000,
        "name": "1000 Mbps"
      },
      "tags": [],
      "dataCenterFacilityId": "5aa89b04ac86ba0012345bdf",
      "popId": "99759532-0aeb-4e02-a876-5b505e9b213a",
      "metroId": "77d9f1fbbcaa906f3cddb6d1",
      "companyId": "5d4d056242fbd3000ab4c01d",
      "status": "ACTIVE",
      "updatedAt": "2024-08-19T01:09:16.376Z",
      "createdAt": "2024-08-19T01:09:16.376Z",
      "deleted": false,
      "deletedAt": null,
      "paymentType": "invoice",
      "payg": true
      ...
    }
    ...
  ]
}

Finding Available OVH NNI

Choose Destination Port

Note: You can use the validate OVH key endpoint to retrieve the destPortId.

Request

curl 'https://api.consoleconnect.com/v2/ovh-service-key/validate' \
--data-raw '{"serviceKey":"<YOUR_OVH_KEY>"}' \
--header 'Authorization: Bearer <API_KEY>' \

Make sure to replace <API_KEY> with your API key.

Response

Take note of the portId property since we will use this as the destPortId in request.

{
    "bandwidth": 2000,
    "region": "par-01",
    "portId": "645c8f1b6ae4e90015d8f53b", // This property will be the destPortId of the request payload
    "bandwidthTiers": [
        {
            "type": "AUTOMATIC",
            "value": 200
        },
        {
            "value": 500,
            "type": "AUTOMATIC"
        },
        {
            "value": 1000,
            "type": "AUTOMATIC"
        },
        {
            "value": 2000,
            "type": "AUTOMATIC"
        }
    ],
    "portName": "OVH Paris",
    "dataCenterFacilityId": "5a8ba8c58195000012e9f13f"
}

Create a new OVHCloud Connection

Prerequisites

  • Your Service key is validated with OVHCloud
  • Your company has been verified on the Console Connect platform.
Securityapi-key
Request
path Parameters
companyId
required
string

The ID of the company creating the connection.

Example: 5e4cb418ab1dbe8c8476163b
Request Body schema: application/json
required
name
string

The name of the new connection.

srcPortId
string

The source port ID.

destPortId
string

The destination OVH port ID.

speed
number

The connection speed in Mbps.

paymentType
string

The payment method.

Enum: "creditcard" "invoice"
duration
number

The duration the service was ordered for, in conjunction with durationUnit. The maximum duration by unit is: days: 6; weeks: 3; month: 36; years: 3

durationUnit
string

The unit of duration the service was ordered for, in conjunction with duration. 'd' for days, 'w' for weeks, 'm' for months, 'y' for years.

Enum: "d" "w" "m" "y"
partnerAccountId
string

The OVH account id

discountCode
string
classOfService
string

Name of the class of service.

Enum: "BRONZE" "SILVER" "GOLD"
evergreen
boolean
Responses
200

OK

post/app-user/{companyId}/connections/cloud/OVHCLOUD
Request samples
application/json
{
  • "partnerAccountId": "EU.81d5945e-d15f-4439-b236-1e3af7a5e014",
  • "srcPortId": "60bec23b28634d0015f872fa",
  • "paymentType": "invoice",
  • "destPortId": "645c8f1b6ae4e90015d8f53b",
  • "name": "ovh test",
  • "speed": 10,
  • "duration": 1,
  • "durationUnit": "d",
  • "classOfService": "SILVER",
  • "evergreen": true
}
Response samples
application/json
{
  • "results": {
    }
}

Post OVH Service Key Validation

Validate your OVH Service Key and recieve associated port information needed to provision a Layer 2 Connection or CloudRouter site with OVH.

Securityapi-key
Request
Request Body schema: application/json
required
serviceKey
string

Service Key provided by OVHCloud

Responses
200

OK

400

Invalid service key format

404

Service key or associated port not found

post/v2/ovh-service-key/validate
Request samples
application/json
{
  • "serviceKey": "4405543e-54a1-4b6c-920a-d574b7761645"
}
Response samples
application/json
[
  • {
    }
]