Skip to content

Server

All operations require authentication.

24 operationsv1 · v2/dedicated/server
Agent setup

List dedicated server resourcesBeta

GET
/v2/dedicated/server

Get the list of all my dedicated server resources.

Query parameters

iamTags
object

Filter resources on IAM tags

Response

200serverWithIAM[]successful operation
checksum
read-only
string

Checksum of the target spec (mutable params). Send it back on update. Rejected if another caller changed the target since your read.

currentState
read-only
CurrentState

State observed on the server

currentTasks
read-only
CurrentTask[]

Asynchronous operations currently running. Omitted, never null, when no update is running, and always omitted from the server list.

iam
read-only
ResourceMetadata

IAM resource metadata

id
read-only
string

Service name of the dedicated server resource

resourceStatus
read-only
ResourceStatusEnum

Reflects the readiness of the dedicated server resource. A new target specification request will be accepted only in READY status.

ValuesCREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATING
targetSpec
read-only
TargetSpec

Target specification last declared on the server

500objectError 500 response

Reads your token from $OVH_TOKEN

$ curl https://api.eu.ovhcloud.com/v2/dedicated/server \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "checksum": "string", "currentState": { "actions": [ { "action": "ENABLE_ENCRYPTION_AT_REST", "blockedBy": [ { "code": null, "details": null, "nature": null } ], "status": "AVAILABLE" } ], "features": { "encryptionAtRest": { "enabled": true } } }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "iam": { "displayName": "string", "id": "00000000-0000-0000-0000-000000000000", "state": "EXPIRED", "tags": { "key": "string" }, "urn": "string" }, "id": "string", "resourceStatus": "CREATING", "targetSpec": { "features": { "encryptionAtRest": { "enabled": true } } } }]

Get dedicated server resourceBeta

GET
/v2/dedicated/server/{serviceName}

Get the details of the dedicated server resource.

Path parameters

serviceName
required
string

Service name

Query parameters

actions
boolean

Also report, under currentState.actions, whether the server accepts each action it can be asked to perform

Response

200serverWithIAMsuccessful operation
checksum
read-only
string

Checksum of the target spec (mutable params). Send it back on update. Rejected if another caller changed the target since your read.

currentState
read-only
CurrentState

State observed on the server

currentTasks
read-only
CurrentTask[]

Asynchronous operations currently running. Omitted, never null, when no update is running, and always omitted from the server list.

iam
read-only
ResourceMetadata

IAM resource metadata

id
read-only
string

Service name of the dedicated server resource

resourceStatus
read-only
ResourceStatusEnum

Reflects the readiness of the dedicated server resource. A new target specification request will be accepted only in READY status.

ValuesCREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATING
targetSpec
read-only
TargetSpec

Target specification last declared on the server

404objectError 404 response
500objectError 500 response

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/v2/dedicated/server/{serviceName} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "checksum": "string", "currentState": { "actions": [ { "action": "ENABLE_ENCRYPTION_AT_REST", "blockedBy": [ { "code": "EXCLUSIVE_OPERATION_RUNNING", "details": { "key": null }, "nature": "PERMANENT" } ], "status": "AVAILABLE" } ], "features": { "encryptionAtRest": { "enabled": true } } }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "iam": { "displayName": "string", "id": "00000000-0000-0000-0000-000000000000", "state": "EXPIRED", "tags": { "key": "string" }, "urn": "string" }, "id": "string", "resourceStatus": "CREATING", "targetSpec": { "features": { "encryptionAtRest": { "enabled": true } } }}

Update a serverProduction

PUT
/1.0/dedicated/server/{serviceName}

Update a server. Updates the writable properties of the server, such as its boot, rescue, monitoring and datacenter intervention settings. The other properties are read-only.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Request body (required)

availabilityZone
read-only
string

dedicated AZ localisation

bootId
integer
—
bootScript
string

Ipxe script served on boot

commercialRange
read-only
string

dedicater server commercial range

datacenter
read-only
DatacenterEnum

dedicated datacenter localisation

