ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getContainerDedicatedHostPool
Explore with Pulumi AI
Retrieve information about a dedicated host pool. For more information, about dedicated host pool, see Creating and managing dedicated hosts on VPC Gen 2 infrastructure.
Example Usage
In the following example, you can retrieve a dedicated host pool:
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const testDhostpool = ibm.getContainerDedicatedHostPool({
    hostPoolId: "dh-abcdefgh1234567",
});
import pulumi
import pulumi_ibm as ibm
test_dhostpool = ibm.get_container_dedicated_host_pool(host_pool_id="dh-abcdefgh1234567")
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.LookupContainerDedicatedHostPool(ctx, &ibm.LookupContainerDedicatedHostPoolArgs{
			HostPoolId: "dh-abcdefgh1234567",
		}, 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 testDhostpool = Ibm.GetContainerDedicatedHostPool.Invoke(new()
    {
        HostPoolId = "dh-abcdefgh1234567",
    });
});
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.GetContainerDedicatedHostPoolArgs;
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 testDhostpool = IbmFunctions.getContainerDedicatedHostPool(GetContainerDedicatedHostPoolArgs.builder()
            .hostPoolId("dh-abcdefgh1234567")
            .build());
    }
}
variables:
  testDhostpool:
    fn::invoke:
      function: ibm:getContainerDedicatedHostPool
      arguments:
        hostPoolId: dh-abcdefgh1234567
