Class GetSpotMarketPrice
Inheritance
System.Object
GetSpotMarketPrice
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.Packet
Assembly: Pulumi.Packet.dll
Syntax
public static class GetSpotMarketPrice
Methods
View SourceInvokeAsync(GetSpotMarketPriceArgs, InvokeOptions)
Use this data source to get Packet Spot Market Price.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Packet = Pulumi.Packet;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Packet.GetSpotMarketPrice.InvokeAsync(new Packet.GetSpotMarketPriceArgs
{
Facility = "ewr1",
Plan = "c1.small.x86",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetSpotMarketPriceResult> InvokeAsync(GetSpotMarketPriceArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSpotMarketPriceArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetSpotMarketPriceResult> |