node_consumptions
Creates, updates, deletes, gets or lists a node_consumptions resource.
Overview​
| Name | node_consumptions |
| Type | Resource |
| Id | ovh.cluster_hadoop.node_consumptions |
Fields​
The following fields are returned by SELECT queries:
- list
Detailed information on a node consumption of a Hadoop Cluster
| Name | Datatype | Description |
|---|---|---|
hostname | string | Hostname of the consumed resource |
node_profile | string | Name 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) |
quantity | object | Number of hours consummed |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | service_name | Get 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_name | string | The internal name of your cluster (wire: serviceName) |
SELECT examples​
- list
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
;