1. Packages
  2. Ibm Provider
  3. API Docs
  4. getContainerDedicatedHostFlavors
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getContainerDedicatedHostFlavors

Explore with Pulumi AI

List all the dedicated host flavors from a zone. For more information, about the use of dedicated host flavors, see Creating a cluster on dedicated host infrastructure.

Example Usage

In the following example, you can retrieve dedicated host flavors from a zone:

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const testDhostFlavor = ibm.getContainerDedicatedHostFlavors({
    zone: "us-south-1",
});
Copy
import pulumi
import pulumi_ibm as ibm

test_dhost_flavor = ibm.get_container_dedicated_host_flavors(zone="us-south-1")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.GetContainerDedicatedHostFlavors(ctx, &ibm.GetContainerDedicatedHostFlavorsArgs{
			Zone: "us-south-1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var testDhostFlavor = Ibm.GetContainerDedicatedHostFlavors.Invoke(new()
    {
        Zone = "us-south-1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetContainerDedicatedHostFlavorsArgs;
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 testDhostFlavor = IbmFunctions.getContainerDedicatedHostFlavors(GetContainerDedicatedHostFlavorsArgs.builder()
            .zone("us-south-1")
            .build());

    }
}
Copy
variables:
  testDhostFlavor:
    fn::invoke:
      function: ibm:getContainerDedicatedHostFlavors
      arguments:
        zone: us-south-1
Copy

Using getContainerDedicatedHostFlavors

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 getContainerDedicatedHostFlavors(args: GetContainerDedicatedHostFlavorsArgs, opts?: InvokeOptions): Promise<GetContainerDedicatedHostFlavorsResult>
function getContainerDedicatedHostFlavorsOutput(args: GetContainerDedicatedHostFlavorsOutputArgs, opts?: InvokeOptions): Output<GetContainerDedicatedHostFlavorsResult>
Copy
def get_container_dedicated_host_flavors(id: Optional[str] = None,
                                         zone: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetContainerDedicatedHostFlavorsResult
def get_container_dedicated_host_flavors_output(id: Optional[pulumi.Input[str]] = None,
                                         zone: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetContainerDedicatedHostFlavorsResult]
Copy
func GetContainerDedicatedHostFlavors(ctx *Context, args *GetContainerDedicatedHostFlavorsArgs, opts ...InvokeOption) (*GetContainerDedicatedHostFlavorsResult, error)
func GetContainerDedicatedHostFlavorsOutput(ctx *Context, args *GetContainerDedicatedHostFlavorsOutputArgs, opts ...InvokeOption) GetContainerDedicatedHostFlavorsResultOutput
Copy

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

public static class GetContainerDedicatedHostFlavors 
{
    public static Task<GetContainerDedicatedHostFlavorsResult> InvokeAsync(GetContainerDedicatedHostFlavorsArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerDedicatedHostFlavorsResult> Invoke(GetContainerDedicatedHostFlavorsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetContainerDedicatedHostFlavorsResult> getContainerDedicatedHostFlavors(GetContainerDedicatedHostFlavorsArgs args, InvokeOptions options)
public static Output<GetContainerDedicatedHostFlavorsResult> getContainerDedicatedHostFlavors(GetContainerDedicatedHostFlavorsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getContainerDedicatedHostFlavors:getContainerDedicatedHostFlavors
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Zone This property is required. string
The zone of the dedicated host flavor.
Id string
Zone This property is required. string
The zone of the dedicated host flavor.
Id string
zone This property is required. String
The zone of the dedicated host flavor.
id String
zone This property is required. string
The zone of the dedicated host flavor.
id string
zone This property is required. str
The zone of the dedicated host flavor.
id str
zone This property is required. String
The zone of the dedicated host flavor.
id String

getContainerDedicatedHostFlavors Result

The following output properties are available:

HostFlavors List<GetContainerDedicatedHostFlavorsHostFlavor>
(List) A nested block describes the host flavors under the specified zone.
Id string
Zone string
HostFlavors []GetContainerDedicatedHostFlavorsHostFlavor
(List) A nested block describes the host flavors under the specified zone.
Id string
Zone string
hostFlavors List<GetContainerDedicatedHostFlavorsHostFlavor>
(List) A nested block describes the host flavors under the specified zone.
id String
zone String
hostFlavors GetContainerDedicatedHostFlavorsHostFlavor[]
(List) A nested block describes the host flavors under the specified zone.
id string
zone string
host_flavors Sequence[GetContainerDedicatedHostFlavorsHostFlavor]
(List) A nested block describes the host flavors under the specified zone.
id str
zone str
hostFlavors List<Property Map>
(List) A nested block describes the host flavors under the specified zone.
id String
zone String

Supporting Types

GetContainerDedicatedHostFlavorsHostFlavor

Deprecated This property is required. bool
(String) Describes if the dedicated host flavor is deprecated.
FlavorClass This property is required. string
(String) The flavor class of the dedicated host flavor.
HostFlavorId This property is required. string
(String) The unique identifier of the dedicated host flavor.
InstanceStorages This property is required. List<GetContainerDedicatedHostFlavorsHostFlavorInstanceStorage>
(List) A nested block describes the instance storage of this dedicated host flavor.
MaxMemory This property is required. double
(String) The maximum available memory in the dedicated host flavor.
MaxVcpus This property is required. double
(String) The maximum available vcpus in the dedicated host flavor.
Region This property is required. string
(String) The region of the dedicated host flavor.
Deprecated This property is required. bool
(String) Describes if the dedicated host flavor is deprecated.
FlavorClass This property is required. string
(String) The flavor class of the dedicated host flavor.
HostFlavorId This property is required. string
(String) The unique identifier of the dedicated host flavor.
InstanceStorages This property is required. []GetContainerDedicatedHostFlavorsHostFlavorInstanceStorage
(List) A nested block describes the instance storage of this dedicated host flavor.
MaxMemory This property is required. float64
(String) The maximum available memory in the dedicated host flavor.
MaxVcpus This property is required. float64
(String) The maximum available vcpus in the dedicated host flavor.
Region This property is required. string
(String) The region of the dedicated host flavor.
deprecated This property is required. Boolean
(String) Describes if the dedicated host flavor is deprecated.
flavorClass This property is required. String
(String) The flavor class of the dedicated host flavor.
hostFlavorId This property is required. String
(String) The unique identifier of the dedicated host flavor.
instanceStorages This property is required. List<GetContainerDedicatedHostFlavorsHostFlavorInstanceStorage>
(List) A nested block describes the instance storage of this dedicated host flavor.
maxMemory This property is required. Double
(String) The maximum available memory in the dedicated host flavor.
maxVcpus This property is required. Double
(String) The maximum available vcpus in the dedicated host flavor.
region This property is required. String
(String) The region of the dedicated host flavor.
deprecated This property is required. boolean
(String) Describes if the dedicated host flavor is deprecated.
flavorClass This property is required. string
(String) The flavor class of the dedicated host flavor.
hostFlavorId This property is required. string
(String) The unique identifier of the dedicated host flavor.
instanceStorages This property is required. GetContainerDedicatedHostFlavorsHostFlavorInstanceStorage[]
(List) A nested block describes the instance storage of this dedicated host flavor.
maxMemory This property is required. number
(String) The maximum available memory in the dedicated host flavor.
maxVcpus This property is required. number
(String) The maximum available vcpus in the dedicated host flavor.
region This property is required. string
(String) The region of the dedicated host flavor.
deprecated This property is required. bool
(String) Describes if the dedicated host flavor is deprecated.
flavor_class This property is required. str
(String) The flavor class of the dedicated host flavor.
host_flavor_id This property is required. str
(String) The unique identifier of the dedicated host flavor.
instance_storages This property is required. Sequence[GetContainerDedicatedHostFlavorsHostFlavorInstanceStorage]
(List) A nested block describes the instance storage of this dedicated host flavor.
max_memory This property is required. float
(String) The maximum available memory in the dedicated host flavor.
max_vcpus This property is required. float
(String) The maximum available vcpus in the dedicated host flavor.
region This property is required. str
(String) The region of the dedicated host flavor.
deprecated This property is required. Boolean
(String) Describes if the dedicated host flavor is deprecated.
flavorClass This property is required. String
(String) The flavor class of the dedicated host flavor.
hostFlavorId This property is required. String
(String) The unique identifier of the dedicated host flavor.
instanceStorages This property is required. List<Property Map>
(List) A nested block describes the instance storage of this dedicated host flavor.
maxMemory This property is required. Number
(String) The maximum available memory in the dedicated host flavor.
maxVcpus This property is required. Number
(String) The maximum available vcpus in the dedicated host flavor.
region This property is required. String
(String) The region of the dedicated host flavor.

GetContainerDedicatedHostFlavorsHostFlavorInstanceStorage

Count This property is required. double
(Int) The count of the disks.
Size This property is required. double
(Int) The size of the instance storage.
Count This property is required. float64
(Int) The count of the disks.
Size This property is required. float64
(Int) The size of the instance storage.
count This property is required. Double
(Int) The count of the disks.
size This property is required. Double
(Int) The size of the instance storage.
count This property is required. number
(Int) The count of the disks.
size This property is required. number
(Int) The size of the instance storage.
count This property is required. float
(Int) The count of the disks.
size This property is required. float
(Int) The size of the instance storage.
count This property is required. Number
(Int) The count of the disks.
size This property is required. Number
(Int) The size of the instance storage.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.