Oracle Cloud Infrastructure

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

getDedicatedVmHostShapes

This data source provides the list of Dedicated Vm Host Shapes in Oracle Cloud Infrastructure Core service.

Lists the shapes that can be used to launch a dedicated virtual machine host within the specified compartment.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDedicatedVmHostShapes = Output.Create(Oci.Core.GetDedicatedVmHostShapes.InvokeAsync(new Oci.Core.GetDedicatedVmHostShapesArgs
        {
            CompartmentId = @var.Compartment_id,
            AvailabilityDomain = @var.Dedicated_vm_host_shape_availability_domain,
            InstanceShapeName = @var.Dedicated_vm_host_shape_instance_shape_name,
        }));
    }

}
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.GetDedicatedVmHostShapes(ctx, &core.GetDedicatedVmHostShapesArgs{
			CompartmentId:      _var.Compartment_id,
			AvailabilityDomain: pulumi.StringRef(_var.Dedicated_vm_host_shape_availability_domain),
			InstanceShapeName:  pulumi.StringRef(_var.Dedicated_vm_host_shape_instance_shape_name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_dedicated_vm_host_shapes = oci.Core.get_dedicated_vm_host_shapes(compartment_id=var["compartment_id"],
    availability_domain=var["dedicated_vm_host_shape_availability_domain"],
    instance_shape_name=var["dedicated_vm_host_shape_instance_shape_name"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDedicatedVmHostShapes = oci.Core.getDedicatedVmHostShapes({
    compartmentId: _var.compartment_id,
    availabilityDomain: _var.dedicated_vm_host_shape_availability_domain,
    instanceShapeName: _var.dedicated_vm_host_shape_instance_shape_name,
});

Coming soon!

Using getDedicatedVmHostShapes

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 getDedicatedVmHostShapes(args: GetDedicatedVmHostShapesArgs, opts?: InvokeOptions): Promise<GetDedicatedVmHostShapesResult>
function getDedicatedVmHostShapesOutput(args: GetDedicatedVmHostShapesOutputArgs, opts?: InvokeOptions): Output<GetDedicatedVmHostShapesResult>
def get_dedicated_vm_host_shapes(availability_domain: Optional[str] = None,
                                 compartment_id: Optional[str] = None,
                                 filters: Optional[Sequence[_core.GetDedicatedVmHostShapesFilter]] = None,
                                 instance_shape_name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDedicatedVmHostShapesResult
def get_dedicated_vm_host_shapes_output(availability_domain: Optional[pulumi.Input[str]] = None,
                                 compartment_id: Optional[pulumi.Input[str]] = None,
                                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetDedicatedVmHostShapesFilterArgs]]]] = None,
                                 instance_shape_name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedVmHostShapesResult]
func GetDedicatedVmHostShapes(ctx *Context, args *GetDedicatedVmHostShapesArgs, opts ...InvokeOption) (*GetDedicatedVmHostShapesResult, error)
func GetDedicatedVmHostShapesOutput(ctx *Context, args *GetDedicatedVmHostShapesOutputArgs, opts ...InvokeOption) GetDedicatedVmHostShapesResultOutput

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

public static class GetDedicatedVmHostShapes 
{
    public static Task<GetDedicatedVmHostShapesResult> InvokeAsync(GetDedicatedVmHostShapesArgs args, InvokeOptions? opts = null)
    public static Output<GetDedicatedVmHostShapesResult> Invoke(GetDedicatedVmHostShapesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDedicatedVmHostShapesResult> getDedicatedVmHostShapes(GetDedicatedVmHostShapesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Core/getDedicatedVmHostShapes:getDedicatedVmHostShapes
  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

Filters List<GetDedicatedVmHostShapesFilter>
InstanceShapeName string

The name for the instance's shape.

CompartmentId string

The OCID of the compartment.

AvailabilityDomain string

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

Filters []GetDedicatedVmHostShapesFilter
InstanceShapeName string

The name for the instance's shape.

compartmentId String

The OCID of the compartment.

availabilityDomain String

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

filters List<GetDedicatedVmHostShapesFilter>
instanceShapeName String

The name for the instance's shape.

compartmentId string

The OCID of the compartment.

availabilityDomain string

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

filters GetDedicatedVmHostShapesFilter[]
instanceShapeName string

The name for the instance's shape.

compartment_id str

The OCID of the compartment.

availability_domain str

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

filters GetDedicatedVmHostShapesFilter]
instance_shape_name str

The name for the instance's shape.

compartmentId String

The OCID of the compartment.

availabilityDomain String

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

filters List<Property Map>
instanceShapeName String

The name for the instance's shape.

getDedicatedVmHostShapes Result

The following output properties are available:

CompartmentId string
DedicatedVmHostShapes List<GetDedicatedVmHostShapesDedicatedVmHostShape>

The list of dedicated_vm_host_shapes.

Id string

The provider-assigned unique ID for this managed resource.

AvailabilityDomain string

The shape's availability domain.

Filters List<GetDedicatedVmHostShapesFilter>
InstanceShapeName string
CompartmentId string
DedicatedVmHostShapes []GetDedicatedVmHostShapesDedicatedVmHostShape

The list of dedicated_vm_host_shapes.

Id string

The provider-assigned unique ID for this managed resource.

AvailabilityDomain string

The shape's availability domain.

Filters []GetDedicatedVmHostShapesFilter
InstanceShapeName string
compartmentId String
dedicatedVmHostShapes List<GetDedicatedVmHostShapesDedicatedVmHostShape>

The list of dedicated_vm_host_shapes.

id String

The provider-assigned unique ID for this managed resource.

availabilityDomain String

The shape's availability domain.

filters List<GetDedicatedVmHostShapesFilter>
instanceShapeName String
compartmentId string
dedicatedVmHostShapes GetDedicatedVmHostShapesDedicatedVmHostShape[]

The list of dedicated_vm_host_shapes.

id string

The provider-assigned unique ID for this managed resource.

availabilityDomain string

The shape's availability domain.

filters GetDedicatedVmHostShapesFilter[]
instanceShapeName string
compartment_id str
dedicated_vm_host_shapes GetDedicatedVmHostShapesDedicatedVmHostShape]

The list of dedicated_vm_host_shapes.

id str

The provider-assigned unique ID for this managed resource.

availability_domain str

The shape's availability domain.

filters GetDedicatedVmHostShapesFilter]
instance_shape_name str
compartmentId String
dedicatedVmHostShapes List<Property Map>

The list of dedicated_vm_host_shapes.

id String

The provider-assigned unique ID for this managed resource.

availabilityDomain String

The shape's availability domain.

filters List<Property Map>
instanceShapeName String

Supporting Types

GetDedicatedVmHostShapesDedicatedVmHostShape

AvailabilityDomain string

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

DedicatedVmHostShape string

The name of the dedicated VM host shape. You can enumerate all available shapes by calling ListDedicatedVmHostShapes.

AvailabilityDomain string

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

DedicatedVmHostShape string

The name of the dedicated VM host shape. You can enumerate all available shapes by calling ListDedicatedVmHostShapes.

availabilityDomain String

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

dedicatedVmHostShape String

The name of the dedicated VM host shape. You can enumerate all available shapes by calling ListDedicatedVmHostShapes.

availabilityDomain string

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

dedicatedVmHostShape string

The name of the dedicated VM host shape. You can enumerate all available shapes by calling ListDedicatedVmHostShapes.

availability_domain str

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

dedicated_vm_host_shape str

The name of the dedicated VM host shape. You can enumerate all available shapes by calling ListDedicatedVmHostShapes.

availabilityDomain String

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

dedicatedVmHostShape String

The name of the dedicated VM host shape. You can enumerate all available shapes by calling ListDedicatedVmHostShapes.

GetDedicatedVmHostShapesFilter

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.