ALTER APPLICATION SET CONFIGURATION DEFINITION

statementsupportedNative apps, listings & sharing

docs.snowflake.com ↗

Creates or updates an app configuration for a Snowflake Native App. Note This command can only be used by a Snowflake Native App.

Syntax

supportedpartialnot supportednot scored

For APPLICATION_NAME

ALTER APPLICATION SET CONFIGURATION DEFINITION <config>
  TYPE = APPLICATION_NAME
  LABEL = '<label>'
  DESCRIPTION = '<description>'
  APPLICATION_ROLES = ( <app_role1> [ , <app_role2> ... ] );

For STRING

ALTER APPLICATION SET CONFIGURATION DEFINITION <config>
  TYPE = STRING
  LABEL = '<label>'
  DESCRIPTION = '<description>'
  APPLICATION_ROLES = ( <app_role1> [ , <app_role2> ... ] )
  SENSITIVE = { TRUE | FALSE };

For SECRET_AUTHORIZATION

ALTER APPLICATION SET CONFIGURATION DEFINITION <config>
  TYPE = SECRET_AUTHORIZATION
  SECRET = <schema>.<secret>
  LABEL = '<label>'
  DESCRIPTION = '<description>'
  APPLICATION_ROLES = ( <app_role1> [ , <app_role2> ... ] );

Parameters

NameRequiredDescription
configIdentifier for the app configuration.
TYPESpecifies the type of app configuration. Supported values are: APPLICATION_NAME STRING SECRET_AUTHORIZATION
SECRET = schema.secretSpecifies the secret that the consumer populates with tokens during the OAuth flow. Required when TYPE = SECRET_AUTHORIZATION. The secret must be owned by the application creating the configuration. The name can be specified as schema.secret, in which case the app’s own database is implied, or as the fully qualified database.schema.secret. In either form, the secret must be owned by the app. On configuration creation, the system validates that the secret has been granted MODIFY to all the specified application roles. For more information, see Request OAuth authorization from consumers.
LABEL = 'label'Specifies a label for the app configuration to be displayed in the Snowsight.
DESCRIPTION = 'description'Specifies a description of the app configuration. Snowflake recommends including information about the app configuration type and why it is required by the app.
APPLICATION_ROLES = ( <app_role1> [ , <app_role2> ... ] )Specifies the application roles that will have access to the app configuration object.
SENSITIVE = \{ TRUE | FALSE \}Specifies whether the configuration value should be treated as sensitive. When set to TRUE, the value is not displayed in the output of SHOW CONFIGURATIONS or DESCRIBE CONFIGURATION. Required when TYPE = STRING. Not valid for other configuration types. Specifying SENSITIVE with SECRET_AUTHORIZATION or APPLICATION_NAME returns a compilation error. For more information, see Sensitive configurations.

Usage notes

See also

Referenced by