Valuesbhs1bhs2bhs3bhs4bhs5bhs6bhs7bhs8cch01crx1crx2dc1eri1eri2frcrx41frcrx42frcrx43gra04gra1gra2gra3gswhdf01hil1ieb01itbsi01itmil01itzvf01lil1-int1lim1lim2lim3mr901p19rbxrbx-hzrbx1rbx10rbx2rbx3rbx4rbx5rbx6rbx7rbx8rbx9sbg1sbg2sbg3sbg4sbg5sgp02sgp1syd03syd1syd2vin1waw1ynm1yyz01
efiBootloaderPath
string

EfiBootloader path

ip
read-only
ipv4

dedicated server ip

linkSpeed
read-only
integer
—
monitoring
boolean

Icmp monitoring state

name
read-only
string

dedicated server name

newUpgradeSystem
read-only
boolean
—
noIntervention
boolean

Prevent datacenter intervention

os
read-only
string

Operating system

powerState
read-only
PowerStateEnum

Power state of the server

Valuespoweroffpoweron
professionalUse
read-only
boolean

Does this server have professional use option

rack
read-only
string
—
region
read-only
string

dedicated region localisation

rescueMail
string

Custom email used to receive rescue credentials

rescueSshKey
string

Public SSH Key used in the rescue mode

reverse
read-only
string

dedicated server reverse

rootDevice
string
—
serverId
read-only
integer

your server id

state
StateEnum

All states a Dedicated can in

ValueserrorhackedhackedBlockedok
supportLevel
read-only
SupportLevelEnum

Dedicated server support level

Valuescriticalfastpathgspro

Response

200—successful operation

Example uses serviceName = string

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

Get service informationProduction

GET
/1.0/dedicated/server/{serviceName}/serviceInfos

Get service information. Returns the status, creation and expiration dates, contacts and renewal settings of the service.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Response

200Servicesuccessful operation
canDeleteAtExpiration
read-only
boolean

Indicates that the service can be set up to be deleted at expiration

contactAdmin
read-only
string
—
contactBilling
read-only
string
—
contactTech
read-only
string
—
creation
read-only
stringdate
—
domain
read-only
string
—
engagedUpTo
read-only
stringdate
—
expiration
read-only
stringdate
—
possibleRenewPeriod
read-only
integer[]

All the possible renew period of your service in month

renew
RenewType

Way of handling the renew

renewalType
read-only
RenewalTypeEnum

Detailed renewal type of a service

ValuesautomaticForcedProductautomaticV2012automaticV2014automaticV2016automaticV2024manualoneShotoption
serviceId
read-only
integer
—
status
read-only
StateEnum
—
ValuesautorenewInProgressexpiredinCreationokpendingDebtunPaid

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/serviceInfos \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "canDeleteAtExpiration": true, "contactAdmin": "string", "contactBilling": "string", "contactTech": "string", "creation": "2024-01-01", "domain": "string", "engagedUpTo": "2024-01-01", "expiration": "2024-01-01", "possibleRenewPeriod": [ 0 ], "renew": { "automatic": true, "deleteAtExpiration": true, "forced": true, "manualPayment": true, "period": 0 }, "renewalType": "automaticForcedProduct", "serviceId": 0, "status": "autorenewInProgress"}

Update service informationProduction

PUT
/1.0/dedicated/server/{serviceName}/serviceInfos

Update service information. Updates the renewal settings of the service: automatic renewal, period, or deletion at expiration.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Request body (required)

canDeleteAtExpiration
read-only
boolean

Indicates that the service can be set up to be deleted at expiration

contactAdmin
read-only
string
—
contactBilling
read-only
string
—
contactTech
read-only
string
—
creation
read-only
stringdate
—
domain
read-only
string
—
engagedUpTo
read-only
stringdate
—
expiration
read-only
stringdate
—
possibleRenewPeriod
read-only
integer[]

All the possible renew period of your service in month

renew
RenewType

Way of handling the renew

renewalType
read-only
RenewalTypeEnum

Detailed renewal type of a service

ValuesautomaticForcedProductautomaticV2012automaticV2014automaticV2016automaticV2024manualoneShotoption
serviceId
read-only
integer
—
status
read-only
StateEnum
—
ValuesautorenewInProgressexpiredinCreationokpendingDebtunPaid

Response

200—successful operation

Example uses serviceName = string

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

