# SftpContainerResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.Sftp](/reference/api/csharp/communitytoolkit.aspire.hosting.sftp.md)
- Type: [SftpContainerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.sftp/sftpcontainerresource.md)
- Kind: `Properties`
- Members: `4`

A resource that represents an SFTP container.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Sftp/SftpContainerResource.cs#L37)

ConnectionString for the atmoz SFTP server in the form of sftp://host:port.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Host

- Name: `Host`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Sftp/SftpContainerResource.cs#L26)

Gets the host endpoint reference for this resource.

```csharp
public EndpointReferenceExpression Host { get; }
```

## Port

- Name: `Port`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Sftp/SftpContainerResource.cs#L31)

Gets the port endpoint reference for this resource.

```csharp
public EndpointReferenceExpression Port { get; }
```

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Sftp/SftpContainerResource.cs#L45)

Gets the connection URI expression for the atmoz SFTP endpoint.

```csharp
public ReferenceExpression UriExpression { get; }
```

## Remarks

Format: `sftp://{host}:{port}`.
