Is there a way to extract the config of the account,roles and warehouses from snowflake api. Is it possible to use the api to create ones using the extracted config?
from snowflake.snowpark import Session
from snowflake.snowpark.functions import udf, col, month, sql_expr
from snowflake.snowpark import functions as F
from snowflake.snowpark.types import StringType, IntegerType, StructType, StructField, ArrayType
from snowflake.snowpark import DataFrame
import os
connection_parameters = {
"account": os.environ["SNOW_ACCOUNT"],
"user": os.environ["SNOW_USER"],
"password": os.environ["SNOW_PASSWORD"],
"role": os.environ["SNOW_ROLE"],
"warehouse": os.environ["SNOW_WAREHOUSE"],
"database": os.environ["SNOW_DATABASE"],
"schema": os.environ.get("SNOW_SCHEMA")
}
session = Session.builder.configs(connection_parameters).create()