Module marketplace
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.
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-alicloudrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-alicloudrepo.
Resources
Functions
Others
Resources
Resource Order
class Order extends CustomResourceconstructor
new Order(name: string, args: OrderArgs, opts?: pulumi.CustomResourceOptions)Create a Order resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OrderState, opts?: pulumi.CustomResourceOptions): OrderGet an existing Order resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is OrderReturns true if the given object is an instance of Order. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property components
public components: pulumi.Output<{[key: string]: any} | undefined>;Service providers customize additional components.
property couponId
public couponId: pulumi.Output<string | undefined>;The coupon id of the market product.
property duration
public duration: pulumi.Output<number | undefined>;The number of purchase cycles.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property packageVersion
public packageVersion: pulumi.Output<string>;The package version of the market product.
property payType
public payType: pulumi.Output<string | undefined>;Valid values are PrePaid, PostPaid,System default to PostPaid.
property pricingCycle
public pricingCycle: pulumi.Output<string>;The purchase cycle of the product, valid values are Day, Month and Year.
property productCode
public productCode: pulumi.Output<string>;The productCode of market place product.
property quantity
public quantity: pulumi.Output<number | undefined>;The quantity of the market product will be purchased.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Functions
Function getProduct
getProduct(args: GetProductArgs, opts?: pulumi.InvokeOptions): Promise<GetProductResult>This data source provides the Market product item details of Alibaba Cloud.
NOTE: Available in 1.69.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultProduct = pulumi.output(alicloud.marketplace.getProduct({
productCode: "cmapi022206",
}, { async: true }));
export const productName = defaultProduct.products[0].name;
export const firstProductSkuCode = defaultProduct.products[0].skuses[0].skuCode;
export const firstProductPackageVersion = defaultProduct.products[0].skuses[0].packageVersions[0].packageVersion;Function getProducts
getProducts(args?: GetProductsArgs, opts?: pulumi.InvokeOptions): Promise<GetProductsResult>This data source provides the Market product items of Alibaba Cloud.
NOTE: Available in 1.64.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultProducts = pulumi.output(alicloud.marketplace.getProducts({
categoryId: "53690006",
productType: "SERVICE",
sort: "created_on-desc",
}, { async: true }));
export const firstProductCode = defaultProducts.productItems.0.code;
export const productCodes = defaultProducts.ids!;Others
interface GetProductArgs
interface GetProductArgsA collection of arguments for invoking getProduct.
property availableRegion
availableRegion?: undefined | string;A available region id used to filter market place Ecs images.
property productCode
productCode: string;The product code of the market product.
interface GetProductResult
interface GetProductResultA collection of values returned by getProduct.
property availableRegion
availableRegion?: undefined | string;property id
id: string;The provider-assigned unique ID for this managed resource.
property productCode
productCode: string;property products
products: GetProductProduct[];A product. It contains the following attributes:
interface GetProductsArgs
interface GetProductsArgsA collection of arguments for invoking getProducts.
property categoryId
categoryId?: undefined | string;The Category ID of products. For more information, see DescribeProducts.
property ids
ids?: string[];A list of product code.
property nameRegex
nameRegex?: undefined | string;A regex string to apply to the product name.
property outputFile
outputFile?: undefined | string;property productType
productType?: undefined | string;The type of products, Valid values: APP, SERVICE, MIRROR, DOWNLOAD and API_SERVICE.
property searchTerm
searchTerm?: undefined | string;Search term in this query.
property sort
sort?: undefined | string;This field determines how to sort the filtered results, Valid values: user_count-desc, created_on-desc, price-desc and score-desc.
property suggestedPrice
suggestedPrice?: undefined | number;The suggested price of the product.
property supplierId
supplierId?: undefined | string;The supplier id of the product.
property supplierNameKeyword
supplierNameKeyword?: undefined | string;The supplier name keyword of the product.
interface GetProductsResult
interface GetProductsResultA collection of values returned by getProducts.
property categoryId
categoryId?: undefined | string;The category id of the product.
property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of product codes.
property nameRegex
nameRegex?: undefined | string;property outputFile
outputFile?: undefined | string;property productType
productType?: undefined | string;property products
products: GetProductsProduct[];A list of products. Each element contains the following attributes:
property searchTerm
searchTerm?: undefined | string;property sort
sort?: undefined | string;property suggestedPrice
suggestedPrice?: undefined | number;The suggested price of the product.
property supplierId
supplierId?: undefined | string;The supplier id of the product.
property supplierNameKeyword
supplierNameKeyword?: undefined | string;interface OrderArgs
interface OrderArgsThe set of arguments for constructing a Order resource.
property components
components?: pulumi.Input<{[key: string]: any}>;Service providers customize additional components.
property couponId
couponId?: pulumi.Input<string>;The coupon id of the market product.
property duration
duration?: pulumi.Input<number>;The number of purchase cycles.
property packageVersion
packageVersion: pulumi.Input<string>;The package version of the market product.
property payType
payType?: pulumi.Input<string>;Valid values are PrePaid, PostPaid,System default to PostPaid.
property pricingCycle
pricingCycle: pulumi.Input<string>;The purchase cycle of the product, valid values are Day, Month and Year.
property productCode
productCode: pulumi.Input<string>;The productCode of market place product.
property quantity
quantity?: pulumi.Input<number>;The quantity of the market product will be purchased.
interface OrderState
interface OrderStateInput properties used for looking up and filtering Order resources.
property components
components?: pulumi.Input<{[key: string]: any}>;Service providers customize additional components.
property couponId
couponId?: pulumi.Input<string>;The coupon id of the market product.
property duration
duration?: pulumi.Input<number>;The number of purchase cycles.
property packageVersion
packageVersion?: pulumi.Input<string>;The package version of the market product.
property payType
payType?: pulumi.Input<string>;Valid values are PrePaid, PostPaid,System default to PostPaid.
property pricingCycle
pricingCycle?: pulumi.Input<string>;The purchase cycle of the product, valid values are Day, Month and Year.
property productCode
productCode?: pulumi.Input<string>;The productCode of market place product.
property quantity
quantity?: pulumi.Input<number>;The quantity of the market product will be purchased.