Skip to main content

postgresql_integrations

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

Overview​

Namepostgresql_integrations
TypeResource
Idovh.public_cloud_database.postgresql_integrations

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the integration
destination_service_idstring (uuid)Identifier of the destination service. Null for external integrations. (wire: destinationServiceId)
source_service_idstring (uuid)Identifier of the source service (wire: sourceServiceId)
checksumstringHash of the resource used for concurrency control
created_atstring (date-time)Date at which the resource was created (wire: createdAt)
parametersobjectEngine-specific configuration parameters for the integration
statusstringCurrent readiness status of the integration (CREATING, DELETING, ERROR, READY, UPDATING)
typestringType of the integration (GRAFANA_DASHBOARD, GRAFANA_DATASOURCE, KAFKA_CONNECT, KAFKA_LOGS, KAFKA_MIRROR_MAKER, OPENSEARCH_LOGS, POSTGRESQL_METRICS, PROMETHEUS, RSYSLOG)
updated_atstring (date-time)Date of the last update to the resource (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectintegration_id, service_id, project_idReturns the integration type, its source and destination services and its status. (Beta version)
listselectservice_id, project_idx_pagination_cursor, x_pagination_sizeReturns the integrations of the service with other services. (Beta version)
createinsertservice_id, project_id, destination_service_id, source_service_id, typeIntegrates the service with another database or analytics service. sourceServiceId must be the identifier of this service. Compatible engine pairs are listed on the capabilities endpoint. (Beta version)
deletedeleteintegration_id, service_id, project_idDeletes the integration. (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"}})
integration_idstring (uuid)Integration ID (wire: integrationId)
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
service_idstring (uuid)Service ID (wire: serviceId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the integration type, its source and destination services and its status. (Beta version)

SELECT
id,
destination_service_id,
source_service_id,
checksum,
created_at,
parameters,
status,
type,
updated_at
FROM ovh.public_cloud_database.postgresql_integrations
WHERE integration_id = '{{ integration_id }}' -- required
AND service_id = '{{ service_id }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

Integrates the service with another database or analytics service. sourceServiceId must be the identifier of this service. Compatible engine pairs are listed on the capabilities endpoint. (Beta version)

INSERT INTO ovh.public_cloud_database.postgresql_integrations (
destination_service_id,
parameters,
source_service_id,
type,
service_id,
project_id
)
SELECT
'{{ destination_service_id }}' /* required */,
'{{ parameters }}',
'{{ source_service_id }}' /* required */,
'{{ type }}' /* required */,
'{{ service_id }}',
'{{ project_id }}'
RETURNING
id,
destination_service_id,
source_service_id,
checksum,
created_at,
parameters,
status,
type,
updated_at
;

DELETE examples​

Deletes the integration. (Beta version)

DELETE FROM ovh.public_cloud_database.postgresql_integrations
WHERE integration_id = '{{ integration_id }}' --required
AND service_id = '{{ service_id }}' --required
AND project_id = '{{ project_id }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;