Show / Hide Table of Contents

Class Shape

A compute instance shape that can be used in {@link #launchInstance(LaunchInstanceRequest) launchInstance}. For more information, see Overview of the Compute Service and Compute Shapes.

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

Properties

BaselineOcpuUtilizations

Declaration
[JsonProperty(PropertyName = "baselineOcpuUtilizations", ItemConverterType = typeof(ResponseEnumConverter))]
public List<Shape.BaselineOcpuUtilizationsEnum> BaselineOcpuUtilizations { get; set; }
Property Value
Type Description
List<Shape.BaselineOcpuUtilizationsEnum>

For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape.

BillingType

Declaration
[JsonProperty(PropertyName = "billingType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Shape.BillingTypeEnum? BillingType { get; set; }
Property Value
Type Description
Shape.BillingTypeEnum?

How instances that use this shape are charged.

GpuDescription

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

A short description of the graphics processing unit (GPU) available for this shape.
If the shape does not have any GPUs, this field is null.

Gpus

Declaration
[JsonProperty(PropertyName = "gpus")]
public int? Gpus { get; set; }
Property Value
Type Description
int?

The number of GPUs available for this shape.

IsBilledForStoppedInstance

Declaration
[JsonProperty(PropertyName = "isBilledForStoppedInstance")]
public bool? IsBilledForStoppedInstance { get; set; }
Property Value
Type Description
bool?

Whether billing continues when the instances that use this shape are in the stopped state.

IsFlexible

Declaration
[JsonProperty(PropertyName = "isFlexible")]
public bool? IsFlexible { get; set; }
Property Value
Type Description
bool?

Whether the shape supports creating flexible instances. A flexible shape is a shape that lets you customize the number of OCPUs and the amount of memory when launching or resizing your instance.

IsLiveMigrationSupported

Declaration
[JsonProperty(PropertyName = "isLiveMigrationSupported")]
public bool? IsLiveMigrationSupported { get; set; }
Property Value
Type Description
bool?

Whether live migration is supported for this shape.

IsSubcore

Declaration
[JsonProperty(PropertyName = "isSubcore")]
public bool? IsSubcore { get; set; }
Property Value
Type Description
bool?

Whether the shape supports creating subcore or burstable instances. A burstable instance is a virtual machine (VM) instance that provides a baseline level of CPU performance with the ability to burst to a higher level to support occasional spikes in usage.

LocalDiskDescription

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

A short description of the local disks available for this shape.
If the shape does not have any local disks, this field is null.

LocalDisks

Declaration
[JsonProperty(PropertyName = "localDisks")]
public int? LocalDisks { get; set; }
Property Value
Type Description
int?

The number of local disks available for this shape.

LocalDisksTotalSizeInGBs

Declaration
[JsonProperty(PropertyName = "localDisksTotalSizeInGBs")]
public float? LocalDisksTotalSizeInGBs { get; set; }
Property Value
Type Description
float?

The aggregate size of the local disks available for this shape, in gigabytes.
If the shape does not have any local disks, this field is null.

MaxVnicAttachmentOptions

Declaration
[JsonProperty(PropertyName = "maxVnicAttachmentOptions")]
public ShapeMaxVnicAttachmentOptions MaxVnicAttachmentOptions { get; set; }
Property Value
Type Description
ShapeMaxVnicAttachmentOptions

MaxVnicAttachments

Declaration
[JsonProperty(PropertyName = "maxVnicAttachments")]
public int? MaxVnicAttachments { get; set; }
Property Value
Type Description
int?

The maximum number of VNIC attachments available for this shape.

MemoryInGBs

Declaration
[JsonProperty(PropertyName = "memoryInGBs")]
public float? MemoryInGBs { get; set; }
Property Value
Type Description
float?

The default amount of memory available for this shape, in gigabytes.

MemoryOptions

Declaration
[JsonProperty(PropertyName = "memoryOptions")]
public ShapeMemoryOptions MemoryOptions { get; set; }
Property Value
Type Description
ShapeMemoryOptions

MinTotalBaselineOcpusRequired

Declaration
[JsonProperty(PropertyName = "minTotalBaselineOcpusRequired")]
public decimal? MinTotalBaselineOcpusRequired { get; set; }
Property Value
Type Description
decimal?

For a subcore burstable VM, the minimum total baseline OCPUs required. The total baseline OCPUs is equal to baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen.

NetworkPorts

Declaration
[JsonProperty(PropertyName = "networkPorts")]
public int? NetworkPorts { get; set; }
Property Value
Type Description
int?

The number of physical network interface card (NIC) ports available for this shape.

NetworkingBandwidthInGbps

Declaration
[JsonProperty(PropertyName = "networkingBandwidthInGbps")]
public float? NetworkingBandwidthInGbps { get; set; }
Property Value
Type Description
float?

The networking bandwidth available for this shape, in gigabits per second.

NetworkingBandwidthOptions

Declaration
[JsonProperty(PropertyName = "networkingBandwidthOptions")]
public ShapeNetworkingBandwidthOptions NetworkingBandwidthOptions { get; set; }
Property Value
Type Description
ShapeNetworkingBandwidthOptions

OcpuOptions

Declaration
[JsonProperty(PropertyName = "ocpuOptions")]
public ShapeOcpuOptions OcpuOptions { get; set; }
Property Value
Type Description
ShapeOcpuOptions

Ocpus

Declaration
[JsonProperty(PropertyName = "ocpus")]
public float? Ocpus { get; set; }
Property Value
Type Description
float?

The default number of OCPUs available for this shape.

PlatformConfigOptions

Declaration
[JsonProperty(PropertyName = "platformConfigOptions")]
public ShapePlatformConfigOptions PlatformConfigOptions { get; set; }
Property Value
Type Description
ShapePlatformConfigOptions

ProcessorDescription

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

A short description of the shape's processor (CPU).

QuotaNames

Declaration
[JsonProperty(PropertyName = "quotaNames")]
public List<string> QuotaNames { get; set; }
Property Value
Type Description
List<string>

The list of of compartment quotas for the shape.

RdmaBandwidthInGbps

Declaration
[JsonProperty(PropertyName = "rdmaBandwidthInGbps")]
public int? RdmaBandwidthInGbps { get; set; }
Property Value
Type Description
int?

The networking bandwidth available for the remote direct memory access (RDMA) network for this shape, in gigabits per second.

RdmaPorts

Declaration
[JsonProperty(PropertyName = "rdmaPorts")]
public int? RdmaPorts { get; set; }
Property Value
Type Description
int?

The number of networking ports available for the remote direct memory access (RDMA) network between nodes in a high performance computing (HPC) cluster network. If the shape does not support cluster networks, this value is 0.

RecommendedAlternatives

Declaration
[JsonProperty(PropertyName = "recommendedAlternatives")]
public List<ShapeAlternativeObject> RecommendedAlternatives { get; set; }
Property Value
Type Description
List<ShapeAlternativeObject>

The list of shapes and shape details (if applicable) that Oracle recommends that you use as an alternative to the current shape.

ResizeCompatibleShapes

Declaration
[JsonProperty(PropertyName = "resizeCompatibleShapes")]
public List<string> ResizeCompatibleShapes { get; set; }
Property Value
Type Description
List<string>

The list of compatible shapes that this shape can be changed to. For more information, see Changing the Shape of an Instance.

ShapeProp

Declaration
[Required(ErrorMessage = "ShapeProp is required.")]
[JsonProperty(PropertyName = "shape")]
public string ShapeProp { get; set; }
Property Value
Type Description
string

The name of the shape. You can enumerate all available shapes by calling {@link #listShapes(ListShapesRequest) listShapes}.

Remarks

Required

In this article
Back to top