Configure a MotherDuck user's settings
configure_md_user_settings.RdUpdates a MotherDuck user's configuration settings, including token type, instance size, and flock size. This function uses the MotherDuck REST API to apply the changes for the specified user.
Usage
configure_md_user_settings(
user_name,
motherduck_token = "MOTHERDUCK_TOKEN",
token_type = "read_write",
instance_size = "pulse",
flock_size = 0
)Arguments
- user_name
Character. The username of the MotherDuck user to configure.
- motherduck_token
Character. The admin user's MotherDuck token or environment variable name (default:
"MOTHERDUCK_TOKEN").- token_type
Character. The type of access token for the user; must be
"read_write"or"read_scaling"(default:"read_write").- instance_size
Character. The instance size for the user; must be one of
"pulse","standard","jumbo","mega","giga"(default:"pulse").- flock_size
Numeric. The flock size for the user; must be a whole number between 0 and 60 (default: 0).
Details
This function validates each parameter before making a PUT request to the
MotherDuck API. It ensures that:
token_typeis valid usingvalidate_token_type().instance_sizeis valid usingvalidate_instance_size().flock_sizeis a valid integer usingvalidate_flock_size(). The API response is returned as a tibble for easy inspection.