Skip to main content

private_endpoints

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

Overview​

Nameprivate_endpoints
TypeResource
Idovh.public_cloud_network.private_endpoints

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the private endpoint
checksumstringComputed hash representing the current target specification value
created_atstring (date-time)Creation date of the private endpoint (wire: createdAt)
current_stateobjectCurrent state of the private endpoint (wire: currentState)
current_tasksarrayOngoing asynchronous tasks related to the private endpoint (wire: currentTasks)
resource_statusstringPrivate endpoint readiness in the system (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectLast target specification of the private endpoint (wire: targetSpec)
updated_atstring (date-time)Last update date of the private endpoint (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprivate_endpoint_id, project_idReturns the private endpoint, including its VIP address and public hostname. (Beta version)
listselectproject_idx_pagination_cursor, x_pagination_sizeReturns the private endpoints of the project. (Beta version)
createinsertproject_id, target_specCreates a private endpoint to a service in a network or subnet. A project can have only one private endpoint per service and subnet. (Beta version)
updateupdateprivate_endpoint_id, project_id, target_specUpdates the private endpoint's name or description. Its network, subnet, service and public DNS setting are immutable after creation. (Beta version)
deletedeleteprivate_endpoint_id, project_idDeletes the private endpoint. (Beta 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"}})
private_endpoint_idstring (uuid)Private endpoint ID (wire: privateEndpointId)
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the private endpoint, including its VIP address and public hostname. (Beta version)

SELECT
id,
checksum,
created_at,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at
FROM ovh.public_cloud_network.private_endpoints
WHERE private_endpoint_id = '{{ private_endpoint_id }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

Creates a private endpoint to a service in a network or subnet. A project can have only one private endpoint per service and subnet. (Beta version)

INSERT INTO ovh.public_cloud_network.private_endpoints (
target_spec,
project_id
)
SELECT
'{{ target_spec }}' /* required */,
'{{ project_id }}'
RETURNING
id,
checksum,
created_at,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at
;

UPDATE examples​

Updates the private endpoint's name or description. Its network, subnet, service and public DNS setting are immutable after creation. (Beta version)

UPDATE ovh.public_cloud_network.private_endpoints
SET
checksum = '{{ checksum }}',
target_spec = '{{ target_spec }}'
WHERE
private_endpoint_id = '{{ private_endpoint_id }}' --required
AND project_id = '{{ project_id }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
AND target_spec = '{{ target_spec }}' --required
RETURNING
id,
checksum,
created_at,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at;

DELETE examples​

Deletes the private endpoint. (Beta version)

DELETE FROM ovh.public_cloud_network.private_endpoints
WHERE private_endpoint_id = '{{ private_endpoint_id }}' --required
AND project_id = '{{ project_id }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;