CREATE LISTING

statementsupportedNative apps, listings & sharing

docs.snowflake.com ↗

Object: LISTING

Create a free listing to share directly with specific consumers, with an inline YAML manifest, or from a file located in a stage location.

Syntax

CREATE EXTERNAL LISTING [ IF NOT EXISTS ] <name>
  [ { SHARE <share_name>  |  APPLICATION PACKAGE <package_name> } ]
  AS '<yaml_manifest_string>'
  [ PUBLISH = { TRUE | FALSE } ]
  [ REVIEW = { TRUE | FALSE } ]
  [ COMMENT = '<string>' ]

CREATE EXTERNAL LISTING [ IF NOT EXISTS ] <name>
  [ { SHARE <share_name>  |  APPLICATION PACKAGE <package_name> } ]
  FROM '<yaml_manifest_stage_location>'
  [ PUBLISH = { TRUE | FALSE } ]
  [ REVIEW = { TRUE | FALSE } ]

Parameters

NameRequiredDescription
nameSpecifies the listing identifier (name). It must conform to the following: Must be unique within an organization, regardless of which Snowflake Region the account is located in. Must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_).
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'Specifies the YAML manifest for the listing. For manifest parameters, see Listing manifest reference. Manifests are normally provided as dollar quoted strings. For more information, see Dollar-quoted string constants.
FROM 'yaml_manifest_stage_location'Specifies the path for the internal stage or Git repository clone manifest.yml file.
PUBLISH = { TRUE | FALSE }Specifies how the listing should be published. If TRUE, listing is published immediately on listing to Marketplace Ops for review. Default: TRUE.
REVIEW = { TRUE | FALSE }Specifies whether the listing should or should not submitted to Marketplace Ops review. Default: TRUE.
COMMENT = 'string_literal'A comment for the listing. Default: No value

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes CREATE LISTING | Account | Only the ACCOUNTADMIN role has this privilege by default. The privilege can be granted to additional roles as needed. Delegated privileges to configure cross-cloud auto-fulfillment. | If the ALTER command is modifying the manifest content for auto-fulfillment. | See Auto-fulfillment for listings. You can’t create a listing by using the GLOBALORGADMIN role, which is used for organization administration. Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also

Referenced by