Show / Hide Table of Contents

Class CreateVmInstanceDetails

Create VM instance details.

Inheritance
object
CreateVmInstanceDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.DataccService.Models
Assembly: OCI.DotNetSDK.Datacc.dll
Syntax
public class CreateVmInstanceDetails

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.

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.

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:

  • Provide information to Cloud-Init to be used for various system initialization tasks.
  • Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.

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 IP 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" } }

TimeZone

Declaration
[JsonProperty(PropertyName = "timeZone")]
public string TimeZone { get; set; }
Property Value
Type Description
string

The time zone to use for the VM instance.

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.

In this article
Back to top