oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.Ocvp.getSupportedHostShapes

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testSupportedHostShapes = Oci.Ocvp.GetSupportedHostShapes.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        Name = @var.Supported_host_shape_name,
        SddcType = @var.Supported_host_shape_sddc_type,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
			Name:          pulumi.StringRef(_var.Supported_host_shape_name),
			SddcType:      pulumi.StringRef(_var.Supported_host_shape_sddc_type),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(var_.compartment_id())
            .name(var_.supported_host_shape_name())
            .sddcType(var_.supported_host_shape_sddc_type())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_supported_host_shapes = oci.Ocvp.get_supported_host_shapes(compartment_id=var["compartment_id"],
    name=var["supported_host_shape_name"],
    sddc_type=var["supported_host_shape_sddc_type"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSupportedHostShapes = oci.Ocvp.getSupportedHostShapes({
    compartmentId: _var.compartment_id,
    name: _var.supported_host_shape_name,
    sddcType: _var.supported_host_shape_sddc_type,
});
variables:
  testSupportedHostShapes:
    fn::invoke:
      Function: oci:Ocvp:getSupportedHostShapes
      Arguments:
        compartmentId: ${var.compartment_id}
        name: ${var.supported_host_shape_name}
        sddcType: ${var.supported_host_shape_sddc_type}

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,
                              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,
                              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:

CompartmentId string

The OCID of the compartment.

Filters List<GetSupportedHostShapesFilter>
Name string

A filter to return only resources that match the given name exactly.

SddcType string

A filter to return only resources that match the given SDDC type exactly.

CompartmentId string

The OCID of the compartment.

Filters []GetSupportedHostShapesFilter
Name string

A filter to return only resources that match the given name exactly.

SddcType string

A filter to return only resources that match the given SDDC type exactly.

compartmentId String

The OCID of the compartment.

filters List<GetSupportedHostShapesFilter>
name String

A filter to return only resources that match the given name exactly.

sddcType String

A filter to return only resources that match the given SDDC type exactly.

compartmentId string

The OCID of the compartment.

filters GetSupportedHostShapesFilter[]
name string

A filter to return only resources that match the given name exactly.

sddcType string

A filter to return only resources that match the given SDDC type exactly.

compartment_id str

The OCID of the compartment.

filters GetSupportedHostShapesFilter]
name str

A filter to return only resources that match the given name exactly.

sddc_type str

A filter to return only resources that match the given SDDC type exactly.

compartmentId String

The OCID of the compartment.

filters List<Property Map>
name String

A filter to return only resources that match the given name exactly.

sddcType String

A filter to return only resources that match the given SDDC type exactly.

getSupportedHostShapes Result

The following output properties are available:

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

Items List<GetSupportedHostShapesItem>

The list of the supported compute shapes for ESXi hosts.

Filters List<GetSupportedHostShapesFilter>
Name string

The name of the supported compute shape.

SddcType string
CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

Items []GetSupportedHostShapesItem

The list of the supported compute shapes for ESXi hosts.

Filters []GetSupportedHostShapesFilter
Name string

The name of the supported compute shape.

SddcType string
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

items List<GetSupportedHostShapesItem>

The list of the supported compute shapes for ESXi hosts.

filters List<GetSupportedHostShapesFilter>
name String

The name of the supported compute shape.

sddcType String
compartmentId string
id string

The provider-assigned unique ID for this managed resource.

items GetSupportedHostShapesItem[]

The list of the supported compute shapes for ESXi hosts.

filters GetSupportedHostShapesFilter[]
name string

The name of the supported compute shape.

sddcType string
compartment_id str
id str

The provider-assigned unique ID for this managed resource.

items GetSupportedHostShapesItem]

The list of the supported compute shapes for ESXi hosts.

filters GetSupportedHostShapesFilter]
name str

The name of the supported compute shape.

sddc_type str
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

items List<Property Map>

The list of the supported compute shapes for ESXi hosts.

filters List<Property Map>
name String

