管理组织列表¶
您可以更改列表,以添加、更改或移除组织列表的设置,如标题、ULL、目标账户或角色、自动履行等。
查看可用的组织列表¶
登录 Snowsight。
在左侧导航菜单中选择 Data Products » Marketplace。
选择 Internal Marketplace 选项卡。
浏览可用数据产品或使用搜索栏查找特定列表。
使用 SHOW AVAILABLE LISTINGS 可查找组织中可供您使用的列表。
SHOW AVAILABLE LISTINGS
IS_ORGANIZATION = TRUE;
使用 SHOW LISTINGS
可查找您获得 USAGE、MODIFY 或 OWNERSHIP 授权的列表。
SHOW LISTINGS;
编辑组织列表¶
备注
为避免覆盖组织列表的现有设置,进行更改时您必须包含现有清单 (manifest_yaml
)。使用 DESCRIBE LISTING 查看当前设置。
发布列表后,您无法更改 统一列表定位器 (ULL) 或移除数据产品。
打开列表:
登录 Snowsight。
在左侧导航菜单中选择 Data Products » Provider Studio。
选择 Listings 选项卡。
选择 Shared with » Internal Marketplace。
要进一步细化搜索范围,请选择 Status,然后选择一个状态,如 Draft 或 Live。您可以按任意列对结果集进行排序。
选择列表标题,以打开列表页面。
编辑列表:
要编辑列表标题,请选择相应标题。随即出现 Edit listing title 对话框。
要编辑列表页面上的其他元数据,请选择要更改的项目旁边的 Edit 按钮。
要编辑数据产品信息,请选择 Data Product 图标。您可以更改数据产品的描述,也可以更改表或视图选择。
在以下示例中,组织目标和名为 my-org-listing1
的组织列表的位置已更改。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>"
$$;
此示例清单针对一个 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 移除列表,必须更改其状态。
登录 Snowsight。
选择 Data Products » Provider Studio。
选择 Listings 选项卡。
选择 Shared with » Internal Marketplace。
找到要移除的列表。
选择列表磁贴,以打开列表页面。
要取消发布列表,请选择 ⋮ » Unpublish。
ALTER LISTING <organizational_listing_name> UNPUBLISH;
删除列表¶
您必须先取消发布列表,然后才能将其删除。
登录 Snowsight。
选择 Data Products » Provider Studio
选择 Listings 选项卡。
选择 Shared with » Internal Marketplace。
找到要移除的已取消发布的列表。
选择列表磁贴,以打开列表页面。
要删除列表,请选择 ⋮ 图标。从显示的列表中,选择 Delete。
要删除列表,请运行以下命令:
DROP LISTING <organizational_listing_name>;