조직 리스팅 관리하기
조직 리스팅 관리하기
리스팅을 변경해 조직 리스팅의 설정을 추가, 변경, 제거할 수 있어요. 예를 들어 제목, ULL, 타겟 계정이나 역할, 자동 이행 등을 조정할 수 있어요.
본문
사용 가능한 조직 리스팅 보기
- Snowsight에 로그인해요.
- 탐색 메뉴에서 Catalog › Internal Marketplace를 선택해요.
- 사용 가능한 데이터 제품을 탐색하거나 검색 창을 사용해 특정 리스팅을 찾아요.
SHOW AVAILABLE LISTINGS를 사용해 조직에서 사용자에게 사용 가능한 리스팅을 찾아요.
SHOW AVAILABLE LISTINGS
IS_ORGANIZATION = TRUE;
SHOW LISTINGS를 사용해 USAGE, MODIFY 또는 OWNERSHIP이 부여된 리스팅을 찾아요.
SHOW LISTINGS;
조직 리스팅 편집하기
주의 조직 리스팅의 기존 설정을 덮어쓰지 않으려면 변경할 때 기존 매니페스트(
manifest_yaml)를 포함해야 해요.DESCRIBE LISTING을 사용해 현재 설정을 확인해요.
리스팅이 게시된 후에는 ULL(Uniform Listing Locator)을 변경하거나 데이터 제품을 제거할 수 없어요.
- 리스팅 열기:
- Snowsight에 로그인해요.
- 탐색 메뉴에서 Data sharing › Internal sharing을 선택해요.
- Listings 탭에서 편집할 리스팅을 선택해요.
- 검색을 세분화하려면 Status를 선택하고 Draft나 Live 같은 상태를 선택해요.
- 결과 집합은 아무 열로 정렬할 수 있어요.
- 리스팅 편집:
- 리스팅 제목을 편집하려면 제목을 선택해요. Edit listing title 대화 상자가 표시돼요.
- 리스팅 페이지에서 다른 메타데이터를 편집하려면 변경할 항목 근처의 Edit 버튼을 선택해요.
- 데이터 제품 정보를 편집하려면 Data Product 아이콘을 선택해요. 데이터 제품의 설명을 변경하거나 테이블/뷰 선택을 변경할 수 있어요.
다음 예시에서는 my-org-listing1이라는 조직 리스팅의 조직 타겟과 위치를 변경해요. ALTER 문은 DESCRIBE LISTING 명령으로 캡처한 기존 리스팅 매니페스트를 포함해요.
주의 리스팅을 변경하려면
OWNERSHIP권한이 있거나 리스팅에MODIFY권한이 부여되어 있어야 해요. 다음 명령을 사용해 다른 역할에 modify 권한을 부여할 수 있어요.
grant modify on data exchange listing <listing_name> to role <role_name>
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 sharing › Internal sharing을 선택해요.
- Listings 탭에서 Internal Marketplace에서 제거할 리스팅을 선택해요.
- 리스팅 페이지를 열려면 리스팅 타일을 선택해요.
- 리스팅을 게시 취소하려면 › Unpublish를 선택해요.
ALTER LISTING <organizational_listing_name> UNPUBLISH;
리스팅 삭제하기
리스팅을 삭제하려면 먼저 게시를 취소해야 해요.
- Snowsight에 로그인해요.
- 탐색 메뉴에서 Data sharing › Internal sharing을 선택해요.
- Listings 탭에서 삭제할 게시 취소된 리스팅을 선택해요.
- 리스팅 페이지를 열려면 리스팅 타일을 선택해요.
- 리스팅을 삭제하려면 ⋮ 아이콘을 선택해요. 표시된 목록에서 Delete를 선택해요.
리스팅을 삭제하려면 다음 명령을 실행해요.
DROP LISTING <organizational_listing_name>;