Get the hardware specificationsProduction

GET
/1.0/dedicated/server/{serviceName}/specifications/hardware

Get the hardware specifications. Returns the hardware of the server: commercial name, processors, memory, disk groups, expansion cards, motherboard, form factor and default RAID settings.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Response

200HardwareSpecificationssuccessful operation
bootMode
BootModeEnum

Server boot mode

Valueslegacyuefiuefi-legacy
coresPerProcessor
integer

number of cores per processor

defaultDiskGroupId
integer

Default disk group id used for OS reinstallation when not specified

defaultHardwareRaidSize
UnitAndValue_long

Default hardware raid size for this server

defaultHardwareRaidType
HardwareSpecificationsRaidHardEnum

Default hardware raid type configured on this server

Valuesraid0raid1raid10raid1Eraid5raid50raid6raid60
description
string

commercial name of this server

diskGroups
HardwareSpecificationsDisk[]

details about the groups of disks in the server

expansionCards
HardwareSpecificationsExpansionCard[]

details about the server's expansion cards

formFactor
FormFactorEnum

Server form factor

Values0.25u0.5u1u2u3u4u
memorySize
UnitAndValue_long

ram capacity

motherboard
string

server motherboard

numberOfProcessors
integer

number of processors in this dedicated server

processorArchitecture
CpuFamilyEnum

processor architecture bit

Valuesarm64armhf32ppc64x86x86-htx86_64
processorName
string

processor name

threadsPerProcessor
integer

number of threads per processor

usbKeys
UnitAndValue_long[]

Capacity of the USB keys installed on your server, if any

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/specifications/hardware \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "bootMode": "legacy", "coresPerProcessor": 0, "defaultDiskGroupId": 0, "defaultHardwareRaidSize": { "unit": "string", "value": 0 }, "defaultHardwareRaidType": "raid0", "description": "string", "diskGroups": [ { "defaultHardwareRaidSize": { "unit": "string", "value": 0 }, "defaultHardwareRaidType": "raid0", "description": "string", "diskGroupId": 0, "diskSize": { "unit": "string", "value": 0 }, "diskType": "string", "numberOfDisks": 0, "raidController": "string" } ], "expansionCards": [ { "description": "string", "type": "fpga" } ], "formFactor": "0.25u", "memorySize": { "unit": "string", "value": 0 }, "motherboard": "string", "numberOfProcessors": 0, "processorArchitecture": "arm64", "processorName": "string", "threadsPerProcessor": 0, "usbKeys": [ { "unit": "string", "value": 0 } ]}

Get the IP capabilitiesProduction

GET
/1.0/dedicated/server/{serviceName}/specifications/ip

Get the IP capabilities. Returns the IPv4 and IPv6 addresses that can be ordered for the server. For each IP type, it gives the orderable block sizes, how many IPs and prefixes can be routed to the server, and whether they are included in the offer.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Response

200IpOrderablesuccessful operation
ipv4
IpOrderableDetails[]

Orderable IP v4 details

ipv6
IpOrderableDetails[]

Orderable IP v6 details

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/specifications/ip \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "ipv4": [ { "blockSizes": [ 1 ], "included": true, "ipNumber": 0, "number": 0, "optionRequired": "professionalUse", "type": "failover" } ], "ipv6": [ { "blockSizes": [ 1 ], "included": true, "ipNumber": 0, "number": 0, "optionRequired": "professionalUse", "type": "failover" } ]}

Get the network specificationsProduction

GET
/1.0/dedicated/server/{serviceName}/specifications/network

Get the network specifications. Returns the network specifications of the server: connection rate, bandwidth, vRack bandwidth, traffic, OLA, routing, switching and virtual MAC details.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Response

200NetworkSpecificationssuccessful operation
bandwidth
BandwidthDetails

Bandwidth details

connection
UnitAndValue_long

Network connection flow rate

ola
OlaDetails

OLA details

routing
RoutingDetails

Routing details

switching
SwitchingDetails

Switching details

traffic
TrafficDetails

Traffic details

vmac
VmacDetails

A structure describing VMAC Infos for this dedicated server

vrack
BandwidthvRackDetails

