This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.

marketplace

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-alicloud repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-alicloud repo.

class pulumi_alicloud.marketplace.AwaitableGetProductResult(available_region=None, id=None, product_code=None, products=None)
class pulumi_alicloud.marketplace.AwaitableGetProductsResult(category_id=None, id=None, ids=None, name_regex=None, output_file=None, product_type=None, products=None, search_term=None, sort=None, suggested_price=None, supplier_id=None, supplier_name_keyword=None)
class pulumi_alicloud.marketplace.GetProductResult(available_region=None, id=None, product_code=None, products=None)

A collection of values returned by getProduct.

id = None

The provider-assigned unique ID for this managed resource.

products = None

A product. It contains the following attributes:

class pulumi_alicloud.marketplace.GetProductsResult(category_id=None, id=None, ids=None, name_regex=None, output_file=None, product_type=None, products=None, search_term=None, sort=None, suggested_price=None, supplier_id=None, supplier_name_keyword=None)

A collection of values returned by getProducts.

category_id = None

The category id of the product.

id = None

The provider-assigned unique ID for this managed resource.

ids = None

A list of product codes.

products = None

A list of products. Each element contains the following attributes:

suggested_price = None

The suggested price of the product.

supplier_id = None

The supplier id of the product.

class pulumi_alicloud.marketplace.Order(resource_name, opts=None, components=None, coupon_id=None, duration=None, package_version=None, pay_type=None, pricing_cycle=None, product_code=None, quantity=None, __props__=None, __name__=None, __opts__=None)

Create a Order resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[dict] components: Service providers customize additional components. :param pulumi.Input[str] coupon_id: The coupon id of the market product. :param pulumi.Input[float] duration: The number of purchase cycles. :param pulumi.Input[str] package_version: The package version of the market product. :param pulumi.Input[str] pay_type: Valid values are PrePaid, PostPaid,System default to PostPaid. :param pulumi.Input[str] pricing_cycle: The purchase cycle of the product, valid values are Day, Month and Year. :param pulumi.Input[str] product_code: The product_code of market place product. :param pulumi.Input[float] quantity: The quantity of the market product will be purchased.

components: pulumi.Output[dict] = None

Service providers customize additional components.

coupon_id: pulumi.Output[str] = None

The coupon id of the market product.

duration: pulumi.Output[float] = None

The number of purchase cycles.

package_version: pulumi.Output[str] = None

The package version of the market product.

pay_type: pulumi.Output[str] = None

Valid values are PrePaid, PostPaid,System default to PostPaid.

pricing_cycle: pulumi.Output[str] = None

The purchase cycle of the product, valid values are Day, Month and Year.

product_code: pulumi.Output[str] = None

The product_code of market place product.

quantity: pulumi.Output[float] = None

The quantity of the market product will be purchased.

static get(resource_name, id, opts=None, components=None, coupon_id=None, duration=None, package_version=None, pay_type=None, pricing_cycle=None, product_code=None, quantity=None)

Get an existing Order resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • components (pulumi.Input[dict]) – Service providers customize additional components.

  • coupon_id (pulumi.Input[str]) – The coupon id of the market product.

  • duration (pulumi.Input[float]) – The number of purchase cycles.

  • package_version (pulumi.Input[str]) – The package version of the market product.

  • pay_type (pulumi.Input[str]) – Valid values are PrePaid, PostPaid,System default to PostPaid.

  • pricing_cycle (pulumi.Input[str]) – The purchase cycle of the product, valid values are Day, Month and Year.

  • product_code (pulumi.Input[str]) – The product_code of market place product.

  • quantity (pulumi.Input[float]) – The quantity of the market product will be purchased.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_alicloud.marketplace.get_product(available_region=None, product_code=None, opts=None)

This data source provides the Market product item details of Alibaba Cloud.

NOTE: Available in 1.69.0+

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.marketplace.get_product(product_code="cmapi022206")
pulumi.export("productName", default.products[0]["name"])
pulumi.export("firstProductSkuCode", default.products[0]["skuses"][0]["skuCode"])
pulumi.export("firstProductPackageVersion", default.products[0]["skuses"][0]["packageVersions"][0]["package_version"])
Parameters
  • available_region (str) – A available region id used to filter market place Ecs images.

  • product_code (str) – The product code of the market product.

pulumi_alicloud.marketplace.get_products(category_id=None, ids=None, name_regex=None, output_file=None, product_type=None, search_term=None, sort=None, suggested_price=None, supplier_id=None, supplier_name_keyword=None, opts=None)

This data source provides the Market product items of Alibaba Cloud.

NOTE: Available in 1.64.0+

Parameters
  • category_id (str) – The Category ID of products. For more information, see DescribeProducts.

  • ids (list) – A list of product code.

  • name_regex (str) – A regex string to apply to the product name.

  • product_type (str) – The type of products, Valid values: APP, SERVICE, MIRROR, DOWNLOAD and API_SERVICE.

  • search_term (str) – Search term in this query.

  • sort (str) – This field determines how to sort the filtered results, Valid values: user_count-desc, created_on-desc, price-desc and score-desc.

  • suggested_price (float) – The suggested price of the product.

  • supplier_id (str) – The supplier id of the product.

  • supplier_name_keyword (str) – The supplier name keyword of the product.