snowflake.snowpark.secrets.get_secret_type¶
- snowflake.snowpark.secrets.get_secret_type(secret_name: str) str[source]¶
Get the type of a secret from Snowflake. .. note:: Require a Snowflake environment with secrets configured
- Returns:
The type of the secret as a string.
- Raises:
NotImplementedError – If running outside Snowflake server or SPCS environment.
ValueError – If the secret does not exist, is not authorized, or has unknown type (SPCS only).