GetSpotMarketPrice
Use this data source to get Packet Spot Market Price.
Example Usage
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",
}));
}
}
Coming soon!
import pulumi
import pulumi_packet as packet
example = packet.get_spot_market_price(facility="ewr1",
plan="c1.small.x86")import * as pulumi from "@pulumi/pulumi";
import * as packet from "@pulumi/packet";
const example = pulumi.output(packet.getSpotMarketPrice({
facility: "ewr1",
plan: "c1.small.x86",
}, { async: true }));Using GetSpotMarketPrice
function getSpotMarketPrice(args: GetSpotMarketPriceArgs, opts?: InvokeOptions): Promise<GetSpotMarketPriceResult>function get_spot_market_price(facility=None, plan=None, opts=None)func GetSpotMarketPrice(ctx *Context, args *GetSpotMarketPriceArgs, opts ...InvokeOption) (*GetSpotMarketPriceResult, error)public static class GetSpotMarketPrice {
public static Task<GetSpotMarketPriceResult> InvokeAsync(GetSpotMarketPriceArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetSpotMarketPrice Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-packet
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
packetTerraform Provider.