private_endpoints
Creates, updates, deletes, gets or lists a private_endpoints resource.
Overview​
| Name | private_endpoints |
| Type | Resource |
| Id | ovh.public_cloud_network.private_endpoints |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Unique identifier of the private endpoint |
checksum | string | Computed hash representing the current target specification value |
created_at | string (date-time) | Creation date of the private endpoint (wire: createdAt) |
current_state | object | Current state of the private endpoint (wire: currentState) |
current_tasks | array | Ongoing asynchronous tasks related to the private endpoint (wire: currentTasks) |
resource_status | string | Private endpoint readiness in the system (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus) |
target_spec | object | Last target specification of the private endpoint (wire: targetSpec) |
updated_at | string (date-time) | Last update date of the private endpoint (wire: updatedAt) |
A Public Cloud private endpoint
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Unique identifier of the private endpoint |
checksum | string | Computed hash representing the current target specification value |
created_at | string (date-time) | Creation date of the private endpoint (wire: createdAt) |
current_state | object | Current state of the private endpoint (wire: currentState) |
current_tasks | array | Ongoing asynchronous tasks related to the private endpoint (wire: currentTasks) |
resource_status | string | Private endpoint readiness in the system (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus) |
target_spec | object | Last target specification of the private endpoint (wire: targetSpec) |
updated_at | string (date-time) | Last update date of the private endpoint (wire: updatedAt) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | private_endpoint_id, project_id | Returns the private endpoint, including its VIP address and public hostname. (Beta version) | |
list | select | project_id | x_pagination_cursor, x_pagination_size | Returns the private endpoints of the project. (Beta version) |
create | insert | project_id, target_spec | 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) | |
update | update | private_endpoint_id, project_id, target_spec | Updates the private endpoint's name or description. Its network, subnet, service and public DNS setting are immutable after creation. (Beta version) | |
delete | delete | private_endpoint_id, project_id | Deletes 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.
| 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"}}) |
private_endpoint_id | string (uuid) | Private endpoint ID (wire: privateEndpointId) |
project_id | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
x_pagination_cursor | string | Pagination cursor (wire: X-Pagination-Cursor) |
x_pagination_size | integer | Pagination size (wire: X-Pagination-Size) |
SELECT examples​
- get
- list
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
;
Returns the private endpoints of the project. (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 project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
AND x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
;
INSERT examples​
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: private_endpoints
props:
- name: project_id
value: "{{ project_id }}"
description: Required parameter for the private_endpoints resource.
- name: target_spec
description: |
Desired target specification for the private endpoint to create
value:
description: "{{ description }}"
location:
availabilityZone: "{{ availabilityZone }}"
region: "{{ region }}"
name: "{{ name }}"
network:
id: "{{ id }}"
publicDnsEnabled: {{ publicDnsEnabled }}
service:
name: "{{ name }}"
tier: "{{ tier }}"
subnet:
id: "{{ id }}"
vipAddress: "{{ vipAddress }}"
UPDATE examples​
- update
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​
- delete
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
;