# getStackConversion

> Function getStackConversion in pulumi-portainer.

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

Function getStackConversion in pulumi-portainer.

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

## 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.getStackConversion({
  stackId: 0,
  targetFormat: "<targetFormat>",
})
```

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

## Arguments

| Property       | Type     | Required | Description |
| -------------- | -------- | -------- | ----------- |
| `id`           | `string` | no       |             |
| `namespace`    | `string` | no       |             |
| `stackId`      | `number` | yes      |             |
| `targetFormat` | `string` | yes      |             |

## Result

| Property       | Type                        | Always present | Description |
| -------------- | --------------------------- | -------------- | ----------- |
| `files`        | `{ [key: string]: string }` | yes            |             |
| `id`           | `string`                    | yes            |             |
| `namespace`    | `string`                    | no             |             |
| `stackId`      | `number`                    | yes            |             |
| `targetFormat` | `string`                    | yes            |             |
