1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Bare Metal Solution v2 API class Instance.

A server.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Instance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.BareMetalSolution.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.md.txt)

## Assembly

Google.Cloud.BareMetalSolution.V2.dll

## Constructors

### Instance()

    public Instance()

### Instance(Instance)

    public Instance(Instance other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Instance` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Create a time stamp.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### FirmwareVersion

    public string FirmwareVersion { get; set; }

Output only. The firmware version for the instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### HyperthreadingEnabled

    public bool HyperthreadingEnabled { get; set; }

True if you enable hyperthreading for the server, otherwise false.
The default value is false.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Id

    public string Id { get; set; }

Output only. An identifier for the `Instance`, generated by the backend.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### InstanceName

    public InstanceName InstanceName { get; set; }

[InstanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.InstanceName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt#Google_Cloud_BareMetalSolution_V2_Instance_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InstanceName` |   |

### InteractiveSerialConsoleEnabled

    public bool InteractiveSerialConsoleEnabled { get; set; }

Output only. True if the interactive serial console feature is enabled for
the instance, false otherwise. The default value is false.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Labels

    public MapField<string, string> Labels { get; }

Labels as key value pairs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### LogicalInterfaces

    public RepeatedField<LogicalInterface> LogicalInterfaces { get; }

List of logical interfaces for the instance. The number of logical
interfaces will be the same as number of hardware bond/nic on the chosen
network template. For the non-multivlan configurations (for eg, existing
servers) that use existing default network template (bondaa-bondaa), both
the Instance.networks field and the Instance.logical_interfaces fields will
be filled to ensure backward compatibility. For the others, only
Instance.logical_interfaces will be filled.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldLogicalInterface` |   |

### LoginInfo

    public string LoginInfo { get; set; }

Output only. Text field about info for logging in.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Luns

    public RepeatedField<Lun> Luns { get; }

Immutable. List of LUNs associated with this server.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldLun` |   |

### MachineType

    public string MachineType { get; set; }

Immutable. The server type.
[Available server
types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Name

    public string Name { get; set; }

Immutable. The resource name of this `Instance`.
Resource names are schemeless URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>.
Format:
`projects/{project}/locations/{location}/instances/{instance}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### NetworkTemplate

    public string NetworkTemplate { get; set; }

Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
Generally, the template name follows the syntax of
"bond\<bond_mode\>" or "nic".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### NetworkTemplateAsServerNetworkTemplateName

    public ServerNetworkTemplateName NetworkTemplateAsServerNetworkTemplateName { get; set; }

[ServerNetworkTemplateName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplateName.md.txt)-typed view over the [NetworkTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.Instance.md.txt#Google_Cloud_BareMetalSolution_V2_Instance_NetworkTemplate) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServerNetworkTemplateName` |   |

### Networks

    public RepeatedField<Network> Networks { get; }

Output only. List of networks associated with this server.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldNetwork` |   |

### OsImage

    public string OsImage { get; set; }

The OS image currently installed on the server.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Pod

    public string Pod { get; set; }

Immutable. Pod name.
Pod is an independent part of infrastructure.
Instance can be connected to the assets (networks, volumes) allocated
in the same pod only.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### State

    public Instance.Types.State State { get; set; }

Output only. The state of the server.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InstanceTypesState` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Update a time stamp.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Volumes

    public RepeatedField<Volume> Volumes { get; }

Input only. List of Volumes to attach to this Instance on creation.
This field won't be populated in Get/List responses.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldVolume` |   |

### WorkloadProfile

    public WorkloadProfile WorkloadProfile { get; set; }

The workload profile for the instance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `WorkloadProfile` |   |