Creating a Private Endpoint
Create a private endpoint in Resource Manager.
Before You Begin
Gather the network information that you need:
-
The private endpoint connection is at the VCN level. If you have many subnets per VCN, you need to create only one private endpoint for that VCN. Ensure that security rules meet your requirements.
-
Network security groups (optional)
-
DNS zones (optional, for private Git servers)
For example, for a private Git server at
https://privateGitServer.examplesub.exampledomain
, create a DNS zone forexamplesub.exampledomain
.
Additionally:
- Ensure that the subnet allows access to the private resource: Set up a security rule for ingress.
- Ensure that the subnet has available IP addresses.
If no IP addresses are available in the specified subnet, then the work request for creating the private endpoint fails.
- For private Git servers, import the certificates you want to use. See the GitHub and GitLab instructions.
Using a Terraform Configuration
Create a private endpoint by using a Terraform configuration.
- To create a stack that creates a Resource Manager private endpoint, use the Resource Manager create private endpoint template.
-
For example Terraform configurations that use Resource Manager private endpoints, see Private endpoint Terraform configuration examples. Also, review Terraform Configurations for Resource Manager.
To create a private endpoint by using the Console, follow these steps. The new private endpoint appears on the Private endpoints list page. While the work request for creation runs, the new private endpoint's status is Creating, and the new private endpoint's details page shows the work request in progress. When the work request reaches succeeded status, the new private endpoint's status is Active. Use the
oci resource-manager private-endpoint create
command to create a private endpoint.oci resource-manager private-endpoint create --compartment-id <compartment_ocid> --display-name <text> --subnet-id <subnet_ocid> --vcn-id <vcn_ocid>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.
Use the CreatePrivateEndpoint operation to create a private endpoint.