# UserGitCredential

> Resource UserGitCredential in pulumi-portainer.

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

Resource UserGitCredential in pulumi-portainer.

Pulumi type: `portainer:index/userGitCredential:UserGitCredential`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## 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 resource = new portainer.UserGitCredential("userGitCredential", {
  password: "<password>",
  userId: 0,
  username: "<username>",
})
```

## Arguments

| Property              | Type     | Required | Description                                 |
| --------------------- | -------- | -------- | ------------------------------------------- |
| `authorizationType`   | `number` | no       | Authorization type: 0 = Basic, 1 = Token    |
| `name`                | `string` | no       | Name of the git credential                  |
| `password`            | `string` | yes      | Password or token for git authentication    |
| `userGitCredentialId` | `string` | no       |                                             |
| `userId`              | `number` | yes      | ID of the user who owns this git credential |
| `username`            | `string` | yes      | Username for git authentication             |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property              | Type     | Computed | Description                                 |
| --------------------- | -------- | -------- | ------------------------------------------- |
| `authorizationType`   | `number` | no       | Authorization type: 0 = Basic, 1 = Token    |
| `credentialId`        | `number` | yes      | ID of the git credential                    |
| `name`                | `string` | no       | Name of the git credential                  |
| `password`            | `string` | no       | Password or token for git authentication    |
| `userGitCredentialId` | `string` | no       |                                             |
| `userId`              | `number` | no       | ID of the user who owns this git credential |
| `username`            | `string` | no       | Username for git authentication             |
