Skip to main content

endpoints

Creates, updates, deletes, gets or lists an endpoints resource.

Overview

Nameendpoints
TypeResource
Idsnowflake.service.endpoints

Fields

The following fields are returned by SELECT queries:

successful

NameDatatypeDescription
namestringUser-friendly endpoint name that represents the corresponding port.
ingress_urlstringEndpoint URL accessible from the internet.
is_publicbooleanTrue, if the endpoint is public, accessible from internet.
portintegerThe network port the service is listening on. NULL, when portRange is specified.
portRangestringThe network port range the service is listening on. NULL, when port is specified.
protocolstringSupported network protocol (TCP, HTTP, or HTTPS). (default: HTTP)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
show_service_endpointsselectdatabase_name, schema_name, name, endpointLists the endpoints in a Snowpark Container Services service (or a job service).

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
database_namestringIdentifier (i.e. name) for the database to which the resource belongs. You can use the /api/v2/databases GET request to get a list of available databases.
endpointstringOrganization and Account Name (default: orgid-acctid)
namestringIdentifier (i.e. name) for the resource.
schema_namestringIdentifier (i.e. name) for the schema to which the resource belongs. You can use the /api/v2/databases/{database}/schemas GET request to get a list of available schemas for the specified database.

SELECT examples

Lists the endpoints in a Snowpark Container Services service (or a job service).

SELECT
name,
ingress_url,
is_public,
port,
portRange,
protocol
FROM snowflake.service.endpoints
WHERE database_name = '{{ database_name }}' -- required
AND schema_name = '{{ schema_name }}' -- required
AND name = '{{ name }}' -- required
AND endpoint = '{{ endpoint }}' -- required;