vRack details

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/specifications/network \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "bandwidth": { "InternetToOvh": { "unit": "string", "value": 0 }, "OvhToInternet": { "unit": "string", "value": 0 }, "OvhToOvh": { "unit": "string", "value": 0 }, "type": "improved" }, "connection": { "unit": "string", "value": 0 }, "ola": { "available": true, "availableModes": [ { "default": true, "interfaces": [ { "aggregation": true, "count": 0, "type": "public" } ], "name": "string" } ], "supportedModes": [ "public" ] }, "routing": { "ipv4": { "gateway": "192.0.2.0", "ip": "192.0.2.0", "network": "192.0.2.0/24" }, "ipv6": { "gateway": "2001:41d0:1:1994::1", "ip": "2001:41d0::/128", "network": "2001:41d0::/128" } }, "switching": { "name": "string" }, "traffic": { "inputQuotaSize": { "unit": "string", "value": 0 }, "inputQuotaUsed": { "unit": "string", "value": 0 }, "isThrottled": true, "outputQuotaSize": { "unit": "string", "value": 0 }, "outputQuotaUsed": { "unit": "string", "value": 0 }, "resetQuotaDate": "string" }, "vmac": { "quota": 0, "supported": true }, "vrack": { "bandwidth": { "unit": "string", "value": 0 }, "type": "included" }}

List optionsProduction

GET
/1.0/dedicated/server/{serviceName}/option

List options. Returns the names of the options of the server. Get an option to know whether it is subscribed or released.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Response

200OptionEnum[]successful operation

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/option \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ "BACKUPPROTOCOL"]

Get an optionProduction

GET
/1.0/dedicated/server/{serviceName}/option/{option}

Get an option. Returns the state of an option of the server, subscribed or released. The option is identified by its name, such as BANDWIDTH, OLA or SGX.

Path parameters

option
required
OptionEnum

The option name

ValuesBACKUPPROTOCOLBANDWIDTHBANDWIDTH_VRACKOLASGXTRAFFICTRAFFIC_DISCOVERTUNINGTUNING_FIREWALLTUNING_KVMUSB_KVM_IP
serviceName
required
string

The internal name of your dedicated server

Response

200Optionsuccessful operation
option
read-only
OptionEnum

The option name

ValuesBACKUPPROTOCOLBANDWIDTHBANDWIDTH_VRACKOLASGXTRAFFICTRAFFIC_DISCOVERTUNINGTUNING_FIREWALLTUNING_KVMUSB_KVM_IP
state
read-only
OptionStateEnum

The state of the option

Valuesreleasedsubscribed

Example uses option = BACKUPPROTOCOL, serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/option/{option} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "option": "BACKUPPROTOCOL", "state": "released"}

Release an optionProduction

DELETE
/1.0/dedicated/server/{serviceName}/option/{option}

Release an option. Releases an option of the server, identified by its name, such as BANDWIDTH, TRAFFIC or USB_KVM_IP. The name is one of the options a server can have and release.

Path parameters

option
required
OptionEnum

The option name

ValuesBACKUPPROTOCOLBANDWIDTHBANDWIDTH_VRACKOLASGXTRAFFICTRAFFIC_DISCOVERTUNINGTUNING_FIREWALLTUNING_KVMUSB_KVM_IP
serviceName
required
string

The internal name of your dedicated server

Response

200—successful operation

Example uses option = BACKUPPROTOCOL, serviceName = string

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

List tasksProduction

GET
/1.0/dedicated/server/{serviceName}/task

List tasks. Returns the IDs of the tasks of the server, such as reboots, reinstallations and IP moves. Filter them by function or status.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Query parameters

function
TaskFunctionEnum

Filter the value of function property (=)

