Schema:

ACCOUNT_USAGE

SERVICES view

This SERVICES view in the Account Usage schema is similar to SERVICES view in information schema except this view includes deleted Snowpark Container Services services. For more information about difference in these schemas, see Differences between Account Usage and Information Schema.

Columns

Column NameData TypeDescription
SERVICE_IDNUMBERInternal/system-generated identifier for the service.
SERVICE_NAMEVARCHARName of the service.
SERVICE_CATALOG_IDNUMBERInternal, Snowflake-generated identifier of the database for the service.
SERVICE_CATALOGVARCHARDatabase that the service belongs to.
SERVICE_SCHEMA_IDNUMBERInternal, Snowflake-generated identifier of the schema for the service.
SERVICE_SCHEMAVARCHARSchema that the service belongs to.
SERVICE_OWNERVARCHARName of the role that owns the service. App instance name if in an app.
SERVICE_OWNER_ROLE_TYPEVARCHARType of the owner role.
COMPUTE_POOL_IDNUMBERIdentifier of the compute pool that runs the service.
COMPUTE_POOL_NAMEVARCHARCompute pool where the job was executed.
DNS_NAMEVARCHARDNS name associated with the service.
MIN_READY_INSTANCESNUMBERMinimum service instances that must be ready for Snowflake to consider the service is ready to process requests.
MIN_INSTANCESNUMBERMinimum instances for the service.
MAX_INSTANCESNUMBERMaximum instances for the service.
AUTO_RESUMEBOOLEANFlag that determines if the service can be auto resumed.
QUERY_WAREHOUSEVARCHARName of the default query warehouse of the service.
CREATEDTIMESTAMP_LTZCreation time of the service.
LAST_ALTEREDTIMESTAMP_LTZLast altered time of the service.
LAST_RESUMEDTIMESTAMP_LTZLast resumed time of the service.
DELETEDTIMESTAMP_LTZDeletion time of the service.
COMMENTVARCHARComment for this service.
IS_JOBBOOLEANtrue if the service is a job service; false otherwise.

Example

SELECT *
FROM snowflake.account_usage.services
WHERE service_name LIKE '%myservice%';