---
title: "Suggested Instance Type"
method: POST
path: "/aws/ec2/instanceTypeRecommendation"
tags: ["Insights Service"]
---

# Suggested Instance Type

`POST /aws/ec2/instanceTypeRecommendation`

Get suggested instance types by required resources.
Note that request must include region, and at least one of the following values - baselineInstanceType, requiredVCpu, requiredMemoryGib

## Query parameters

- `accountId` string

## Request body

- object
  - `requirements` object
    - `region` string — Set valid AWS region
    - `baselineInstanceType` string — Set valid AWS instance type as baseline
    - `requiredVCpu` object — Set required CPU resources by min / max
      - `minimum` integer — Minimum amount of VCpu
      - `maximum` integer — Maximum amount of VCpu
    - `requiredMemoryGib` object — Set required Memory (in Gib) resources by min / max
      - `minimum` integer — Minimum amount of Gib
      - `maximum` integer — Maximum amount of Gib

## Response `200`

Suggested Instance Type Response

- object
  - `request` object — Original request properties
    - `id` string — Unique ID associated with this request
    - `url` string — The URL that was used for the request
    - `method` string — The HTTP **METHOD** used for the request
    - `timestamp` string — When the request was received by Spot
  - `response` object — Response package that includes, status, type and any relevant data.
    - `status` object
      - `code` integer — HTTP status code assigned to this response
      - `message` string — HTTP status message for the respective status code
    - `kind` string — The data type of each item in the response
    - `items` object[] — Array of data objects
    - `count` integer — Size of the data object array

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.dev/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
