Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDedicatedVmHostInstanceShapes = Output.Create(Oci.Core.GetDedicatedVmHostInstanceShapes.InvokeAsync(new Oci.Core.GetDedicatedVmHostInstanceShapesArgs
        {
            CompartmentId = @var.Compartment_id,
            AvailabilityDomain = @var.Dedicated_vm_host_instance_shape_availability_domain,
            DedicatedVmHostShape = @var.Dedicated_vm_host_instance_shape_dedicated_vm_host_shape,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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:        _var.Compartment_id,
			AvailabilityDomain:   pulumi.StringRef(_var.Dedicated_vm_host_instance_shape_availability_domain),
			DedicatedVmHostShape: pulumi.StringRef(_var.Dedicated_vm_host_instance_shape_dedicated_vm_host_shape),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_dedicated_vm_host_instance_shapes = oci.Core.get_dedicated_vm_host_instance_shapes(compartment_id=var["compartment_id"],
    availability_domain=var["dedicated_vm_host_instance_shape_availability_domain"],
    dedicated_vm_host_shape=var["dedicated_vm_host_instance_shape_dedicated_vm_host_shape"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDedicatedVmHostInstanceShapes = oci.Core.getDedicatedVmHostInstanceShapes({
    compartmentId: _var.compartment_id,
    availabilityDomain: _var.dedicated_vm_host_instance_shape_availability_domain,
    dedicatedVmHostShape: _var.dedicated_vm_host_instance_shape_dedicated_vm_host_shape,
});

Coming soon!

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[_core.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[_core.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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Core/getDedicatedVmHostInstanceShapes:getDedicatedVmHostInstanceShapes
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment.

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

DedicatedVmHostShape string

Dedicated VM host shape name

Filters List<GetDedicatedVmHostInstanceShapesFilter>
CompartmentId string

The OCID of the compartment.

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

DedicatedVmHostShape string

Dedicated VM host shape name

Filters []GetDedicatedVmHostInstanceShapesFilter
compartmentId String

The OCID of the compartment.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

dedicatedVmHostShape String

Dedicated VM host shape name

filters List<GetDedicatedVmHostInstanceShapesFilter>
compartmentId string

The OCID of the compartment.

availabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

dedicatedVmHostShape string

Dedicated VM host shape name

filters GetDedicatedVmHostInstanceShapesFilter[]
compartment_id str

The OCID of the compartment.

availability_domain str

The name of the availability domain. Example: Uocm:PHX-AD-1

dedicated_vm_host_shape str

Dedicated VM host shape name

filters GetDedicatedVmHostInstanceShapesFilter]
compartmentId String

The OCID of the compartment.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

dedicatedVmHostShape String

Dedicated VM host shape name

filters List<Property Map>

getDedicatedVmHostInstanceShapes Result

The following output properties are available:

CompartmentId string
DedicatedVmHostInstanceShapes List<GetDedicatedVmHostInstanceShapesDedicatedVmHostInstanceShape>

The list of dedicated_vm_host_instance_shapes.

Id string

The provider-assigned unique ID for this managed resource.

AvailabilityDomain string

The shape's availability domain.

DedicatedVmHostShape string
Filters List<GetDedicatedVmHostInstanceShapesFilter>
CompartmentId string
DedicatedVmHostInstanceShapes []GetDedicatedVmHostInstanceShapesDedicatedVmHostInstanceShape

The list of dedicated_vm_host_instance_shapes.

Id string

The provider-assigned unique ID for this managed resource.

AvailabilityDomain string

The shape's availability domain.

DedicatedVmHostShape string
Filters []GetDedicatedVmHostInstanceShapesFilter
compartmentId String
dedicatedVmHostInstanceShapes List<GetDedicatedVmHostInstanceShapesDedicatedVmHostInstanceShape>

The list of dedicated_vm_host_instance_shapes.

id String

The provider-assigned unique ID for this managed resource.

availabilityDomain String

The shape's availability domain.

dedicatedVmHostShape String
filters List<GetDedicatedVmHostInstanceShapesFilter>
compartmentId string
dedicatedVmHostInstanceShapes GetDedicatedVmHostInstanceShapesDedicatedVmHostInstanceShape[]

The list of dedicated_vm_host_instance_shapes.

id string

The provider-assigned unique ID for this managed resource.

availabilityDomain string

The shape's availability domain.

dedicatedVmHostShape string
filters GetDedicatedVmHostInstanceShapesFilter[]
compartment_id str
dedicated_vm_host_instance_shapes GetDedicatedVmHostInstanceShapesDedicatedVmHostInstanceShape]

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_host_shape str
filters GetDedicatedVmHostInstanceShapesFilter]
compartmentId String
dedicatedVmHostInstanceShapes List<Property Map>

The list of dedicated_vm_host_instance_shapes.

id String

The provider-assigned unique ID for this managed resource.

availabilityDomain String

The shape's availability domain.

dedicatedVmHostShape String
filters List<Property Map>

Supporting Types

GetDedicatedVmHostInstanceShapesDedicatedVmHostInstanceShape

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

InstanceShapeName string

The name of the virtual machine instance shapes that can be launched on a dedicated VM host.

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

InstanceShapeName string

The name of the virtual machine instance shapes that can be launched on a dedicated VM host.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

instanceShapeName String

The name of the virtual machine instance shapes that can be launched on a dedicated VM host.

availabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

instanceShapeName string

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_name str

The name of the virtual machine instance shapes that can be launched on a dedicated VM host.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

instanceShapeName String

The name of the virtual machine instance shapes that can be launched on a dedicated VM host.

GetDedicatedVmHostInstanceShapesFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.