SYSTEM$UNREGISTER_PRIVATELINK_ENDPOINT
functionnot supportedIntegrations, network & secretsBusiness Critical+Unregisters a private connectivity endpoint to route your connection to the Snowflake service. This feature requires Business Critical (or higher). To inquire about upgrading, contact Snowflake Support.
Syntax
AWS
SYSTEM$UNREGISTER_PRIVATELINK_ENDPOINT(
'<aws_private_endpoint_vpce_id>',
'<aws_account_id>',
'<token>'
)
Azure
SYSTEM$UNREGISTER_PRIVATELINK_ENDPOINT(
'<azure_private_endpoint_link_id>',
'<azure_private_endpoint_resource_id>',
'<token>'
)
Parameters
| Name | Required | Description |
|---|---|---|
aws_private_endpoint_vpce_id | required | Specifies the identifier for your Amazon Web Services (AWS) virtual private cloud endpoint (AWS VPCEID). To obtain the AWS VPCEID value, navigate through the AWS console or use the following command:Copy code aws ec2 describe-vpc-endpoints |
aws_account_id | required | The 12-digit identifier that uniquely identifies your Amazon Web Services (AWS) account, as a string. To obtain the AWS account ID value, navigate through the AWS console or use the following command:Copy code aws sts get-caller-identity |
azure_private_endpoint_link_id | required | Specifies the identifier for your Microsoft Azure (Azure) virtual private cloud endpoint link (Azure LinkID). To obtain the Azure LinkID value: Run the SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTS system function. |
azure_private_endpoint_resource_id | required | The identifier that uniquely identifies your Snowflake account in Microsoft Azure (Azure) as a string. To obtain the Azure private endpoint resource Id, use the following command:Copy code az network private-endpoint list --resource-group my_resource_group |
token | required | Specifies an access token to verify ownership of the private connectivity endpoint. To obtain the token, you must have the corresponding read or describe privilege on the private connectivity endpoint at a minimum. For more information, see: AWS endpoint policies Azure private endpoint privileges To obtain the token, use the following commands: For Snowflake on AWS: Copy code aws sts get-federation-token --name snowflake --policy '{ "Version": "2012-10-17", "Statement" : [ { "Effect": "Allow", "Action": ["ec2:DescribeVpcEndpoints"], "Resource": ["*"] } ] }' For Snowflake on Azure: Copy code az account get-access-token --subscription <subscription_id> For more information about limiting the scope of an access token, see: For Snowflake on AWS: Managing access token scope on Amazon Web Services For Snowflake on Azure: Managing access token scope on Microsoft Azure |
Returns
Returns a status message about the registration of the private connectivity endpoint.
Usage notes
- Only account administrators (users with the ACCOUNTADMIN role) can call this function.