# Cloud Life Sciences v2beta API - Class ContainerStartedEvent (2.0.0-beta07)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ContainerStartedEvent)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta06/Google.Cloud.LifeSciences.V2Beta.ContainerStartedEvent)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.ContainerStartedEvent)

    public sealed class ContainerStartedEvent : IMessage<ContainerStartedEvent>, IEquatable<ContainerStartedEvent>, IDeepCloneable<ContainerStartedEvent>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Life Sciences v2beta API class ContainerStartedEvent.

An event generated when a container starts.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ContainerStartedEvent

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ContainerStartedEvent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ContainerStartedEvent), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ContainerStartedEvent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ContainerStartedEvent), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ContainerStartedEvent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ContainerStartedEvent), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.LifeSciences.V2Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta)

## Assembly

Google.Cloud.LifeSciences.V2Beta.dll

## Constructors

### ContainerStartedEvent()

    public ContainerStartedEvent()

### ContainerStartedEvent(ContainerStartedEvent)

    public ContainerStartedEvent(ContainerStartedEvent other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.ContainerStartedEvent` |

## Properties

### ActionId

    public int ActionId { get; set; }

The numeric ID of the action that started this container.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### IpAddress

    public string IpAddress { get; set; }

The public IP address that can be used to connect to the container. This
field is only populated when at least one port mapping is present. If the
instance was created with a private address, this field will be empty even
if port mappings exist.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PortMappings

    public MapField<int, int> PortMappings { get; }

The container-to-host port mappings installed for this container. This
set will contain any ports exposed using the `PUBLISH_EXPOSED_PORTS` flag
as well as any specified in the `Action` definition.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.int32https://learn.microsoft.com/dotnet/api/system.int32` |   |