private_endpoints
Creates, updates, deletes, gets or lists a private_endpoints resource.
Overview​
| Name | private_endpoints |
| Type | Resource |
| Id | oci.resource_manager.private_endpoints |
Fields​
The following fields are returned by SELECT queries:
- get
- list
Successfully retrieved the private endpoint.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing this private endpoint. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
description | string | Description of the private endpoint. Avoid entering confidential information. |
displayName | string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
dnsZones | array | DNS zones to use for accessing private Git servers. For private Git server instructions, see [Private Git Server](/iaas/Content/ResourceManager/Tasks/private-endpoints.htm#private-git). Specify DNS fully qualified domain names (FQDNs); DNS Proxy forwards related DNS FQDN queries to the consumer DNS resolver. For DNS FQDNs not specified, queries go to service provider VCN resolver. Example: abc.oraclevcn.com |
freeformTags | object | Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
isUsedWithConfigurationSourceProvider | boolean | When true, allows the private endpoint to be used with a configuration source provider. |
lifecycleState | string | The current lifecycle state of the private endpoint. (ACTIVE, CREATING, DELETING, DELETED, FAILED) |
nsgIdList | array | The [OCIDs](/iaas/Content/General/Concepts/identifiers.htm) of [network security groups (NSGs)](/iaas/Content/Network/Concepts/networksecuritygroups.htm) for the private endpoint. Order does not matter. |
sourceIps | array | The source IP addresses that Resource Manager uses to connect to your network. Automatically assigned by Resource Manager. |
subnetId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the subnet within the VCN for the private endpoint. |
systemTags | object | The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see [Resource Tags](https:​//docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {orcl-cloud: {free-tier-retain: true}} |
timeCreated | string (date-time) | The date and time at which the private endpoint was created. Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z |
vcnId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the VCN for the private endpoint. |
Successfully retrieved the list of private endpoints.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing this private endpoint. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
description | string | Description of the private endpoint. Avoid entering confidential information. |
displayName | string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
dnsZones | array | DNS zones to use for accessing private Git servers. For private Git server instructions, see [Private Git Server](/iaas/Content/ResourceManager/Tasks/private-endpoints.htm#private-git). DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver. |
freeformTags | object | Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
isUsedWithConfigurationSourceProvider | boolean | When true, allows the private endpoint to be used with a configuration source provider. |
lifecycleState | string | The current lifecycle state of the private endpoint. (x-obmcs-enumref: #/definitions/PrivateEndpoint/lifecycleState) |
systemTags | object | The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see [Resource Tags](https:​//docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {orcl-cloud: {free-tier-retain: true}} |
timeCreated | string (date-time) | The date and time when the private endpoint was created. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z |
vcnId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the VCN for the private endpoint. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | privateEndpointId, region | opc-request-id | Gets the specified private endpoint.<br />For more information, see<br />[Getting a Private Endpoint's Details](/iaas/Content/ResourceManager/Tasks/get-private-endpoints.htm).<br /> |
list | select | region | opc-request-id, compartmentId, privateEndpointId, displayName, vcnId, sortBy, sortOrder, limit, page | Lists private endpoints according to the specified filter.<br />For more information, see<br />[Listing Private Endpoints](/iaas/Content/ResourceManager/Tasks/list-private-endpoints.htm).<br />- For compartmentId, lists all private endpoints in the matching compartment.<br />- For privateEndpointId, lists the matching private endpoint.<br /> |
create | insert | region, compartmentId, displayName, vcnId, subnetId | opc-request-id, opc-retry-token | Creates a private endpoint in the specified compartment.<br />For more information, see<br />[Creating a Private Endpoint](/iaas/Content/ResourceManager/Tasks/create-private-endpoints.htm).<br /> |
update | update | privateEndpointId, region | opc-request-id, if-match | Updates the specified private endpoint.<br />For more information, see<br />[Updating a Private Endpoint](/iaas/Content/ResourceManager/Tasks/update-private-endpoints.htm).<br /> |
delete | delete | privateEndpointId, region | opc-request-id, if-match | Deletes the specified private endpoint.<br />For more information, see<br />[Deleting a Private Endpoint](/iaas/Content/ResourceManager/Tasks/delete-private-endpoints.htm).<br /> |
change_compartment | exec | privateEndpointId, region, compartmentId | if-match, opc-request-id, opc-retry-token | Moves a private endpoint to a different compartment within the same tenancy.<br />For more information, see<br />[Moving a Private Endpoint](/iaas/Content/ResourceManager/Tasks/move-private-endpoints.htm).<br /> |
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 |
|---|---|---|
privateEndpointId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
compartmentId | string | A filter to return only resources that exist in the compartment, identified by [OCID](/iaas/Content/General/Concepts/identifiers.htm). |
displayName | string | A filter to return only resources that match the given display name exactly. Use this filter to list a resource by name. Requires sortBy set to DISPLAYNAME. Alternatively, when you know the resource OCID, use the related Get operation. |
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
limit | integer | The number of items returned in a paginated List call. For information about pagination, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of retrying the same action. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. |
page | string | The value of the opc-next-page response header from the preceding List call. For information about pagination, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
privateEndpointId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. |
sortBy | string | The field to use when sorting returned resources. By default, TIMECREATED is ordered descending. By default, DISPLAYNAME is ordered ascending. Note that you can sort only on one field. |
sortOrder | string | The sort order to use when sorting returned resources. Ascending (ASC) or descending (DESC). |
vcnId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the VCN. |
SELECT examples​
- get
- list
Gets the specified private endpoint.<br />For more information, see<br />[Getting a Private Endpoint's Details](/iaas/Content/ResourceManager/Tasks/get-private-endpoints.htm).<br />
SELECT
id,
compartmentId,
definedTags,
description,
displayName,
dnsZones,
freeformTags,
isUsedWithConfigurationSourceProvider,
lifecycleState,
nsgIdList,
sourceIps,
subnetId,
systemTags,
timeCreated,
vcnId
FROM oci.resource_manager.private_endpoints
WHERE privateEndpointId = '{{ privateEndpointId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;
Lists private endpoints according to the specified filter.<br />For more information, see<br />[Listing Private Endpoints](/iaas/Content/ResourceManager/Tasks/list-private-endpoints.htm).<br />- For compartmentId, lists all private endpoints in the matching compartment.<br />- For privateEndpointId, lists the matching private endpoint.<br />
SELECT
id,
compartmentId,
definedTags,
description,
displayName,
dnsZones,
freeformTags,
isUsedWithConfigurationSourceProvider,
lifecycleState,
systemTags,
timeCreated,
vcnId
FROM oci.resource_manager.private_endpoints
WHERE region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND compartmentId = '{{ compartmentId }}'
AND privateEndpointId = '{{ privateEndpointId }}'
AND displayName = '{{ displayName }}'
AND vcnId = '{{ vcnId }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
;
INSERT examples​
- create
- Manifest
Creates a private endpoint in the specified compartment.<br />For more information, see<br />[Creating a Private Endpoint](/iaas/Content/ResourceManager/Tasks/create-private-endpoints.htm).<br />
INSERT INTO oci.resource_manager.private_endpoints (
compartmentId,
definedTags,
description,
displayName,
dnsZones,
freeformTags,
isUsedWithConfigurationSourceProvider,
nsgIdList,
subnetId,
vcnId,
region,
opc-request-id,
opc-retry-token
)
SELECT
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ description }}',
'{{ displayName }}' /* required */,
'{{ dnsZones }}',
'{{ freeformTags }}',
{{ isUsedWithConfigurationSourceProvider }},
'{{ nsgIdList }}',
'{{ subnetId }}' /* required */,
'{{ vcnId }}' /* required */,
'{{ region }}',
'{{ opc-request-id }}',
'{{ opc-retry-token }}'
RETURNING
id,
compartmentId,
definedTags,
description,
displayName,
dnsZones,
freeformTags,
isUsedWithConfigurationSourceProvider,
lifecycleState,
nsgIdList,
sourceIps,
subnetId,
systemTags,
timeCreated,
vcnId
;
# Description fields are for documentation purposes
- name: private_endpoints
props:
- name: region
value: "{{ region }}"
description: Required parameter for the private_endpoints resource.
- name: compartmentId
value: "{{ compartmentId }}"
description: |
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing this private endpoint.
- name: definedTags
value: "{{ definedTags }}"
description: |
Defined tags for this resource. Each key is predefined and scoped to a namespace.
For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm).
Example: `{"Operations": {"CostCenter": "42"}}`
- name: description
value: "{{ description }}"
description: |
Description of the private endpoint. Avoid entering confidential information.
- name: displayName
value: "{{ displayName }}"
description: |
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- name: dnsZones
value:
- "{{ dnsZones }}"
description: |
DNS Proxy forwards any DNS FQDN queries over into the consumer DNS resolver if the DNS FQDN is included in the dns zones list otherwise it goes to service provider VCN resolver.
- name: freeformTags
value: "{{ freeformTags }}"
description: |
Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace.
For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm).
Example: `{"Department": "Finance"}`
- name: isUsedWithConfigurationSourceProvider
value: {{ isUsedWithConfigurationSourceProvider }}
description: |
When `true`, allows the private endpoint to be used with a configuration source provider.
- name: nsgIdList
value:
- "{{ nsgIdList }}"
description: |
The [OCIDs](/iaas/Content/General/Concepts/identifiers.htm) of
[network security groups (NSGs)](/iaas/Content/Network/Concepts/networksecuritygroups.htm)
for the private endpoint.
Order does not matter.
- name: subnetId
value: "{{ subnetId }}"
description: |
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the subnet within the VCN for the private endpoint.
- name: vcnId
value: "{{ vcnId }}"
description: |
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the VCN for the private endpoint.
- name: opc-request-id
value: "{{ opc-request-id }}"
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
- name: opc-retry-token
value: "{{ opc-retry-token }}"
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of retrying the same action. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected.
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of retrying the same action. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected.
UPDATE examples​
- update
Updates the specified private endpoint.<br />For more information, see<br />[Updating a Private Endpoint](/iaas/Content/ResourceManager/Tasks/update-private-endpoints.htm).<br />
UPDATE oci.resource_manager.private_endpoints
SET
definedTags = '{{ definedTags }}',
description = '{{ description }}',
displayName = '{{ displayName }}',
dnsZones = '{{ dnsZones }}',
freeformTags = '{{ freeformTags }}',
isUsedWithConfigurationSourceProvider = {{ isUsedWithConfigurationSourceProvider }},
nsgIdList = '{{ nsgIdList }}',
subnetId = '{{ subnetId }}',
vcnId = '{{ vcnId }}'
WHERE
privateEndpointId = '{{ privateEndpointId }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id}}'
AND if-match = '{{ if-match}}'
RETURNING
id,
compartmentId,
definedTags,
description,
displayName,
dnsZones,
freeformTags,
isUsedWithConfigurationSourceProvider,
lifecycleState,
nsgIdList,
sourceIps,
subnetId,
systemTags,
timeCreated,
vcnId;
DELETE examples​
- delete
Deletes the specified private endpoint.<br />For more information, see<br />[Deleting a Private Endpoint](/iaas/Content/ResourceManager/Tasks/delete-private-endpoints.htm).<br />
DELETE FROM oci.resource_manager.private_endpoints
WHERE privateEndpointId = '{{ privateEndpointId }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id }}'
AND if-match = '{{ if-match }}'
;
Lifecycle Methods​
- change_compartment
Moves a private endpoint to a different compartment within the same tenancy.<br />For more information, see<br />[Moving a Private Endpoint](/iaas/Content/ResourceManager/Tasks/move-private-endpoints.htm).<br />
EXEC oci.resource_manager.private_endpoints.change_compartment
@privateEndpointId='{{ privateEndpointId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;