ibm 1.78.0 published on Wednesday, Apr 30, 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",
});
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:
getContainerDedicatedHostFlavors Result
The following output properties are available:
- Host
Flavors List<GetContainer Dedicated Host Flavors Host Flavor> - (List) A nested block describes the host flavors under the specified zone.
- Id string
- Zone string
- Host
Flavors []GetContainer Dedicated Host Flavors Host Flavor - (List) A nested block describes the host flavors under the specified zone.
- Id string
- Zone string
- host
Flavors List<GetContainer Dedicated Host Flavors Host Flavor> - (List) A nested block describes the host flavors under the specified zone.
- id String
- zone String
- host
Flavors GetContainer Dedicated Host Flavors Host Flavor[] - (List) A nested block describes the host flavors under the specified zone.
- id string
- zone string
- host_
flavors Sequence[GetContainer Dedicated Host Flavors Host Flavor] - (List) A nested block describes the host flavors under the specified zone.
- id str
- zone str
- host
Flavors 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.
- Flavor
Class string - (String) The flavor class of the dedicated host flavor.
- Host
Flavor stringId - (String) The unique identifier of the dedicated host flavor.
- Instance
Storages List<GetContainer Dedicated Host Flavors 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.
- 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 - (String) The unique identifier of the dedicated host flavor.
- Instance
Storages []GetContainer Dedicated Host Flavors 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.
- 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 - (String) The unique identifier of the dedicated host flavor.
- instance
Storages List<GetContainer Dedicated Host Flavors 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.
- 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 - (String) The unique identifier of the dedicated host flavor.
- instance
Storages GetContainer Dedicated Host Flavors 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.
- 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 - (String) The unique identifier of the dedicated host flavor.
- instance_
storages Sequence[GetContainer Dedicated Host Flavors 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.
- 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 - (String) The unique identifier of the dedicated host flavor.
- 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.
GetContainerDedicatedHostFlavorsHostFlavorInstanceStorage
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.