Resources
Manage
Configure Winning Variant resources directly in Snowflake
The Winning Variant Native App allows users to manage experimentation resources directly inside of Snowflake by use of stored procedures created during installation.
Roles
A user must be assigned of the following application roles to execute any of the procedures described on this page:
admin
editor
Resource Kinds
All references to kind
below must be one of:
lab
subjecttype
experiment
Read more about Resource Kinds.
List Resources
Each of the following “list” commands returns a table with the following columns:
Column | Description | Data Type |
---|---|---|
kind | The resource kind. | VARCHAR |
id | ID of the resource. | VARCHAR |
name | Name of the resource. | VARCHAR |
status | Resource status | VARCHAR |
description | Resource description | VARCHAR |
resource_version | Current resource version | INT |
Returns a list of all resources of the given kind. status
must be one of ResourceStatus.
Examples
Get YAML for a single resource
Returns a table with the following columns:
Column | Description | Data Type |
---|---|---|
kind | The resource kind. | VARCHAR |
id | ID of the resource. | VARCHAR |
yaml | The full configuration (YAML) for a single resource. | VARCHAR |
Examples
Create or update resource
If the resource with the id
specified exists, it gets updated, otherwise it will be created.