Skip to main content

node_consumptions

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

Overview​

Namenode_consumptions
TypeResource
Idovh.cluster_hadoop.node_consumptions

Fields​

The following fields are returned by SELECT queries:

Detailed information on a node consumption of a Hadoop Cluster

NameDatatypeDescription
hostnamestringHostname of the consumed resource
node_profilestringName of the node profile for the consumptions (100-small, 200-cpu-1, 220-cpu-3, 300-disk-1, 310-disk-3, 900-vm-1) (wire: nodeProfile)
quantityobjectNumber of hours consummed

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_nameGet the current node consumptions that you will billed for on the next bill

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 cluster (wire: serviceName)

SELECT examples​

Get the current node consumptions that you will billed for on the next bill

SELECT
hostname,
node_profile,
quantity
FROM ovh.cluster_hadoop.node_consumptions
WHERE service_name = '{{ service_name }}' -- required
;