SpotMarketRequest
Provides a Packet Spot Market Request resource to allow you to manage spot market requests on your account. For more detail on Spot Market, see this article in Packet documentaion.
Create a SpotMarketRequest Resource
new SpotMarketRequest(name: string, args: SpotMarketRequestArgs, opts?: CustomResourceOptions);def SpotMarketRequest(resource_name, opts=None, devices_max=None, devices_min=None, facilities=None, instance_parameters=None, max_bid_price=None, project_id=None, wait_for_devices=None, __props__=None);func NewSpotMarketRequest(ctx *Context, name string, args SpotMarketRequestArgs, opts ...ResourceOption) (*SpotMarketRequest, error)public SpotMarketRequest(string name, SpotMarketRequestArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SpotMarketRequestArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SpotMarketRequestArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpotMarketRequestArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SpotMarketRequest Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SpotMarketRequest resource accepts the following input properties:
- Devices
Max int Maximum number devices to be created
- Devices
Min int Miniumum number devices to be created
- Facilities List<string>
Facility IDs where devices should be created
- Instance
Parameters SpotMarket Request Instance Parameters Args Device parameters. See device resource for details
- Max
Bid doublePrice Maximum price user is willing to pay per hour per device
- Project
Id string Project ID
- Wait
For boolDevices On resource creation - wait until all desired devices are active, on resource destruction - wait until devices are removed
- Devices
Max int Maximum number devices to be created
- Devices
Min int Miniumum number devices to be created
- Facilities []string
Facility IDs where devices should be created
- Instance
Parameters SpotMarket Request Instance Parameters Device parameters. See device resource for details
- Max
Bid float64Price Maximum price user is willing to pay per hour per device
- Project
Id string Project ID
- Wait
For boolDevices On resource creation - wait until all desired devices are active, on resource destruction - wait until devices are removed
- devices
Max number Maximum number devices to be created
- devices
Min number Miniumum number devices to be created
- facilities string[]
Facility IDs where devices should be created
- instance
Parameters SpotMarket Request Instance Parameters Device parameters. See device resource for details
- max
Bid numberPrice Maximum price user is willing to pay per hour per device
- project
Id string Project ID
- wait
For booleanDevices On resource creation - wait until all desired devices are active, on resource destruction - wait until devices are removed
- devices_
max float Maximum number devices to be created
- devices_
min float Miniumum number devices to be created
- facilities List[str]
Facility IDs where devices should be created
- instance_
parameters Dict[SpotMarket Request Instance Parameters] Device parameters. See device resource for details
- max_
bid_ floatprice Maximum price user is willing to pay per hour per device
- project_
id str Project ID
- wait_
for_ booldevices On resource creation - wait until all desired devices are active, on resource destruction - wait until devices are removed
Outputs
All input properties are implicitly available as output properties. Additionally, the SpotMarketRequest resource produces the following output properties:
Look up an Existing SpotMarketRequest Resource
Get an existing SpotMarketRequest resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SpotMarketRequestState, opts?: CustomResourceOptions): SpotMarketRequeststatic get(resource_name, id, opts=None, devices_max=None, devices_min=None, facilities=None, instance_parameters=None, max_bid_price=None, project_id=None, wait_for_devices=None, __props__=None);func GetSpotMarketRequest(ctx *Context, name string, id IDInput, state *SpotMarketRequestState, opts ...ResourceOption) (*SpotMarketRequest, error)public static SpotMarketRequest Get(string name, Input<string> id, SpotMarketRequestState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Devices
Max int Maximum number devices to be created
- Devices
Min int Miniumum number devices to be created
- Facilities List<string>
Facility IDs where devices should be created
- Instance
Parameters SpotMarket Request Instance Parameters Args Device parameters. See device resource for details
- Max
Bid doublePrice Maximum price user is willing to pay per hour per device
- Project
Id string Project ID
- Wait
For boolDevices On resource creation - wait until all desired devices are active, on resource destruction - wait until devices are removed
- Devices
Max int Maximum number devices to be created
- Devices
Min int Miniumum number devices to be created
- Facilities []string
Facility IDs where devices should be created
- Instance
Parameters SpotMarket Request Instance Parameters Device parameters. See device resource for details
- Max
Bid float64Price Maximum price user is willing to pay per hour per device
- Project
Id string Project ID
- Wait
For boolDevices On resource creation - wait until all desired devices are active, on resource destruction - wait until devices are removed
- devices
Max number Maximum number devices to be created
- devices
Min number Miniumum number devices to be created
- facilities string[]
Facility IDs where devices should be created
- instance
Parameters SpotMarket Request Instance Parameters Device parameters. See device resource for details
- max
Bid numberPrice Maximum price user is willing to pay per hour per device
- project
Id string Project ID
- wait
For booleanDevices On resource creation - wait until all desired devices are active, on resource destruction - wait until devices are removed
- devices_
max float Maximum number devices to be created
- devices_
min float Miniumum number devices to be created
- facilities List[str]
Facility IDs where devices should be created
- instance_
parameters Dict[SpotMarket Request Instance Parameters] Device parameters. See device resource for details
- max_
bid_ floatprice Maximum price user is willing to pay per hour per device
- project_
id str Project ID
- wait_
for_ booldevices On resource creation - wait until all desired devices are active, on resource destruction - wait until devices are removed
Supporting Types
SpotMarketRequestInstanceParameters
Package Details
- Repository
- https://github.com/pulumi/pulumi-packet
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
packetTerraform Provider.