ValuesINFRA_002_VirtualNetworkInterfaceINFRA_002_VirtualNetworkInterface_groupINFRA_002_VirtualNetworkInterface_ungroupINFRA_ONE_NETWORK_ONEAPI_VirtualNetworkInterface_groupINFRA_ONE_NETWORK_ONEAPI_VirtualNetworkInterface_ungroupINFRA_ONE_NETWORK_VirtualNetworkInterface_groupINFRA_ONE_NETWORK_VirtualNetworkInterface_ungroupaddVirtualMacaddWindowSplaFromExistingSerialapplyBackupFtpAclsapplyBackupFtpQuotabypassAntiDDosGamechangePasswordBackupFTPchangeRipeOrgcheckAndReleaseIpcreateBackupFTPcreateOrUpdateRipeOrgcreatePrivateNetworkdisableFirewallenableFirewallgenericMoveFloatingIphardReboothardware_updateipmi/configureSGXmigrateBackupFTPmoveFloatingIpmoveVirtualMacreagregateBlockrebootPower8ToreinstallServerreleaseIpremoveBackupFTPremoveVirtualMacrequestAccessIPMIresetIPMIresetIPMISessiontestIPMIhttptestIPMIpasswordtestIPMIpingvirtualMacAddvirtualMacDelete
status
TaskStatusEnum

Filter the value of status property (=)

ValuescancelledcustomerErrordoingdoneinitovhErrortodo

Response

200integer[]successful operation

Example uses serviceName = string

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

Get a taskProduction

GET
/1.0/dedicated/server/{serviceName}/task/{taskId}

Get a task. Returns the function, status and dates of a task of the server. needSchedule tells whether the task must be scheduled, and plannedInterventionId links it to a planned intervention.

Path parameters

serviceName
required
string

The internal name of your dedicated server

taskId
required
integer

the id of the task

Response

200Tasksuccessful operation
changeUuid
read-only
string

UUID of the change linked to this task

comment
read-only
string

Details of this task

doneDate
read-only
stringdate-time

Completion date

function
read-only
TaskFunctionEnum

Function name

ValuesINFRA_002_VirtualNetworkInterfaceINFRA_002_VirtualNetworkInterface_groupINFRA_002_VirtualNetworkInterface_ungroupINFRA_ONE_NETWORK_ONEAPI_VirtualNetworkInterface_groupINFRA_ONE_NETWORK_ONEAPI_VirtualNetworkInterface_ungroupINFRA_ONE_NETWORK_VirtualNetworkInterface_groupINFRA_ONE_NETWORK_VirtualNetworkInterface_ungroupaddVirtualMacaddWindowSplaFromExistingSerialapplyBackupFtpAclsapplyBackupFtpQuotabypassAntiDDosGamechangePasswordBackupFTPchangeRipeOrgcheckAndReleaseIpcreateBackupFTPcreateOrUpdateRipeOrgcreatePrivateNetworkdisableFirewallenableFirewallgenericMoveFloatingIphardReboothardware_updateipmi/configureSGXmigrateBackupFTPmoveFloatingIpmoveVirtualMacreagregateBlockrebootPower8ToreinstallServerreleaseIpremoveBackupFTPremoveVirtualMacrequestAccessIPMIresetIPMIresetIPMISessiontestIPMIhttptestIPMIpasswordtestIPMIpingvirtualMacAddvirtualMacDelete
lastUpdate
read-only
stringdate-time

last update

needSchedule
read-only
boolean

Whether this task need to be scheduled or not

note
read-only
string

Extra information about this task

plannedInterventionId
read-only
integer

ID of the planned intervention for this task

startDate
read-only
stringdate-time

Task Creation date

status
read-only
TaskStatusEnum

Task status

ValuescancelledcustomerErrordoingdoneinitovhErrortodo
tags
read-only
SafeKeyValueCanBeNull_string[]

Task result tags output

taskId
read-only
integer

the id of the task

ticketReference
read-only
string

Reference of the thread on the support tool

Example uses serviceName = string, taskId = 0

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/task/{taskId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "changeUuid": "string", "comment": "string", "doneDate": "2024-01-01T12:00:00Z", "function": "INFRA_002_VirtualNetworkInterface", "lastUpdate": "2024-01-01T12:00:00Z", "needSchedule": true, "note": "string", "plannedInterventionId": 0, "startDate": "2024-01-01T12:00:00Z", "status": "cancelled", "tags": [ { "key": "string", "value": "string" } ], "taskId": 0, "ticketReference": "string"}

List available time slotsBeta

GET
/1.0/dedicated/server/{serviceName}/task/{taskId}/availableTimeslots

