---
name: dl-vpe
title: Using virtual private endpoints for VPC to privately connect to Direct Link
description: IBM Cloud&reg; Virtual Private Endpoints (VPE) for VPC allows you to connect to Direct Link from your VPC network by using the IP addresses of your choosing, which is allocated from a subnet within your VPC.
last-updated: 2026-08-13
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/dl?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Using virtual private endpoints for VPC to privately connect to Direct Link
{: #vpe-connection}

IBM Cloud&reg; Virtual Private Endpoints (VPE) for VPC allows you to connect to Direct Link from your VPC network by using the IP addresses of your choosing, which is allocated from a subnet within your VPC.
{: shortdesc}

VPEs are virtual IP interfaces that are bound to an endpoint gateway created on a per-service, or service-instance basis (depending on the service operation model). The endpoint gateway is a virtualized function that scales horizontally, is redundant and highly available, and spans all availability zones of your VPC. Endpoint gateways enable communications from virtual server instances within your VPC and IBM Cloud&reg; service on the private backbone. VPE for VPC gives you the experience of controlling all the private addressing within your cloud. For more information, see [About virtual private endpoint gateways](https://cloud.ibm.com/docs/vpc?topic=vpc-about-vpe&format=markdown).

## Before you begin
{: #vpe-before-you-begin}

Before you target a virtual private endpoint for IBM Cloud&reg;, you must complete the following tasks.

* Make sure that a [Virtual Private Cloud is created](https://cloud.ibm.com/docs/vpc?topic=vpc-getting-started&format=markdown).
* Make a plan for your [virtual private endpoints](https://cloud.ibm.com/docs/vpc?topic=vpc-vpe-planning-considerations&format=markdown).
* Ensure that [correct access controls](https://cloud.ibm.com/docs/vpc?topic=vpc-configure-acls-sgs-endpoint-gateways&format=markdown) are set for your virtual private endpoint.
* Understand how to [view details](https://cloud.ibm.com/docs/vpc?topic=vpc-vpe-viewing-details-of-an-endpoint-gateway&format=markdown) about a virtual private endpoint.

## Setting up a VPE for Direct Link
{: #setup-vpe-dl}

When you create a VPE gateway by using the CLI or API, you must specify the [Cloud Resource Name (CRN)](https://cloud.ibm.com/docs/account?topic=account-crn&format=markdown) of the region in which you want to connect to Direct Link. Review the following table for the available regions and CRNs to use to create your VPE gateway.


Direct Link supports VPEs in all the VPC regions as shown.

| Location | Region | Cloud Resource Name (CRN) |
|---------|-------|----------------|
| Dallas | `us-south` | `crn:v1:bluemix:public:directlink:us-south:::endpoint:private.us-south.directlink.cloud.ibm.com` |
| Frankfurt | `eu-de` | `crn:v1:bluemix:public:directlink:eu-de:::endpoint:private.eu-de.directlink.cloud.ibm.com` |
| London | `eu-gb` | `crn:v1:bluemix:public:directlink:eu-gb:::endpoint:private.eu-gb.directlink.cloud.ibm.com` |
| Montreal | `ca-mon` | `crn:v1:bluemix:public:directlink:ca-mon:::endpoint:private.ca-mon.directlink.cloud.ibm.com` |
| Osaka | `jp-osa` | `crn:v1:bluemix:public:directlink:jp-osa:::endpoint:private.jp-osa.directlink.cloud.ibm.com` |
| São Paulo | `br-sao` | `crn:v1:bluemix:public:directlink:br-sao:::endpoint:private.br-sao.directlink.cloud.ibm.com` |
| Sydney | `au-syd` | `crn:v1:bluemix:public:directlink:au-syd:::endpoint:private.au-syd.directlink.cloud.ibm.com` |
| Tokyo | `jp-tok` | `crn:v1:bluemix:public:directlink:jp-tok:::endpoint:private.jp-tok.directlink.cloud.ibm.com` |
| Toronto  | `ca-tor` | `crn:v1:bluemix:public:directlink:ca-tor:::endpoint:private.ca-tor.directlink.cloud.ibm.com` |
| Washington DC | `us-east` | `crn:v1:bluemix:public:directlink:us-east:::endpoint:private.us-east.directlink.cloud.ibm.com` |
{: caption="VPE region availability and CRNs for Direct Link" caption-side="bottom"}

### Configuring an endpoint gateway
{: #endpoint-gateway-servicename}

To configure a virtual private endpoint gateway, follow these steps:

1. List the available services, including IBM Cloud infrastructure services available (by default) for all VPC users.
1. [Create an endpoint gateway](https://cloud.ibm.com/docs/vpc?topic=vpc-ordering-endpoint-gateway&format=markdown) for Direct Link that you want to be privately available to the VPC.
1. [Bind a reserved IP address](https://cloud.ibm.com/docs/vpc?topic=vpc-bind-unbind-reserved-ip&format=markdown) to the endpoint gateway.
1. View the created VPE gateways associated with the Direct Link. For more information, see [Viewing details of an endpoint gateway](https://cloud.ibm.com/docs/vpc?topic=vpc-vpe-viewing-details-of-an-endpoint-gateway&format=markdown).

Now, your virtual server instances in the VPC can access your Direct Link instance privately through it.

## Using your VPE for Direct Link
{: #using-direct-link-vpe}

After you create an endpoint gateway for Direct Link, follow these steps:

### Using the VPE with the CLI
{: #vpe-cli}
{: cli}

Follow these steps to update to the latest version of the CLI and the Direct Link plug-in.

1. Update the IBM Cloud CLI to the latest version:

   ```sh
   ibmcloud update
   ```
   {: pre}

1. Update the Direct Link CLI plug-in:

   ```sh
   ibmcloud plugin update dl-cli
   ```
   {: pre}

### Using the VPE with the VPC API
{: #vpe-api}
{: api}

After you create an endpoint gateway for the Direct Link service, use the service endpoints FQDN `private.directlink.cloud.ibm.com` in the URL to access the service. For example:

```sh
curl https://private.directlink.cloud.ibm.com/v1/direct_links?version='2020-03-31' -H "Authorization: Bearer $iam_token"
```
{: pre}

### Using the VPE with the SDK
{: #vpe-sdk}
{: api}

After you create an endpoint gateway for Direct Link, you must use the private endpoint's FQDN when you set the service's FQDN during construction of the direct link service object.

```sh
private.directlink.cloud.ibm.com
```
{: pre}

For examples of setting the service's FQDN for the specific SDK language, see [SDK API examples](https://cloud.ibm.com/docs/apis/direct_link?code=go#authentication).

### Using the VPE with Terraform
{: #vpe-terraform}
{: terraform}

If you plan to access the Direct Link service by using Terraform, make sure to set the `IBMCLOUD_DL_API_ENDPOINT` environment variable to `private.directlink.cloud.ibm.com`. For example:

```sh
export IBMCLOUD_DL_API_ENDPOINT=private.directlink.cloud.ibm.com
```
{: pre}