- Categories:
System functions (System Control)
SYSTEM$DEPROVISION_PRIVATELINK_ENDPOINT_TSS¶
Deprovisions a private connectivity endpoint in the Snowflake VPC or VNet to prevent Snowflake from connecting to an external key management service (KMS) resource using private connectivity. The endpoint can be a service endpoint or a resource endpoint depending on the cloud platform that hosts your Snowflake account.
If you call this function and mistakenly remove an endpoint, call the SYSTEM$RESTORE_PRIVATELINK_ENDPOINT_TSS system function to restore the endpoint within seven days. After seven days, the endpoint is deleted and can’t be recovered; you will need to recreate the endpoint with the SYSTEM$PROVISION_PRIVATELINK_ENDPOINT_TSS.
Syntax¶
AWS:
SYSTEM$DEPROVISION_PRIVATELINK_ENDPOINT_TSS(
'<provider_service_name>'
)
Azure:
SYSTEM$DEPROVISION_PRIVATELINK_ENDPOINT_TSS(
'<provider_resource_id>'
)
Arguments¶
provider_service_name
Specifies the external KMS resource endpoint.
provider_resource_id
Specifies the fully-qualified identifier for the resource in your VPC or VNet.
Returns¶
Returns a status message stating that the endpoint, with its identifier, is deprovisioned successfully.
Access control requirements¶
Only users granted the MODIFY privilege on the account can call this function. The MODIFY privilege is typically granted only to the ACCOUNTADMIN role.
Usage notes¶
An error message occurs if a private connectivity endpoint is not associated with the specified arguments.
Examples¶
AWS:
Deprovision a private endpoint with external access to the AWS KMS:
SELECT SYSTEM$DEPROVISION_PRIVATELINK_ENDPOINT_TSS('com.amazonaws.us-west-2.s3');
Azure:
Deprovision a private endpoint to prevent Snowflake from connecting to an external key vault on Microsoft Azure for Tri-Secret Secure:
SELECT SYSTEM$DEPROVISION_PRIVATELINK_ENDPOINT_TSS(
'/subscriptions/12345678-90ab-cdef-1234-567890abcdef/resourceGroups/myvault/providers/Microsoft.KeyVault/vaults/TriSecretVault', 'trisecretvault.vault.azure.net'
);
"Resource Endpoint with id "/subscriptions/12345678-90ab-cdef-1234-567890abcdef/resourceGroups/myvault/privatelink-test/providers/Microsoft.KeyVault/vaults/TriSecretVault/privateEndpoints/" deprovisioned successfully"