Skip to main content

organization_network_acls

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

Overview​

Nameorganization_network_acls
TypeResource
Idovh.vmware_cloud_director.organization_network_acls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier
current_stateobjectConfiguration currently in force on the platform. It catches up with targetSpec once the requested change has been applied. (wire: currentState)
current_tasksarrayAsynchronous operations ongoing on the organization network access control list resource (wire: currentTasks)
resource_statusstringReflects the readiness of the organization network access control list resource. A new target specification request will be accepted only in READY status. (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectConfiguration you requested. While a change is still being applied it differs from currentState. (wire: targetSpec)
updated_atstring (date-time)Date and time this resource was last modified (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, organization_idReturns the IP blocks allowed to reach the organization, as applied and as requested. (Alpha version)
listselectorganization_idx_pagination_cursor, x_pagination_sizeReturns the network access control lists of the organization. (Alpha version)
updateupdateid, organization_id, target_specReplaces the rules of the network access control list: each rule allows an IP block to reach the organization. A rule left out of the list is removed. Accepted only when the network ACL is READY, then applied asynchronously: currentState catches up with targetSpec. (Alpha version)

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"}})
idstring (uuid)Id
organization_idstringOrganization ID (wire: organizationId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the IP blocks allowed to reach the organization, as applied and as requested. (Alpha version)

SELECT
id,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at
FROM ovh.vmware_cloud_director.organization_network_acls
WHERE id = '{{ id }}' -- required
AND organization_id = '{{ organization_id }}' -- required
;

UPDATE examples​

Replaces the rules of the network access control list: each rule allows an IP block to reach the organization. A rule left out of the list is removed. Accepted only when the network ACL is READY, then applied asynchronously: currentState catches up with targetSpec. (Alpha version)

UPDATE ovh.vmware_cloud_director.organization_network_acls
SET
target_spec = '{{ target_spec }}'
WHERE
id = '{{ id }}' --required
AND organization_id = '{{ organization_id }}' --required
AND target_spec = '{{ target_spec }}' --required
RETURNING
id,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at;