Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Ocvp.getSupportedHostShapes
Explore with Pulumi AI
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,
});
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)
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
})
}
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,
});
});
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());
}
}
variables:
testSupportedHostShapes:
fn::invoke:
Function: oci:Ocvp:getSupportedHostShapes
Arguments:
compartmentId: ${compartmentId}
initialHostShapeName: ${testShape.name}
isSingleHostSddcSupported: ${supportedHostShapeIsSingleHostSddcSupported}
name: ${supportedHostShapeName}
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>
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]
func GetSupportedHostShapes(ctx *Context, args *GetSupportedHostShapesArgs, opts ...InvokeOption) (*GetSupportedHostShapesResult, error)
func GetSupportedHostShapesOutput(ctx *Context, args *GetSupportedHostShapesOutputArgs, opts ...InvokeOption) GetSupportedHostShapesResultOutput
> 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)
}
public static CompletableFuture<GetSupportedHostShapesResult> getSupportedHostShapes(GetSupportedHostShapesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Ocvp/getSupportedHostShapes:getSupportedHostShapes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
Supported Host Shapes Filter> - Initial
Host stringShape Name - A filter to return only the shapes compatible with the initial host shape of the Cluster.
- Is
Single boolHost Sddc Supported - 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.
- Sddc
Type string - (Optional) A filter to return only resources that match the given SDDC type exactly.
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
Supported Host Shapes Filter - Initial
Host stringShape Name - A filter to return only the shapes compatible with the initial host shape of the Cluster.
- Is
Single boolHost Sddc Supported - 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.
- Sddc
Type string - (Optional) A filter to return only resources that match the given SDDC type exactly.
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
Supported Host Shapes Filter> - initial
Host StringShape Name - A filter to return only the shapes compatible with the initial host shape of the Cluster.
- is
Single BooleanHost Sddc Supported - 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.
- sddc
Type String - (Optional) A filter to return only resources that match the given SDDC type exactly.
- compartment
Id string - The OCID of the compartment.
- filters
Get
Supported Host Shapes Filter[] - initial
Host stringShape Name - A filter to return only the shapes compatible with the initial host shape of the Cluster.
- is
Single booleanHost Sddc Supported - 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.
- sddc
Type string - (Optional) A filter to return only resources that match the given SDDC type exactly.
- compartment_
id str - The OCID of the compartment.
- filters
Sequence[ocvp.
Get Supported Host Shapes Filter] - initial_
host_ strshape_ name - A filter to return only the shapes compatible with the initial host shape of the Cluster.
- is_
single_ boolhost_ sddc_ supported - 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.
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
- initial
Host StringShape Name - A filter to return only the shapes compatible with the initial host shape of the Cluster.
- is
Single BooleanHost Sddc Supported - 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.
- sddc
Type String - (Optional) A filter to return only resources that match the given SDDC type exactly.
getSupportedHostShapes Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Supported Host Shapes Item> - A list of the supported compute shapes for ESXi hosts.
- Filters
List<Get
Supported Host Shapes Filter> - Initial
Host stringShape Name - Is
Single boolHost Sddc Supported - Indicates whether the shape supports single host SDDCs.
- Name string
- The name of the supported compute shape.
- Sddc
Type string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Supported Host Shapes Item - A list of the supported compute shapes for ESXi hosts.
- Filters
[]Get
Supported Host Shapes Filter - Initial
Host stringShape Name - Is
Single boolHost Sddc Supported - Indicates whether the shape supports single host SDDCs.
- Name string
- The name of the supported compute shape.
- Sddc
Type string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Supported Host Shapes Item> - A list of the supported compute shapes for ESXi hosts.
- filters
List<Get
Supported Host Shapes Filter> - initial
Host StringShape Name - is
Single BooleanHost Sddc Supported - Indicates whether the shape supports single host SDDCs.
- name String
- The name of the supported compute shape.
- sddc
Type String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Supported Host Shapes Item[] - A list of the supported compute shapes for ESXi hosts.
- filters
Get
Supported Host Shapes Filter[] - initial
Host stringShape Name - is
Single booleanHost Sddc Supported - Indicates whether the shape supports single host SDDCs.
- name string
- The name of the supported compute shape.
- sddc
Type string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[ocvp.
Get Supported Host Shapes Item] - A list of the supported compute shapes for ESXi hosts.
- filters
Sequence[ocvp.
Get Supported Host Shapes Filter] - initial_
host_ strshape_ name - is_
single_ boolhost_ sddc_ supported - Indicates whether the shape supports single host SDDCs.
- name str
- The name of the supported compute shape.
- sddc_
type str
- compartment
Id 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>
- initial
Host StringShape Name - is
Single BooleanHost Sddc Supported - Indicates whether the shape supports single host SDDCs.
- name String
- The name of the supported compute shape.
- sddc
Type String
Supporting Types
GetSupportedHostShapesFilter
GetSupportedHostShapesItem
- Default
Ocpu doubleCount - The default OCPU count of the shape.
- Description string
- Description of the shape.
- Is
Single boolHost Sddc Supported - A filter to return only resources that support single host SDDC.
- Is
Support boolMonthly Commitment - Whether the shape supports "MONTH" Commitment.
- Is
Support boolMonthly Sku - (Deprecated) Whether the shape supports "MONTH" SKU.
- Is
Support boolShielded Instances - Indicates whether the shape supports shielded instances.
- Name string
- A filter to return only resources that match the given name exactly.
- Shape
Family string - The family of the shape. ESXi hosts of one SDDC must have the same shape family.
- Supported
Ocpu List<double>Counts - Support OCPU count of the shape.
- Supported
Operations List<string> - The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
- Supported
Sddc List<string>Types - (Deprecated) The supported SDDC types for the shape.
- Supported
Vmware List<string>Software Versions - The VMware software versions supported by the shape.
- Default
Ocpu float64Count - The default OCPU count of the shape.
- Description string
- Description of the shape.
- Is
Single boolHost Sddc Supported - A filter to return only resources that support single host SDDC.
- Is
Support boolMonthly Commitment - Whether the shape supports "MONTH" Commitment.
- Is
Support boolMonthly Sku - (Deprecated) Whether the shape supports "MONTH" SKU.
- Is
Support boolShielded Instances - Indicates whether the shape supports shielded instances.
- Name string
- A filter to return only resources that match the given name exactly.
- Shape
Family string - The family of the shape. ESXi hosts of one SDDC must have the same shape family.
- Supported
Ocpu []float64Counts - Support OCPU count of the shape.
- Supported
Operations []string - The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
- Supported
Sddc []stringTypes - (Deprecated) The supported SDDC types for the shape.
- Supported
Vmware []stringSoftware Versions - The VMware software versions supported by the shape.
- default
Ocpu DoubleCount - The default OCPU count of the shape.
- description String
- Description of the shape.
- is
Single BooleanHost Sddc Supported - A filter to return only resources that support single host SDDC.
- is
Support BooleanMonthly Commitment - Whether the shape supports "MONTH" Commitment.
- is
Support BooleanMonthly Sku - (Deprecated) Whether the shape supports "MONTH" SKU.
- is
Support BooleanShielded Instances - Indicates whether the shape supports shielded instances.
- name String
- A filter to return only resources that match the given name exactly.
- shape
Family String - The family of the shape. ESXi hosts of one SDDC must have the same shape family.
- supported
Ocpu List<Double>Counts - Support OCPU count of the shape.
- supported
Operations List<String> - The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
- supported
Sddc List<String>Types - (Deprecated) The supported SDDC types for the shape.
- supported
Vmware List<String>Software Versions - The VMware software versions supported by the shape.
- default
Ocpu numberCount - The default OCPU count of the shape.
- description string
- Description of the shape.
- is
Single booleanHost Sddc Supported - A filter to return only resources that support single host SDDC.
- is
Support booleanMonthly Commitment - Whether the shape supports "MONTH" Commitment.
- is
Support booleanMonthly Sku - (Deprecated) Whether the shape supports "MONTH" SKU.
- is
Support booleanShielded Instances - Indicates whether the shape supports shielded instances.
- name string
- A filter to return only resources that match the given name exactly.
- shape
Family string - The family of the shape. ESXi hosts of one SDDC must have the same shape family.
- supported
Ocpu number[]Counts - Support OCPU count of the shape.
- supported
Operations string[] - The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
- supported
Sddc string[]Types - (Deprecated) The supported SDDC types for the shape.
- supported
Vmware string[]Software Versions - The VMware software versions supported by the shape.
- default_
ocpu_ floatcount - The default OCPU count of the shape.
- description str
- Description of the shape.
- is_
single_ boolhost_ sddc_ supported - A filter to return only resources that support single host SDDC.
- is_
support_ boolmonthly_ commitment - Whether the shape supports "MONTH" Commitment.
- is_
support_ boolmonthly_ sku - (Deprecated) Whether the shape supports "MONTH" SKU.
- is_
support_ boolshielded_ instances - Indicates whether the shape supports shielded instances.
- name str
- A filter to return only resources that match the given name exactly.
- shape_
family str - The family of the shape. ESXi hosts of one SDDC must have the same shape family.
- supported_
ocpu_ Sequence[float]counts - Support OCPU count of the shape.
- supported_
operations Sequence[str] - The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
- supported_
sddc_ Sequence[str]types - (Deprecated) The supported SDDC types for the shape.
- supported_
vmware_ Sequence[str]software_ versions - The VMware software versions supported by the shape.
- default
Ocpu NumberCount - The default OCPU count of the shape.
- description String
- Description of the shape.
- is
Single BooleanHost Sddc Supported - A filter to return only resources that support single host SDDC.
- is
Support BooleanMonthly Commitment - Whether the shape supports "MONTH" Commitment.
- is
Support BooleanMonthly Sku - (Deprecated) Whether the shape supports "MONTH" SKU.
- is
Support BooleanShielded Instances - Indicates whether the shape supports shielded instances.
- name String
- A filter to return only resources that match the given name exactly.
- shape
Family String - The family of the shape. ESXi hosts of one SDDC must have the same shape family.
- supported
Ocpu List<Number>Counts - Support OCPU count of the shape.
- supported
Operations List<String> - The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.
- supported
Sddc List<String>Types - (Deprecated) The supported SDDC types for the shape.
- supported
Vmware List<String>Software Versions - 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.