Skip to main content

orderable_usb_keys

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

Overview​

Nameorderable_usb_keys
TypeResource
Idovh.dedicated_server.orderable_usb_keys

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
capacityarrayOrderable USB keys capacity in gigabytes
numberintegerNumber of USB keys that can be ordered for this server
option_requiredstringWhich option is required to order an USB key (professionalUse) (wire: optionRequired)
orderablebooleanIs USB keys orderable for this server

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet orderable USB keys. Returns whether USB keys can be ordered for the server, how many, and the orderable capacities in gigabytes. When an option is needed first, optionRequired names it.

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"}})
service_namestringThe internal name of your dedicated server (wire: serviceName)

SELECT examples​

Get orderable USB keys. Returns whether USB keys can be ordered for the server, how many, and the orderable capacities in gigabytes. When an option is needed first, optionRequired names it.

SELECT
capacity,
number,
option_required,
orderable
FROM ovh.dedicated_server.orderable_usb_keys
WHERE service_name = '{{ service_name }}' -- required
;