更改组织列表¶
您可以更改列表,以添加、更改或移除组织列表的设置,如标题、ULL、目标账户或角色、自动履行等。
备注
更改组织列表时,必须始终包含现有清单 (manifest_yaml
)。否则,将覆盖当前设置。使用 DESCRIBE LISTING 查看当前设置。
发布列表后,您无法更改 ULL 或移除数据产品。
以下示例更改了同一列表,以更改组织目标和位置。
ALTER 语句包含从 DESCRIBE LISTING 命令输出中获取的列表中的现有清单。
USE ROLE <organizational_listing_role>;
ALTER LISTING my-org-listing1
AS
$$
title: "My title"
description: "One region, all accounts"
organization_profile: "INTERNAL"
organization_targets:
access:
- account: "<account_name>"
roles:
- "<role>"
locations:
access_regions:
- name: "PUBLIC.<snowflake_region>"
$$;
要修改列表,请打开列表页面来更改详细信息。
打开列表页面
登录 Snowsight。
选择 Data Products » Provider Studio » Listings。
选择 Shared with » Internal Marketplace。
要进一步限制搜索范围,请选择 Status,然后选择一个状态,如 Draft 或 Live。您可以按任意列对结果集进行排序。
选择列表磁贴,以打开列表页面。
编辑列表
要编辑列表标题,请选择相应标题。随即出现 Edit listing title 对话框。
对于列表页面上的其他元数据,请选择要更改的项目旁边的 Edit 按钮。
要编辑数据产品信息,请选择 Data Product 图标。您可以更改数据产品的描述,也可以更改表或视图选择。
用于更改组织列表的示例清单¶
此示例针对一个 Snowflake 区域中的所有账户。
title: "My title"
description: "One region, all accounts"
organization_profile: "INTERNAL"
organization_targets:
access:
- account: "<account_name>"
roles:
- "<role>"
locations:
access_regions:
- name: "PUBLIC.<snowflake_region>"
此示例针对一个 Snowflake 区域中的两个账户,每个账户有两个角色。
title: "My title"
description: "One region, two accounts, four roles"
organization_profile: "INTERNAL"
organization_targets:
access:
- account: "<account_name>"
roles:
- "<role>"
- "<role>"
- account: "<account_name>"
roles:
- "<role>"
- "<role>"
locations:
access_regions:
- name: "PUBLIC.<snowflake_region>"
此示例针对三个 Snowflake 区域的所有账户。
title : 'My title'
description: "Three region, all accounts"
organization_profile: INTERNAL
organization_targets:
access:
- all_accounts : true
locations:
access_regions:
- names:
"PUBLIC.<snowflake_region>"
"PUBLIC.<snowflake_region>"
"PUBLIC.<snowflake_region>"
auto_fulfillment:
refresh_type: "SUB_DATABASE"
refresh_schedule: "10 MINUTE"
此示例针对所有区域的所有账户。
title : 'My title'
description: "Three region, all accounts"
organization_profile: INTERNAL
organization_targets:
access:
- all_accounts : true
locations:
access_regions:
- names: "ALL"
auto_fulfillment:
refresh_type: "SUB_DATABASE"
refresh_schedule: "10 MINUTE"
从 Internal Marketplace 移除列表¶
要从 Internal Marketplace 移除列表,必须更改其状态。
ALTER LISTING <organizational_listing_name> UNPUBLISH;
登录 Snowsight。
选择 Data Products » Provider Studio » Listings。
选择 Shared with » Internal Marketplace。
找到要移除的列表。
选择列表磁贴,以打开列表页面。
要取消发布列表,请选择 ⋮ » Unpublish。
删除列表¶
您必须先取消发布列表,然后才能删除列表。
要删除列表,请运行以下命令:
DROP LISTING <organizational_listing_name>;
登录 Snowsight。
选择 Data Products » Provider Studio » Listings。
选择 Shared with » Internal Marketplace。
找到要移除的已取消发布的列表。
选择列表磁贴,以打开列表页面。
要删除列表,请选择 ⋮ 图标。从显示的列表中,选择 Delete。