- Categories:
System functions (System Information)
SYSTEM$GET_ PRIVATELINK_ ENDPOINTS_ INFO¶
返回您预置的所有专用连接端点的状态。端点可以是服务端点或资源端点,具体取决于托管 Snowflake 账户的云平台。
语法
返回
返回具有以下字段的 JSON 对象:
AWS:
provider_service_name服务或资源的名称。
snowflake_endpoint_nameThe VPC endpoint ID in your Snowflake account. This field contains a temporary name while the endpoint is being created. After the endpoint is created, and
endpoint_statechanges toCREATED, then this name changes.endpoint_stateSnowflake 中的端点状态。此字段可以包含以下状态之一:
PENDING_CREATION: The endpoint is still being created.CREATED: Indicates that Snowflake received a response from the cloud provider that the endpoint was successfully created and is ready to use.FAILED: The endpoint is in an unexpected state on the cloud provider, and cannot be used.PENDING_DELETION: The endpoint is on the deletion queue, but can be restored.DELETING: The endpoint is being deleted on the cloud provider and cannot be restored.host用于连接到服务的主机名。
statusAWS 上的端点配置状态。此字段可以包含以下状态之一:
Pending: The endpoint is still being created.Available: The endpoint is created and ready to use.
Azure:
provider_resource_id端点所连接资源的 Azure 资源 ID。
subresource端点所连接的 Azure 资源的子资源。
snowflake_resource_id连接到 Azure 资源的专用端点的 Azure 资源 ID。
host用于连接资源的主机名。
endpoint_stateSnowflake 中的端点状态。此字段可以包含以下状态之一:
PENDING_CREATION: The endpoint is still being created.CREATED: Indicates that Snowflake received a response from the cloud provider that the endpoint was successfully created and is ready to use.FAILED: The endpoint is in an unexpected state on the cloud provider, and cannot be used.PENDING_DELETION: The endpoint is on the deletion queue, but can be restored.DELETING: The endpoint is being deleted on the cloud provider and cannot be restored.statusThe endpoint provisioning status on Microsoft Azure. Use this field to determine if Microsoft Azure has approved the private endpoint connection to the resource. This field can contain one of the following statuses:
APPROVEDPENDINGDISCONNECTEDREJECTED
Google Cloud:
provider_resource_id专用连接端点连接到的资源 ID(服务附件 ID)。
snowflake_resource_id专用连接端点的标识符。
host访问使用此端点的提供商服务或资源时使用的主机名。
endpoint_stateSnowflake 侧端点状态。
statusThe connection status on Google Cloud. NO CONNECTION might appear shortly after creating the private connectivity endpoint, because the cloud provider takes time to complete the connection setup. This field can contain one of the following statuses:
ACCEPTEDNO CONNECTIONREJECTED
使用说明
- This function can take approximately five minutes to run because it depends on the process to retrieve the private connectivity endpoints in the cloud platform that are outside of Snowflake.
示例
AWS:
执行以下 SQL 语句,列出具有 Amazon S3 外部访问权限的所有 PrivateLink 端点:
Azure:
对于 Microsoft Azure 上的 Snowflake 账户,请列出已配置的专用连接端点以及每个端点关联的服务名称:
Google Cloud
For your Snowflake account on Google Cloud, list the private connectivity endpoints that you provisioned and the service names that each endpoint is associated with: