# getProjects

> Function getProjects in pulumi-infisical.

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

Function getProjects in pulumi-infisical.

Invoke token: `infisical:index/getProjects:getProjects`.

## 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 infisical from "pulumi-infisical"

const result = await infisical.getProjects()
```

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

## Arguments

| Property | Type     | Required | Description |
| -------- | -------- | -------- | ----------- |
| `id`     | `string` | no       |             |
| `slug`   | `string` | no       |             |

## Result

| Property             | Type                                         | Always present | Description |
| -------------------- | -------------------------------------------- | -------------- | ----------- |
| `autoCapitalization` | `boolean`                                    | yes            |             |
| `createdAt`          | `string`                                     | yes            |             |
| `environments`       | `{ [key: string]: GetProjectsEnvironments }` | yes            |             |
| `id`                 | `string`                                     | yes            |             |
| `name`               | `string`                                     | yes            |             |
| `orgId`              | `string`                                     | yes            |             |
| `slug`               | `string`                                     | yes            |             |
| `type`               | `string`                                     | yes            |             |
| `updatedAt`          | `string`                                     | yes            |             |
| `upgradeStatus`      | `string`                                     | yes            |             |
| `version`            | `number`                                     | yes            |             |

## `GetProjectsEnvironments`

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

| Property | Type     | Always present | Description                 |
| -------- | -------- | -------------- | --------------------------- |
| `id`     | `string` | yes            | The ID of the environment   |
| `name`   | `string` | yes            | The name of the environment |
| `slug`   | `string` | yes            | The slug of the environment |
