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

ibm.getContainerDedicatedHostFlavor

Explore with Pulumi AI

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

    Retrieve information about a dedicated host flavor. 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 a dedicated host flavor:

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const testDhostFlavor = ibm.getContainerDedicatedHostFlavor({
        hostFlavorId: "bx2d.host.152x608",
        zone: "us-south-1",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    test_dhost_flavor = ibm.get_container_dedicated_host_flavor(host_flavor_id="bx2d.host.152x608",
        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.GetContainerDedicatedHostFlavor(ctx, &ibm.GetContainerDedicatedHostFlavorArgs{
    			HostFlavorId: "bx2d.host.152x608",
    			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.GetContainerDedicatedHostFlavor.Invoke(new()
        {
            HostFlavorId = "bx2d.host.152x608",
            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.GetContainerDedicatedHostFlavorArgs;
    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.getContainerDedicatedHostFlavor(GetContainerDedicatedHostFlavorArgs.builder()
                .hostFlavorId("bx2d.host.152x608")
                .zone("us-south-1")
                .build());
    
        }
    }
    
    variables:
      testDhostFlavor:
        fn::invoke:
          function: ibm:getContainerDedicatedHostFlavor
          arguments:
            hostFlavorId: bx2d.host.152x608
            zone: us-south-1
    

    Using getContainerDedicatedHostFlavor

    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 getContainerDedicatedHostFlavor(args: GetContainerDedicatedHostFlavorArgs, opts?: InvokeOptions): Promise<GetContainerDedicatedHostFlavorResult>
    function getContainerDedicatedHostFlavorOutput(args: GetContainerDedicatedHostFlavorOutputArgs, opts?: InvokeOptions): Output<GetContainerDedicatedHostFlavorResult>
    def get_container_dedicated_host_flavor(host_flavor_id: Optional[str] = None,
                                            id: Optional[str] = None,
                                            zone: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetContainerDedicatedHostFlavorResult
    def get_container_dedicated_host_flavor_output(host_flavor_id: Optional[pulumi.Input[str]] = None,
                                            id: Optional[pulumi.Input[str]] = None,
                                            zone: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetContainerDedicatedHostFlavorResult]
    func GetContainerDedicatedHostFlavor(ctx *Context, args *GetContainerDedicatedHostFlavorArgs, opts ...InvokeOption) (*GetContainerDedicatedHostFlavorResult, error)
    func GetContainerDedicatedHostFlavorOutput(ctx *Context, args *GetContainerDedicatedHostFlavorOutputArgs, opts ...InvokeOption) GetContainerDedicatedHostFlavorResultOutput

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

    public static class GetContainerDedicatedHostFlavor 
    {
        public static Task<GetContainerDedicatedHostFlavorResult> InvokeAsync(GetContainerDedicatedHostFlavorArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerDedicatedHostFlavorResult> Invoke(GetContainerDedicatedHostFlavorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerDedicatedHostFlavorResult> getContainerDedicatedHostFlavor(GetContainerDedicatedHostFlavorArgs args, InvokeOptions options)
    public static Output<GetContainerDedicatedHostFlavorResult> getContainerDedicatedHostFlavor(GetContainerDedicatedHostFlavorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getContainerDedicatedHostFlavor:getContainerDedicatedHostFlavor
      arguments:
        # arguments dictionary

    The following arguments are supported:

    HostFlavorId string
    The unique identifier of the dedicated host flavor.
    Zone string
    The zone of the dedicated host flavor.
    Id string
    HostFlavorId string
    The unique identifier of the dedicated host flavor.
    Zone string
    The zone of the dedicated host flavor.
    Id string
    hostFlavorId String
    The unique identifier of the dedicated host flavor.
    zone String
    The zone of the dedicated host flavor.
    id String
    hostFlavorId string
    The unique identifier of the dedicated host flavor.
    zone string
    The zone of the dedicated host flavor.
    id string
    host_flavor_id str
    The unique identifier of the dedicated host flavor.
    zone str
    The zone of the dedicated host flavor.
    id str
    hostFlavorId String
    The unique identifier of the dedicated host flavor.
    zone String
    The zone of the dedicated host flavor.
    id String

    getContainerDedicatedHostFlavor Result

    The following output properties are available:

    Deprecated bool
    (String) Describes if the dedicated host flavor is deprecated.
    FlavorClass string
    (String) The flavor class of the dedicated host flavor.
    HostFlavorId string
    Id string
    InstanceStorages List<GetContainerDedicatedHostFlavorInstanceStorage>
    (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.
    Zone string
    Deprecated bool
    (String) Describes if the dedicated host flavor is deprecated.
    FlavorClass string
    (String) The flavor class of the dedicated host flavor.
    HostFlavorId string
    Id string
    InstanceStorages []GetContainerDedicatedHostFlavorInstanceStorage
    (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.
    Zone string
    deprecated Boolean
    (String) Describes if the dedicated host flavor is deprecated.
    flavorClass String
    (String) The flavor class of the dedicated host flavor.
    hostFlavorId String
    id String
    instanceStorages List<GetContainerDedicatedHostFlavorInstanceStorage>
    (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.
    zone String
    deprecated boolean
    (String) Describes if the dedicated host flavor is deprecated.
    flavorClass string
    (String) The flavor class of the dedicated host flavor.
    hostFlavorId string
    id string
    instanceStorages GetContainerDedicatedHostFlavorInstanceStorage[]
    (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.
    zone string
    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
    id str
    instance_storages Sequence[GetContainerDedicatedHostFlavorInstanceStorage]
    (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.
    zone str
    deprecated Boolean
    (String) Describes if the dedicated host flavor is deprecated.
    flavorClass String
    (String) The flavor class of the dedicated host flavor.
    hostFlavorId String
    id String
    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.
    zone String

    Supporting Types

    GetContainerDedicatedHostFlavorInstanceStorage

    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