# getRegistryConnection

> Function getRegistryConnection in pulumi-portainer.

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

Function getRegistryConnection in pulumi-portainer.

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

## 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.getRegistryConnection({
  type: 0,
  url: "<url>",
})
```

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

## Arguments

| Property      | Type      | Required | Description |
| ------------- | --------- | -------- | ----------- |
| `failOnError` | `boolean` | no       |             |
| `id`          | `string`  | no       |             |
| `password`    | `string`  | no       |             |
| `tls`         | `boolean` | no       |             |
| `type`        | `number`  | yes      |             |
| `url`         | `string`  | yes      |             |
| `username`    | `string`  | no       |             |

## Result

| Property      | Type      | Always present | Description |
| ------------- | --------- | -------------- | ----------- |
| `failOnError` | `boolean` | no             |             |
| `id`          | `string`  | yes            |             |
| `message`     | `string`  | yes            |             |
| `password`    | `string`  | no             |             |
| `success`     | `boolean` | yes            |             |
| `tls`         | `boolean` | no             |             |
| `type`        | `number`  | yes            |             |
| `url`         | `string`  | yes            |             |
| `username`    | `string`  | no             |             |
