1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Ocvp
  5. getSupportedHostShapes
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Ocvp.getSupportedHostShapes

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides the list of Supported Host Shapes in Oracle Cloud Infrastructure Oracle Cloud VMware Solution service.

Lists supported compute shapes for ESXi hosts.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSupportedHostShapes = oci.Ocvp.getSupportedHostShapes({
    compartmentId: compartmentId,
    initialHostShapeName: testShape.name,
    isSingleHostSddcSupported: supportedHostShapeIsSingleHostSddcSupported,
    name: supportedHostShapeName,
});
Copy
import pulumi
import pulumi_oci as oci

test_supported_host_shapes = oci.Ocvp.get_supported_host_shapes(compartment_id=compartment_id,
    initial_host_shape_name=test_shape["name"],
    is_single_host_sddc_supported=supported_host_shape_is_single_host_sddc_supported,
    name=supported_host_shape_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ocvp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ocvp.GetSupportedHostShapes(ctx, &ocvp.GetSupportedHostShapesArgs{
			CompartmentId:             compartmentId,
			InitialHostShapeName:      pulumi.StringRef(testShape.Name),
			IsSingleHostSddcSupported: pulumi.BoolRef(supportedHostShapeIsSingleHostSddcSupported),
			Name:                      pulumi.StringRef(supportedHostShapeName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testSupportedHostShapes = Oci.Ocvp.GetSupportedHostShapes.Invoke(new()
    {
        CompartmentId = compartmentId,
        InitialHostShapeName = testShape.Name,
        IsSingleHostSddcSupported = supportedHostShapeIsSingleHostSddcSupported,
        Name = supportedHostShapeName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Ocvp.OcvpFunctions;
import com.pulumi.oci.Ocvp.inputs.GetSupportedHostShapesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testSupportedHostShapes = OcvpFunctions.getSupportedHostShapes(GetSupportedHostShapesArgs.builder()
            .compartmentId(compartmentId)
            .initialHostShapeName(testShape.name())
            .isSingleHostSddcSupported(supportedHostShapeIsSingleHostSddcSupported)
            .name(supportedHostShapeName)
            .build());

    }
}
Copy
variables:
  testSupportedHostShapes:
    fn::invoke:
      function: oci:Ocvp:getSupportedHostShapes
      arguments:
        compartmentId: ${compartmentId}
        initialHostShapeName: ${testShape.name}
        isSingleHostSddcSupported: ${supportedHostShapeIsSingleHostSddcSupported}
        name: ${supportedHostShapeName}
Copy

Using getSupportedHostShapes

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 getSupportedHostShapes(args: GetSupportedHostShapesArgs, opts?: InvokeOptions): Promise<GetSupportedHostShapesResult>
function getSupportedHostShapesOutput(args: GetSupportedHostShapesOutputArgs, opts?: InvokeOptions): Output<GetSupportedHostShapesResult>
Copy
def get_supported_host_shapes(compartment_id: Optional[str] = None,
                              filters: Optional[Sequence[_ocvp.GetSupportedHostShapesFilter]] = None,
                              initial_host_shape_name: Optional[str] = None,
                              is_single_host_sddc_supported: Optional[bool] = None,
                              name: Optional[str] = None,
                              sddc_type: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSupportedHostShapesResult
def get_supported_host_shapes_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_ocvp.GetSupportedHostShapesFilterArgs]]]] = None,
                              initial_host_shape_name: Optional[pulumi.Input[str]] = None,
                              is_single_host_sddc_supported: Optional[pulumi.Input[bool]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              sddc_type: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSupportedHostShapesResult]
Copy
func GetSupportedHostShapes(ctx *Context, args *GetSupportedHostShapesArgs, opts ...InvokeOption) (*GetSupportedHostShapesResult, error)
func GetSupportedHostShapesOutput(ctx *Context, args *GetSupportedHostShapesOutputArgs, opts ...InvokeOption) GetSupportedHostShapesResultOutput
Copy

> Note: This function is named GetSupportedHostShapes in the Go SDK.

public static class GetSupportedHostShapes 
{
    public static Task<GetSupportedHostShapesResult> InvokeAsync(GetSupportedHostShapesArgs args, InvokeOptions? opts = null)
    public static Output<GetSupportedHostShapesResult> Invoke(GetSupportedHostShapesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSupportedHostShapesResult> getSupportedHostShapes(GetSupportedHostShapesArgs args, InvokeOptions options)
public static Output<GetSupportedHostShapesResult> getSupportedHostShapes(GetSupportedHostShapesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Ocvp/getSupportedHostShapes:getSupportedHostShapes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
Filters Changes to this property will trigger replacement. List<GetSupportedHostShapesFilter>
InitialHostShapeName string
A filter to return only the shapes compatible with the initial host shape of the Cluster.
IsSingleHostSddcSupported bool
A filter to return only resources that support single host SDDC.
Name string
A filter to return only resources that match the given name exactly.
SddcType string
(Optional) A filter to return only resources that match the given SDDC type exactly.

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

CompartmentId This property is required. string
The OCID of the compartment.
Filters Changes to this property will trigger replacement. []GetSupportedHostShapesFilter
InitialHostShapeName string
A filter to return only the shapes compatible with the initial host shape of the Cluster.
IsSingleHostSddcSupported bool
A filter to return only resources that support single host SDDC.
Name string
A filter to return only resources that match the given name exactly.
SddcType string
(Optional) A filter to return only resources that match the given SDDC type exactly.

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

compartmentId This property is required. String
The OCID of the compartment.
filters Changes to this property will trigger replacement. List<GetSupportedHostShapesFilter>
initialHostShapeName String
A filter to return only the shapes compatible with the initial host shape of the Cluster.
isSingleHostSddcSupported Boolean
A filter to return only resources that support single host SDDC.
name String
A filter to return only resources that match the given name exactly.
sddcType String
(Optional) A filter to return only resources that match the given SDDC type exactly.

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

compartmentId This property is required. string
The OCID of the compartment.
filters Changes to this property will trigger replacement. GetSupportedHostShapesFilter[]
initialHostShapeName string
A filter to return only the shapes compatible with the initial host shape of the Cluster.
isSingleHostSddcSupported boolean
A filter to return only resources that support single host SDDC.
name string
A filter to return only resources that match the given name exactly.
sddcType string
(Optional) A filter to return only resources that match the given SDDC type exactly.

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

compartment_id This property is required. str
The OCID of the compartment.
filters Changes to this property will trigger replacement. Sequence[ocvp.GetSupportedHostShapesFilter]
initial_host_shape_name str
A filter to return only the shapes compatible with the initial host shape of the Cluster.
is_single_host_sddc_supported bool
A filter to return only resources that support single host SDDC.
name str
A filter to return only resources that match the given name exactly.
sddc_type str
(Optional) A filter to return only resources that match the given SDDC type exactly.

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

compartmentId This property is required. String
The OCID of the compartment.
filters Changes to this property will trigger replacement. List<Property Map>
initialHostShapeName String
A filter to return only the shapes compatible with the initial host shape of the Cluster.
isSingleHostSddcSupported Boolean
A filter to return only resources that support single host SDDC.
name String
A filter to return only resources that match the given name exactly.
sddcType String
(Optional) A filter to return only resources that match the given SDDC type exactly.

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

getSupportedHostShapes Result

The following output properties are available:

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
Items List<GetSupportedHostShapesItem>
A list of the supported compute shapes for ESXi hosts.
Filters List<GetSupportedHostShapesFilter>
InitialHostShapeName string
IsSingleHostSddcSupported bool
Indicates whether the shape supports single host SDDCs.
Name string
The name of the supported compute shape.
SddcType string

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
Items []GetSupportedHostShapesItem
A list of the supported compute shapes for ESXi hosts.
Filters []GetSupportedHostShapesFilter
InitialHostShapeName string
IsSingleHostSddcSupported bool
Indicates whether the shape supports single host SDDCs.
Name string
The name of the supported compute shape.
SddcType string

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

compartmentId String
id String
The provider-assigned unique ID for this managed resource.
items List<GetSupportedHostShapesItem>
A list of the supported compute shapes for ESXi hosts.
filters List<GetSupportedHostShapesFilter>
initialHostShapeName String
isSingleHostSddcSupported Boolean
Indicates whether the shape supports single host SDDCs.
name String
The name of the supported compute shape.
sddcType String

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

compartmentId string
id string
The provider-assigned unique ID for this managed resource.
items GetSupportedHostShapesItem[]
A list of the supported compute shapes for ESXi hosts.
filters GetSupportedHostShapesFilter[]
initialHostShapeName string
isSingleHostSddcSupported boolean
Indicates whether the shape supports single host SDDCs.
name string
The name of the supported compute shape.
sddcType string

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

compartment_id str
id str
The provider-assigned unique ID for this managed resource.
items Sequence[ocvp.GetSupportedHostShapesItem]
A list of the supported compute shapes for ESXi hosts.
filters Sequence[ocvp.GetSupportedHostShapesFilter]
initial_host_shape_name str
is_single_host_sddc_supported bool
Indicates whether the shape supports single host SDDCs.
name str
The name of the supported compute shape.
sddc_type str

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

compartmentId String
id String
The provider-assigned unique ID for this managed resource.
items List<Property Map>
A list of the supported compute shapes for ESXi hosts.
filters List<Property Map>
initialHostShapeName String
isSingleHostSddcSupported Boolean
Indicates whether the shape supports single host SDDCs.
name String
The name of the supported compute shape.
sddcType String

Deprecated: The 'sddc_type' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

Supporting Types

GetSupportedHostShapesFilter

Name This property is required. string
A filter to return only resources that match the given name exactly.
Values This property is required. List<string>
Regex bool
Name This property is required. string
A filter to return only resources that match the given name exactly.
Values This property is required. []string
Regex bool
name This property is required. String
A filter to return only resources that match the given name exactly.
values This property is required. List<String>
regex Boolean
name This property is required. string
A filter to return only resources that match the given name exactly.
values This property is required. string[]
regex boolean
name This property is required. str
A filter to return only resources that match the given name exactly.
values This property is required. Sequence[str]
regex bool
name This property is required. String
A filter to return only resources that match the given name exactly.
values This property is required. List<String>
regex Boolean

GetSupportedHostShapesItem

DefaultOcpuCount This property is required. double
The default OCPU count of the shape.
Description This property is required. string
Description of the shape.
IsSingleHostSddcSupported This property is required. bool
A filter to return only resources that support single host SDDC.
IsSupportMonthlyCommitment This property is required. bool
Whether the shape supports "MONTH" Commitment.
IsSupportMonthlySku This property is required. bool
(Deprecated) Whether the shape supports "MONTH" SKU.

Deprecated: The 'is_support_monthly_sku' field has been deprecated. Please use 'is_support_monthly_commitment' instead.

IsSupportShieldedInstances This property is required. bool
Indicates whether the shape supports shielded instances.
Name This property is required. string
A filter to return only resources that match the given name exactly.
ShapeFamily This property is required. string
The family of the shape. ESXi hosts of one SDDC must have the same shape family.
SupportedOcpuCounts This property is required. List<double>
Support OCPU count of the shape.
SupportedOperations This property is required. List<string>
The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
SupportedSddcTypes This property is required. List<string>
(Deprecated) The supported SDDC types for the shape.

Deprecated: The 'supported_sddc_types' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

SupportedVmwareSoftwareVersions This property is required. List<string>
The VMware software versions supported by the shape.
DefaultOcpuCount This property is required. float64
The default OCPU count of the shape.
Description This property is required. string
Description of the shape.
IsSingleHostSddcSupported This property is required. bool
A filter to return only resources that support single host SDDC.
IsSupportMonthlyCommitment This property is required. bool
Whether the shape supports "MONTH" Commitment.
IsSupportMonthlySku This property is required. bool
(Deprecated) Whether the shape supports "MONTH" SKU.

Deprecated: The 'is_support_monthly_sku' field has been deprecated. Please use 'is_support_monthly_commitment' instead.

IsSupportShieldedInstances This property is required. bool
Indicates whether the shape supports shielded instances.
Name This property is required. string
A filter to return only resources that match the given name exactly.
ShapeFamily This property is required. string
The family of the shape. ESXi hosts of one SDDC must have the same shape family.
SupportedOcpuCounts This property is required. []float64
Support OCPU count of the shape.
SupportedOperations This property is required. []string
The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
SupportedSddcTypes This property is required. []string
(Deprecated) The supported SDDC types for the shape.

Deprecated: The 'supported_sddc_types' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

SupportedVmwareSoftwareVersions This property is required. []string
The VMware software versions supported by the shape.
defaultOcpuCount This property is required. Double
The default OCPU count of the shape.
description This property is required. String
Description of the shape.
isSingleHostSddcSupported This property is required. Boolean
A filter to return only resources that support single host SDDC.
isSupportMonthlyCommitment This property is required. Boolean
Whether the shape supports "MONTH" Commitment.
isSupportMonthlySku This property is required. Boolean
(Deprecated) Whether the shape supports "MONTH" SKU.

Deprecated: The 'is_support_monthly_sku' field has been deprecated. Please use 'is_support_monthly_commitment' instead.

isSupportShieldedInstances This property is required. Boolean
Indicates whether the shape supports shielded instances.
name This property is required. String
A filter to return only resources that match the given name exactly.
shapeFamily This property is required. String
The family of the shape. ESXi hosts of one SDDC must have the same shape family.
supportedOcpuCounts This property is required. List<Double>
Support OCPU count of the shape.
supportedOperations This property is required. List<String>
The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
supportedSddcTypes This property is required. List<String>
(Deprecated) The supported SDDC types for the shape.

Deprecated: The 'supported_sddc_types' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

supportedVmwareSoftwareVersions This property is required. List<String>
The VMware software versions supported by the shape.
defaultOcpuCount This property is required. number
The default OCPU count of the shape.
description This property is required. string
Description of the shape.
isSingleHostSddcSupported This property is required. boolean
A filter to return only resources that support single host SDDC.
isSupportMonthlyCommitment This property is required. boolean
Whether the shape supports "MONTH" Commitment.
isSupportMonthlySku This property is required. boolean
(Deprecated) Whether the shape supports "MONTH" SKU.

Deprecated: The 'is_support_monthly_sku' field has been deprecated. Please use 'is_support_monthly_commitment' instead.

isSupportShieldedInstances This property is required. boolean
Indicates whether the shape supports shielded instances.
name This property is required. string
A filter to return only resources that match the given name exactly.
shapeFamily This property is required. string
The family of the shape. ESXi hosts of one SDDC must have the same shape family.
supportedOcpuCounts This property is required. number[]
Support OCPU count of the shape.
supportedOperations This property is required. string[]
The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
supportedSddcTypes This property is required. string[]
(Deprecated) The supported SDDC types for the shape.

Deprecated: The 'supported_sddc_types' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

supportedVmwareSoftwareVersions This property is required. string[]
The VMware software versions supported by the shape.
default_ocpu_count This property is required. float
The default OCPU count of the shape.
description This property is required. str
Description of the shape.
is_single_host_sddc_supported This property is required. bool
A filter to return only resources that support single host SDDC.
is_support_monthly_commitment This property is required. bool
Whether the shape supports "MONTH" Commitment.
is_support_monthly_sku This property is required. bool
(Deprecated) Whether the shape supports "MONTH" SKU.

Deprecated: The 'is_support_monthly_sku' field has been deprecated. Please use 'is_support_monthly_commitment' instead.

is_support_shielded_instances This property is required. bool
Indicates whether the shape supports shielded instances.
name This property is required. str
A filter to return only resources that match the given name exactly.
shape_family This property is required. str
The family of the shape. ESXi hosts of one SDDC must have the same shape family.
supported_ocpu_counts This property is required. Sequence[float]
Support OCPU count of the shape.
supported_operations This property is required. Sequence[str]
The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
supported_sddc_types This property is required. Sequence[str]
(Deprecated) The supported SDDC types for the shape.

Deprecated: The 'supported_sddc_types' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

supported_vmware_software_versions This property is required. Sequence[str]
The VMware software versions supported by the shape.
defaultOcpuCount This property is required. Number
The default OCPU count of the shape.
description This property is required. String
Description of the shape.
isSingleHostSddcSupported This property is required. Boolean
A filter to return only resources that support single host SDDC.
isSupportMonthlyCommitment This property is required. Boolean
Whether the shape supports "MONTH" Commitment.
isSupportMonthlySku This property is required. Boolean
(Deprecated) Whether the shape supports "MONTH" SKU.

Deprecated: The 'is_support_monthly_sku' field has been deprecated. Please use 'is_support_monthly_commitment' instead.

isSupportShieldedInstances This property is required. Boolean
Indicates whether the shape supports shielded instances.
name This property is required. String
A filter to return only resources that match the given name exactly.
shapeFamily This property is required. String
The family of the shape. ESXi hosts of one SDDC must have the same shape family.
supportedOcpuCounts This property is required. List<Number>
Support OCPU count of the shape.
supportedOperations This property is required. List<String>
The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
supportedSddcTypes This property is required. List<String>
(Deprecated) The supported SDDC types for the shape.

Deprecated: The 'supported_sddc_types' field has been deprecated. Please use 'is_single_host_sddc_supported' instead.

supportedVmwareSoftwareVersions This property is required. List<String>
The VMware software versions supported by the shape.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi