Alibaba Cloud v3.87.0 published on Saturday, Oct 18, 2025 by Pulumi
alicloud.ecs.getDedicatedHosts
This data source provides the ECS Dedicated Hosts of the current Alibaba Cloud user.
NOTE: Available since v1.91.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.ecs.DedicatedHost("default", {
dedicatedHostType: "ddh.c5",
description: "From_Terraform",
dedicatedHostName: name,
actionOnMaintenance: "Migrate",
tags: {
Create: "TF",
For: "ddh-test",
},
});
const ids = alicloud.ecs.getDedicatedHostsOutput({
ids: [_default.id],
});
export const ecsDedicatedHostId0 = ids.apply(ids => ids.hosts?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.ecs.DedicatedHost("default",
dedicated_host_type="ddh.c5",
description="From_Terraform",
dedicated_host_name=name,
action_on_maintenance="Migrate",
tags={
"Create": "TF",
"For": "ddh-test",
})
ids = alicloud.ecs.get_dedicated_hosts_output(ids=[default.id])
pulumi.export("ecsDedicatedHostId0", ids.hosts[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"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, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := ecs.NewDedicatedHost(ctx, "default", &ecs.DedicatedHostArgs{
DedicatedHostType: pulumi.String("ddh.c5"),
Description: pulumi.String("From_Terraform"),
DedicatedHostName: pulumi.String(name),
ActionOnMaintenance: pulumi.String("Migrate"),
Tags: pulumi.StringMap{
"Create": pulumi.String("TF"),
"For": pulumi.String("ddh-test"),
},
})
if err != nil {
return err
}
ids := ecs.GetDedicatedHostsOutput(ctx, ecs.GetDedicatedHostsOutputArgs{
Ids: pulumi.StringArray{
_default.ID(),
},
}, nil)
ctx.Export("ecsDedicatedHostId0", ids.ApplyT(func(ids ecs.GetDedicatedHostsResult) (*string, error) {
return &ids.Hosts[0].Id, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Ecs.DedicatedHost("default", new()
{
DedicatedHostType = "ddh.c5",
Description = "From_Terraform",
DedicatedHostName = name,
ActionOnMaintenance = "Migrate",
Tags =
{
{ "Create", "TF" },
{ "For", "ddh-test" },
},
});
var ids = AliCloud.Ecs.GetDedicatedHosts.Invoke(new()
{
Ids = new[]
{
@default.Id,
},
});
return new Dictionary<string, object?>
{
["ecsDedicatedHostId0"] = ids.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.DedicatedHost;
import com.pulumi.alicloud.ecs.DedicatedHostArgs;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetDedicatedHostsArgs;
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 name = config.get("name").orElse("terraform-example");
var default_ = new DedicatedHost("default", DedicatedHostArgs.builder()
.dedicatedHostType("ddh.c5")
.description("From_Terraform")
.dedicatedHostName(name)
.actionOnMaintenance("Migrate")
.tags(Map.ofEntries(
Map.entry("Create", "TF"),
Map.entry("For", "ddh-test")
))
.build());
final var ids = EcsFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
.ids(default_.id())
.build());
ctx.export("ecsDedicatedHostId0", ids.applyValue(_ids -> _ids.hosts()[0].id()));
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:ecs:DedicatedHost
properties:
dedicatedHostType: ddh.c5
description: From_Terraform
dedicatedHostName: ${name}
actionOnMaintenance: Migrate
tags:
Create: TF
For: ddh-test
variables:
ids:
fn::invoke:
function: alicloud:ecs:getDedicatedHosts
arguments:
ids:
- ${default.id}
outputs:
ecsDedicatedHostId0: ${ids.hosts[0].id}
Using getDedicatedHosts
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 getDedicatedHosts(args: GetDedicatedHostsArgs, opts?: InvokeOptions): Promise<GetDedicatedHostsResult>
function getDedicatedHostsOutput(args: GetDedicatedHostsOutputArgs, opts?: InvokeOptions): Output<GetDedicatedHostsResult>def get_dedicated_hosts(dedicated_host_id: Optional[str] = None,
dedicated_host_name: Optional[str] = None,
dedicated_host_type: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
operation_locks: Optional[Sequence[GetDedicatedHostsOperationLock]] = None,
output_file: Optional[str] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDedicatedHostsResult
def get_dedicated_hosts_output(dedicated_host_id: Optional[pulumi.Input[str]] = None,
dedicated_host_name: Optional[pulumi.Input[str]] = None,
dedicated_host_type: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
operation_locks: Optional[pulumi.Input[Sequence[pulumi.Input[GetDedicatedHostsOperationLockArgs]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedHostsResult]func GetDedicatedHosts(ctx *Context, args *GetDedicatedHostsArgs, opts ...InvokeOption) (*GetDedicatedHostsResult, error)
func GetDedicatedHostsOutput(ctx *Context, args *GetDedicatedHostsOutputArgs, opts ...InvokeOption) GetDedicatedHostsResultOutput> Note: This function is named GetDedicatedHosts in the Go SDK.
public static class GetDedicatedHosts
{
public static Task<GetDedicatedHostsResult> InvokeAsync(GetDedicatedHostsArgs args, InvokeOptions? opts = null)
public static Output<GetDedicatedHostsResult> Invoke(GetDedicatedHostsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDedicatedHostsResult> getDedicatedHosts(GetDedicatedHostsArgs args, InvokeOptions options)
public static Output<GetDedicatedHostsResult> getDedicatedHosts(GetDedicatedHostsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:ecs/getDedicatedHosts:getDedicatedHosts
arguments:
# arguments dictionaryThe following arguments are supported:
- Dedicated
Host stringId - The ID of ECS Dedicated Host.
- Dedicated
Host stringName - The name of ECS Dedicated Host.
- Dedicated
Host stringType - The type of the dedicated host.
- Ids List<string>
- A list of ECS Dedicated Host ids.
- Name
Regex string - A regex string to filter results by the ECS Dedicated Host name.
- Operation
Locks List<Pulumi.Ali Cloud. Ecs. Inputs. Get Dedicated Hosts Operation Lock> - The reason why the dedicated host resource is locked. See
operation_locksbelow. - Output
File string - Save the result to the file.
- Resource
Group stringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- Status string
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Zone
Id string - The zone ID of the ECS Dedicated Host.
- Dedicated
Host stringId - The ID of ECS Dedicated Host.
- Dedicated
Host stringName - The name of ECS Dedicated Host.
- Dedicated
Host stringType - The type of the dedicated host.
- Ids []string
- A list of ECS Dedicated Host ids.
- Name
Regex string - A regex string to filter results by the ECS Dedicated Host name.
- Operation
Locks []GetDedicated Hosts Operation Lock - The reason why the dedicated host resource is locked. See
operation_locksbelow. - Output
File string - Save the result to the file.
- Resource
Group stringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- Status string
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - map[string]string
- A mapping of tags to assign to the resource.
- Zone
Id string - The zone ID of the ECS Dedicated Host.
- dedicated
Host StringId - The ID of ECS Dedicated Host.
- dedicated
Host StringName - The name of ECS Dedicated Host.
- dedicated
Host StringType - The type of the dedicated host.
- ids List<String>
- A list of ECS Dedicated Host ids.
- name
Regex String - A regex string to filter results by the ECS Dedicated Host name.
- operation
Locks List<GetDedicated Hosts Operation Lock> - The reason why the dedicated host resource is locked. See
operation_locksbelow. - output
File String - Save the result to the file.
- resource
Group StringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- status String
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - Map<String,String>
- A mapping of tags to assign to the resource.
- zone
Id String - The zone ID of the ECS Dedicated Host.
- dedicated
Host stringId - The ID of ECS Dedicated Host.
- dedicated
Host stringName - The name of ECS Dedicated Host.
- dedicated
Host stringType - The type of the dedicated host.
- ids string[]
- A list of ECS Dedicated Host ids.
- name
Regex string - A regex string to filter results by the ECS Dedicated Host name.
- operation
Locks GetDedicated Hosts Operation Lock[] - The reason why the dedicated host resource is locked. See
operation_locksbelow. - output
File string - Save the result to the file.
- resource
Group stringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- status string
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- zone
Id string - The zone ID of the ECS Dedicated Host.
- dedicated_
host_ strid - The ID of ECS Dedicated Host.
- dedicated_
host_ strname - The name of ECS Dedicated Host.
- dedicated_
host_ strtype - The type of the dedicated host.
- ids Sequence[str]
- A list of ECS Dedicated Host ids.
- name_
regex str - A regex string to filter results by the ECS Dedicated Host name.
- operation_
locks Sequence[GetDedicated Hosts Operation Lock] - The reason why the dedicated host resource is locked. See
operation_locksbelow. - output_
file str - Save the result to the file.
- resource_
group_ strid - The ID of the resource group to which the ECS Dedicated Host belongs.
- status str
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- zone_
id str - The zone ID of the ECS Dedicated Host.
- dedicated
Host StringId - The ID of ECS Dedicated Host.
- dedicated
Host StringName - The name of ECS Dedicated Host.
- dedicated
Host StringType - The type of the dedicated host.
- ids List<String>
- A list of ECS Dedicated Host ids.
- name
Regex String - A regex string to filter results by the ECS Dedicated Host name.
- operation
Locks List<Property Map> - The reason why the dedicated host resource is locked. See
operation_locksbelow. - output
File String - Save the result to the file.
- resource
Group StringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- status String
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - Map<String>
- A mapping of tags to assign to the resource.
- zone
Id String - The zone ID of the ECS Dedicated Host.
getDedicatedHosts Result
The following output properties are available:
- Hosts
List<Pulumi.
Ali Cloud. Ecs. Outputs. Get Dedicated Hosts Host> - A list of ECS Dedicated Hosts. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of ECS Dedicated Host names.
- Dedicated
Host stringId - ID of the ECS Dedicated Host.
- Dedicated
Host stringName - The name of the dedicated host.
- Dedicated
Host stringType - The type of the dedicated host.
- Name
Regex string - Operation
Locks List<Pulumi.Ali Cloud. Ecs. Outputs. Get Dedicated Hosts Operation Lock> - (Available since v1.123.1) The operation_locks. contains the following attribute:
- Output
File string - Resource
Group stringId - The ID of the resource group to which the dedicated host belongs.
- Status string
- The service status of the dedicated host.
- Dictionary<string, string>
- The tags of the dedicated host.
- Zone
Id string - The zone id of the dedicated host.
- Hosts
[]Get
Dedicated Hosts Host - A list of ECS Dedicated Hosts. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of ECS Dedicated Host names.
- Dedicated
Host stringId - ID of the ECS Dedicated Host.
- Dedicated
Host stringName - The name of the dedicated host.
- Dedicated
Host stringType - The type of the dedicated host.
- Name
Regex string - Operation
Locks []GetDedicated Hosts Operation Lock - (Available since v1.123.1) The operation_locks. contains the following attribute:
- Output
File string - Resource
Group stringId - The ID of the resource group to which the dedicated host belongs.
- Status string
- The service status of the dedicated host.
- map[string]string
- The tags of the dedicated host.
- Zone
Id string - The zone id of the dedicated host.
- hosts
List<Get
Dedicated Hosts Host> - A list of ECS Dedicated Hosts. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of ECS Dedicated Host names.
- dedicated
Host StringId - ID of the ECS Dedicated Host.
- dedicated
Host StringName - The name of the dedicated host.
- dedicated
Host StringType - The type of the dedicated host.
- name
Regex String - operation
Locks List<GetDedicated Hosts Operation Lock> - (Available since v1.123.1) The operation_locks. contains the following attribute:
- output
File String - resource
Group StringId - The ID of the resource group to which the dedicated host belongs.
- status String
- The service status of the dedicated host.
- Map<String,String>
- The tags of the dedicated host.
- zone
Id String - The zone id of the dedicated host.
- hosts
Get
Dedicated Hosts Host[] - A list of ECS Dedicated Hosts. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of ECS Dedicated Host names.
- dedicated
Host stringId - ID of the ECS Dedicated Host.
- dedicated
Host stringName - The name of the dedicated host.
- dedicated
Host stringType - The type of the dedicated host.
- name
Regex string - operation
Locks GetDedicated Hosts Operation Lock[] - (Available since v1.123.1) The operation_locks. contains the following attribute:
- output
File string - resource
Group stringId - The ID of the resource group to which the dedicated host belongs.
- status string
- The service status of the dedicated host.
- {[key: string]: string}
- The tags of the dedicated host.
- zone
Id string - The zone id of the dedicated host.
- hosts
Sequence[Get
Dedicated Hosts Host] - A list of ECS Dedicated Hosts. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of ECS Dedicated Host names.
- dedicated_
host_ strid - ID of the ECS Dedicated Host.
- dedicated_
host_ strname - The name of the dedicated host.
- dedicated_
host_ strtype - The type of the dedicated host.
- name_
regex str - operation_
locks Sequence[GetDedicated Hosts Operation Lock] - (Available since v1.123.1) The operation_locks. contains the following attribute:
- output_
file str - resource_
group_ strid - The ID of the resource group to which the dedicated host belongs.
- status str
- The service status of the dedicated host.
- Mapping[str, str]
- The tags of the dedicated host.
- zone_
id str - The zone id of the dedicated host.
- hosts List<Property Map>
- A list of ECS Dedicated Hosts. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of ECS Dedicated Host names.
- dedicated
Host StringId - ID of the ECS Dedicated Host.
- dedicated
Host StringName - The name of the dedicated host.
- dedicated
Host StringType - The type of the dedicated host.
- name
Regex String - operation
Locks List<Property Map> - (Available since v1.123.1) The operation_locks. contains the following attribute:
- output
File String - resource
Group StringId - The ID of the resource group to which the dedicated host belongs.
- status String
- The service status of the dedicated host.
- Map<String>
- The tags of the dedicated host.
- zone
Id String - The zone id of the dedicated host.
Supporting Types
GetDedicatedHostsHost
- Action
On stringMaintenance - The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- Auto
Placement string - Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- Auto
Release stringTime - The automatic release time of the dedicated host.
- Capacities
List<Pulumi.
Ali Cloud. Ecs. Inputs. Get Dedicated Hosts Host Capacity> - (Available since v1.123.1) A collection of proprietary host performance indicators.
- Cores int
- A mapping of tags to assign to the resource.
- Cpu
Over doubleCommit Ratio - (Available since v1.123.1) CPU oversold ratio.
- Dedicated
Host stringId - The ID of ECS Dedicated Host.
- Dedicated
Host stringName - The name of ECS Dedicated Host.
- Dedicated
Host stringType - The type of the dedicated host.
- Description string
- The description of the dedicated host.
- Expired
Time string - The expiration time of the subscription dedicated host.
- Gpu
Spec string - The GPU model.
- Id string
- ID of the ECS Dedicated Host.
- Instances
List<Pulumi.
Ali Cloud. Ecs. Inputs. Get Dedicated Hosts Host Instance> - (Available since v1.250.0) The ECS instances that were created on the dedicated host.
- Machine
Id string - The machine code of the dedicated host.
- Network
Attributes List<Pulumi.Ali Cloud. Ecs. Inputs. Get Dedicated Hosts Host Network Attribute> - dedicated host network parameters. contains the following attributes:
- Operation
Locks List<Pulumi.Ali Cloud. Ecs. Inputs. Get Dedicated Hosts Host Operation Lock> - The reason why the dedicated host resource is locked. See
operation_locksbelow. - Payment
Type string - The billing method of the dedicated host.
- Physical
Gpus int - The number of physical GPUs.
- Resource
Group stringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- Sale
Cycle string - The unit of the subscription billing method.
- Sockets int
- The number of physical CPUs.
- Status string
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - Supported
Custom List<string>Instance Type Families - (Available since v1.123.1) A custom instance type family supported by a dedicated host.
- Supported
Instance List<string>Type Families - (Available since v1.123.1) ECS instance type family supported by the dedicated host.
- Supported
Instance List<string>Types Lists - The list of ECS instance.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Zone
Id string - The zone ID of the ECS Dedicated Host.
- Action
On stringMaintenance - The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- Auto
Placement string - Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- Auto
Release stringTime - The automatic release time of the dedicated host.
- Capacities
[]Get
Dedicated Hosts Host Capacity - (Available since v1.123.1) A collection of proprietary host performance indicators.
- Cores int
- A mapping of tags to assign to the resource.
- Cpu
Over float64Commit Ratio - (Available since v1.123.1) CPU oversold ratio.
- Dedicated
Host stringId - The ID of ECS Dedicated Host.
- Dedicated
Host stringName - The name of ECS Dedicated Host.
- Dedicated
Host stringType - The type of the dedicated host.
- Description string
- The description of the dedicated host.
- Expired
Time string - The expiration time of the subscription dedicated host.
- Gpu
Spec string - The GPU model.
- Id string
- ID of the ECS Dedicated Host.
- Instances
[]Get
Dedicated Hosts Host Instance - (Available since v1.250.0) The ECS instances that were created on the dedicated host.
- Machine
Id string - The machine code of the dedicated host.
- Network
Attributes []GetDedicated Hosts Host Network Attribute - dedicated host network parameters. contains the following attributes:
- Operation
Locks []GetDedicated Hosts Host Operation Lock - The reason why the dedicated host resource is locked. See
operation_locksbelow. - Payment
Type string - The billing method of the dedicated host.
- Physical
Gpus int - The number of physical GPUs.
- Resource
Group stringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- Sale
Cycle string - The unit of the subscription billing method.
- Sockets int
- The number of physical CPUs.
- Status string
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - Supported
Custom []stringInstance Type Families - (Available since v1.123.1) A custom instance type family supported by a dedicated host.
- Supported
Instance []stringType Families - (Available since v1.123.1) ECS instance type family supported by the dedicated host.
- Supported
Instance []stringTypes Lists - The list of ECS instance.
- map[string]string
- A mapping of tags to assign to the resource.
- Zone
Id string - The zone ID of the ECS Dedicated Host.
- action
On StringMaintenance - The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- auto
Placement String - Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- auto
Release StringTime - The automatic release time of the dedicated host.
- capacities
List<Get
Dedicated Hosts Host Capacity> - (Available since v1.123.1) A collection of proprietary host performance indicators.
- cores Integer
- A mapping of tags to assign to the resource.
- cpu
Over DoubleCommit Ratio - (Available since v1.123.1) CPU oversold ratio.
- dedicated
Host StringId - The ID of ECS Dedicated Host.
- dedicated
Host StringName - The name of ECS Dedicated Host.
- dedicated
Host StringType - The type of the dedicated host.
- description String
- The description of the dedicated host.
- expired
Time String - The expiration time of the subscription dedicated host.
- gpu
Spec String - The GPU model.
- id String
- ID of the ECS Dedicated Host.
- instances
List<Get
Dedicated Hosts Host Instance> - (Available since v1.250.0) The ECS instances that were created on the dedicated host.
- machine
Id String - The machine code of the dedicated host.
- network
Attributes List<GetDedicated Hosts Host Network Attribute> - dedicated host network parameters. contains the following attributes:
- operation
Locks List<GetDedicated Hosts Host Operation Lock> - The reason why the dedicated host resource is locked. See
operation_locksbelow. - payment
Type String - The billing method of the dedicated host.
- physical
Gpus Integer - The number of physical GPUs.
- resource
Group StringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- sale
Cycle String - The unit of the subscription billing method.
- sockets Integer
- The number of physical CPUs.
- status String
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - supported
Custom List<String>Instance Type Families - (Available since v1.123.1) A custom instance type family supported by a dedicated host.
- supported
Instance List<String>Type Families - (Available since v1.123.1) ECS instance type family supported by the dedicated host.
- supported
Instance List<String>Types Lists - The list of ECS instance.
- Map<String,String>
- A mapping of tags to assign to the resource.
- zone
Id String - The zone ID of the ECS Dedicated Host.
- action
On stringMaintenance - The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- auto
Placement string - Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- auto
Release stringTime - The automatic release time of the dedicated host.
- capacities
Get
Dedicated Hosts Host Capacity[] - (Available since v1.123.1) A collection of proprietary host performance indicators.
- cores number
- A mapping of tags to assign to the resource.
- cpu
Over numberCommit Ratio - (Available since v1.123.1) CPU oversold ratio.
- dedicated
Host stringId - The ID of ECS Dedicated Host.
- dedicated
Host stringName - The name of ECS Dedicated Host.
- dedicated
Host stringType - The type of the dedicated host.
- description string
- The description of the dedicated host.
- expired
Time string - The expiration time of the subscription dedicated host.
- gpu
Spec string - The GPU model.
- id string
- ID of the ECS Dedicated Host.
- instances
Get
Dedicated Hosts Host Instance[] - (Available since v1.250.0) The ECS instances that were created on the dedicated host.
- machine
Id string - The machine code of the dedicated host.
- network
Attributes GetDedicated Hosts Host Network Attribute[] - dedicated host network parameters. contains the following attributes:
- operation
Locks GetDedicated Hosts Host Operation Lock[] - The reason why the dedicated host resource is locked. See
operation_locksbelow. - payment
Type string - The billing method of the dedicated host.
- physical
Gpus number - The number of physical GPUs.
- resource
Group stringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- sale
Cycle string - The unit of the subscription billing method.
- sockets number
- The number of physical CPUs.
- status string
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - supported
Custom string[]Instance Type Families - (Available since v1.123.1) A custom instance type family supported by a dedicated host.
- supported
Instance string[]Type Families - (Available since v1.123.1) ECS instance type family supported by the dedicated host.
- supported
Instance string[]Types Lists - The list of ECS instance.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- zone
Id string - The zone ID of the ECS Dedicated Host.
- action_
on_ strmaintenance - The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- auto_
placement str - Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- auto_
release_ strtime - The automatic release time of the dedicated host.
- capacities
Sequence[Get
Dedicated Hosts Host Capacity] - (Available since v1.123.1) A collection of proprietary host performance indicators.
- cores int
- A mapping of tags to assign to the resource.
- cpu_
over_ floatcommit_ ratio - (Available since v1.123.1) CPU oversold ratio.
- dedicated_
host_ strid - The ID of ECS Dedicated Host.
- dedicated_
host_ strname - The name of ECS Dedicated Host.
- dedicated_
host_ strtype - The type of the dedicated host.
- description str
- The description of the dedicated host.
- expired_
time str - The expiration time of the subscription dedicated host.
- gpu_
spec str - The GPU model.
- id str
- ID of the ECS Dedicated Host.
- instances
Sequence[Get
Dedicated Hosts Host Instance] - (Available since v1.250.0) The ECS instances that were created on the dedicated host.
- machine_
id str - The machine code of the dedicated host.
- network_
attributes Sequence[GetDedicated Hosts Host Network Attribute] - dedicated host network parameters. contains the following attributes:
- operation_
locks Sequence[GetDedicated Hosts Host Operation Lock] - The reason why the dedicated host resource is locked. See
operation_locksbelow. - payment_
type str - The billing method of the dedicated host.
- physical_
gpus int - The number of physical GPUs.
- resource_
group_ strid - The ID of the resource group to which the ECS Dedicated Host belongs.
- sale_
cycle str - The unit of the subscription billing method.
- sockets int
- The number of physical CPUs.
- status str
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - supported_
custom_ Sequence[str]instance_ type_ families - (Available since v1.123.1) A custom instance type family supported by a dedicated host.
- supported_
instance_ Sequence[str]type_ families - (Available since v1.123.1) ECS instance type family supported by the dedicated host.
- supported_
instance_ Sequence[str]types_ lists - The list of ECS instance.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- zone_
id str - The zone ID of the ECS Dedicated Host.
- action
On StringMaintenance - The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- auto
Placement String - Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- auto
Release StringTime - The automatic release time of the dedicated host.
- capacities List<Property Map>
- (Available since v1.123.1) A collection of proprietary host performance indicators.
- cores Number
- A mapping of tags to assign to the resource.
- cpu
Over NumberCommit Ratio - (Available since v1.123.1) CPU oversold ratio.
- dedicated
Host StringId - The ID of ECS Dedicated Host.
- dedicated
Host StringName - The name of ECS Dedicated Host.
- dedicated
Host StringType - The type of the dedicated host.
- description String
- The description of the dedicated host.
- expired
Time String - The expiration time of the subscription dedicated host.
- gpu
Spec String - The GPU model.
- id String
- ID of the ECS Dedicated Host.
- instances List<Property Map>
- (Available since v1.250.0) The ECS instances that were created on the dedicated host.
- machine
Id String - The machine code of the dedicated host.
- network
Attributes List<Property Map> - dedicated host network parameters. contains the following attributes:
- operation
Locks List<Property Map> - The reason why the dedicated host resource is locked. See
operation_locksbelow. - payment
Type String - The billing method of the dedicated host.
- physical
Gpus Number - The number of physical GPUs.
- resource
Group StringId - The ID of the resource group to which the ECS Dedicated Host belongs.
- sale
Cycle String - The unit of the subscription billing method.
- sockets Number
- The number of physical CPUs.
- status String
- The status of the ECS Dedicated Host. Valid Value:
Available,Creating,PermanentFailure,Released,UnderAssessment. - supported
Custom List<String>Instance Type Families - (Available since v1.123.1) A custom instance type family supported by a dedicated host.
- supported
Instance List<String>Type Families - (Available since v1.123.1) ECS instance type family supported by the dedicated host.
- supported
Instance List<String>Types Lists - The list of ECS instance.
- Map<String>
- A mapping of tags to assign to the resource.
- zone
Id String - The zone ID of the ECS Dedicated Host.
GetDedicatedHostsHostCapacity
- Available
Local intStorage - The remaining local disk capacity. Unit: GiB.
- Available
Memory double - The remaining memory capacity, unit: GiB.
- Available
Vcpus int - The number of remaining vCPU cores.
- Available
Vgpus int - The number of available virtual GPUs.
- Local
Storage stringCategory - Local disk type.
- Total
Local intStorage - The total capacity of the local disk, in GiB.
- Total
Memory double - The total memory capacity, unit: GiB.
- Total
Vcpus int - The total number of vCPU cores.
- Total
Vgpus int - The total number of virtual GPUs.
- Available
Local intStorage - The remaining local disk capacity. Unit: GiB.
- Available
Memory float64 - The remaining memory capacity, unit: GiB.
- Available
Vcpus int - The number of remaining vCPU cores.
- Available
Vgpus int - The number of available virtual GPUs.
- Local
Storage stringCategory - Local disk type.
- Total
Local intStorage - The total capacity of the local disk, in GiB.
- Total
Memory float64 - The total memory capacity, unit: GiB.
- Total
Vcpus int - The total number of vCPU cores.
- Total
Vgpus int - The total number of virtual GPUs.
- available
Local IntegerStorage - The remaining local disk capacity. Unit: GiB.
- available
Memory Double - The remaining memory capacity, unit: GiB.
- available
Vcpus Integer - The number of remaining vCPU cores.
- available
Vgpus Integer - The number of available virtual GPUs.
- local
Storage StringCategory - Local disk type.
- total
Local IntegerStorage - The total capacity of the local disk, in GiB.
- total
Memory Double - The total memory capacity, unit: GiB.
- total
Vcpus Integer - The total number of vCPU cores.
- total
Vgpus Integer - The total number of virtual GPUs.
- available
Local numberStorage - The remaining local disk capacity. Unit: GiB.
- available
Memory number - The remaining memory capacity, unit: GiB.
- available
Vcpus number - The number of remaining vCPU cores.
- available
Vgpus number - The number of available virtual GPUs.
- local
Storage stringCategory - Local disk type.
- total
Local numberStorage - The total capacity of the local disk, in GiB.
- total
Memory number - The total memory capacity, unit: GiB.
- total
Vcpus number - The total number of vCPU cores.
- total
Vgpus number - The total number of virtual GPUs.
- available_
local_ intstorage - The remaining local disk capacity. Unit: GiB.
- available_
memory float - The remaining memory capacity, unit: GiB.
- available_
vcpus int - The number of remaining vCPU cores.
- available_
vgpus int - The number of available virtual GPUs.
- local_
storage_ strcategory - Local disk type.
- total_
local_ intstorage - The total capacity of the local disk, in GiB.
- total_
memory float - The total memory capacity, unit: GiB.
- total_
vcpus int - The total number of vCPU cores.
- total_
vgpus int - The total number of virtual GPUs.
- available
Local NumberStorage - The remaining local disk capacity. Unit: GiB.
- available
Memory Number - The remaining memory capacity, unit: GiB.
- available
Vcpus Number - The number of remaining vCPU cores.
- available
Vgpus Number - The number of available virtual GPUs.
- local
Storage StringCategory - Local disk type.
- total
Local NumberStorage - The total capacity of the local disk, in GiB.
- total
Memory Number - The total memory capacity, unit: GiB.
- total
Vcpus Number - The total number of vCPU cores.
- total
Vgpus Number - The total number of virtual GPUs.
GetDedicatedHostsHostInstance
- Instance
Id string - The ID of the ECS instance.
- Instance
Owner intId - The ID of the ECS instance owner.
- Instance
Type string - The instance type of the ECS instance that was created on the dedicated host.
- Socket
Id string - The ID of the socket to which the ECS instance belongs.
- Instance
Id string - The ID of the ECS instance.
- Instance
Owner intId - The ID of the ECS instance owner.
- Instance
Type string - The instance type of the ECS instance that was created on the dedicated host.
- Socket
Id string - The ID of the socket to which the ECS instance belongs.
- instance
Id String - The ID of the ECS instance.
- instance
Owner IntegerId - The ID of the ECS instance owner.
- instance
Type String - The instance type of the ECS instance that was created on the dedicated host.
- socket
Id String - The ID of the socket to which the ECS instance belongs.
- instance
Id string - The ID of the ECS instance.
- instance
Owner numberId - The ID of the ECS instance owner.
- instance
Type string - The instance type of the ECS instance that was created on the dedicated host.
- socket
Id string - The ID of the socket to which the ECS instance belongs.
- instance_
id str - The ID of the ECS instance.
- instance_
owner_ intid - The ID of the ECS instance owner.
- instance_
type str - The instance type of the ECS instance that was created on the dedicated host.
- socket_
id str - The ID of the socket to which the ECS instance belongs.
- instance
Id String - The ID of the ECS instance.
- instance
Owner NumberId - The ID of the ECS instance owner.
- instance
Type String - The instance type of the ECS instance that was created on the dedicated host.
- socket
Id String - The ID of the socket to which the ECS instance belongs.
GetDedicatedHostsHostNetworkAttribute
- Slb
Udp intTimeout - The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- Udp
Timeout int - (Available since v1.123.1) The timeout period for a UDP session between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds.
- Slb
Udp intTimeout - The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- Udp
Timeout int - (Available since v1.123.1) The timeout period for a UDP session between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds.
- slb
Udp IntegerTimeout - The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- udp
Timeout Integer - (Available since v1.123.1) The timeout period for a UDP session between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds.
- slb
Udp numberTimeout - The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- udp
Timeout number - (Available since v1.123.1) The timeout period for a UDP session between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds.
- slb_
udp_ inttimeout - The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- udp_
timeout int - (Available since v1.123.1) The timeout period for a UDP session between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds.
- slb
Udp NumberTimeout - The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- udp
Timeout Number - (Available since v1.123.1) The timeout period for a UDP session between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds.
GetDedicatedHostsHostOperationLock
- Lock
Reason string - The reason why the dedicated host resource is locked.
- Lock
Reason string - The reason why the dedicated host resource is locked.
- lock
Reason String - The reason why the dedicated host resource is locked.
- lock
Reason string - The reason why the dedicated host resource is locked.
- lock_
reason str - The reason why the dedicated host resource is locked.
- lock
Reason String - The reason why the dedicated host resource is locked.
GetDedicatedHostsOperationLock
- Lock
Reason string - The reason why the dedicated host resource is locked.
- Lock
Reason string - The reason why the dedicated host resource is locked.
- lock
Reason String - The reason why the dedicated host resource is locked.
- lock
Reason string - The reason why the dedicated host resource is locked.
- lock_
reason str - The reason why the dedicated host resource is locked.
- lock
Reason String - The reason why the dedicated host resource is locked.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
