opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getDehHostV1
Explore with Pulumi AI
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:
- Availability
Zone 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 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 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 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.
- availability
Zone 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:
- Auto
Placement string - Allows a instance to be automatically placed onto the available Dedicated Hosts.
- Available
Instance List<GetCapacities Deh Host V1Available Instance Capacity> - The VM flavors placed on the Dedicated Host.
- Available
Memory double - The size of available memory for the Dedicated Host.
- Available
Vcpus double - Thenumber of available vCPUs for the Dedicated Host.
- Cores double
- The number of hosts physical cores.
- Host
Type string - The Dedicated Host type.
- Host
Type stringName - The Dedicated Host name of type.
- Instance
Total double - The number of the placed VMs.
- Instance
Uuids 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.
- Tenant
Id string - The UUID of the tenant in a multi-tenancy cloud.
- Vcpus double
- The number of host vCPUs.
- Availability
Zone string - The Availability Zone to which the Dedicated Host belongs.
- Id string
- Name string
- Status string
- The Dedicated Host status.
- Auto
Placement string - Allows a instance to be automatically placed onto the available Dedicated Hosts.
- Available
Instance []GetCapacities Deh Host V1Available Instance Capacity - The VM flavors placed on the Dedicated Host.
- Available
Memory float64 - The size of available memory for the Dedicated Host.
- Available
Vcpus float64 - Thenumber of available vCPUs for the Dedicated Host.
- Cores float64
- The number of hosts physical cores.
- Host
Type string - The Dedicated Host type.
- Host
Type stringName - The Dedicated Host name of type.
- Instance
Total float64 - The number of the placed VMs.
- Instance
Uuids []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.
- Tenant
Id string - The UUID of the tenant in a multi-tenancy cloud.
- Vcpus float64
- The number of host vCPUs.
- Availability
Zone string - The Availability Zone to which the Dedicated Host belongs.
- Id string
- Name string
- Status string
- The Dedicated Host status.
- auto
Placement String - Allows a instance to be automatically placed onto the available Dedicated Hosts.
- available
Instance List<GetCapacities Deh Host V1Available Instance Capacity> - The VM flavors placed on the Dedicated Host.
- available
Memory Double - The size of available memory for the Dedicated Host.
- available
Vcpus Double - Thenumber of available vCPUs for the Dedicated Host.
- cores Double
- The number of hosts physical cores.
- host
Type String - The Dedicated Host type.
- host
Type StringName - The Dedicated Host name of type.
- instance
Total Double - The number of the placed VMs.
- instance
Uuids 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.
- tenant
Id String - The UUID of the tenant in a multi-tenancy cloud.
- vcpus Double
- The number of host vCPUs.
- availability
Zone String - The Availability Zone to which the Dedicated Host belongs.
- id String
- name String
- status String
- The Dedicated Host status.
- auto
Placement string - Allows a instance to be automatically placed onto the available Dedicated Hosts.
- available
Instance GetCapacities Deh Host V1Available Instance Capacity[] - The VM flavors placed on the Dedicated Host.
- available
Memory number - The size of available memory for the Dedicated Host.
- available
Vcpus number - Thenumber of available vCPUs for the Dedicated Host.
- cores number
- The number of hosts physical cores.
- host
Type string - The Dedicated Host type.
- host
Type stringName - The Dedicated Host name of type.
- instance
Total number - The number of the placed VMs.
- instance
Uuids 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.
- tenant
Id string - The UUID of the tenant in a multi-tenancy cloud.
- vcpus number
- The number of host vCPUs.
- availability
Zone 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_ Sequence[Getcapacities Deh Host V1Available Instance Capacity] - 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_ strname - 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.
- auto
Placement String - Allows a instance to be automatically placed onto the available Dedicated Hosts.
- available
Instance List<Property Map>Capacities - The VM flavors placed on the Dedicated Host.
- available
Memory Number - The size of available memory for the Dedicated Host.
- available
Vcpus Number - Thenumber of available vCPUs for the Dedicated Host.
- cores Number
- The number of hosts physical cores.
- host
Type String - The Dedicated Host type.
- host
Type StringName - The Dedicated Host name of type.
- instance
Total Number - The number of the placed VMs.
- instance
Uuids 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.
- tenant
Id String - The UUID of the tenant in a multi-tenancy cloud.
- vcpus Number
- The number of host vCPUs.
- availability
Zone 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 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud