Skip to main content

private_endpoint_rules

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

Overview

Nameprivate_endpoint_rules
TypeResource
Iddatabricks_account.settings.private_endpoint_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringDatabricks account ID. You can find your account ID from the Accounts Console.
group_idstringNot used by customer-managed private endpoint services. The sub-resource type (group ID) of the target resource. Note that to connect to workspace root storage (root DBFS), you need two endpoints, one for blob and one for dfs.
network_connectivity_config_idstringThe ID of a network connectivity configuration, which is the parent resource of this private endpoint rule object.
resource_idstringThe Azure resource ID of the target resource.
rule_idstringThe ID of a private endpoint rule.
vpc_endpoint_idstringThe AWS VPC endpoint ID. You can use this ID to identify the VPC endpoint created by Databricks.
endpoint_namestringThe name of the Azure private endpoint resource.
connection_statestringThe current status of this private endpoint. The private endpoint rules are effective only if the connection state is ESTABLISHED. Remember that you must approve new endpoints on your resources in the Cloud console before they take effect. The possible values are: - PENDING: The endpoint has been created and pending approval. - ESTABLISHED: The endpoint has been approved and is ready to use in your serverless compute resources. - REJECTED: Connection was rejected by the private link resource owner. - DISCONNECTED: Connection was removed by the private link resource owner, the private endpoint becomes informative and should be deleted for clean-up. - EXPIRED: If the endpoint was created but not approved in 14 days, it will be EXPIRED. - CREATING: The endpoint creation is in progress. Once successfully created, the state will transition to PENDING. - CREATE_FAILED: The endpoint creation failed. You can check the error_message field for more details. (CREATE_FAILED, CREATING, DISCONNECTED, ESTABLISHED, EXPIRED, PENDING, REJECTED)
creation_timeintegerTime in epoch milliseconds when this object was created.
deactivatedbooleanWhether this private endpoint is deactivated.
deactivated_atintegerTime in epoch milliseconds when this object was deactivated.
domain_namesarrayOnly used by private endpoints to customer-managed private endpoint services. Domain names of target private link service. When updating this field, the full list of target domain_names must be specified.
enabledbooleanOnly used by private endpoints towards an AWS S3 service. Update this field to activate/deactivate this private endpoint to allow egress access from serverless compute resources.
endpoint_servicestringThe full target AWS endpoint service name that connects to the destination resources of the private endpoint.
error_messagestring
resource_namesarrayOnly used by private endpoints towards AWS S3 service. The globally unique S3 bucket names that will be accessed via the VPC endpoint. The bucket names must be in the same region as the NCC/endpoint service. When updating this field, we perform full update on this field. Please ensure a full list of desired resource_names is provided.
updated_timeintegerTime in epoch milliseconds when this object was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_private_endpoint_ruleselectaccount_id, network_connectivity_config_id, private_endpoint_rule_idGets the private endpoint rule.
list_private_endpoint_rulesselectaccount_id, network_connectivity_config_idpage_tokenGets an array of private endpoint rules.
create_private_endpoint_ruleinsertaccount_id, network_connectivity_config_id, private_endpoint_ruleCreate a private endpoint rule for the specified network connectivity config object. Once the object
update_private_endpoint_ruleupdateaccount_id, network_connectivity_config_id, private_endpoint_rule_id, update_mask, private_endpoint_ruleUpdates a private endpoint rule. Currently only a private endpoint rule to customer-managed resources
delete_private_endpoint_ruledeleteaccount_id, network_connectivity_config_id, private_endpoint_rule_idInitiates deleting a private endpoint rule. If the connection state is PENDING or EXPIRED, the private

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
account_idstring
network_connectivity_config_idstringYour Network Connectvity Configuration ID.
private_endpoint_rule_idstringYour private endpoint rule ID.
update_maskstring
page_tokenstringPagination token to go to next page based on previous query.

SELECT examples

Gets the private endpoint rule.

SELECT
account_id,
group_id,
network_connectivity_config_id,
resource_id,
rule_id,
vpc_endpoint_id,
endpoint_name,
connection_state,
creation_time,
deactivated,
deactivated_at,
domain_names,
enabled,
endpoint_service,
error_message,
resource_names,
updated_time
FROM databricks_account.settings.private_endpoint_rules
WHERE account_id = '{{ account_id }}' -- required
AND network_connectivity_config_id = '{{ network_connectivity_config_id }}' -- required
AND private_endpoint_rule_id = '{{ private_endpoint_rule_id }}' -- required
;

INSERT examples

Create a private endpoint rule for the specified network connectivity config object. Once the object

INSERT INTO databricks_account.settings.private_endpoint_rules (
private_endpoint_rule,
account_id,
network_connectivity_config_id
)
SELECT
'{{ private_endpoint_rule }}' /* required */,
'{{ account_id }}',
'{{ network_connectivity_config_id }}'
RETURNING
account_id,
group_id,
network_connectivity_config_id,
resource_id,
rule_id,
vpc_endpoint_id,
endpoint_name,
connection_state,
creation_time,
deactivated,
deactivated_at,
domain_names,
enabled,
endpoint_service,
error_message,
resource_names,
updated_time
;

UPDATE examples

Updates a private endpoint rule. Currently only a private endpoint rule to customer-managed resources

UPDATE databricks_account.settings.private_endpoint_rules
SET
private_endpoint_rule = '{{ private_endpoint_rule }}'
WHERE
account_id = '{{ account_id }}' --required
AND network_connectivity_config_id = '{{ network_connectivity_config_id }}' --required
AND private_endpoint_rule_id = '{{ private_endpoint_rule_id }}' --required
AND update_mask = '{{ update_mask }}' --required
AND private_endpoint_rule = '{{ private_endpoint_rule }}' --required
RETURNING
account_id,
group_id,
network_connectivity_config_id,
resource_id,
rule_id,
vpc_endpoint_id,
endpoint_name,
connection_state,
creation_time,
deactivated,
deactivated_at,
domain_names,
enabled,
endpoint_service,
error_message,
resource_names,
updated_time;

DELETE examples

Initiates deleting a private endpoint rule. If the connection state is PENDING or EXPIRED, the private

DELETE FROM databricks_account.settings.private_endpoint_rules
WHERE account_id = '{{ account_id }}' --required
AND network_connectivity_config_id = '{{ network_connectivity_config_id }}' --required
AND private_endpoint_rule_id = '{{ private_endpoint_rule_id }}' --required
;