snow spcs compute-pool drop¶
备注
只有当您拥有使用 Snowpark Container Services 的必要权限时,才能通过 Snowflake CLI 使用 Snowpark Container Services。
创建新的计算池。
语法¶
snow spcs compute-pool create
<name>
--family <instance_family>
--min-nodes <min_nodes>
--max-nodes <max_nodes>
--auto-resume
--no-auto-resume
--init-suspend / --no-init-suspend
--auto-suspend-secs <auto_suspend_secs>
--tag <tags>
--comment <comment>
--if-not-exists
--connection <connection>
--host <host>
--port <port>
--account <account>
--user <user>
--password <password>
--authenticator <authenticator>
--private-key-file <private_key_file>
--token-file-path <token_file_path>
--database <database>
--schema <schema>
--role <role>
--warehouse <warehouse>
--temporary-connection
--mfa-passcode <mfa_passcode>
--enable-diag
--diag-log-path <diag_log_path>
--diag-allowlist-path <diag_allowlist_path>
--oauth-client-id <oauth_client_id>
--oauth-client-secret <oauth_client_secret>
--oauth-authorization-url <oauth_authorization_url>
--oauth-token-request-url <oauth_token_request_url>
--oauth-redirect-uri <oauth_redirect_uri>
--oauth-scope <oauth_scope>
--oauth-disable-pkce
--oauth-enable-refresh-tokens
--oauth-enable-single-use-refresh-tokens
--client-store-temporary-credential
--format <format>
--verbose
--debug
--silent
--enhanced-exit-codes
实参¶
name
计算池的标识符;例如:my_compute_pool。
选项¶
--family TEXT
实例族的名称。有关实例族的详细信息,请参阅 SQL CREATE COMPUTE POOL 命令。
--min-nodes INTEGER RANGE
计算池的最小节点数。默认值:1。
--max-nodes INTEGER RANGE
计算池的最大节点数。
--auto-resume
将服务或作业提交给计算池时,计算池将自动恢复。默认值:False。
--no-auto-resume
将服务或作业提交给计算池时,计算池将自动恢复。默认值:False。
--init-suspend / --no-init-suspend
以暂停状态启动计算池。默认值:False。
--auto-suspend-secs INTEGER RANGE
您希望 Snowflake 自动暂停计算池的不活动秒数。默认值:3600。
--tag NAME=VALUE
计算池的标签。
--comment TEXT
计算池的注释。
--if-not-exists
仅当指定的对象尚不存在时才应用此操作。默认值:False。
--connection, -c, --environment TEXT
连接名称,如您在
config.toml
文件中所定义。默认值:default
。--host TEXT
连接的主机地址。替换为连接指定的值。
--port INTEGER
连接的端口。替换为连接指定的值。
--account, --accountname TEXT
分配给 Snowflake 账户的名称。替换为连接指定的值。
--user, --username TEXT
连接到 Snowflake 的用户名。替换为连接指定的值。
--password TEXT
Snowflake 密码。替换为连接指定的值。
--authenticator TEXT
Snowflake 身份验证器。替换为连接指定的值。
--private-key-file, --private-key-path TEXT
Snowflake 私钥文件路径。替换为连接指定的值。
--token-file-path TEXT
连接到 Snowflake 时使用的带有 OAuth 令牌的文件路径。
--database, --dbname TEXT
要使用的数据库。替换为连接指定的值。
--schema, --schemaname TEXT
要使用的数据库架构。替换为连接指定的值。
--role, --rolename TEXT
要使用的角色。替换为连接指定的值。
--warehouse TEXT
要使用的仓库。替换为连接指定的值。
--temporary-connection, -x
使用命令行参数定义的连接,而不是在配置中定义的连接。默认值:False。
--mfa-passcode TEXT
用于多重身份验证的令牌 (MFA)。
--enable-diag
是否生成连接诊断报告。默认值:False。
--diag-log-path TEXT
生成的报告的路径。默认为系统临时目录。默认:<system_temporary_directory>。
--diag-allowlist-path TEXT
包含允许列表参数的 JSON 文件的路径。
--oauth-client-id TEXT
身份提供商为 Snowflake 集成提供的客户端 ID 的值。
--oauth-client-secret TEXT
身份提供商为 Snowflake 集成提供的客户端密钥的值。
--oauth-authorization-url TEXT
向驱动程序提供授权码的身份提供商端点。
--oauth-token-request-url TEXT
向驱动程序提供访问令牌的身份提供商端点。
--oauth-redirect-uri TEXT
URI 用于授权码重定向。
--oauth-scope TEXT
身份提供商授权请求中请求的范围。
--oauth-disable-pkce
禁用代码交换证明密钥 (PKCE)。默认值:
False
。--oauth-enable-refresh-tokens
在实际访问令牌过期时启用静默重新身份验证。默认值:
False
。--oauth-enable-single-use-refresh-tokens
是否选择启用一次性刷新令牌语义。默认值:
False
。--client-store-temporary-credential
存储临时凭据。
--format [TABLE|JSON]
指定输出格式。默认:TABLE。
--verbose, -v
显示日志级别
info
及更高级别的日志条目。默认值:False。--debug
显示日志级别
debug
及更高级别的日志条目;调试日志包含其他信息。默认值:False。--silent
关闭到控制台的中间输出。默认值:False。
--enhanced-exit-codes
根据错误类型区分退出错误代码。默认值:False。
--help
显示此命令的帮助文本。
使用说明¶
无。
示例¶
以下示例使用最小 CPU_X64_XS 族创建名为“pool_1”的计算池,该族包含两个内存为 4GB 的 CPUs。
snow spcs compute-pool create "pool_1" --min-nodes 2 --max-nodes 2 --family "CPU_X64_XS"