CREATE ORGANIZATION LISTING¶
Create an organization listing to share data products securely within your organization.
Syntax¶
Parameters¶
nameSpecifies the identifier (name) for the listing. It must conform to the following:
- Must be unique within an account, regardless of which Snowflake Region the account is located in. The Uniform Listing Locator (ULL) must be unique within an organization.
- Cannot contain embedded dollar signs.
- Must conform to Snowflake identifier requirements. See Identifier requirements.
FROM 'yaml_manifest_stage_location'Specifies the path for the internal stage or Git repository clone manifest.yml file.
SHARE share_nameSpecifies the identifier for the share to attach to the listing.
APPLICATION PACKAGE package_nameSpecifies the application package attached to the listing.
See also SHOW APPLICATION PACKAGES.
AS 'yaml_manifest_string'The YAML manifest for the organization profile. For manifest field details and examples, see Organization listing manifest reference.
Manifests are normally provided as dollar-quoted strings. For more information, see Dollar-quoted string constants.
PUBLISH = { TRUE | FALSE }Specifies how to publish the listing.
If TRUE, the listing is published to the Internal Marketplace immediately.
Default: TRUE.
Access control requirements¶
A role used to execute this SQL command must have at least one of the following privileges at a minimum:
| Privilege | Object | Notes |
|---|---|---|
| CREATE ORGANIZATION LISTING or CREATE LISTING | Account | Required. Either privilege lets you create organization listings. |
| OWNERSHIP or ATTACH LISTING | Application package | Required in addition to the account privilege, but only when attaching an application package (Snowflake Native App Framework) instead of a share. |
You can’t create a listing by using the GLOBALORGADMIN role, which is used for organization administration.
To mount an organization listing, or to query one by using its Uniform Listing Locator (ULL), consumers need the IMPORT ORGANIZATION LISTING privilege. This privilege isn’t required to create a listing. See Reference organizational listings in queries.
Usage notes¶
- Listings created using CREATE ORGANIZATION LISTING … are automatically published.
Examples¶
This example creates a listing named MYORGLISTING using the settings specified in the manifest YAML. It targets one role in one account in one region and includes support and approver contacts.
Note
support_contact is required.
approver_contact is required if a discovery target is provided.
Creates a draft listing named ‘MYLISTING’ from a specific stage location. In the following example, the manifest.yml file is located in the listingmanifests folder in the stage named listingstage.