ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getContainerDedicatedHostFlavor
Explore with Pulumi AI
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:
- Host
Flavor stringId - The unique identifier of the dedicated host flavor.
- Zone string
- The zone of the dedicated host flavor.
- Id string
- Host
Flavor stringId - The unique identifier of the dedicated host flavor.
- Zone string
- The zone of the dedicated host flavor.
- Id string
- host
Flavor StringId - The unique identifier of the dedicated host flavor.
- zone String
- The zone of the dedicated host flavor.
- id String
- host
Flavor stringId - The unique identifier of the dedicated host flavor.
- zone string
- The zone of the dedicated host flavor.
- id string
- host_
flavor_ strid - The unique identifier of the dedicated host flavor.
- zone str
- The zone of the dedicated host flavor.
- id str
- host
Flavor StringId - 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.
- Flavor
Class string - (String) The flavor class of the dedicated host flavor.
- Host
Flavor stringId - Id string
- Instance
Storages List<GetContainer Dedicated Host Flavor Instance Storage> - (List) A nested block describes the instance storage of this dedicated host flavor.
- Max
Memory double - (String) The maximum available memory in the dedicated host flavor.
- Max
Vcpus 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.
- Flavor
Class string - (String) The flavor class of the dedicated host flavor.
- Host
Flavor stringId - Id string
- Instance
Storages []GetContainer Dedicated Host Flavor Instance Storage - (List) A nested block describes the instance storage of this dedicated host flavor.
- Max
Memory float64 - (String) The maximum available memory in the dedicated host flavor.
- Max
Vcpus 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.
- flavor
Class String - (String) The flavor class of the dedicated host flavor.
- host
Flavor StringId - id String
- instance
Storages List<GetContainer Dedicated Host Flavor Instance Storage> - (List) A nested block describes the instance storage of this dedicated host flavor.
- max
Memory Double - (String) The maximum available memory in the dedicated host flavor.
- max
Vcpus 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.
- flavor
Class string - (String) The flavor class of the dedicated host flavor.
- host
Flavor stringId - id string
- instance
Storages GetContainer Dedicated Host Flavor Instance Storage[] - (List) A nested block describes the instance storage of this dedicated host flavor.
- max
Memory number - (String) The maximum available memory in the dedicated host flavor.
- max
Vcpus 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_ strid - id str
- instance_
storages Sequence[GetContainer Dedicated Host Flavor Instance Storage] - (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.
- flavor
Class String - (String) The flavor class of the dedicated host flavor.
- host
Flavor StringId - id String
- instance
Storages List<Property Map> - (List) A nested block describes the instance storage of this dedicated host flavor.
- max
Memory Number - (String) The maximum available memory in the dedicated host flavor.
- max
Vcpus 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
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.