Class VmInstance
VM instance details.
Inherited Members
Namespace: Oci.DataccService.Models
Assembly: OCI.DotNetSDK.Datacc.dll
Syntax
public class VmInstance
Properties
BootStorageSizeInGBs
Declaration
[JsonProperty(PropertyName = "bootStorageSizeInGBs")]
public double BootStorageSizeInGBs { get; set; }
Property Value
| Type | Description |
|---|---|
| double | Boot storage memory to be allocated in GBs. |
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the compartment containing the VM instance. |
Remarks
Required
CpusEnabled
Declaration
[Required(ErrorMessage = "CpusEnabled is required.")]
[JsonProperty(PropertyName = "cpusEnabled")]
public int? CpusEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | The number of CPU cores enabled for each VM instance. |
Remarks
Required
DataStorageSizeInGBs
Declaration
[JsonProperty(PropertyName = "dataStorageSizeInGBs")]
public double DataStorageSizeInGBs { get; set; }
Property Value
| Type | Description |
|---|---|
| double | Data storage to be allocated in GBs. |
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}} |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string | VM instance description. |
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | VM instance display name. This name does not have to be unique, and is changeable. |
DnsServers
Declaration
[JsonProperty(PropertyName = "dnsServers")]
public List<string> DnsServers { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | The list of DNS server IP addresses. Maximum of 3 allowed. |
DomainName
Declaration
[JsonProperty(PropertyName = "domainName")]
public string DomainName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The domain name of the VM instance. |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"} |
Gateway
Declaration
[JsonProperty(PropertyName = "gateway")]
public string Gateway { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The gateway IP address of the VM instance network. |
Hostname
Declaration
[JsonProperty(PropertyName = "hostname")]
public string Hostname { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The host name of the instance. |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the VM instance. |
Remarks
Required
ImageId
Declaration
[JsonProperty(PropertyName = "imageId")]
public string ImageId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the VM custom instance uploaded. |
InfrastructureId
Declaration
[Required(ErrorMessage = "InfrastructureId is required.")]
[JsonProperty(PropertyName = "infrastructureId")]
public string InfrastructureId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the Database Infrastructure. |
Remarks
Required
IpAddress
Declaration
[JsonProperty(PropertyName = "ipAddress")]
public string IpAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The IP address of the instance. |
LifecycleDetails
Declaration
[JsonProperty(PropertyName = "lifecycleDetails")]
public string LifecycleDetails { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Lifecycle state details of the VM instance. |
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public VmInstanceLifecycleState? LifecycleState { get; set; }
Property Value
| Type | Description |
|---|---|
| VmInstanceLifecycleState? | The current state of the VM instance. |
Remarks
Required
MemorySizeInGBs
Declaration
[JsonProperty(PropertyName = "memorySizeInGBs")]
public double MemorySizeInGBs { get; set; }
Property Value
| Type | Description |
|---|---|
| double | The memory to be allocated in GBs. |
Metadata
Declaration
[JsonProperty(PropertyName = "metadata")]
public Dictionary<string, string> Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | Custom metadata key/value pairs which can be used to:
|
Netmask
Declaration
[JsonProperty(PropertyName = "netmask")]
public string Netmask { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The netmask of the VM instance network. |
NtpServers
Declaration
[JsonProperty(PropertyName = "ntpServers")]
public List<string> NtpServers { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | The list of NTP server addresses. Maximum of 3 allowed. |
ServerId
Declaration
[JsonProperty(PropertyName = "serverId")]
public string ServerId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the compute node on which VM instance should be launched. |
SshPublicKeys
Declaration
[Required(ErrorMessage = "SshPublicKeys is required.")]
[JsonProperty(PropertyName = "sshPublicKeys")]
public List<string> SshPublicKeys { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | List of public key used for SSH access to the VM instance. |
Remarks
Required
SystemTags
Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, Dictionary<string, object>> | Usage of system tag keys. These predefined keys are scoped to namespaces. Example: { "orcl-cloud": { "free-tier-retained": "true" } } |
TimeCreated
Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The time that the VM instance was created. An RFC3339 formatted datetime string. |
Remarks
Required
TimeUpdated
Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The time that the VM instance was last updated. An RFC3339 formatted datetime string. |
Remarks
Required
TimeZone
Declaration
[Required(ErrorMessage = "TimeZone is required.")]
[JsonProperty(PropertyName = "timeZone")]
public string TimeZone { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The time zone to use for the VM instance. |
Remarks
Required
Userdata
Declaration
[JsonProperty(PropertyName = "userdata")]
public string Userdata { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For information about how to take advantage of user data, see the Cloud-Init Documentation. |
VlanId
Declaration
[JsonProperty(PropertyName = "vlanId")]
public string VlanId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The network VLAN ID. |
VmNetworkId
Declaration
[JsonProperty(PropertyName = "vmNetworkId")]
public string VmNetworkId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the VM Network. |