Request Spot Instances
GET {{aws_ec2_base_url}}/?AvailabilityZoneGroup&BlockDurationMinutes&ClientToken&DryRun&InstanceCount&InstanceInterruptionBehavior&LaunchGroup&LaunchSpecification&SpotPrice&Type&ValidFrom&ValidUntil&Action=RequestSpotInstances
Creates a Spot Instance request.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
AvailabilityZoneGroup | null | The user-specified name for a logical grouping of requests. | |
BlockDurationMinutes | null | The required duration for the Spot Instances (also known as Spot blocks), in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). | |
ClientToken | null | Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon EC2 User Guide for Linux Instances. | |
DryRun | null | Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. | |
InstanceCount | null | The maximum number of Spot Instances to launch. | |
InstanceInterruptionBehavior | null | The behavior when a Spot Instance is interrupted. The default is terminate. | |
LaunchGroup | null | The instance launch group. Launch groups are Spot Instances that launch together and terminate together. | |
LaunchSpecification | null | The launch specification. | |
SpotPrice | null | The maximum price per hour that you are willing to pay for a Spot Instance. The default is the On-Demand price. | |
Type | null | The Spot Instance request type. | |
ValidFrom | null | The start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled. | |
ValidUntil | null | The end date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached. The default end date is 7 days from the current date. | |
Action | string |