- Categories:
System functions (System Control)
SYSTEM$SET_ PRIVATELINK_ ENDPOINT_ HOSTNAME¶
Modifies only the host name of an existing private connectivity endpoint.
Note
If the Snowflake account is in an Azure government region, the provider resource ID must be the ID of a resource in a government subscription. For more information about government regions for Snowflake customers, see U.S. SnowGov Regions.
语法
AWS:
Azure:
Google Cloud:
实参
AWS:
'provider_service_name'Specifies the external service or resource to connect to. For example,
com.amazonaws.us-west-2.execute-apifor the Amazon API Gateway orcom.amazonaws.us-west-2.s3for Amazon S3.For information about retrieving this value from AWS, see Provision private connectivity endpoints.
'host_name'Specifies the new fully-qualified host name that should be used to access the resource in your VPC or VNet.
This value doesn’t contain any port numbers and must match what you specified in the Snowflake object that you use to connect to the external service.
Examples include
bedrock-runtime.us-west-2.amazonaws.comand*.s3.us-west-2.amazonaws.com.When you use private connectivity for external stages and external volumes, the
host_namemust use a wildcard instead of specifying an AWS S3 bucket.For information about retrieving this value from AWS, see Provision private connectivity endpoints.
Azure:
'provider_resource_id'指定 VPC 或 VNet 中资源的完全限定标识符。
'host_name'Specifies new the fully qualified host name to access the resource in your VPC or VNet.
For examples of the host name for outbound private connectivity for external functions, see the following topics:
'subresource'指定 Azure 资源的子资源的名称。
This argument isn’t required for Azure Private Link Service (https://learn.microsoft.com/en-us/azure/private-link/private-link-service-overview) and Azure API Management Service.
For all supported values, see the Sub-resource table (https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview#private-link-resource).
Google Cloud:
'target_service_id'指定服务附件 ID(自定义服务)或要连接到的区域性 Google API 端点。
'host_name'Specifies the new fully qualified host name to access the resource.
返回
Returns a status message that the host name for the private connectivity endpoint was updated successfully.
访问控制要求
只有账户管理员(具有 ACCOUNTADMIN 角色的用户)才能调用此函数。
使用说明
- You can only modify the host name of an existing private connectivity endpoint.
示例
AWS:
Update the hostname of a private endpoint to allow Snowflake on Amazon Web Services to connect to the VPCE service in your Amazon Web Services VPC:
Azure:
Update the host name of a private endpoint to allow Snowflake on Microsoft Azure to connect to the Microsoft Azure API Management service in your Microsoft Azure VNet:
Google Cloud:
Update the host name of a private endpoint to allow Snowflake on Google Cloud Platform to connect to the service attachment in your Google Cloud Platform VPC network: