1. Packages
  2. Ibm Provider
  3. API Docs
  4. getContainerDedicatedHostFlavors
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getContainerDedicatedHostFlavors

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    test_dhost_flavor = ibm.get_container_dedicated_host_flavors(zone="us-south-1")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      testDhostFlavor:
        fn::invoke:
          function: ibm:getContainerDedicatedHostFlavors
          arguments:
            zone: us-south-1
    

    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>
    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]
    func GetContainerDedicatedHostFlavors(ctx *Context, args *GetContainerDedicatedHostFlavorsArgs, opts ...InvokeOption) (*GetContainerDedicatedHostFlavorsResult, error)
    func GetContainerDedicatedHostFlavorsOutput(ctx *Context, args *GetContainerDedicatedHostFlavorsOutputArgs, opts ...InvokeOption) GetContainerDedicatedHostFlavorsResultOutput

    > 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)
    }
    public static CompletableFuture<GetContainerDedicatedHostFlavorsResult> getContainerDedicatedHostFlavors(GetContainerDedicatedHostFlavorsArgs args, InvokeOptions options)
    public static Output<GetContainerDedicatedHostFlavorsResult> getContainerDedicatedHostFlavors(GetContainerDedicatedHostFlavorsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getContainerDedicatedHostFlavors:getContainerDedicatedHostFlavors
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    GetContainerDedicatedHostFlavorsHostFlavorInstanceStorage

    Count double
    (Int) The count of the disks.
    Size double
    (Int) The size of the instance storage.
    Count float64
    (Int) The count of the disks.
    Size float64
    (Int) The size of the instance storage.
    count Double
    (Int) The count of the disks.
    size Double
    (Int) The size of the instance storage.
    count number
    (Int) The count of the disks.
    size number
    (Int) The size of the instance storage.
    count float
    (Int) The count of the disks.
    size float
    (Int) The size of the instance storage.
    count Number
    (Int) The count of the disks.
    size 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud