Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.ecs.getDedicatedHosts
Explore with Pulumi AI
This data source provides a list of ECS Dedicated Hosts in an Alibaba Cloud account according to the specified filters.
NOTE: Available in v1.91.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Declare the data source
const dedicatedHostsDs = alicloud.ecs.getDedicatedHosts({
nameRegex: "tf-testAcc",
dedicatedHostType: "ddh.g5",
status: "Available",
});
export const firstDedicatedHostsId = dedicatedHostsDs.then(dedicatedHostsDs => dedicatedHostsDs.hosts?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
# Declare the data source
dedicated_hosts_ds = alicloud.ecs.get_dedicated_hosts(name_regex="tf-testAcc",
dedicated_host_type="ddh.g5",
status="Available")
pulumi.export("firstDedicatedHostsId", dedicated_hosts_ds.hosts[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Declare the data source
dedicatedHostsDs, err := ecs.GetDedicatedHosts(ctx, &ecs.GetDedicatedHostsArgs{
NameRegex: pulumi.StringRef("tf-testAcc"),
DedicatedHostType: pulumi.StringRef("ddh.g5"),
Status: pulumi.StringRef("Available"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstDedicatedHostsId", dedicatedHostsDs.Hosts[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Declare the data source
var dedicatedHostsDs = AliCloud.Ecs.GetDedicatedHosts.Invoke(new()
{
NameRegex = "tf-testAcc",
DedicatedHostType = "ddh.g5",
Status = "Available",
});
return new Dictionary<string, object?>
{
["firstDedicatedHostsId"] = dedicatedHostsDs.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.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) {
// Declare the data source
final var dedicatedHostsDs = EcsFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
.nameRegex("tf-testAcc")
.dedicatedHostType("ddh.g5")
.status("Available")
.build());
ctx.export("firstDedicatedHostsId", dedicatedHostsDs.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
}
}
variables:
# Declare the data source
dedicatedHostsDs:
fn::invoke:
Function: alicloud:ecs:getDedicatedHosts
Arguments:
nameRegex: tf-testAcc
dedicatedHostType: ddh.g5
status: Available
outputs:
firstDedicatedHostsId: ${dedicatedHostsDs.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ecs/getDedicatedHosts:getDedicatedHosts
arguments:
# arguments dictionary
The 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.
- 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. validate 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.
- 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. validate 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.
- 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. validate 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.
- 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. validate 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.
- 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. validate 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.
- 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. validate 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>
- A list of ECS Dedicated Host ids.
- 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 in 1.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>
- Zone
Id string
- 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
- A list of ECS Dedicated Host ids.
- 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 in 1.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
- Zone
Id string
- 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>
- A list of ECS Dedicated Host ids.
- 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 in 1.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>
- zone
Id String
- 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[]
- A list of ECS Dedicated Host ids.
- 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 in 1.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}
- zone
Id string
- 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]
- A list of ECS Dedicated Host ids.
- 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 in 1.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]
- zone_
id str
- 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>
- A list of ECS Dedicated Host ids.
- 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 in 1.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>
- zone
Id String
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 in 1.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 in 1.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.
- 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.
- 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. validate value:
Available
,Creating
,PermanentFailure
,Released
,UnderAssessment
. - Supported
Custom List<string>Instance Type Families - (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- Supported
Instance List<string>Type Families - (Available in 1.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 in 1.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 in 1.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.
- 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.
- 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. validate value:
Available
,Creating
,PermanentFailure
,Released
,UnderAssessment
. - Supported
Custom []stringInstance Type Families - (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- Supported
Instance []stringType Families - (Available in 1.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 in 1.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 in 1.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.
- 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.
- 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. validate value:
Available
,Creating
,PermanentFailure
,Released
,UnderAssessment
. - supported
Custom List<String>Instance Type Families - (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- supported
Instance List<String>Type Families - (Available in 1.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 in 1.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 in 1.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.
- 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.
- 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. validate value:
Available
,Creating
,PermanentFailure
,Released
,UnderAssessment
. - supported
Custom string[]Instance Type Families - (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- supported
Instance string[]Type Families - (Available in 1.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 in 1.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 in 1.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.
- 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.
- 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. validate value:
Available
,Creating
,PermanentFailure
,Released
,UnderAssessment
. - supported_
custom_ Sequence[str]instance_ type_ families - (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- supported_
instance_ Sequence[str]type_ families - (Available in 1.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 in 1.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 in 1.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.
- 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.
- 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. validate value:
Available
,Creating
,PermanentFailure
,Released
,UnderAssessment
. - supported
Custom List<String>Instance Type Families - (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- supported
Instance List<String>Type Families - (Available in 1.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.
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 in 1.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 in 1.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 in 1.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 in 1.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 in 1.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 in 1.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
alicloud
Terraform Provider.