Private link

Private links facilitate a secure connection between a Crunchy Bridge Postgres database and your application virtual network.

Set up a private link with these steps:

  1. Create a private link for a cluster.
  2. Create a private link endpoint in your application virtual network using the value of the endpoint_identifier field from the new private link.
  3. Approve the private link connection using the private link connections API.

Part of the API reference collection

This page is part of the Crunchy Bridge API reference, and primarily meant to act as an exhaustive guide for technical integrations which are already in progress. To understand the basics of using the API, see API concepts and getting started.

Response representing a cluster private link.

Content type: application/json

NameNullableTypeDescription
idstring in EID format

Unique ID of the private link.

cluster_idstring in EID format

The ID of cluster that the logger belongs to.

endpoint_identifierstring

The identifier of the private link to use when setting up the link on the customer side.

statusenum string

Status of the private link.

Enum available, or creating.

team_idstring in EID format

The ID of the team that owns the associated cluster.

{
    "cluster_id": "rvf73a77ozfsvcttryebfrnlem",
    "endpoint_identifier": "vpce-075c50b2becc4c030",
    "id": "qtrpik2jyrcebnk2qzhagw6w2a",
    "status": "available",
    "team_id": "eaevtjiudzeq7bsqbbpiscund4"
}

Get private link of a cluster, returns a 404 if the cluster has no private link.

GET /clusters/{cluster_id}/private-link
  • cluster_id: Unique ID of the cluster.
curl -X GET https://api.crunchybridge.com/clusters/{cluster_id}/private-link
    -H "Authorization: Bearer $CRUNCHY_API_KEY"

Status: 200

Responds with the standard ClusterPrivateLink API resource.

Create a new private link for a cluster.

POST /clusters/{cluster_id}/private-link
  • cluster_id: Unique ID of the cluster.
curl -X POST https://api.crunchybridge.com/clusters/{cluster_id}/private-link
    -H "Authorization: Bearer $CRUNCHY_API_KEY"

Status: 201

Responds with the standard ClusterPrivateLink API resource.

Delete the private link of a cluster.

DELETE /clusters/{cluster_id}/private-link
  • cluster_id: Unique ID of the cluster.
curl -X DELETE https://api.crunchybridge.com/clusters/{cluster_id}/private-link
    -H "Authorization: Bearer $CRUNCHY_API_KEY"

Status: 200

Responds with the standard ClusterPrivateLink API resource.