# getEdgeStackFile

> Function getEdgeStackFile in pulumi-portainer.

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

Function getEdgeStackFile in pulumi-portainer.

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

## 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.getEdgeStackFile({
  edgeStackId: 0,
})
```

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

## Arguments

| Property      | Type     | Required | Description |
| ------------- | -------- | -------- | ----------- |
| `edgeStackId` | `number` | yes      |             |
| `id`          | `string` | no       |             |

## Result

| Property      | Type     | Always present | Description |
| ------------- | -------- | -------------- | ----------- |
| `edgeStackId` | `number` | yes            |             |
| `fileContent` | `string` | yes            |             |
| `id`          | `string` | yes            |             |
