Skip to main content

cart_netapp_options

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

Overview​

Namecart_netapp_options
TypeResource
Idovh.order.cart_netapp_options

Fields​

The following fields are returned by SELECT queries:

Representation of a generic product option

NameDatatypeDescription
product_namestringName of the product (wire: productName)
exclusivebooleanDefine if options of this family are exclusive with each other
familystringOption family
mandatorybooleanDefine if an option of this family is mandatory
plan_codestringProduct offer identifier (wire: planCode)
pricesarrayPrices of the product offer
product_typestringProduct type (cloud_service, delivery, deposit, domain, implementation_services, saas_license, shipping, storage) (wire: productType)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcart_id, plan_codeGet information about NetApp options
createinsertcart_id, duration, item_id, plan_code, pricing_mode, quantityPost a new NetApp option in your cart

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"}})
cart_idstringCart ID (wire: cartId)
plan_codestringIdentifier of the NetApp offer you want to consult options (wire: planCode)

SELECT examples​

Get information about NetApp options

SELECT
product_name,
exclusive,
family,
mandatory,
plan_code,
prices,
product_type
FROM ovh.order.cart_netapp_options
WHERE cart_id = '{{ cart_id }}' -- required
AND plan_code = '{{ plan_code }}' -- required
;

INSERT examples​

Post a new NetApp option in your cart

INSERT INTO ovh.order.cart_netapp_options (
duration,
item_id,
plan_code,
pricing_mode,
quantity,
cart_id
)
SELECT
'{{ duration }}' /* required */,
{{ item_id }} /* required */,
'{{ plan_code }}' /* required */,
'{{ pricing_mode }}' /* required */,
{{ quantity }} /* required */,
'{{ cart_id }}'
RETURNING
cart_id,
item_id,
offer_id,
parent_item_id,
product_id,
configurations,
duration,
options,
prices,
settings
;