Skip to main content

network_acls

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

Overview​

Namenetwork_acls
TypeResource
Idovh.cluster_hadoop.network_acls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
blockstring (ip-block)IP Block to allow (example: 192.0.2.0/24)
descriptionstringdescription of this ACL
statestringState of the NetworkAcl. (disabled, enabled, pending)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectblock, service_nameGet this object properties
listselectservice_namex_pagination_modeNetwork ACL associated with this Hadoop Cluster
createinsertservice_nameAdd an ACL to your cluster
updateupdateblock, service_nameAlter this object properties
deletedeleteblock, service_nameRemove this ACL

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"}})
blockstring (ip-block)IP Block to allow
service_namestringThe internal name of your cluster (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get this object properties

SELECT
block,
description,
state
FROM ovh.cluster_hadoop.network_acls
WHERE block = '{{ block }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Add an ACL to your cluster

INSERT INTO ovh.cluster_hadoop.network_acls (
block,
description,
service_name
)
SELECT
'{{ block }}',
'{{ description }}',
'{{ service_name }}'
RETURNING
name,
task_id,
status
;

UPDATE examples​

Alter this object properties

UPDATE ovh.cluster_hadoop.network_acls
SET
description = '{{ description }}'
WHERE
block = '{{ block }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Remove this ACL

DELETE FROM ovh.cluster_hadoop.network_acls
WHERE block = '{{ block }}' --required
AND service_name = '{{ service_name }}' --required
;