List available time slots. Returns the time slots available for the planned intervention of a task, between periodStart and periodEnd. Only a task whose needSchedule is true has slots; any other task returns an error.

Path parameters

serviceName
required
string

The internal name of your dedicated server

taskId
required
integer

the id of the task

Query parameters

periodEnd
required
stringdate

End of the period to query

periodStart
required
stringdate

Begining of the period to query

Response

200PlannedInterventionTimeSlot[]successful operation
endDate
stringdate-time

End date for the planned intervention

startDate
stringdate-time

Start date for the planned intervention

Example uses serviceName = string, taskId = 0

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/task/{taskId}/availableTimeslots \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "endDate": "2024-01-01T12:00:00Z", "startDate": "2024-01-01T12:00:00Z" }]

Cancel a taskProduction

POST
/1.0/dedicated/server/{serviceName}/task/{taskId}/cancel

Cancel a task. Stops the progression of a task of the server, if possible. Not every task can be canceled: a task that is already done returns an error.

Path parameters

serviceName
required
string

The internal name of your dedicated server

taskId
required
integer

the id of the task

Response

200—successful operation

Example uses serviceName = string, taskId = 0

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/task/{taskId}/cancel \
  -H "authorization: Bearer $OVH_TOKEN"

Schedule an interventionBeta

POST
/1.0/dedicated/server/{serviceName}/task/{taskId}/schedule

Schedule an intervention. Schedules the intervention linked to a task at the wanted start date. The body must also state whether a backup of the data has been made. A task whose needSchedule is false cannot be scheduled.

Path parameters

serviceName
required
string

The internal name of your dedicated server

taskId
required
integer

the id of the task

Request body (required)

hasPerformedBackup
required
boolean

Whether or not you have made a backup of your data

wantedBeginingDate
required
stringdate-time

Wanted begining date for your intervention

Response

200—successful operation

Example uses serviceName = string, taskId = 0

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/task/{taskId}/schedule \
  -H "authorization: Bearer $OVH_TOKEN"

List ongoing tasksBeta

GET
/1.0/dedicated/server/{serviceName}/ongoing

List ongoing tasks. Returns what is in progress on the server. Each entry gives a short description, the datacenter of the server and the processing date.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Response

200ExposedTask[]successful operation
datacenter
DatacenterEnum

Location of the server

Valuesbhs1bhs2bhs3bhs4bhs5bhs6bhs7bhs8cch01crx1crx2dc1eri1eri2frcrx41frcrx42frcrx43gra04gra1gra2gra3gswhdf01hil1ieb01itbsi01itmil01itzvf01lil1-int1lim1lim2lim3mr901p19rbxrbx-hzrbx1rbx10rbx2rbx3rbx4rbx5rbx6rbx7rbx8rbx9sbg1sbg2sbg3sbg4sbg5sgp02sgp1syd03syd1syd2vin1waw1ynm1yyz01
description
string

Short text describing the entry

server
string

Name of the dedicated server

todoDate
stringdate-time

Timestamp for processing

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/ongoing \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "datacenter": "bhs1", "description": "string", "server": "string", "todoDate": "2024-01-01T12:00:00Z" }]

Request a cooling module replacementBeta

POST
/1.0/dedicated/server/{serviceName}/support/replace/cooling

Request a cooling module replacement. Opens a support request to replace a cooling module of the server, with a comment and technical details or logs. Returns the identifiers of the created support ticket and message.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Request body (required)

comment
required
string

User comment

details
required
string

Technical details or logs

Response

200NewMessageInfosuccessful operation
additionalNotice
string

Notice or warning

messageId
integer

Message identifier

ticketId
integer

Ticket identifier

ticketNumber
integer

Ticket external number

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/support/replace/cooling \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "additionalNotice": "string", "messageId": 0, "ticketId": 0, "ticketNumber": 0}

Request a disk replacementBeta

POST
/1.0/dedicated/server/{serviceName}/support/replace/hardDiskDrive

Request a disk replacement. Opens a support request to replace disks of the server, identified by serial number or slot. With inverse set to true, the listed disks are kept and all the other disks are replaced. Returns the identifiers of the created support ticket and message.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Request body (required)

comment
required
string

User comment

disks
required
SupportReplaceHddInfo[]