Using getContainerDedicatedHostPool
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 getContainerDedicatedHostPool(args: GetContainerDedicatedHostPoolArgs, opts?: InvokeOptions): Promise<GetContainerDedicatedHostPoolResult>
function getContainerDedicatedHostPoolOutput(args: GetContainerDedicatedHostPoolOutputArgs, opts?: InvokeOptions): Output<GetContainerDedicatedHostPoolResult>def get_container_dedicated_host_pool(host_pool_id: Optional[str] = None,
                                      id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetContainerDedicatedHostPoolResult
def get_container_dedicated_host_pool_output(host_pool_id: Optional[pulumi.Input[str]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetContainerDedicatedHostPoolResult]func LookupContainerDedicatedHostPool(ctx *Context, args *LookupContainerDedicatedHostPoolArgs, opts ...InvokeOption) (*LookupContainerDedicatedHostPoolResult, error)
func LookupContainerDedicatedHostPoolOutput(ctx *Context, args *LookupContainerDedicatedHostPoolOutputArgs, opts ...InvokeOption) LookupContainerDedicatedHostPoolResultOutput> Note: This function is named LookupContainerDedicatedHostPool in the Go SDK.
public static class GetContainerDedicatedHostPool 
{
    public static Task<GetContainerDedicatedHostPoolResult> InvokeAsync(GetContainerDedicatedHostPoolArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerDedicatedHostPoolResult> Invoke(GetContainerDedicatedHostPoolInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainerDedicatedHostPoolResult> getContainerDedicatedHostPool(GetContainerDedicatedHostPoolArgs args, InvokeOptions options)
public static Output<GetContainerDedicatedHostPoolResult> getContainerDedicatedHostPool(GetContainerDedicatedHostPoolArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getContainerDedicatedHostPool:getContainerDedicatedHostPool
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Host
Pool stringId  - The unique identifier of the dedicated host pool.
 - Id string
 
- Host
Pool stringId  - The unique identifier of the dedicated host pool.
 - Id string
 
- host
Pool StringId  - The unique identifier of the dedicated host pool.
 - id String
 
- host
Pool stringId  - The unique identifier of the dedicated host pool.
 - id string
 
- host_
pool_ strid  - The unique identifier of the dedicated host pool.
 - id str
 
- host
Pool StringId  - The unique identifier of the dedicated host pool.
 - id String
 
getContainerDedicatedHostPool Result
The following output properties are available:
- Flavor
Class string - (String) The flavor class of the dedicated host pool.
 - Host
Count double - (Int) The count of the hosts under the zone.
 - Host
Pool stringId  - Id string
 - Metro string
 - (String) The metro to create the dedicated host pool in.
 - Name string
 - (String) The name of the dedicated host pool.
 - State string
 - (String) The state of the dedicated host pool.
 - Worker
Pools List<GetContainer Dedicated Host Pool Worker Pool>  - (List) A nested block describes the worker pools of this dedicated host pool.
 - Zones
List<Get
Container Dedicated Host Pool Zone>  - (List) A nested block describes the zones of this dedicated host pool.
 
- Flavor
Class string - (String) The flavor class of the dedicated host pool.
 - Host
Count float64 - (Int) The count of the hosts under the zone.
 - Host
Pool stringId  - Id string
 - Metro string
 - (String) The metro to create the dedicated host pool in.
 - Name string
 - (String) The name of the dedicated host pool.
 - State string
 - (String) The state of the dedicated host pool.
 - Worker
Pools []GetContainer Dedicated Host Pool Worker Pool  - (List) A nested block describes the worker pools of this dedicated host pool.
 - Zones
[]Get
Container Dedicated Host Pool Zone  - (List) A nested block describes the zones of this dedicated host pool.
 
- flavor
Class String - (String) The flavor class of the dedicated host pool.
 - host
Count Double - (Int) The count of the hosts under the zone.
 - host
Pool StringId  - id String
 - metro String
 - (String) The metro to create the dedicated host pool in.
 - name String
 - (String) The name of the dedicated host pool.
 - state String
 - (String) The state of the dedicated host pool.
 - worker
Pools List<GetContainer Dedicated Host Pool Worker Pool>  - (List) A nested block describes the worker pools of this dedicated host pool.
 - zones
List<Get
Container Dedicated Host Pool Zone>  - (List) A nested block describes the zones of this dedicated host pool.
 
- flavor
Class string - (String) The flavor class of the dedicated host pool.
 - host
Count number - (Int) The count of the hosts under the zone.
 - host
Pool stringId  - id string
 - metro string
 - (String) The metro to create the dedicated host pool in.
 - name string
 - (String) The name of the dedicated host pool.
 - state string
 - (String) The state of the dedicated host pool.
 - worker
Pools GetContainer Dedicated Host Pool Worker Pool[]  - (List) A nested block describes the worker pools of this dedicated host pool.
 - zones
Get
Container Dedicated Host Pool Zone[]  - (List) A nested block describes the zones of this dedicated host pool.
 
- flavor_
class str - (String) The flavor class of the dedicated host pool.
 - host_
count float - (Int) The count of the hosts under the zone.
 - host_
pool_ strid  - id str
 - metro str
 - (String) The metro to create the dedicated host pool in.
 - name str
 - (String) The name of the dedicated host pool.
 - state str
 - (String) The state of the dedicated host pool.
 - worker_
pools Sequence[GetContainer Dedicated Host Pool Worker Pool]  - (List) A nested block describes the worker pools of this dedicated host pool.
 - zones
Sequence[Get
Container Dedicated Host Pool Zone]  - (List) A nested block describes the zones of this dedicated host pool.
 
- flavor
Class String - (String) The flavor class of the dedicated host pool.
 - host
Count Number - (Int) The count of the hosts under the zone.
 - host
Pool StringId  - id String
 - metro String
 - (String) The metro to create the dedicated host pool in.
 - name String
 - (String) The name of the dedicated host pool.
 - state String
 - (String) The state of the dedicated host pool.
 - worker
Pools List<Property Map> - (List) A nested block describes the worker pools of this dedicated host pool.
 - zones List<Property Map>
 - (List) A nested block describes the zones of this dedicated host pool.
 
Supporting Types
GetContainerDedicatedHostPoolWorkerPool      
- Cluster
Id string - (String) The ID of the cluster.
 - Worker
Pool stringId  - (String) The unique identifier of the worker pool.
 
- Cluster
Id string - (String) The ID of the cluster.
 - Worker
Pool stringId  - (String) The unique identifier of the worker pool.
 
- cluster
Id String - (String) The ID of the cluster.
 - worker
Pool StringId  - (String) The unique identifier of the worker pool.
 
- cluster
Id string - (String) The ID of the cluster.
 - worker
Pool stringId  - (String) The unique identifier of the worker pool.
 
- cluster_
id str - (String) The ID of the cluster.
 - worker_
pool_ strid  - (String) The unique identifier of the worker pool.
 
- cluster
Id String - (String) The ID of the cluster.
 - worker
Pool StringId  - (String) The unique identifier of the worker pool.
 
GetContainerDedicatedHostPoolZone     
- Capacities
List<Get
Container Dedicated Host Pool Zone Capacity>  - (Map) A nested block describes the capacity of the zone.
Nested scheme for 
capacity: - Host
Count double - (Int) The count of the hosts under the zone.
 - Zone string
 - (String) The name of the zone.
 
- Capacities
[]Get
Container Dedicated Host Pool Zone Capacity  - (Map) A nested block describes the capacity of the zone.
Nested scheme for 
capacity: - Host
Count float64 - (Int) The count of the hosts under the zone.
 - Zone string
 - (String) The name of the zone.
 
- capacities
List<Get
Container Dedicated Host Pool Zone Capacity>  - (Map) A nested block describes the capacity of the zone.
Nested scheme for 
capacity: - host
Count Double - (Int) The count of the hosts under the zone.
 - zone String
 - (String) The name of the zone.
 
- capacities
Get
Container Dedicated Host Pool Zone Capacity[]  - (Map) A nested block describes the capacity of the zone.
Nested scheme for 
capacity: - host
Count number - (Int) The count of the hosts under the zone.
 - zone string
 - (String) The name of the zone.
 
- capacities
Sequence[Get
Container Dedicated Host Pool Zone Capacity]  - (Map) A nested block describes the capacity of the zone.
Nested scheme for 
capacity: - host_
count float - (Int) The count of the hosts under the zone.
 - zone str
 - (String) The name of the zone.
 
- capacities List<Property Map>
 - (Map) A nested block describes the capacity of the zone.
Nested scheme for 
capacity: - host
Count Number - (Int) The count of the hosts under the zone.
 - zone String
 - (String) The name of the zone.
 
GetContainerDedicatedHostPoolZoneCapacity      
- Memory
Bytes double - (Int) Memory capacity of the zone.
 - Vcpu double
 - (Int) VCPU capacity of the zone.
 
- Memory
Bytes float64 - (Int) Memory capacity of the zone.
 - Vcpu float64
 - (Int) VCPU capacity of the zone.
 
- memory
Bytes Double - (Int) Memory capacity of the zone.
 - vcpu Double
 - (Int) VCPU capacity of the zone.
 
- memory
Bytes number - (Int) Memory capacity of the zone.
 - vcpu number
 - (Int) VCPU capacity of the zone.
 
- memory_
bytes float - (Int) Memory capacity of the zone.
 - vcpu float
 - (Int) VCPU capacity of the zone.
 
- memory
Bytes Number - (Int) Memory capacity of the zone.
 - vcpu Number
 - (Int) VCPU capacity of the zone.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.