SERVICES view¶
This view shows existing Snowpark Container Services services in the database.
Columns¶
Column |
Data type |
Description |
---|---|---|
SERVICE_CATALOG |
TEXT |
Database that the service belongs to. |
SERVICE_SCHEMA |
TEXT |
Schema that the service belongs to. |
SERVICE_NAME |
TEXT |
Name of the service. |
SERVICE_OWNER |
TEXT |
Name of the role that owns the service. App instance name if in an app. |
SERVICE_OWNER_ROLE_TYPE |
TEXT |
Type of the owner role. |
COMPUTE_POOL_NAME |
TEXT |
Compute pool where the job was executed. |
DNS_NAME |
TEXT |
DNS name associated with the service. |
CURRENT_INSTANCES |
NUMBER |
The current number of instances for the service. |
TARGET_INSTANCES |
NUMBER |
The target number of service instances that should be running as determined by Snowflake. When the CURRENT_INSTANCES value is not equal to the TARGET_INSTANCES value, Snowflake is either in the process of shutting down or launching service instances. For example, consider the following:
|
MIN_INSTANCES |
INT |
Minimum instances for the service. |
MAX_INSTANCES |
INT |
Maximum instances for the service. |
AUTO_RESUME |
BOOLEAN |
Flag that determines if the service can be auto resumed. |
QUERY_WAREHOUSE |
TEXT |
Name of the default query warehouse of the service. |
CREATED |
TIMESTAMP_LTZ |
Creation time of the service. |
LAST_ALTERED |
TIMESTAMP_LTZ |
Last altered time of the service. |
LAST_RESUMED |
TIMESTAMP_LTZ |
Last resumed time of the service. |
COMMENT |
TEXT |
Comment for this service. |
IS_JOB |
BOOLEAN |
|
SPEC_DIGEST |
VARCHAR |
The unique and immutable identifier representing the service spec content. To observe the changes to the value of the SPEC_DIGEST column over time, a service user might execute the SHOW SERVICES command periodically. If the service user notices a change in value, they can infer that the service was upgraded. |
IS_UPGRADING |
BOOLEAN |
TRUE, if Snowflake is in the process of upgrading the service. |
MANAGING_OBJECT_DOMAIN |
VARCHAR |
The domain of the managing object (for example, the domain of the notebook that manages the service). NULL if the service is not managed by a Snowflake entity. |
MANAGING_OBJECT_NAME |
VARCHAR |
The name of the managing object (for example, the name of the notebook that manages the service). NULL if the service is not managed by a Snowflake entity. |
Example¶
SELECT *
FROM my_database.information_schema.services
WHERE service_name LIKE '%myservice_%';