If 'inverse' is set as 'false', the list of HDD TO REPLACE. If 'inverse' is set as 'true', the list of HDD TO NOT REPLACE.

inverse
required
boolean

If set to 'true', replace only NON LISTED DISKS

Response

200NewMessageInfosuccessful operation
additionalNotice
string

Notice or warning

messageId
integer

Message identifier

ticketId
integer

Ticket identifier

ticketNumber
integer

Ticket external number

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/support/replace/hardDiskDrive \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "additionalNotice": "string", "messageId": 0, "ticketId": 0, "ticketNumber": 0}

Request a memory module replacementBeta

POST
/1.0/dedicated/server/{serviceName}/support/replace/memory

Request a memory module replacement. Opens a support request to replace a faulty RAM module of the server, with a comment and technical details or logs. The faulty slots can be listed if known. Returns the identifiers of the created support ticket and message.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Request body (required)

comment
required
string

User comment

details
required
string

Technical details or logs

slots
string[]

The list of faulty RAM slots (if you have the information)

Response

200NewMessageInfosuccessful operation
additionalNotice
string

Notice or warning

messageId
integer

Message identifier

ticketId
integer

Ticket identifier

ticketNumber
integer

Ticket external number

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/support/replace/memory \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "additionalNotice": "string", "messageId": 0, "ticketId": 0, "ticketNumber": 0}

Get access credentialsProduction

POST
/1.0/dedicated/server/{serviceName}/authenticationSecret

Get access credentials. Returns the credentials to connect to the server or to an application installed on it, such as SSH, RDP, SQL Server or a web control panel. Each entry gives the access type, URL, login and password.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Response

200Access[]successful operation
password
stringpassword

Password

type
AccessTypeEnum

Application access type

ValuesDIRECTADMIN_PANELPLESK_PANELPROXMOX_PANELRDPSQL_SERVERSSHWEB_PANEL
url
string

Url

user
string

Login

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/authenticationSecret \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "password": "string", "type": "DIRECTADMIN_PANEL", "url": "string", "user": "string" }]

Change service contactsProduction

POST
/1.0/dedicated/server/{serviceName}/changeContact

Change service contacts. Starts a procedure to change the admin, tech or billing contact of the service.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Request body (required)

contactAdmin
string

The contact to set as admin contact

contactBilling
string

The contact to set as billing contact

contactTech
string

The contact to set as tech contact

Response

200integer[]successful operation

Example uses serviceName = string

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

Request service terminationProduction

POST
/1.0/dedicated/server/{serviceName}/terminate

Request service termination. Starts the termination of the service. The admin contact receives a token by email, to confirm with the confirmTermination call.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Response

200stringsuccessful operation

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/terminate \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
"string"

Confirm service terminationProduction

POST
/1.0/dedicated/server/{serviceName}/confirmTermination

Confirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given.

Path parameters

serviceName
required
string

The internal name of your dedicated server

Request body (required)

commentary
string

Commentary about your termination request

futureUse
TerminationFutureUseEnum

What next after your termination request

ValuesNOT_REPLACING_SERVICEOTHERSUBSCRIBE_AN_OTHER_SERVICESUBSCRIBE_OTHER_KIND_OF_SERVICE_WITH_COMPETITORSUBSCRIBE_SIMILAR_SERVICE_WITH_COMPETITOR
reason
TerminationReasonEnum

Reason of your termination request

ValuesFEATURES_DONT_SUIT_MELACK_OF_PERFORMANCESMIGRATED_TO_ANOTHER_OVH_PRODUCTMIGRATED_TO_COMPETITORNOT_ENOUGH_RECOGNITIONNOT_NEEDED_ANYMORENOT_RELIABLENO_ANSWEROTHERPRODUCT_DIMENSION_DONT_SUIT_MEPRODUCT_TOOLS_DONT_SUIT_METOO_EXPENSIVETOO_HARD_TO_USEUNSATIFIED_BY_CUSTOMER_SUPPORT
token
required
string

The termination token sent by email to the admin contact

Response

200stringsuccessful operation

Example uses serviceName = string

$ curl https://api.eu.ovhcloud.com/1.0/dedicated/server/{serviceName}/confirmTermination \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
"string"