Create a new usage group within a usage group set. Usage groups define filters and budgets for tracking specific subsets of Snowflake usage.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the usage group set
The usage group configuration to create. Must include either a filter_expression object or filter_expression_json string.
The name of the usage group. Must be unique within the usage group set and cannot be empty.
The ID of the usage group set this usage group belongs to. Must match the usage_group_set_id in the URL path.
The display order and cost allocation precedence of the usage group within its usage group set. Must be a non-negative integer. When usage groups have overlapping filter expressions, cost allocation goes to the usage group with the lowest order value first. We strongly recommend using unique order values per usage group within a set.
A structured filter expression object that defines which Snowflake usage will be attributed to this usage group. The available dimensions depend on the usage group set's scope: account, organization, team, or Select organization. Use exactly one of filter_expression or filter_expression_json.
A JSON string representation of the filter expression. This is primarily used for Terraform provider support. Use exactly one of filter_expression or filter_expression_json. This value will be validated in the same manner as filter_expression.
The budget allocated to this usage group in credits. If not specified, the usage group will have no budget limit.
Successful Response
The structured filter expression object that defines which Snowflake usage is attributed to this usage group.
The JSON string representation of the filter expression, used by the terraform provider.
The unique identifier of the usage group.
The timestamp when the usage group was created.
The timestamp when the usage group was last updated.
The ID of the usage group set this usage group belongs to.
The name of the usage group.
The display order and cost allocation precedence of the usage group within its usage group set. Lower values have higher precedence for cost allocation when filter expressions overlap.
The name of the usage group set this usage group belongs to.
The budget allocated to this usage group in credits. Null indicates no budget limit.