Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Core.getShape
Using getShape
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getShape(args: GetShapeArgs, opts?: InvokeOptions): Promise<GetShapeResult>
function getShapeOutput(args: GetShapeOutputArgs, opts?: InvokeOptions): Output<GetShapeResult>def get_shape(availability_domain: Optional[str] = None,
              compartment_id: Optional[str] = None,
              filters: Optional[Sequence[GetShapeFilter]] = None,
              image_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetShapeResult
def get_shape_output(availability_domain: Optional[pulumi.Input[str]] = None,
              compartment_id: Optional[pulumi.Input[str]] = None,
              filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetShapeFilterArgs]]]] = None,
              image_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetShapeResult]func GetShape(ctx *Context, args *GetShapeArgs, opts ...InvokeOption) (*GetShapeResult, error)
func GetShapeOutput(ctx *Context, args *GetShapeOutputArgs, opts ...InvokeOption) GetShapeResultOutput> Note: This function is named GetShape in the Go SDK.
public static class GetShape 
{
    public static Task<GetShapeResult> InvokeAsync(GetShapeArgs args, InvokeOptions? opts = null)
    public static Output<GetShapeResult> Invoke(GetShapeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetShapeResult> getShape(GetShapeArgs args, InvokeOptions options)
public static Output<GetShapeResult> getShape(GetShapeArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getShape:getShape
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- AvailabilityDomain string
- Filters
List<GetShape Filter> 
- ImageId string
- CompartmentId string
- AvailabilityDomain string
- Filters
[]GetShape Filter 
- ImageId string
- compartmentId String
- availabilityDomain String
- filters
List<GetShape Filter> 
- imageId String
- compartmentId string
- availabilityDomain string
- filters
GetShape Filter[] 
- imageId string
- compartmentId String
- availabilityDomain String
- filters List<Property Map>
- imageId String
getShape Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Shapes
List<GetShape Shape> 
- AvailabilityDomain string
- Filters
List<GetShape Filter> 
- ImageId string
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Shapes
[]GetShape Shape 
- AvailabilityDomain string
- Filters
[]GetShape Filter 
- ImageId string
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- shapes
List<GetShape Shape> 
- availabilityDomain String
- filters
List<GetShape Filter> 
- imageId String
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- shapes
GetShape Shape[] 
- availabilityDomain string
- filters
GetShape Filter[] 
- imageId string
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- shapes
Sequence[GetShape Shape] 
- availability_domain str
- filters
Sequence[GetShape Filter] 
- image_id str
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- shapes List<Property Map>
- availabilityDomain String
- filters List<Property Map>
- imageId String
Supporting Types
GetShapeFilter  
GetShapeShape  
- BaselineOcpu List<string>Utilizations 
- BillingType string
- GpuDescription string
- Gpus int
- IsBilled boolFor Stopped Instance 
- IsFlexible bool
- IsLive boolMigration Supported 
- IsSubcore bool
- LocalDisk stringDescription 
- LocalDisks int
- LocalDisks doubleTotal Size In Gbs 
- MaxVnic List<GetAttachment Options Shape Shape Max Vnic Attachment Option> 
- MaxVnic intAttachments 
- MemoryIn doubleGbs 
- MemoryOptions List<GetShape Shape Memory Option> 
- MinTotal doubleBaseline Ocpus Required 
- Name string
- NetworkPorts int
- NetworkingBandwidth doubleIn Gbps 
- NetworkingBandwidth List<GetOptions Shape Shape Networking Bandwidth Option> 
- OcpuOptions List<GetShape Shape Ocpu Option> 
- Ocpus double
- PlatformConfig List<GetOptions Shape Shape Platform Config Option> 
- ProcessorDescription string
- QuotaNames List<string>
- RdmaBandwidth intIn Gbps 
- RdmaPorts int
- RecommendedAlternatives List<GetShape Shape Recommended Alternative> 
- ResizeCompatible List<string>Shapes 
- BaselineOcpu []stringUtilizations 
- BillingType string
- GpuDescription string
- Gpus int
- IsBilled boolFor Stopped Instance 
- IsFlexible bool
- IsLive boolMigration Supported 
- IsSubcore bool
- LocalDisk stringDescription 
- LocalDisks int
- LocalDisks float64Total Size In Gbs 
- MaxVnic []GetAttachment Options Shape Shape Max Vnic Attachment Option 
- MaxVnic intAttachments 
- MemoryIn float64Gbs 
- MemoryOptions []GetShape Shape Memory Option 
- MinTotal float64Baseline Ocpus Required 
- Name string
- NetworkPorts int
- NetworkingBandwidth float64In Gbps 
- NetworkingBandwidth []GetOptions Shape Shape Networking Bandwidth Option 
- OcpuOptions []GetShape Shape Ocpu Option 
- Ocpus float64
- PlatformConfig []GetOptions Shape Shape Platform Config Option 
- ProcessorDescription string
- QuotaNames []string
- RdmaBandwidth intIn Gbps 
- RdmaPorts int
- RecommendedAlternatives []GetShape Shape Recommended Alternative 
- ResizeCompatible []stringShapes 
- baselineOcpu List<String>Utilizations 
- billingType String
- gpuDescription String
- gpus Integer
- isBilled BooleanFor Stopped Instance 
- isFlexible Boolean
- isLive BooleanMigration Supported 
- isSubcore Boolean
- localDisk StringDescription 
- localDisks Integer
- localDisks DoubleTotal Size In Gbs 
- maxVnic List<GetAttachment Options Shape Shape Max Vnic Attachment Option> 
- maxVnic IntegerAttachments 
- memoryIn DoubleGbs 
- memoryOptions List<GetShape Shape Memory Option> 
- minTotal DoubleBaseline Ocpus Required 
- name String
- networkPorts Integer
- networkingBandwidth DoubleIn Gbps 
- networkingBandwidth List<GetOptions Shape Shape Networking Bandwidth Option> 
- ocpuOptions List<GetShape Shape Ocpu Option> 
- ocpus Double
- platformConfig List<GetOptions Shape Shape Platform Config Option> 
- processorDescription String
- quotaNames List<String>
- rdmaBandwidth IntegerIn Gbps 
- rdmaPorts Integer
- recommendedAlternatives List<GetShape Shape Recommended Alternative> 
- resizeCompatible List<String>Shapes 
- baselineOcpu string[]Utilizations 
- billingType string
- gpuDescription string
- gpus number
- isBilled booleanFor Stopped Instance 
- isFlexible boolean
- isLive booleanMigration Supported 
- isSubcore boolean
- localDisk stringDescription 
- localDisks number
- localDisks numberTotal Size In Gbs 
- maxVnic GetAttachment Options Shape Shape Max Vnic Attachment Option[] 
- maxVnic numberAttachments 
- memoryIn numberGbs 
- memoryOptions GetShape Shape Memory Option[] 
- minTotal numberBaseline Ocpus Required 
- name string
- networkPorts number
- networkingBandwidth numberIn Gbps 
- networkingBandwidth GetOptions Shape Shape Networking Bandwidth Option[] 
- ocpuOptions GetShape Shape Ocpu Option[] 
- ocpus number
- platformConfig GetOptions Shape Shape Platform Config Option[] 
- processorDescription string
- quotaNames string[]
- rdmaBandwidth numberIn Gbps 
- rdmaPorts number
- recommendedAlternatives GetShape Shape Recommended Alternative[] 
- resizeCompatible string[]Shapes 
- baseline_ocpu_ Sequence[str]utilizations 
- billing_type str
- gpu_description str
- gpus int
- is_billed_ boolfor_ stopped_ instance 
- is_flexible bool
- is_live_ boolmigration_ supported 
- is_subcore bool
- local_disk_ strdescription 
- local_disks int
- local_disks_ floattotal_ size_ in_ gbs 
- max_vnic_ Sequence[Getattachment_ options Shape Shape Max Vnic Attachment Option] 
- max_vnic_ intattachments 
- memory_in_ floatgbs 
- memory_options Sequence[GetShape Shape Memory Option] 
- min_total_ floatbaseline_ ocpus_ required 
- name str
- network_ports int
- networking_bandwidth_ floatin_ gbps 
- networking_bandwidth_ Sequence[Getoptions Shape Shape Networking Bandwidth Option] 
- ocpu_options Sequence[GetShape Shape Ocpu Option] 
- ocpus float
- platform_config_ Sequence[Getoptions Shape Shape Platform Config Option] 
- processor_description str
- quota_names Sequence[str]
- rdma_bandwidth_ intin_ gbps 
- rdma_ports int
- recommended_alternatives Sequence[GetShape Shape Recommended Alternative] 
- resize_compatible_ Sequence[str]shapes 
- baselineOcpu List<String>Utilizations 
- billingType String
- gpuDescription String
- gpus Number
- isBilled BooleanFor Stopped Instance 
- isFlexible Boolean
- isLive BooleanMigration Supported 
- isSubcore Boolean
- localDisk StringDescription 
- localDisks Number
- localDisks NumberTotal Size In Gbs 
- maxVnic List<Property Map>Attachment Options 
- maxVnic NumberAttachments 
- memoryIn NumberGbs 
- memoryOptions List<Property Map>
- minTotal NumberBaseline Ocpus Required 
- name String
- networkPorts Number
- networkingBandwidth NumberIn Gbps 
- networkingBandwidth List<Property Map>Options 
- ocpuOptions List<Property Map>
- ocpus Number
- platformConfig List<Property Map>Options 
- processorDescription String
- quotaNames List<String>
- rdmaBandwidth NumberIn Gbps 
- rdmaPorts Number
- recommendedAlternatives List<Property Map>
- resizeCompatible List<String>Shapes 
GetShapeShapeMaxVnicAttachmentOption      
- DefaultPer doubleOcpu 
- Max double
- Min int
- DefaultPer float64Ocpu 
- Max float64
- Min int
- defaultPer DoubleOcpu 
- max Double
- min Integer
- defaultPer numberOcpu 
- max number
- min number
- default_per_ floatocpu 
- max float
- min int
- defaultPer NumberOcpu 
- max Number
- min Number
GetShapeShapeMemoryOption    
- DefaultPer doubleOcpu In Gbs 
- MaxIn doubleGbs 
- MaxPer doubleNuma Node In Gbs 
- MaxPer doubleOcpu In Gbs 
- MinIn doubleGbs 
- MinPer doubleOcpu In Gbs 
- DefaultPer float64Ocpu In Gbs 
- MaxIn float64Gbs 
- MaxPer float64Numa Node In Gbs 
- MaxPer float64Ocpu In Gbs 
- MinIn float64Gbs 
- MinPer float64Ocpu In Gbs 
- defaultPer DoubleOcpu In Gbs 
- maxIn DoubleGbs 
- maxPer DoubleNuma Node In Gbs 
- maxPer DoubleOcpu In Gbs 
- minIn DoubleGbs 
- minPer DoubleOcpu In Gbs 
- defaultPer numberOcpu In Gbs 
- maxIn numberGbs 
- maxPer numberNuma Node In Gbs 
- maxPer numberOcpu In Gbs 
- minIn numberGbs 
- minPer numberOcpu In Gbs 
- default_per_ floatocpu_ in_ gbs 
- max_in_ floatgbs 
- max_per_ floatnuma_ node_ in_ gbs 
- max_per_ floatocpu_ in_ gbs 
- min_in_ floatgbs 
- min_per_ floatocpu_ in_ gbs 
- defaultPer NumberOcpu In Gbs 
- maxIn NumberGbs 
- maxPer NumberNuma Node In Gbs 
- maxPer NumberOcpu In Gbs 
- minIn NumberGbs 
- minPer NumberOcpu In Gbs 
GetShapeShapeNetworkingBandwidthOption     
- DefaultPer doubleOcpu In Gbps 
- MaxIn doubleGbps 
- MinIn doubleGbps 
- DefaultPer float64Ocpu In Gbps 
- MaxIn float64Gbps 
- MinIn float64Gbps 
- defaultPer DoubleOcpu In Gbps 
- maxIn DoubleGbps 
- minIn DoubleGbps 
- defaultPer numberOcpu In Gbps 
- maxIn numberGbps 
- minIn numberGbps 
- default_per_ floatocpu_ in_ gbps 
- max_in_ floatgbps 
- min_in_ floatgbps 
- defaultPer NumberOcpu In Gbps 
- maxIn NumberGbps 
- minIn NumberGbps 
GetShapeShapeOcpuOption    
- Max double
- MaxPer doubleNuma Node 
- Min double
- Max float64
- MaxPer float64Numa Node 
- Min float64
- max Double
- maxPer DoubleNuma Node 
- min Double
- max number
- maxPer numberNuma Node 
- min number
- max float
- max_per_ floatnuma_ node 
- min float
- max Number
- maxPer NumberNuma Node 
- min Number
GetShapeShapePlatformConfigOption     
- AccessControl List<GetService Options Shape Shape Platform Config Option Access Control Service Option> 
- InputOutput List<GetMemory Management Unit Options Shape Shape Platform Config Option Input Output Memory Management Unit Option> 
- MeasuredBoot List<GetOptions Shape Shape Platform Config Option Measured Boot Option> 
- MemoryEncryption List<GetOptions Shape Shape Platform Config Option Memory Encryption Option> 
- NumaNodes List<GetPer Socket Platform Options Shape Shape Platform Config Option Numa Nodes Per Socket Platform Option> 
- PercentageOf List<GetCores Enabled Options Shape Shape Platform Config Option Percentage Of Cores Enabled Option> 
- SecureBoot List<GetOptions Shape Shape Platform Config Option Secure Boot Option> 
- SymmetricMulti List<GetThreading Options Shape Shape Platform Config Option Symmetric Multi Threading Option> 
- TrustedPlatform List<GetModule Options Shape Shape Platform Config Option Trusted Platform Module Option> 
- Type string
- VirtualInstructions List<GetOptions Shape Shape Platform Config Option Virtual Instructions Option> 
- AccessControl []GetService Options Shape Shape Platform Config Option Access Control Service Option 
- InputOutput []GetMemory Management Unit Options Shape Shape Platform Config Option Input Output Memory Management Unit Option 
- MeasuredBoot []GetOptions Shape Shape Platform Config Option Measured Boot Option 
- MemoryEncryption []GetOptions Shape Shape Platform Config Option Memory Encryption Option 
- NumaNodes []GetPer Socket Platform Options Shape Shape Platform Config Option Numa Nodes Per Socket Platform Option 
- PercentageOf []GetCores Enabled Options Shape Shape Platform Config Option Percentage Of Cores Enabled Option 
- SecureBoot []GetOptions Shape Shape Platform Config Option Secure Boot Option 
- SymmetricMulti []GetThreading Options Shape Shape Platform Config Option Symmetric Multi Threading Option 
- TrustedPlatform []GetModule Options Shape Shape Platform Config Option Trusted Platform Module Option 
- Type string
- VirtualInstructions []GetOptions Shape Shape Platform Config Option Virtual Instructions Option 
- accessControl List<GetService Options Shape Shape Platform Config Option Access Control Service Option> 
- inputOutput List<GetMemory Management Unit Options Shape Shape Platform Config Option Input Output Memory Management Unit Option> 
- measuredBoot List<GetOptions Shape Shape Platform Config Option Measured Boot Option> 
- memoryEncryption List<GetOptions Shape Shape Platform Config Option Memory Encryption Option> 
- numaNodes List<GetPer Socket Platform Options Shape Shape Platform Config Option Numa Nodes Per Socket Platform Option> 
- percentageOf List<GetCores Enabled Options Shape Shape Platform Config Option Percentage Ofs Enabled Option> 
- secureBoot List<GetOptions Shape Shape Platform Config Option Secure Boot Option> 
- symmetricMulti List<GetThreading Options Shape Shape Platform Config Option Symmetric Multi Threading Option> 
- trustedPlatform List<GetModule Options Shape Shape Platform Config Option Trusted Platform Module Option> 
- type String
- virtualInstructions List<GetOptions Shape Shape Platform Config Option Virtual Instructions Option> 
- accessControl GetService Options Shape Shape Platform Config Option Access Control Service Option[] 
- inputOutput GetMemory Management Unit Options Shape Shape Platform Config Option Input Output Memory Management Unit Option[] 
- measuredBoot GetOptions Shape Shape Platform Config Option Measured Boot Option[] 
- memoryEncryption GetOptions Shape Shape Platform Config Option Memory Encryption Option[] 
- numaNodes GetPer Socket Platform Options Shape Shape Platform Config Option Numa Nodes Per Socket Platform Option[] 
- percentageOf GetCores Enabled Options Shape Shape Platform Config Option Percentage Of Cores Enabled Option[] 
- secureBoot GetOptions Shape Shape Platform Config Option Secure Boot Option[] 
- symmetricMulti GetThreading Options Shape Shape Platform Config Option Symmetric Multi Threading Option[] 
- trustedPlatform GetModule Options Shape Shape Platform Config Option Trusted Platform Module Option[] 
- type string
- virtualInstructions GetOptions Shape Shape Platform Config Option Virtual Instructions Option[] 
- access_control_ Sequence[Getservice_ options Shape Shape Platform Config Option Access Control Service Option] 
- input_output_ Sequence[Getmemory_ management_ unit_ options Shape Shape Platform Config Option Input Output Memory Management Unit Option] 
- measured_boot_ Sequence[Getoptions Shape Shape Platform Config Option Measured Boot Option] 
- memory_encryption_ Sequence[Getoptions Shape Shape Platform Config Option Memory Encryption Option] 
- numa_nodes_ Sequence[Getper_ socket_ platform_ options Shape Shape Platform Config Option Numa Nodes Per Socket Platform Option] 
- percentage_of_ Sequence[Getcores_ enabled_ options Shape Shape Platform Config Option Percentage Of Cores Enabled Option] 
- secure_boot_ Sequence[Getoptions Shape Shape Platform Config Option Secure Boot Option] 
- symmetric_multi_ Sequence[Getthreading_ options Shape Shape Platform Config Option Symmetric Multi Threading Option] 
- trusted_platform_ Sequence[Getmodule_ options Shape Shape Platform Config Option Trusted Platform Module Option] 
- type str
- virtual_instructions_ Sequence[Getoptions Shape Shape Platform Config Option Virtual Instructions Option] 
- accessControl List<Property Map>Service Options 
- inputOutput List<Property Map>Memory Management Unit Options 
- measuredBoot List<Property Map>Options 
- memoryEncryption List<Property Map>Options 
- numaNodes List<Property Map>Per Socket Platform Options 
- percentageOf List<Property Map>Cores Enabled Options 
- secureBoot List<Property Map>Options 
- symmetricMulti List<Property Map>Threading Options 
- trustedPlatform List<Property Map>Module Options 
- type String
- virtualInstructions List<Property Map>Options 
GetShapeShapePlatformConfigOptionAccessControlServiceOption         
- AllowedValues List<bool>
- IsDefault boolEnabled 
- AllowedValues []bool
- IsDefault boolEnabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
- allowedValues boolean[]
- isDefault booleanEnabled 
- allowed_values Sequence[bool]
- is_default_ boolenabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
GetShapeShapePlatformConfigOptionInputOutputMemoryManagementUnitOption           
- AllowedValues List<bool>
- IsDefault boolEnabled 
- AllowedValues []bool
- IsDefault boolEnabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
- allowedValues boolean[]
- isDefault booleanEnabled 
- allowed_values Sequence[bool]
- is_default_ boolenabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
GetShapeShapePlatformConfigOptionMeasuredBootOption        
- AllowedValues List<bool>
- IsDefault boolEnabled 
- AllowedValues []bool
- IsDefault boolEnabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
- allowedValues boolean[]
- isDefault booleanEnabled 
- allowed_values Sequence[bool]
- is_default_ boolenabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
GetShapeShapePlatformConfigOptionMemoryEncryptionOption        
- AllowedValues List<bool>
- IsDefault boolEnabled 
- AllowedValues []bool
- IsDefault boolEnabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
- allowedValues boolean[]
- isDefault booleanEnabled 
- allowed_values Sequence[bool]
- is_default_ boolenabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
GetShapeShapePlatformConfigOptionNumaNodesPerSocketPlatformOption           
- AllowedValues List<string>
- DefaultValue string
- AllowedValues []string
- DefaultValue string
- allowedValues List<String>
- defaultValue String
- allowedValues string[]
- defaultValue string
- allowed_values Sequence[str]
- default_value str
- allowedValues List<String>
- defaultValue String
GetShapeShapePlatformConfigOptionPercentageOfCoresEnabledOption          
- DefaultValue int
- Max int
- Min int
- DefaultValue int
- Max int
- Min int
- defaultValue Integer
- max Integer
- min Integer
- defaultValue number
- max number
- min number
- default_value int
- max int
- min int
- defaultValue Number
- max Number
- min Number
GetShapeShapePlatformConfigOptionSecureBootOption        
- AllowedValues List<bool>
- IsDefault boolEnabled 
- AllowedValues []bool
- IsDefault boolEnabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
- allowedValues boolean[]
- isDefault booleanEnabled 
- allowed_values Sequence[bool]
- is_default_ boolenabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
GetShapeShapePlatformConfigOptionSymmetricMultiThreadingOption         
- AllowedValues List<bool>
- IsDefault boolEnabled 
- AllowedValues []bool
- IsDefault boolEnabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
- allowedValues boolean[]
- isDefault booleanEnabled 
- allowed_values Sequence[bool]
- is_default_ boolenabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
GetShapeShapePlatformConfigOptionTrustedPlatformModuleOption         
- AllowedValues List<bool>
- IsDefault boolEnabled 
- AllowedValues []bool
- IsDefault boolEnabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
- allowedValues boolean[]
- isDefault booleanEnabled 
- allowed_values Sequence[bool]
- is_default_ boolenabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
GetShapeShapePlatformConfigOptionVirtualInstructionsOption        
- AllowedValues List<bool>
- IsDefault boolEnabled 
- AllowedValues []bool
- IsDefault boolEnabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
- allowedValues boolean[]
- isDefault booleanEnabled 
- allowed_values Sequence[bool]
- is_default_ boolenabled 
- allowedValues List<Boolean>
- isDefault BooleanEnabled 
GetShapeShapeRecommendedAlternative    
- ShapeName string
- ShapeName string
- shapeName String
- shapeName string
- shape_name str
- shapeName String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
