# getRecommendations

> Function getRecommendations in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Function getRecommendations in pulumi-portainer.

Invoke token: `portainer:index/getRecommendations:getRecommendations`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const result = await portainer.getRecommendations()
```

`getRecommendationsOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property   | Type     | Required | Description |
| ---------- | -------- | -------- | ----------- |
| `category` | `string` | no       |             |
| `id`       | `string` | no       |             |
| `severity` | `string` | no       |             |

## Result

| Property          | Type                                 | Always present | Description |
| ----------------- | ------------------------------------ | -------------- | ----------- |
| `category`        | `string`                             | no             |             |
| `categoryCounts`  | `{ [key: string]: number }`          | yes            |             |
| `id`              | `string`                             | yes            |             |
| `recommendations` | `GetRecommendationsRecommendation[]` | yes            |             |
| `severity`        | `string`                             | no             |             |
| `severityCounts`  | `{ [key: string]: number }`          | yes            |             |
| `total`           | `number`                             | yes            |             |
| `totalTypes`      | `number`                             | yes            |             |

## `GetRecommendationsRecommendation`

Output object `GetRecommendationsRecommendation`. Fields below belong to this object.

| Property      | Type     | Always present | Description |
| ------------- | -------- | -------------- | ----------- |
| `actionLabel` | `string` | no             |             |
| `actionUrl`   | `string` | no             |             |
| `category`    | `string` | no             |             |
| `description` | `string` | no             |             |
| `severity`    | `string` | no             |             |
| `title`       | `string` | no             |             |
| `typeId`      | `string` | no             |             |
