1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getDehHostV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getDehHostV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for DEH host you can get at documentation portal

    Use this data source to get details about the allocated dedicated hosts from OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const dehId = config.requireObject("dehId");
    const dehHost = opentelekomcloud.getDehHostV1({
        id: dehId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    deh_id = config.require_object("dehId")
    deh_host = opentelekomcloud.get_deh_host_v1(id=deh_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		dehId := cfg.RequireObject("dehId")
    		_, err := opentelekomcloud.LookupDehHostV1(ctx, &opentelekomcloud.LookupDehHostV1Args{
    			Id: pulumi.StringRef(dehId),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var dehId = config.RequireObject<dynamic>("dehId");
        var dehHost = Opentelekomcloud.GetDehHostV1.Invoke(new()
        {
            Id = dehId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetDehHostV1Args;
    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 config = ctx.config();
            final var dehId = config.get("dehId");
            final var dehHost = OpentelekomcloudFunctions.getDehHostV1(GetDehHostV1Args.builder()
                .id(dehId)
                .build());
    
        }
    }
    
    configuration:
      dehId:
        type: dynamic
    variables:
      dehHost:
        fn::invoke:
          function: opentelekomcloud:getDehHostV1
          arguments:
            id: ${dehId}
    

    Using getDehHostV1

    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 getDehHostV1(args: GetDehHostV1Args, opts?: InvokeOptions): Promise<GetDehHostV1Result>
    function getDehHostV1Output(args: GetDehHostV1OutputArgs, opts?: InvokeOptions): Output<GetDehHostV1Result>
    def get_deh_host_v1(availability_zone: Optional[str] = None,
                        id: Optional[str] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None,
                        status: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDehHostV1Result
    def get_deh_host_v1_output(availability_zone: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        region: Optional[pulumi.Input[str]] = None,
                        status: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDehHostV1Result]
    func LookupDehHostV1(ctx *Context, args *LookupDehHostV1Args, opts ...InvokeOption) (*LookupDehHostV1Result, error)
    func LookupDehHostV1Output(ctx *Context, args *LookupDehHostV1OutputArgs, opts ...InvokeOption) LookupDehHostV1ResultOutput

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

    public static class GetDehHostV1 
    {
        public static Task<GetDehHostV1Result> InvokeAsync(GetDehHostV1Args args, InvokeOptions? opts = null)
        public static Output<GetDehHostV1Result> Invoke(GetDehHostV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDehHostV1Result> getDehHostV1(GetDehHostV1Args args, InvokeOptions options)
    public static Output<GetDehHostV1Result> getDehHostV1(GetDehHostV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getDehHostV1:getDehHostV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AvailabilityZone string
    The Availability Zone to which the Dedicated Host belongs.
    Id string
    The Dedicated Host ID.
    Name string
    The Dedicated Host name.
    Region string
    Status string
    The Dedicated Host status.
    AvailabilityZone string
    The Availability Zone to which the Dedicated Host belongs.
    Id string
    The Dedicated Host ID.
    Name string
    The Dedicated Host name.
    Region string
    Status string
    The Dedicated Host status.
    availabilityZone String
    The Availability Zone to which the Dedicated Host belongs.
    id String
    The Dedicated Host ID.
    name String
    The Dedicated Host name.
    region String
    status String
    The Dedicated Host status.
    availabilityZone string
    The Availability Zone to which the Dedicated Host belongs.
    id string
    The Dedicated Host ID.
    name string
    The Dedicated Host name.
    region string
    status string
    The Dedicated Host status.
    availability_zone str
    The Availability Zone to which the Dedicated Host belongs.
    id str
    The Dedicated Host ID.
    name str
    The Dedicated Host name.
    region str
    status str
    The Dedicated Host status.
    availabilityZone String
    The Availability Zone to which the Dedicated Host belongs.
    id String
    The Dedicated Host ID.
    name String
    The Dedicated Host name.
    region String
    status String
    The Dedicated Host status.

    getDehHostV1 Result

    The following output properties are available:

    AutoPlacement string
    Allows a instance to be automatically placed onto the available Dedicated Hosts.
    AvailableInstanceCapacities List<GetDehHostV1AvailableInstanceCapacity>
    The VM flavors placed on the Dedicated Host.
    AvailableMemory double
    The size of available memory for the Dedicated Host.
    AvailableVcpus double
    Thenumber of available vCPUs for the Dedicated Host.
    Cores double
    The number of hosts physical cores.
    HostType string
    The Dedicated Host type.
    HostTypeName string
    The Dedicated Host name of type.
    InstanceTotal double
    The number of the placed VMs.
    InstanceUuids List<string>
    The VMs started on the Dedicated Host.
    Memory double
    The size of host physical memory (MB).
    Region string
    Sockets double
    The number of host physical sockets.
    TenantId string
    The UUID of the tenant in a multi-tenancy cloud.
    Vcpus double
    The number of host vCPUs.
    AvailabilityZone string
    The Availability Zone to which the Dedicated Host belongs.
    Id string
    Name string
    Status string
    The Dedicated Host status.
    AutoPlacement string
    Allows a instance to be automatically placed onto the available Dedicated Hosts.
    AvailableInstanceCapacities []GetDehHostV1AvailableInstanceCapacity
    The VM flavors placed on the Dedicated Host.
    AvailableMemory float64
    The size of available memory for the Dedicated Host.
    AvailableVcpus float64
    Thenumber of available vCPUs for the Dedicated Host.
    Cores float64
    The number of hosts physical cores.
    HostType string
    The Dedicated Host type.
    HostTypeName string
    The Dedicated Host name of type.
    InstanceTotal float64
    The number of the placed VMs.
    InstanceUuids []string
    The VMs started on the Dedicated Host.
    Memory float64
    The size of host physical memory (MB).
    Region string
    Sockets float64
    The number of host physical sockets.
    TenantId string
    The UUID of the tenant in a multi-tenancy cloud.
    Vcpus float64
    The number of host vCPUs.
    AvailabilityZone string
    The Availability Zone to which the Dedicated Host belongs.
    Id string
    Name string
    Status string
    The Dedicated Host status.
    autoPlacement String
    Allows a instance to be automatically placed onto the available Dedicated Hosts.
    availableInstanceCapacities List<GetDehHostV1AvailableInstanceCapacity>
    The VM flavors placed on the Dedicated Host.
    availableMemory Double
    The size of available memory for the Dedicated Host.
    availableVcpus Double
    Thenumber of available vCPUs for the Dedicated Host.
    cores Double
    The number of hosts physical cores.
    hostType String
    The Dedicated Host type.
    hostTypeName String
    The Dedicated Host name of type.
    instanceTotal Double
    The number of the placed VMs.
    instanceUuids List<String>
    The VMs started on the Dedicated Host.
    memory Double
    The size of host physical memory (MB).
    region String
    sockets Double
    The number of host physical sockets.
    tenantId String
    The UUID of the tenant in a multi-tenancy cloud.
    vcpus Double
    The number of host vCPUs.
    availabilityZone String
    The Availability Zone to which the Dedicated Host belongs.
    id String
    name String
    status String
    The Dedicated Host status.
    autoPlacement string
    Allows a instance to be automatically placed onto the available Dedicated Hosts.
    availableInstanceCapacities GetDehHostV1AvailableInstanceCapacity[]
    The VM flavors placed on the Dedicated Host.
    availableMemory number
    The size of available memory for the Dedicated Host.
    availableVcpus number
    Thenumber of available vCPUs for the Dedicated Host.
    cores number
    The number of hosts physical cores.
    hostType string
    The Dedicated Host type.
    hostTypeName string
    The Dedicated Host name of type.
    instanceTotal number
    The number of the placed VMs.
    instanceUuids string[]
    The VMs started on the Dedicated Host.
    memory number
    The size of host physical memory (MB).
    region string
    sockets number
    The number of host physical sockets.
    tenantId string
    The UUID of the tenant in a multi-tenancy cloud.
    vcpus number
    The number of host vCPUs.
    availabilityZone string
    The Availability Zone to which the Dedicated Host belongs.
    id string
    name string
    status string
    The Dedicated Host status.
    auto_placement str
    Allows a instance to be automatically placed onto the available Dedicated Hosts.
    available_instance_capacities Sequence[GetDehHostV1AvailableInstanceCapacity]
    The VM flavors placed on the Dedicated Host.
    available_memory float
    The size of available memory for the Dedicated Host.
    available_vcpus float
    Thenumber of available vCPUs for the Dedicated Host.
    cores float
    The number of hosts physical cores.
    host_type str
    The Dedicated Host type.
    host_type_name str
    The Dedicated Host name of type.
    instance_total float
    The number of the placed VMs.
    instance_uuids Sequence[str]
    The VMs started on the Dedicated Host.
    memory float
    The size of host physical memory (MB).
    region str
    sockets float
    The number of host physical sockets.
    tenant_id str
    The UUID of the tenant in a multi-tenancy cloud.
    vcpus float
    The number of host vCPUs.
    availability_zone str
    The Availability Zone to which the Dedicated Host belongs.
    id str
    name str
    status str
    The Dedicated Host status.
    autoPlacement String
    Allows a instance to be automatically placed onto the available Dedicated Hosts.
    availableInstanceCapacities List<Property Map>
    The VM flavors placed on the Dedicated Host.
    availableMemory Number
    The size of available memory for the Dedicated Host.
    availableVcpus Number
    Thenumber of available vCPUs for the Dedicated Host.
    cores Number
    The number of hosts physical cores.
    hostType String
    The Dedicated Host type.
    hostTypeName String
    The Dedicated Host name of type.
    instanceTotal Number
    The number of the placed VMs.
    instanceUuids List<String>
    The VMs started on the Dedicated Host.
    memory Number
    The size of host physical memory (MB).
    region String
    sockets Number
    The number of host physical sockets.
    tenantId String
    The UUID of the tenant in a multi-tenancy cloud.
    vcpus Number
    The number of host vCPUs.
    availabilityZone String
    The Availability Zone to which the Dedicated Host belongs.
    id String
    name String
    status String
    The Dedicated Host status.

    Supporting Types

    GetDehHostV1AvailableInstanceCapacity

    Flavor string
    Flavor string
    flavor String
    flavor string
    flavor str
    flavor String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud