Show / Hide Table of Contents

Class GetProduct

Inheritance
System.Object
GetProduct
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.MarketPlace
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetProduct

Methods

View Source

InvokeAsync(GetProductArgs, InvokeOptions)

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

NOTE: Available in 1.69.0+

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var @default = Output.Create(AliCloud.MarketPlace.GetProduct.InvokeAsync(new AliCloud.MarketPlace.GetProductArgs
    {
        ProductCode = "cmapi022206",
    }));
    this.ProductName = @default.Apply(@default => @default.Products[0].Name);
    this.FirstProductSkuCode = @default.Apply(@default => @default.Products[0].Skuses[0].SkuCode);
    this.FirstProductPackageVersion = @default.Apply(@default => @default.Products[0].Skuses[0].PackageVersions[0].PackageVersion);
}

[Output("productName")]
public Output<string> ProductName { get; set; }
[Output("firstProductSkuCode")]
public Output<string> FirstProductSkuCode { get; set; }
[Output("firstProductPackageVersion")]
public Output<string> FirstProductPackageVersion { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetProductResult> InvokeAsync(GetProductArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetProductArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetProductResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.