Skip to main content

organization_ip_spaces

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

Overview​

Nameorganization_ip_spaces
TypeResource
Idovh.vmware_cloud_director.organization_ip_spaces

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Universal 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 IP Space (wire: currentTasks)
resource_statusstringReflects the readiness of the organization IP Space 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_specobjectNew target specification for the VMware Cloud Director organization IP space (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
getselectip_space_id, organization_idReturns the IP space: name, internal scope and associated edge gateway.
listselectorganization_idx_pagination_cursor, x_pagination_sizeReturns the IP spaces of the organization.
updateupdateip_space_id, organization_id, target_specRenames the IP space or associates it with another edge gateway. Accepted only when the IP space is READY, then applied asynchronously: currentState catches up with targetSpec.

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"}})
ip_space_idstring (uuid)Ip space ID (wire: ipSpaceId)
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 space: name, internal scope and associated edge gateway.

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

UPDATE examples​

Renames the IP space or associates it with another edge gateway. Accepted only when the IP space is READY, then applied asynchronously: currentState catches up with targetSpec.

UPDATE ovh.vmware_cloud_director.organization_ip_spaces
SET
target_spec = '{{ target_spec }}'
WHERE
ip_space_id = '{{ ip_space_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;