# ServiceBackendPortV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ServiceBackendPortV1.cs)

Represents a service backend port configuration in Kubernetes.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class ServiceBackendPortV1
{
    // ...
}
```

## Remarks

This class defines the port information for a Kubernetes service, which can be used in configurations like ingress services or other Kubernetes networking components. The port may be specified by name or number, enabling flexibility for different scenarios.

## Constructors

- [ServiceBackendPortV1](/reference/api/csharp/aspire.hosting.kubernetes/servicebackendportv1/constructors.md#constructor)

## Properties

- [Name](/reference/api/csharp/aspire.hosting.kubernetes/servicebackendportv1/properties.md#name) : `string` `get; set` -- Gets or sets the name of the backend port. This is used to specify the name of the port when referring to it in a service configuration.
- [Number](/reference/api/csharp/aspire.hosting.kubernetes/servicebackendportv1/properties.md#number) : `int?` `get; set` -- Represents the numeric port value for the service backend. Used to specify the numeric port on the service to which traffic is directed.
