oci.Core.getDedicatedVmHostInstanceShapes
This data source provides the list of Dedicated Vm Host Instance Shapes in Oracle Cloud Infrastructure Core service.
Lists the shapes that can be used to launch a virtual machine instance on a dedicated virtual machine host within the specified compartment. You can filter the list by compatibility with a specific dedicated virtual machine host shape.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDedicatedVmHostInstanceShapes = oci.Core.getDedicatedVmHostInstanceShapes({
compartmentId: compartmentId,
availabilityDomain: dedicatedVmHostInstanceShapeAvailabilityDomain,
dedicatedVmHostShape: dedicatedVmHostInstanceShapeDedicatedVmHostShape,
});
import pulumi
import pulumi_oci as oci
test_dedicated_vm_host_instance_shapes = oci.Core.get_dedicated_vm_host_instance_shapes(compartment_id=compartment_id,
availability_domain=dedicated_vm_host_instance_shape_availability_domain,
dedicated_vm_host_shape=dedicated_vm_host_instance_shape_dedicated_vm_host_shape)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := core.GetDedicatedVmHostInstanceShapes(ctx, &core.GetDedicatedVmHostInstanceShapesArgs{
CompartmentId: compartmentId,
AvailabilityDomain: pulumi.StringRef(dedicatedVmHostInstanceShapeAvailabilityDomain),
DedicatedVmHostShape: pulumi.StringRef(dedicatedVmHostInstanceShapeDedicatedVmHostShape),
}, 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 testDedicatedVmHostInstanceShapes = Oci.Core.GetDedicatedVmHostInstanceShapes.Invoke(new()
{
CompartmentId = compartmentId,
AvailabilityDomain = dedicatedVmHostInstanceShapeAvailabilityDomain,
DedicatedVmHostShape = dedicatedVmHostInstanceShapeDedicatedVmHostShape,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetDedicatedVmHostInstanceShapesArgs;
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 testDedicatedVmHostInstanceShapes = CoreFunctions.getDedicatedVmHostInstanceShapes(GetDedicatedVmHostInstanceShapesArgs.builder()
.compartmentId(compartmentId)
.availabilityDomain(dedicatedVmHostInstanceShapeAvailabilityDomain)
.dedicatedVmHostShape(dedicatedVmHostInstanceShapeDedicatedVmHostShape)
.build());
}
}
variables:
testDedicatedVmHostInstanceShapes:
fn::invoke:
function: oci:Core:getDedicatedVmHostInstanceShapes
arguments:
compartmentId: ${compartmentId}
availabilityDomain: ${dedicatedVmHostInstanceShapeAvailabilityDomain}
dedicatedVmHostShape: ${dedicatedVmHostInstanceShapeDedicatedVmHostShape}
Using getDedicatedVmHostInstanceShapes
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 getDedicatedVmHostInstanceShapes(args: GetDedicatedVmHostInstanceShapesArgs, opts?: InvokeOptions): Promise<GetDedicatedVmHostInstanceShapesResult>
function getDedicatedVmHostInstanceShapesOutput(args: GetDedicatedVmHostInstanceShapesOutputArgs, opts?: InvokeOptions): Output<GetDedicatedVmHostInstanceShapesResult>def get_dedicated_vm_host_instance_shapes(availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
dedicated_vm_host_shape: Optional[str] = None,
filters: Optional[Sequence[GetDedicatedVmHostInstanceShapesFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetDedicatedVmHostInstanceShapesResult
def get_dedicated_vm_host_instance_shapes_output(availability_domain: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
dedicated_vm_host_shape: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDedicatedVmHostInstanceShapesFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedVmHostInstanceShapesResult]func GetDedicatedVmHostInstanceShapes(ctx *Context, args *GetDedicatedVmHostInstanceShapesArgs, opts ...InvokeOption) (*GetDedicatedVmHostInstanceShapesResult, error)
func GetDedicatedVmHostInstanceShapesOutput(ctx *Context, args *GetDedicatedVmHostInstanceShapesOutputArgs, opts ...InvokeOption) GetDedicatedVmHostInstanceShapesResultOutput> Note: This function is named GetDedicatedVmHostInstanceShapes in the Go SDK.
public static class GetDedicatedVmHostInstanceShapes
{
public static Task<GetDedicatedVmHostInstanceShapesResult> InvokeAsync(GetDedicatedVmHostInstanceShapesArgs args, InvokeOptions? opts = null)
public static Output<GetDedicatedVmHostInstanceShapesResult> Invoke(GetDedicatedVmHostInstanceShapesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDedicatedVmHostInstanceShapesResult> getDedicatedVmHostInstanceShapes(GetDedicatedVmHostInstanceShapesArgs args, InvokeOptions options)
public static Output<GetDedicatedVmHostInstanceShapesResult> getDedicatedVmHostInstanceShapes(GetDedicatedVmHostInstanceShapesArgs args, InvokeOptions options)
fn::invoke:
function: oci:Core/getDedicatedVmHostInstanceShapes:getDedicatedVmHostInstanceShapes
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1 - Dedicated
Vm stringHost Shape - Dedicated VM host shape name
- Filters
List<Get
Dedicated Vm Host Instance Shapes Filter>
- Compartment
Id string - The OCID of the compartment.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1 - Dedicated
Vm stringHost Shape - Dedicated VM host shape name
- Filters
[]Get
Dedicated Vm Host Instance Shapes Filter
- compartment
Id String - The OCID of the compartment.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1 - dedicated
Vm StringHost Shape - Dedicated VM host shape name
- filters
List<Get
Dedicated Vm Host Instance Shapes Filter>
- compartment
Id string - The OCID of the compartment.
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1 - dedicated
Vm stringHost Shape - Dedicated VM host shape name
- filters
Get
Dedicated Vm Host Instance Shapes Filter[]
- compartment_
id str - The OCID of the compartment.
- availability_
domain str - The name of the availability domain. Example:
Uocm:PHX-AD-1 - dedicated_
vm_ strhost_ shape - Dedicated VM host shape name
- filters
Sequence[Get
Dedicated Vm Host Instance Shapes Filter]
- compartment
Id String - The OCID of the compartment.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1 - dedicated
Vm StringHost Shape - Dedicated VM host shape name
- filters List<Property Map>
getDedicatedVmHostInstanceShapes Result
The following output properties are available:
- Compartment
Id string - Dedicated
Vm List<GetHost Instance Shapes Dedicated Vm Host Instance Shapes Dedicated Vm Host Instance Shape> - The list of dedicated_vm_host_instance_shapes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - The shape's availability domain.
- Dedicated
Vm stringHost Shape - Filters
List<Get
Dedicated Vm Host Instance Shapes Filter>
- Compartment
Id string - Dedicated
Vm []GetHost Instance Shapes Dedicated Vm Host Instance Shapes Dedicated Vm Host Instance Shape - The list of dedicated_vm_host_instance_shapes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - The shape's availability domain.
- Dedicated
Vm stringHost Shape - Filters
[]Get
Dedicated Vm Host Instance Shapes Filter
- compartment
Id String - dedicated
Vm List<GetHost Instance Shapes Dedicated Vm Host Instance Shapes Dedicated Vm Host Instance Shape> - The list of dedicated_vm_host_instance_shapes.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - The shape's availability domain.
- dedicated
Vm StringHost Shape - filters
List<Get
Dedicated Vm Host Instance Shapes Filter>
- compartment
Id string - dedicated
Vm GetHost Instance Shapes Dedicated Vm Host Instance Shapes Dedicated Vm Host Instance Shape[] - The list of dedicated_vm_host_instance_shapes.
- id string
- The provider-assigned unique ID for this managed resource.
- availability
Domain string - The shape's availability domain.
- dedicated
Vm stringHost Shape - filters
Get
Dedicated Vm Host Instance Shapes Filter[]
- compartment_
id str - dedicated_
vm_ Sequence[Gethost_ instance_ shapes Dedicated Vm Host Instance Shapes Dedicated Vm Host Instance Shape] - The list of dedicated_vm_host_instance_shapes.
- id str
- The provider-assigned unique ID for this managed resource.
- availability_
domain str - The shape's availability domain.
- dedicated_
vm_ strhost_ shape - filters
Sequence[Get
Dedicated Vm Host Instance Shapes Filter]
- compartment
Id String - dedicated
Vm List<Property Map>Host Instance Shapes - The list of dedicated_vm_host_instance_shapes.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - The shape's availability domain.
- dedicated
Vm StringHost Shape - filters List<Property Map>
Supporting Types
GetDedicatedVmHostInstanceShapesDedicatedVmHostInstanceShape
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1 - Instance
Shape stringName - The name of the virtual machine instance shapes that can be launched on a dedicated VM host.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1 - Instance
Shape stringName - The name of the virtual machine instance shapes that can be launched on a dedicated VM host.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1 - instance
Shape StringName - The name of the virtual machine instance shapes that can be launched on a dedicated VM host.
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1 - instance
Shape stringName - The name of the virtual machine instance shapes that can be launched on a dedicated VM host.
- availability_
domain str - The name of the availability domain. Example:
Uocm:PHX-AD-1 - instance_
shape_ strname - The name of the virtual machine instance shapes that can be launched on a dedicated VM host.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1 - instance
Shape StringName - The name of the virtual machine instance shapes that can be launched on a dedicated VM host.
GetDedicatedVmHostInstanceShapesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
