Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 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, Any]] = 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, Any]]] = 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 dictionaryThe following arguments are supported:
- DedicatedHost stringId 
- The ID of ECS Dedicated Host.
- DedicatedHost stringName 
- The name of ECS Dedicated Host.
- DedicatedHost stringType 
- The type of the dedicated host.
- Ids List<string>
- A list of ECS Dedicated Host ids.
- NameRegex string
- A regex string to filter results by the ECS Dedicated Host name.
- OperationLocks List<Pulumi.Ali Cloud. Ecs. Inputs. Get Dedicated Hosts Operation Lock> 
- The reason why the dedicated host resource is locked.
- OutputFile string
- Save the result to the file.
- ResourceGroup 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, object>
- A mapping of tags to assign to the resource.
- ZoneId string
- The zone ID of the ECS Dedicated Host.
- DedicatedHost stringId 
- The ID of ECS Dedicated Host.
- DedicatedHost stringName 
- The name of ECS Dedicated Host.
- DedicatedHost stringType 
- The type of the dedicated host.
- Ids []string
- A list of ECS Dedicated Host ids.
- NameRegex string
- A regex string to filter results by the ECS Dedicated Host name.
- OperationLocks []GetDedicated Hosts Operation Lock 
- The reason why the dedicated host resource is locked.
- OutputFile string
- Save the result to the file.
- ResourceGroup 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]interface{}
- A mapping of tags to assign to the resource.
- ZoneId string
- The zone ID of the ECS Dedicated Host.
- dedicatedHost StringId 
- The ID of ECS Dedicated Host.
- dedicatedHost StringName 
- The name of ECS Dedicated Host.
- dedicatedHost StringType 
- The type of the dedicated host.
- ids List<String>
- A list of ECS Dedicated Host ids.
- nameRegex String
- A regex string to filter results by the ECS Dedicated Host name.
- operationLocks List<GetDedicated Hosts Operation Lock> 
- The reason why the dedicated host resource is locked.
- outputFile String
- Save the result to the file.
- resourceGroup 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,Object>
- A mapping of tags to assign to the resource.
- zoneId String
- The zone ID of the ECS Dedicated Host.
- dedicatedHost stringId 
- The ID of ECS Dedicated Host.
- dedicatedHost stringName 
- The name of ECS Dedicated Host.
- dedicatedHost stringType 
- The type of the dedicated host.
- ids string[]
- A list of ECS Dedicated Host ids.
- nameRegex string
- A regex string to filter results by the ECS Dedicated Host name.
- operationLocks GetDedicated Hosts Operation Lock[] 
- The reason why the dedicated host resource is locked.
- outputFile string
- Save the result to the file.
- resourceGroup 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]: any}
- A mapping of tags to assign to the resource.
- zoneId 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, Any]
- A mapping of tags to assign to the resource.
- zone_id str
- The zone ID of the ECS Dedicated Host.
- dedicatedHost StringId 
- The ID of ECS Dedicated Host.
- dedicatedHost StringName 
- The name of ECS Dedicated Host.
- dedicatedHost StringType 
- The type of the dedicated host.
- ids List<String>
- A list of ECS Dedicated Host ids.
- nameRegex String
- A regex string to filter results by the ECS Dedicated Host name.
- operationLocks List<Property Map>
- The reason why the dedicated host resource is locked.
- outputFile String
- Save the result to the file.
- resourceGroup 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<Any>
- A mapping of tags to assign to the resource.
- zoneId 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.
- DedicatedHost stringId 
- ID of the ECS Dedicated Host.
- DedicatedHost stringName 
- The name of the dedicated host.
- DedicatedHost stringType 
- The type of the dedicated host.
- NameRegex string
- OperationLocks List<Pulumi.Ali Cloud. Ecs. Outputs. Get Dedicated Hosts Operation Lock> 
- (Available in 1.123.1+) The operation_locks. contains the following attribute:
- OutputFile string
- ResourceGroup stringId 
- The ID of the resource group to which the dedicated host belongs.
- Status string
- The service status of the dedicated host.
- Dictionary<string, object>
- ZoneId string
- Hosts
[]GetDedicated 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.
- DedicatedHost stringId 
- ID of the ECS Dedicated Host.
- DedicatedHost stringName 
- The name of the dedicated host.
- DedicatedHost stringType 
- The type of the dedicated host.
- NameRegex string
- OperationLocks []GetDedicated Hosts Operation Lock 
- (Available in 1.123.1+) The operation_locks. contains the following attribute:
- OutputFile string
- ResourceGroup stringId 
- The ID of the resource group to which the dedicated host belongs.
- Status string
- The service status of the dedicated host.
- map[string]interface{}
- ZoneId string
- hosts
List<GetDedicated 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.
- dedicatedHost StringId 
- ID of the ECS Dedicated Host.
- dedicatedHost StringName 
- The name of the dedicated host.
- dedicatedHost StringType 
- The type of the dedicated host.
- nameRegex String
- operationLocks List<GetDedicated Hosts Operation Lock> 
- (Available in 1.123.1+) The operation_locks. contains the following attribute:
- outputFile String
- resourceGroup StringId 
- The ID of the resource group to which the dedicated host belongs.
- status String
- The service status of the dedicated host.
- Map<String,Object>
- zoneId String
- hosts
GetDedicated 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.
- dedicatedHost stringId 
- ID of the ECS Dedicated Host.
- dedicatedHost stringName 
- The name of the dedicated host.
- dedicatedHost stringType 
- The type of the dedicated host.
- nameRegex string
- operationLocks GetDedicated Hosts Operation Lock[] 
- (Available in 1.123.1+) The operation_locks. contains the following attribute:
- outputFile string
- resourceGroup stringId 
- The ID of the resource group to which the dedicated host belongs.
- status string
- The service status of the dedicated host.
- {[key: string]: any}
- zoneId string
- hosts
Sequence[GetDedicated 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, Any]
- 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.
- dedicatedHost StringId 
- ID of the ECS Dedicated Host.
- dedicatedHost StringName 
- The name of the dedicated host.
- dedicatedHost StringType 
- The type of the dedicated host.
- nameRegex String
- operationLocks List<Property Map>
- (Available in 1.123.1+) The operation_locks. contains the following attribute:
- outputFile String
- resourceGroup StringId 
- The ID of the resource group to which the dedicated host belongs.
- status String
- The service status of the dedicated host.
- Map<Any>
- zoneId String
Supporting Types
GetDedicatedHostsHost   
- ActionOn stringMaintenance 
- The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- AutoPlacement string
- Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- AutoRelease 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.
- CpuOver doubleCommit Ratio 
- (Available in 1.123.1+) CPU oversold ratio.
- DedicatedHost stringId 
- The ID of ECS Dedicated Host.
- DedicatedHost stringName 
- The name of ECS Dedicated Host.
- DedicatedHost stringType 
- The type of the dedicated host.
- Description string
- The description of the dedicated host.
- ExpiredTime string
- The expiration time of the subscription dedicated host.
- GpuSpec string
- The GPU model.
- Id string
- ID of the ECS Dedicated Host.
- MachineId string
- The machine code of the dedicated host.
- NetworkAttributes List<Pulumi.Ali Cloud. Ecs. Inputs. Get Dedicated Hosts Host Network Attribute> 
- dedicated host network parameters. contains the following attributes:
- OperationLocks List<Pulumi.Ali Cloud. Ecs. Inputs. Get Dedicated Hosts Host Operation Lock> 
- The reason why the dedicated host resource is locked.
- PaymentType string
- The billing method of the dedicated host.
- PhysicalGpus int
- The number of physical GPUs.
- ResourceGroup stringId 
- The ID of the resource group to which the ECS Dedicated Host belongs.
- SaleCycle 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.
- SupportedCustom List<string>Instance Type Families 
- (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- SupportedInstance List<string>Type Families 
- (Available in 1.123.1+) ECS instance type family supported by the dedicated host.
- SupportedInstance List<string>Types Lists 
- The list of ECS instance
- Dictionary<string, object>
- A mapping of tags to assign to the resource.
- ZoneId string
- The zone ID of the ECS Dedicated Host.
- ActionOn stringMaintenance 
- The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- AutoPlacement string
- Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- AutoRelease stringTime 
- The automatic release time of the dedicated host.
- Capacities
[]GetDedicated 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.
- CpuOver float64Commit Ratio 
- (Available in 1.123.1+) CPU oversold ratio.
- DedicatedHost stringId 
- The ID of ECS Dedicated Host.
- DedicatedHost stringName 
- The name of ECS Dedicated Host.
- DedicatedHost stringType 
- The type of the dedicated host.
- Description string
- The description of the dedicated host.
- ExpiredTime string
- The expiration time of the subscription dedicated host.
- GpuSpec string
- The GPU model.
- Id string
- ID of the ECS Dedicated Host.
- MachineId string
- The machine code of the dedicated host.
- NetworkAttributes []GetDedicated Hosts Host Network Attribute 
- dedicated host network parameters. contains the following attributes:
- OperationLocks []GetDedicated Hosts Host Operation Lock 
- The reason why the dedicated host resource is locked.
- PaymentType string
- The billing method of the dedicated host.
- PhysicalGpus int
- The number of physical GPUs.
- ResourceGroup stringId 
- The ID of the resource group to which the ECS Dedicated Host belongs.
- SaleCycle 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.
- SupportedCustom []stringInstance Type Families 
- (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- SupportedInstance []stringType Families 
- (Available in 1.123.1+) ECS instance type family supported by the dedicated host.
- SupportedInstance []stringTypes Lists 
- The list of ECS instance
- map[string]interface{}
- A mapping of tags to assign to the resource.
- ZoneId string
- The zone ID of the ECS Dedicated Host.
- actionOn StringMaintenance 
- The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- autoPlacement String
- Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- autoRelease StringTime 
- The automatic release time of the dedicated host.
- capacities
List<GetDedicated 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.
- cpuOver DoubleCommit Ratio 
- (Available in 1.123.1+) CPU oversold ratio.
- dedicatedHost StringId 
- The ID of ECS Dedicated Host.
- dedicatedHost StringName 
- The name of ECS Dedicated Host.
- dedicatedHost StringType 
- The type of the dedicated host.
- description String
- The description of the dedicated host.
- expiredTime String
- The expiration time of the subscription dedicated host.
- gpuSpec String
- The GPU model.
- id String
- ID of the ECS Dedicated Host.
- machineId String
- The machine code of the dedicated host.
- networkAttributes List<GetDedicated Hosts Host Network Attribute> 
- dedicated host network parameters. contains the following attributes:
- operationLocks List<GetDedicated Hosts Host Operation Lock> 
- The reason why the dedicated host resource is locked.
- paymentType String
- The billing method of the dedicated host.
- physicalGpus Integer
- The number of physical GPUs.
- resourceGroup StringId 
- The ID of the resource group to which the ECS Dedicated Host belongs.
- saleCycle 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.
- supportedCustom List<String>Instance Type Families 
- (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- supportedInstance List<String>Type Families 
- (Available in 1.123.1+) ECS instance type family supported by the dedicated host.
- supportedInstance List<String>Types Lists 
- The list of ECS instance
- Map<String,Object>
- A mapping of tags to assign to the resource.
- zoneId String
- The zone ID of the ECS Dedicated Host.
- actionOn stringMaintenance 
- The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- autoPlacement string
- Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- autoRelease stringTime 
- The automatic release time of the dedicated host.
- capacities
GetDedicated 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.
- cpuOver numberCommit Ratio 
- (Available in 1.123.1+) CPU oversold ratio.
- dedicatedHost stringId 
- The ID of ECS Dedicated Host.
- dedicatedHost stringName 
- The name of ECS Dedicated Host.
- dedicatedHost stringType 
- The type of the dedicated host.
- description string
- The description of the dedicated host.
- expiredTime string
- The expiration time of the subscription dedicated host.
- gpuSpec string
- The GPU model.
- id string
- ID of the ECS Dedicated Host.
- machineId string
- The machine code of the dedicated host.
- networkAttributes GetDedicated Hosts Host Network Attribute[] 
- dedicated host network parameters. contains the following attributes:
- operationLocks GetDedicated Hosts Host Operation Lock[] 
- The reason why the dedicated host resource is locked.
- paymentType string
- The billing method of the dedicated host.
- physicalGpus number
- The number of physical GPUs.
- resourceGroup stringId 
- The ID of the resource group to which the ECS Dedicated Host belongs.
- saleCycle 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.
- supportedCustom string[]Instance Type Families 
- (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- supportedInstance string[]Type Families 
- (Available in 1.123.1+) ECS instance type family supported by the dedicated host.
- supportedInstance string[]Types Lists 
- The list of ECS instance
- {[key: string]: any}
- A mapping of tags to assign to the resource.
- zoneId 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[GetDedicated 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, Any]
- A mapping of tags to assign to the resource.
- zone_id str
- The zone ID of the ECS Dedicated Host.
- actionOn StringMaintenance 
- The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online.
- autoPlacement String
- Specifies whether to add the dedicated host to the resource pool for automatic deployment.
- autoRelease 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.
- cpuOver NumberCommit Ratio 
- (Available in 1.123.1+) CPU oversold ratio.
- dedicatedHost StringId 
- The ID of ECS Dedicated Host.
- dedicatedHost StringName 
- The name of ECS Dedicated Host.
- dedicatedHost StringType 
- The type of the dedicated host.
- description String
- The description of the dedicated host.
- expiredTime String
- The expiration time of the subscription dedicated host.
- gpuSpec String
- The GPU model.
- id String
- ID of the ECS Dedicated Host.
- machineId String
- The machine code of the dedicated host.
- networkAttributes List<Property Map>
- dedicated host network parameters. contains the following attributes:
- operationLocks List<Property Map>
- The reason why the dedicated host resource is locked.
- paymentType String
- The billing method of the dedicated host.
- physicalGpus Number
- The number of physical GPUs.
- resourceGroup StringId 
- The ID of the resource group to which the ECS Dedicated Host belongs.
- saleCycle 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.
- supportedCustom List<String>Instance Type Families 
- (Available in 1.123.1+) A custom instance type family supported by a dedicated host.
- supportedInstance List<String>Type Families 
- (Available in 1.123.1+) ECS instance type family supported by the dedicated host.
- supportedInstance List<String>Types Lists 
- The list of ECS instance
- Map<Any>
- A mapping of tags to assign to the resource.
- zoneId String
- The zone ID of the ECS Dedicated Host.
GetDedicatedHostsHostCapacity    
- AvailableLocal intStorage 
- The remaining local disk capacity. Unit: GiB.
- AvailableMemory double
- The remaining memory capacity, unit: GiB.
- AvailableVcpus int
- The number of remaining vCPU cores.
- AvailableVgpus int
- The number of available virtual GPUs.
- LocalStorage stringCategory 
- Local disk type.
- TotalLocal intStorage 
- The total capacity of the local disk, in GiB.
- TotalMemory double
- The total memory capacity, unit: GiB.
- TotalVcpus int
- The total number of vCPU cores.
- TotalVgpus int
- The total number of virtual GPUs.
- AvailableLocal intStorage 
- The remaining local disk capacity. Unit: GiB.
- AvailableMemory float64
- The remaining memory capacity, unit: GiB.
- AvailableVcpus int
- The number of remaining vCPU cores.
- AvailableVgpus int
- The number of available virtual GPUs.
- LocalStorage stringCategory 
- Local disk type.
- TotalLocal intStorage 
- The total capacity of the local disk, in GiB.
- TotalMemory float64
- The total memory capacity, unit: GiB.
- TotalVcpus int
- The total number of vCPU cores.
- TotalVgpus int
- The total number of virtual GPUs.
- availableLocal IntegerStorage 
- The remaining local disk capacity. Unit: GiB.
- availableMemory Double
- The remaining memory capacity, unit: GiB.
- availableVcpus Integer
- The number of remaining vCPU cores.
- availableVgpus Integer
- The number of available virtual GPUs.
- localStorage StringCategory 
- Local disk type.
- totalLocal IntegerStorage 
- The total capacity of the local disk, in GiB.
- totalMemory Double
- The total memory capacity, unit: GiB.
- totalVcpus Integer
- The total number of vCPU cores.
- totalVgpus Integer
- The total number of virtual GPUs.
- availableLocal numberStorage 
- The remaining local disk capacity. Unit: GiB.
- availableMemory number
- The remaining memory capacity, unit: GiB.
- availableVcpus number
- The number of remaining vCPU cores.
- availableVgpus number
- The number of available virtual GPUs.
- localStorage stringCategory 
- Local disk type.
- totalLocal numberStorage 
- The total capacity of the local disk, in GiB.
- totalMemory number
- The total memory capacity, unit: GiB.
- totalVcpus number
- The total number of vCPU cores.
- totalVgpus 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.
- availableLocal NumberStorage 
- The remaining local disk capacity. Unit: GiB.
- availableMemory Number
- The remaining memory capacity, unit: GiB.
- availableVcpus Number
- The number of remaining vCPU cores.
- availableVgpus Number
- The number of available virtual GPUs.
- localStorage StringCategory 
- Local disk type.
- totalLocal NumberStorage 
- The total capacity of the local disk, in GiB.
- totalMemory Number
- The total memory capacity, unit: GiB.
- totalVcpus Number
- The total number of vCPU cores.
- totalVgpus Number
- The total number of virtual GPUs.
GetDedicatedHostsHostNetworkAttribute     
- SlbUdp intTimeout 
- The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- UdpTimeout 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.
- SlbUdp intTimeout 
- The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- UdpTimeout 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.
- slbUdp IntegerTimeout 
- The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- udpTimeout 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.
- slbUdp numberTimeout 
- The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- udpTimeout 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.
- slbUdp NumberTimeout 
- The timeout period for a UDP session between Server Load Balancer (SLB) and the dedicated host. Unit: seconds.
- udpTimeout 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     
- LockReason string
- The reason why the dedicated host resource is locked.
- LockReason string
- The reason why the dedicated host resource is locked.
- lockReason String
- The reason why the dedicated host resource is locked.
- lockReason string
- The reason why the dedicated host resource is locked.
- lock_reason str
- The reason why the dedicated host resource is locked.
- lockReason String
- The reason why the dedicated host resource is locked.
GetDedicatedHostsOperationLock    
- LockReason string
- The reason why the dedicated host resource is locked.
- LockReason string
- The reason why the dedicated host resource is locked.
- lockReason String
- The reason why the dedicated host resource is locked.
- lockReason string
- The reason why the dedicated host resource is locked.
- lock_reason str
- The reason why the dedicated host resource is locked.
- lockReason 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.