协作规范
定义高级别协作。该规范定义了邀请哪些分析运行者,以及针对每个分析运行者,他们可以访问和运行哪些数据及模板。此处列出的任何模板或数据产品都必须先注册,然后才能包含在协作规范中。
所有者通过调用 INITIALIZE 提交此规范。
架构:
api_versionThe version of the Collaboration API used. Must be
2.0.0.spec_typeSpecification type identifier. Must be
collaboration.name: collaboration_nameUser-friendly name for this collaboration. Must be unique in the creator’s account and follow Snowflake identifier rules (maximum 75 characters).
version(Optional)A version identifier for this collaboration (maximum 20 characters). Must follow Snowflake identifier rules. A good format to use is YYYY_MM_DD_V#. For example:
2025_10_22_V1.description: collaboration_description(Optional)人类可读的协作描述(最多 1,000 个字符),供协作者阅读。
owner: owner_aliasAlias of the collaboration owner, as defined in
collaborator_identifier_aliases.collaborator_identifier_aliasesA mapping of collaborator aliases to their Data Sharing Account Identifiers. Only users listed here can participate in the collaboration. Use the aliases defined here to refer to all collaborators, rather than using their data sharing account identifier directly. Must be unique in this collaboration and follow Snowflake identifier rules (maximum 25 characters).
analysis_runners描述谁可以在此协作中运行分析。每个分析运行者均由唯一的别名作为键。您必须允许至少一个账户在此协作中运行分析。
<analysis_runner_alias>Alias of account that can run an analysis in this collaboration. Alias is defined in the
collaborator_identifier_aliaseslist.data_providersData providers whose data this analysis runner can access. Each provider is keyed by the alias that is defined in
collaborator_identifier_aliases.data_offeringsA list of data offerings from this data provider that the analysis runner can access, or an empty array
[]as a placeholder so that data offerings can be added later. Each data offering is referenced by its ID, generated when the data provider calls REGISTER_DATA_OFFERING.
templates(Optional)此分析运行者可以使用的模板。每个模板均通过其 ID 进行引用。您可以在初始规范中省略此项,并在创建协作后仍与此分析运行者共享模板。
activation_destinations(Optional)定义分析结果的激活设置。
snowflake_collaborators(Optional)List of collaborators who can receive activated analysis results. Use the alias from the
collaborator_identifier_aliaseslist in this spec. All collaborators listed here must have the permissions described in Activate query results.