Skip to main content

over_the_box_migrates

Creates, updates, deletes, gets or lists an over_the_box_migrates resource.

Overview​

Nameover_the_box_migrates
TypeResource
Idovh.order.over_the_box_migrates

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
order_idintegerIdentifier of the order (wire: orderId)
contractsarrayList of contracts related to the order
detailsarrayDetails of the order
pricesobjectPrices of the order including with and without taxes
urlstringURL to download the order

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecthardware, offer, service_nameshipping_contact_id, shipping_method, shipping_relay_idGet prices and contracts information
createinsertservice_name, hardware, offerCreate order

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
hardwarebooleanIf you want to migrate with a new hardware
offerstringOffer name to migrate to
service_namestringThe internal name of your overTheBox offer (wire: serviceName)
shipping_contact_idstringContact ID to deliver to (wire: shippingContactID)
shipping_methodstringHow do you want your shipment shipped (wire: shippingMethod)
shipping_relay_idintegerRelay ID to deliver to. Needed if shipping is mondialRelay (wire: shippingRelayID)

SELECT examples​

Get prices and contracts information

SELECT
order_id,
contracts,
details,
prices,
url
FROM ovh.order.over_the_box_migrates
WHERE hardware = '{{ hardware }}' -- required
AND offer = '{{ offer }}' -- required
AND service_name = '{{ service_name }}' -- required
AND shipping_contact_id = '{{ shipping_contact_id }}'
AND shipping_method = '{{ shipping_method }}'
AND shipping_relay_id = '{{ shipping_relay_id }}'
;

INSERT examples​

Create order

INSERT INTO ovh.order.over_the_box_migrates (
hardware,
offer,
shipping_contact_id,
shipping_method,
shipping_relay_id,
service_name
)
SELECT
{{ hardware }} /* required */,
'{{ offer }}' /* required */,
'{{ shipping_contact_id }}',
'{{ shipping_method }}',
{{ shipping_relay_id }},
'{{ service_name }}'
RETURNING
order_id,
contracts,
details,
prices,
url
;