Create and manage pricing plans¶
先决条件¶
A provider profile. See 设置提供商简介.
已发布的列表。请参阅 创建新列表。
An account that allows payment for listings. See 设置 Stripe 以接收列表付款.
所需权限¶
您必须使用 ACCOUNTADMIN 角色或已被授予提供商权限的角色。请参阅 处理列表所需的权限。
Create a pricing plan¶
Follow the steps below to create a new listing with a pricing plan.
Follow the steps for sharing data on the Snowflake Marketplace.
After you add a data product to your share, in the Access type dropdown, select Paid listing.
A Pricing section and a Trial (optional) section are added to the listing page.
在 Pricing 部分中,选择 Add pricing plans。
The Create pricing plan page opens.
On the Settings page, specify a name for the plan, then select Next.
You can optionally specify a product SKU for the pricing plan.
On the Pricing details page, select a pricing model for the plan:
If you select Flat-fee, specify the access fee price and the billing frequency (monthly or annually) for the plan.
If you select Usage-based, specify the monthly access fee, the price per query, and the maximum monthly charge.
选择 Next。
查看定价方案摘要,然后选择 Done。
可选:要添加其他定价方案,请选择 Add pricing plan,然后重复前面的步骤。
选择 Submit for approval » Publish once approved 以发布列表。只有已发布的列表才能提供给使用者。
如果要为特定列表创建其他定价方案,请选择该列表,然后选择 Pricing plans 选项卡,然后选择 + Create pricing plan。
Create a pricing plan manifest reference named PRICING_PLAN_1.
备注
The pricing plan name must be uppercase.
display_name: Default pricing plan display name currency: USD pricing_model: FLAT_FEE base_fee: 100.0 billing_duration_months: 1 sales_motion: SELF_SERVE comment: Comment for the pricing plan metadata: description: Pricing plan description price: $100 / unit button_text: Buy Now value_propositions: - val 1 - val 2 visibility: VISIBLE contract_type: LIMITED_TIME contract_duration_months: 12 state: PUBLISHED
Create a listing manifest reference that includes the pricing plan.
title: my_listing subtitle: Subtitle for my_listing description: Description for my_listing listing_terms: type: OFFLINE targets: regions: PUBLIC.AWS_US_EAST_1 usage_examples: - title: this is a test sql description: Simple example query: select * pricing_plans: - name: PRICING_PLAN_1 type: FILE path: pricingPlans/PRICING_PLAN_1.yaml
Stage the pricing plan and listing manifest reference files.
PUT file:///local/path/to/PRICING_PLAN_1.yaml @DB.SCHEMA.STAGE/pricingPlans/PRICING_PLAN_1 SOURCE_COMPRESSION=NONE AUTO_COMPRESS=FALSE OVERWRITE=TRUE; PUT file:///local/path/to/manifest.yaml @DB.SCHEMA.STAGE/listings/my_manifest SOURCE_COMPRESSION=NONE AUTO_COMPRESS=FALSE OVERWRITE=TRUE;
Create a listing that uses the manifest files uploaded to the stage.
CREATE EXTERNAL LISTING my_listing FROM @DB.SCHEMA.STAGE/listings/my_manifest REVIEW = TRUE PUBLISH = FALSE;
向付费列表添加定价方案¶
The steps below add a pricing plan to an existing listing.
登录 Snowsight。
In the navigation menu, select Marketplace » Provider Studio.
在右侧窗格中,点击 Listings 选项卡。
Select the paid listing that you want to attach a pricing plan to.
The Pricing plans tab for the listing opens.
Click + Create pricing plan.
On the Settings page, specify a name for the plan, then select Next.
You can optionally specify a product SKU for the pricing plan.
点击 Next。
On the Pricing details page, select a pricing model for the plan:
If you select Flat-fee, specify the access fee price and the billing frequency (monthly or annually) for the plan.
If you select Usage-based, specify the monthly access fee, the price per query, and the maximum monthly charge.
选择 Next。
查看定价方案摘要,然后选择 Done。
可选:要添加其他定价方案,请选择 Add pricing plan,然后重复前面的步骤。
Create a pricing plan manifest reference file and save it as PRICING_PLAN_1.yaml.
display_name: Default pricing plan display name currency: USD pricing_model: FLAT_FEE base_fee: 100.0 billing_duration_months: 1 sales_motion: SELF_SERVE comment: Comment for the pricing plan metadata: description: Pricing plan description price: $100 / unit button_text: Buy Now value_propositions: - val 1 - val 2 visibility: VISIBLE contract_type: LIMITED_TIME contract_duration_months: 12 state: PUBLISHED
Create a live version of your listing and download the listing manifest reference.
ALTER LISTING my_listing ADD LIVE VERSION FROM LAST; GET snow://listing/my_listing/versions/live/manifest.yml file:///Users/my_username/
Add the pricing plan to the listing manifest reference.
备注
The pricing plan name must be uppercase.
pricing_plans: - name: PRICING_PLAN_1 type: FILE path: pricingPlans/PRICING_PLAN_1.yaml
Upload the pricing plan and listing manifest reference files and commit the change.
PUT file:///Users/my_username/PRICING_PLAN_1.yaml snow://listing/my_listing/versions/live/pricingPlans AUTO_COMPRESS = false; PUT file:///Users/my_username/manifest.yml snow://listing/my_listing/versions/live AUTO_COMPRESS = false; ALTER LISTING my_listing COMMIT;
To see the pricing plan in your listing, run the SHOW PRICING PLANS command.
SHOW PRICING PLANS IN LISTING my_listing;
编辑定价方案¶
To edit an existing pricing plan, follow the steps below:
备注
定价方案的编辑内容最长达 10 分钟后才会对消费者可见。
登录 Snowsight。
In the navigation menu, select Marketplace » Provider Studio.
在右侧窗格中,选择 Listings 选项卡。
在 Listings 页面上,选择付费列表。
Select the Pricing plans tab.
Select the
button for the pricing plan you want to edit, and then select Edit plan.编辑定价方案,然后点击 Done。
Create a live version of your listing and download the pricing plan manifest reference.
ALTER LISTING my_listing ADD LIVE VERSION FROM LAST; GET snow://listing/my_listing/versions/live/pricingPlans/PRICING_PLAN_1.yml file:///Users/my_username/
Edit the pricing plan manifest reference.
Upload the pricing plan and listing manifest reference files and commit the change.
PUT file:///Users/my_username/PRICING_PLAN_1.yaml snow://listing/my_listing/versions/live/pricingPlans AUTO_COMPRESS = false; ALTER LISTING my_listing COMMIT;
查看定价方案详细信息¶
登录 Snowsight。
In the navigation menu, select Marketplace » Provider Studio.
在右侧窗格中,选择 Listings 选项卡。
在 Listings 页面上,选择付费列表。
选择 Pricing 选项卡。
为要查看的定价方案选择 Options,然后选择 See details。
查看定价方案并点击 Edit 编辑定价方案,或点击 Close。
To see details of the pricing plan in your listing, run the SHOW PRICING PLANS command.
SHOW PRICING PLANS IN LISTING my_listing;