Skip to main content

shipping_addresses

Creates, updates, deletes, gets or lists a shipping_addresses resource.

Overview​

Nameshipping_addresses
TypeResource
Idovh.pack_xdsl.shipping_addresses

Fields​

The following fields are returned by SELECT queries:

Shipping address

NameDatatypeDescription
shipping_idstring (wire: shippingId)
city_namestring (wire: cityName)
first_namestring (wire: firstName)
last_namestring (wire: lastName)
addressstring
country_codestring (wire: countryCode)
zip_codestring (wire: zipCode)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcontext, pack_nameList the shipping addresses of an xDSL pack. Returns the addresses allowed for the given context, such as a migration or a VoIP line 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"}})
contextstringContext
pack_namestringThe internal name of your pack (wire: packName)

SELECT examples​

List the shipping addresses of an xDSL pack. Returns the addresses allowed for the given context, such as a migration or a VoIP line order.

SELECT
shipping_id,
city_name,
first_name,
last_name,
address,
country_code,
zip_code
FROM ovh.pack_xdsl.shipping_addresses
WHERE context = '{{ context }}' -- required
AND pack_name = '{{ pack_name }}' -- required
;