The name of the supported compute shape.

sddcType String

Supporting Types

GetSupportedHostShapesFilter

Name string

A filter to return only resources that match the given name exactly.

Values List<string>
Regex bool
Name string

A filter to return only resources that match the given name exactly.

Values []string
Regex bool
name String

A filter to return only resources that match the given name exactly.

values List<String>
regex Boolean
name string

A filter to return only resources that match the given name exactly.

values string[]
regex boolean
name str

A filter to return only resources that match the given name exactly.

values Sequence[str]
regex bool
name String

A filter to return only resources that match the given name exactly.

values List<String>
regex Boolean

GetSupportedHostShapesItem

DefaultOcpuCount double

The default OCPU count of the shape.

Description string

Description of the shape.

IsSupportShieldedInstances bool

Indicates whether the shape supports shielded instances.

Name string

A filter to return only resources that match the given name exactly.

ShapeFamily string

The family of the shape. ESXi hosts of one SDDC must have the same shape family.

SupportedOcpuCounts List<double>

Support OCPU count of the shape.

SupportedOperations List<string>

The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.

SupportedSddcTypes List<string>

The supported SDDC types for the shape.

SupportedVmwareSoftwareVersions List<string>

The VMware software versions supported by the shape.

DefaultOcpuCount float64

The default OCPU count of the shape.

Description string

Description of the shape.

IsSupportShieldedInstances bool

Indicates whether the shape supports shielded instances.

Name string

A filter to return only resources that match the given name exactly.

ShapeFamily string

The family of the shape. ESXi hosts of one SDDC must have the same shape family.

SupportedOcpuCounts []float64

Support OCPU count of the shape.

SupportedOperations []string

The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.

SupportedSddcTypes []string

The supported SDDC types for the shape.

SupportedVmwareSoftwareVersions []string

The VMware software versions supported by the shape.

defaultOcpuCount Double

The default OCPU count of the shape.

description String

Description of the shape.

isSupportShieldedInstances Boolean

Indicates whether the shape supports shielded instances.

name String

A filter to return only resources that match the given name exactly.

shapeFamily String

The family of the shape. ESXi hosts of one SDDC must have the same shape family.

supportedOcpuCounts List<Double>

Support OCPU count of the shape.

supportedOperations List<String>

The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.

supportedSddcTypes List<String>

The supported SDDC types for the shape.

supportedVmwareSoftwareVersions List<String>

The VMware software versions supported by the shape.

defaultOcpuCount number

The default OCPU count of the shape.

description string

Description of the shape.

isSupportShieldedInstances boolean

Indicates whether the shape supports shielded instances.

name string

A filter to return only resources that match the given name exactly.

shapeFamily string

The family of the shape. ESXi hosts of one SDDC must have the same shape family.

supportedOcpuCounts number[]

Support OCPU count of the shape.

supportedOperations string[]

The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.

supportedSddcTypes string[]

The supported SDDC types for the shape.

supportedVmwareSoftwareVersions string[]

The VMware software versions supported by the shape.

default_ocpu_count float

The default OCPU count of the shape.

description str

Description of the shape.

is_support_shielded_instances bool

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_counts Sequence[float]

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_types Sequence[str]

The supported SDDC types for the shape.

supported_vmware_software_versions Sequence[str]

The VMware software versions supported by the shape.

defaultOcpuCount Number

The default OCPU count of the shape.

description String

Description of the shape.

isSupportShieldedInstances Boolean

Indicates whether the shape supports shielded instances.

name String

A filter to return only resources that match the given name exactly.

shapeFamily String

The family of the shape. ESXi hosts of one SDDC must have the same shape family.

supportedOcpuCounts List<Number>

Support OCPU count of the shape.

supportedOperations List<String>

The operations where you can use the shape. The operations can be CREATE_SDDC or CREATE_ESXI_HOST.

supportedSddcTypes List<String>

The supported SDDC types for the shape.

supportedVmwareSoftwareVersions 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.