<budget_ name>!REMOVE_ SHARED_ RESOURCE¶
Removes a shared resource from a custom budget. Shared resources are added to the budget using the ADD_SHARED_RESOURCE method.
语法
实参
'domain'从预算中移除的资源类型。有效值:模型监视器名称字符串。
AI FUNCTION
除非您指定第二个实参,否则预算将停止跟踪所有 AI 函数。
'ai_function'Optional. When the
domainisAI FUNCTION, specifies a specific AI function to remove from the budget.
返回
返回 VARCHAR 值,用于指明资源是否已成功从预算中移除。
如果无法从预算中移除资源,该函数将返回一条错误消息。
访问控制要求
要对 自定义预算 调用此方法,需要具备以下最低权限和角色:
- ADMIN instance role for the budget instance.
- 对包含预算实例的数据库和架构的 USAGE 权限。
- 对包含该资源的数据库和架构的 USAGE 权限(对于架构对象)。
For more information, see Budgets roles and privileges.
使用说明
- 此方法只能在 自定义预算 实例上调用。
-
Calling this method does not return the object. Because of this, you can’t use method chaining to call another method on the return value of this method. Instead, call each method in a separate SQL statement.
示例
移除预算中的全部 AI 函数:
移除预算中的 AI_COMPLETE 函数: