1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cddc
  5. getDedicatedHosts
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

alicloud.cddc.getDedicatedHosts

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

    This data source provides the Cddc Dedicated Hosts of the current Alibaba Cloud user.

    NOTE: Available in v1.147.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.cddc.getDedicatedHosts({
        dedicatedHostGroupId: "example_value",
        ids: [
            "example_value-1",
            "example_value-2",
        ],
    });
    export const cddcDedicatedHostId1 = ids.then(ids => ids.hosts?.[0]?.id);
    const status = alicloud.cddc.getDedicatedHosts({
        dedicatedHostGroupId: "example_value",
        ids: [
            "example_value-1",
            "example_value-2",
        ],
        status: "1",
    });
    export const cddcDedicatedHostId2 = status.then(status => status.hosts?.[0]?.id);
    const zoneId = alicloud.cddc.getDedicatedHosts({
        dedicatedHostGroupId: "example_value",
        ids: [
            "example_value-1",
            "example_value-2",
        ],
        zoneId: "example_value",
    });
    export const cddcDedicatedHostId3 = zoneId.then(zoneId => zoneId.hosts?.[0]?.id);
    const allocationStatus = alicloud.cddc.getDedicatedHosts({
        dedicatedHostGroupId: "example_value",
        ids: [
            "example_value-1",
            "example_value-2",
        ],
        allocationStatus: "Allocatable",
    });
    export const cddcDedicatedHostId4 = allocationStatus.then(allocationStatus => allocationStatus.hosts?.[0]?.id);
    const hostType = alicloud.cddc.getDedicatedHosts({
        dedicatedHostGroupId: "example_value",
        ids: [
            "example_value-1",
            "example_value-2",
        ],
        hostType: "dhg_cloud_ssd",
    });
    export const cddcDedicatedHostId5 = hostType.then(hostType => hostType.hosts?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.cddc.get_dedicated_hosts(dedicated_host_group_id="example_value",
        ids=[
            "example_value-1",
            "example_value-2",
        ])
    pulumi.export("cddcDedicatedHostId1", ids.hosts[0].id)
    status = alicloud.cddc.get_dedicated_hosts(dedicated_host_group_id="example_value",
        ids=[
            "example_value-1",
            "example_value-2",
        ],
        status="1")
    pulumi.export("cddcDedicatedHostId2", status.hosts[0].id)
    zone_id = alicloud.cddc.get_dedicated_hosts(dedicated_host_group_id="example_value",
        ids=[
            "example_value-1",
            "example_value-2",
        ],
        zone_id="example_value")
    pulumi.export("cddcDedicatedHostId3", zone_id.hosts[0].id)
    allocation_status = alicloud.cddc.get_dedicated_hosts(dedicated_host_group_id="example_value",
        ids=[
            "example_value-1",
            "example_value-2",
        ],
        allocation_status="Allocatable")
    pulumi.export("cddcDedicatedHostId4", allocation_status.hosts[0].id)
    host_type = alicloud.cddc.get_dedicated_hosts(dedicated_host_group_id="example_value",
        ids=[
            "example_value-1",
            "example_value-2",
        ],
        host_type="dhg_cloud_ssd")
    pulumi.export("cddcDedicatedHostId5", host_type.hosts[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cddc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
    			DedicatedHostGroupId: "example_value",
    			Ids: []string{
    				"example_value-1",
    				"example_value-2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cddcDedicatedHostId1", ids.Hosts[0].Id)
    		status, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
    			DedicatedHostGroupId: "example_value",
    			Ids: []string{
    				"example_value-1",
    				"example_value-2",
    			},
    			Status: pulumi.StringRef("1"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cddcDedicatedHostId2", status.Hosts[0].Id)
    		zoneId, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
    			DedicatedHostGroupId: "example_value",
    			Ids: []string{
    				"example_value-1",
    				"example_value-2",
    			},
    			ZoneId: pulumi.StringRef("example_value"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cddcDedicatedHostId3", zoneId.Hosts[0].Id)
    		allocationStatus, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
    			DedicatedHostGroupId: "example_value",
    			Ids: []string{
    				"example_value-1",
    				"example_value-2",
    			},
    			AllocationStatus: pulumi.StringRef("Allocatable"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cddcDedicatedHostId4", allocationStatus.Hosts[0].Id)
    		hostType, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
    			DedicatedHostGroupId: "example_value",
    			Ids: []string{
    				"example_value-1",
    				"example_value-2",
    			},
    			HostType: pulumi.StringRef("dhg_cloud_ssd"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cddcDedicatedHostId5", hostType.Hosts[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Cddc.GetDedicatedHosts.Invoke(new()
        {
            DedicatedHostGroupId = "example_value",
            Ids = new[]
            {
                "example_value-1",
                "example_value-2",
            },
        });
    
        var status = AliCloud.Cddc.GetDedicatedHosts.Invoke(new()
        {
            DedicatedHostGroupId = "example_value",
            Ids = new[]
            {
                "example_value-1",
                "example_value-2",
            },
            Status = "1",
        });
    
        var zoneId = AliCloud.Cddc.GetDedicatedHosts.Invoke(new()
        {
            DedicatedHostGroupId = "example_value",
            Ids = new[]
            {
                "example_value-1",
                "example_value-2",
            },
            ZoneId = "example_value",
        });
    
        var allocationStatus = AliCloud.Cddc.GetDedicatedHosts.Invoke(new()
        {
            DedicatedHostGroupId = "example_value",
            Ids = new[]
            {
                "example_value-1",
                "example_value-2",
            },
            AllocationStatus = "Allocatable",
        });
    
        var hostType = AliCloud.Cddc.GetDedicatedHosts.Invoke(new()
        {
            DedicatedHostGroupId = "example_value",
            Ids = new[]
            {
                "example_value-1",
                "example_value-2",
            },
            HostType = "dhg_cloud_ssd",
        });
    
        return new Dictionary<string, object?>
        {
            ["cddcDedicatedHostId1"] = ids.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id),
            ["cddcDedicatedHostId2"] = status.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id),
            ["cddcDedicatedHostId3"] = zoneId.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id),
            ["cddcDedicatedHostId4"] = allocationStatus.Apply(getDedicatedHostsResult => getDedicatedHostsResult.Hosts[0]?.Id),
            ["cddcDedicatedHostId5"] = hostType.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.cddc.CddcFunctions;
    import com.pulumi.alicloud.cddc.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 ids = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
                .dedicatedHostGroupId("example_value")
                .ids(            
                    "example_value-1",
                    "example_value-2")
                .build());
    
            ctx.export("cddcDedicatedHostId1", ids.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
            final var status = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
                .dedicatedHostGroupId("example_value")
                .ids(            
                    "example_value-1",
                    "example_value-2")
                .status("1")
                .build());
    
            ctx.export("cddcDedicatedHostId2", status.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
            final var zoneId = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
                .dedicatedHostGroupId("example_value")
                .ids(            
                    "example_value-1",
                    "example_value-2")
                .zoneId("example_value")
                .build());
    
            ctx.export("cddcDedicatedHostId3", zoneId.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
            final var allocationStatus = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
                .dedicatedHostGroupId("example_value")
                .ids(            
                    "example_value-1",
                    "example_value-2")
                .allocationStatus("Allocatable")
                .build());
    
            ctx.export("cddcDedicatedHostId4", allocationStatus.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
            final var hostType = CddcFunctions.getDedicatedHosts(GetDedicatedHostsArgs.builder()
                .dedicatedHostGroupId("example_value")
                .ids(            
                    "example_value-1",
                    "example_value-2")
                .hostType("dhg_cloud_ssd")
                .build());
    
            ctx.export("cddcDedicatedHostId5", hostType.applyValue(getDedicatedHostsResult -> getDedicatedHostsResult.hosts()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:cddc:getDedicatedHosts
          Arguments:
            dedicatedHostGroupId: example_value
            ids:
              - example_value-1
              - example_value-2
      status:
        fn::invoke:
          Function: alicloud:cddc:getDedicatedHosts
          Arguments:
            dedicatedHostGroupId: example_value
            ids:
              - example_value-1
              - example_value-2
            status: '1'
      zoneId:
        fn::invoke:
          Function: alicloud:cddc:getDedicatedHosts
          Arguments:
            dedicatedHostGroupId: example_value
            ids:
              - example_value-1
              - example_value-2
            zoneId: example_value
      allocationStatus:
        fn::invoke:
          Function: alicloud:cddc:getDedicatedHosts
          Arguments:
            dedicatedHostGroupId: example_value
            ids:
              - example_value-1
              - example_value-2
            allocationStatus: Allocatable
      hostType:
        fn::invoke:
          Function: alicloud:cddc:getDedicatedHosts
          Arguments:
            dedicatedHostGroupId: example_value
            ids:
              - example_value-1
              - example_value-2
            hostType: dhg_cloud_ssd
    outputs:
      cddcDedicatedHostId1: ${ids.hosts[0].id}
      cddcDedicatedHostId2: ${status.hosts[0].id}
      cddcDedicatedHostId3: ${zoneId.hosts[0].id}
      cddcDedicatedHostId4: ${allocationStatus.hosts[0].id}
      cddcDedicatedHostId5: ${hostType.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(allocation_status: Optional[str] = None,
                            dedicated_host_group_id: Optional[str] = None,
                            enable_details: Optional[bool] = None,
                            host_type: Optional[str] = None,
                            ids: Optional[Sequence[str]] = None,
                            order_id: Optional[str] = None,
                            output_file: 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(allocation_status: Optional[pulumi.Input[str]] = None,
                            dedicated_host_group_id: Optional[pulumi.Input[str]] = None,
                            enable_details: Optional[pulumi.Input[bool]] = None,
                            host_type: Optional[pulumi.Input[str]] = None,
                            ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                            order_id: Optional[pulumi.Input[str]] = None,
                            output_file: 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:cddc/getDedicatedHosts:getDedicatedHosts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DedicatedHostGroupId string
    The ID of the dedicated cluster.
    AllocationStatus string
    Specifies whether instances can be created on the host. Valid values: Allocatable or Suspended. Allocatable: Instances can be created on the host. Suspended: Instances cannot be created on the host.
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    HostType string
    The storage type of the host. Valid values: dhg_local_ssd or dhg_cloud_ssd. dhg_local_ssd: specifies that the host uses local SSDs. dhg_cloud_ssd: specifies that the host uses enhanced SSDs (ESSDs).
    Ids List<string>
    A list of Dedicated Host IDs.
    OrderId string
    The ID of the order.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The state of the host. Valid values:

    • 0: The host is being created.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    ZoneId string
    The ID of the zone.
    DedicatedHostGroupId string
    The ID of the dedicated cluster.
    AllocationStatus string
    Specifies whether instances can be created on the host. Valid values: Allocatable or Suspended. Allocatable: Instances can be created on the host. Suspended: Instances cannot be created on the host.
    EnableDetails bool
    Default to false. Set it to true can output more details about resource attributes.
    HostType string
    The storage type of the host. Valid values: dhg_local_ssd or dhg_cloud_ssd. dhg_local_ssd: specifies that the host uses local SSDs. dhg_cloud_ssd: specifies that the host uses enhanced SSDs (ESSDs).
    Ids []string
    A list of Dedicated Host IDs.
    OrderId string
    The ID of the order.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The state of the host. Valid values:

    • 0: The host is being created.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    ZoneId string
    The ID of the zone.
    dedicatedHostGroupId String
    The ID of the dedicated cluster.
    allocationStatus String
    Specifies whether instances can be created on the host. Valid values: Allocatable or Suspended. Allocatable: Instances can be created on the host. Suspended: Instances cannot be created on the host.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    hostType String
    The storage type of the host. Valid values: dhg_local_ssd or dhg_cloud_ssd. dhg_local_ssd: specifies that the host uses local SSDs. dhg_cloud_ssd: specifies that the host uses enhanced SSDs (ESSDs).
    ids List<String>
    A list of Dedicated Host IDs.
    orderId String
    The ID of the order.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The state of the host. Valid values:

    • 0: The host is being created.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    zoneId String
    The ID of the zone.
    dedicatedHostGroupId string
    The ID of the dedicated cluster.
    allocationStatus string
    Specifies whether instances can be created on the host. Valid values: Allocatable or Suspended. Allocatable: Instances can be created on the host. Suspended: Instances cannot be created on the host.
    enableDetails boolean
    Default to false. Set it to true can output more details about resource attributes.
    hostType string
    The storage type of the host. Valid values: dhg_local_ssd or dhg_cloud_ssd. dhg_local_ssd: specifies that the host uses local SSDs. dhg_cloud_ssd: specifies that the host uses enhanced SSDs (ESSDs).
    ids string[]
    A list of Dedicated Host IDs.
    orderId string
    The ID of the order.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The state of the host. Valid values:

    • 0: The host is being created.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    zoneId string
    The ID of the zone.
    dedicated_host_group_id str
    The ID of the dedicated cluster.
    allocation_status str
    Specifies whether instances can be created on the host. Valid values: Allocatable or Suspended. Allocatable: Instances can be created on the host. Suspended: Instances cannot be created on the host.
    enable_details bool
    Default to false. Set it to true can output more details about resource attributes.
    host_type str
    The storage type of the host. Valid values: dhg_local_ssd or dhg_cloud_ssd. dhg_local_ssd: specifies that the host uses local SSDs. dhg_cloud_ssd: specifies that the host uses enhanced SSDs (ESSDs).
    ids Sequence[str]
    A list of Dedicated Host IDs.
    order_id str
    The ID of the order.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The state of the host. Valid values:

    • 0: The host is being created.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    zone_id str
    The ID of the zone.
    dedicatedHostGroupId String
    The ID of the dedicated cluster.
    allocationStatus String
    Specifies whether instances can be created on the host. Valid values: Allocatable or Suspended. Allocatable: Instances can be created on the host. Suspended: Instances cannot be created on the host.
    enableDetails Boolean
    Default to false. Set it to true can output more details about resource attributes.
    hostType String
    The storage type of the host. Valid values: dhg_local_ssd or dhg_cloud_ssd. dhg_local_ssd: specifies that the host uses local SSDs. dhg_cloud_ssd: specifies that the host uses enhanced SSDs (ESSDs).
    ids List<String>
    A list of Dedicated Host IDs.
    orderId String
    The ID of the order.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The state of the host. Valid values:

    • 0: The host is being created.
    tags Map<Any>
    A mapping of tags to assign to the resource.
    zoneId String
    The ID of the zone.

    getDedicatedHosts Result

    The following output properties are available:

    DedicatedHostGroupId string
    Hosts List<Pulumi.AliCloud.Cddc.Outputs.GetDedicatedHostsHost>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    AllocationStatus string
    EnableDetails bool
    HostType string
    OrderId string
    OutputFile string
    Status string
    Tags Dictionary<string, object>
    ZoneId string
    DedicatedHostGroupId string
    Hosts []GetDedicatedHostsHost
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    AllocationStatus string
    EnableDetails bool
    HostType string
    OrderId string
    OutputFile string
    Status string
    Tags map[string]interface{}
    ZoneId string
    dedicatedHostGroupId String
    hosts List<GetDedicatedHostsHost>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    allocationStatus String
    enableDetails Boolean
    hostType String
    orderId String
    outputFile String
    status String
    tags Map<String,Object>
    zoneId String
    dedicatedHostGroupId string
    hosts GetDedicatedHostsHost[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    allocationStatus string
    enableDetails boolean
    hostType string
    orderId string
    outputFile string
    status string
    tags {[key: string]: any}
    zoneId string
    dedicated_host_group_id str
    hosts Sequence[GetDedicatedHostsHost]
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    allocation_status str
    enable_details bool
    host_type str
    order_id str
    output_file str
    status str
    tags Mapping[str, Any]
    zone_id str
    dedicatedHostGroupId String
    hosts List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    allocationStatus String
    enableDetails Boolean
    hostType String
    orderId String
    outputFile String
    status String
    tags Map<Any>
    zoneId String

    Supporting Types

    GetDedicatedHostsHost

    AllocationStatus string
    Specifies whether instances can be created on the host. Valid values: 1 or 0. 1: Instances can be created on the host. 0: Instances cannot be created on the host.
    BastionInstanceId string
    The ID of the bastion host with which the host is associated.
    CpuAllocationRatio string
    The numeric value of the CPU over commit ratio of the dedicated cluster.
    CpuUsed string
    The number of CPU cores used by the host.
    CreateTime string
    The time when the host was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    DedicatedHostGroupId string
    The ID of the dedicated cluster in which the host is created.
    DedicatedHostId string
    The ID of the host.
    DiskAllocationRatio string
    The disk usage in percentage.
    EcsClassCode string
    The Elastic Compute Service (ECS) instance type.
    EndTime string
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Engine string
    The type of the database engine that is used by the host.
    ExpiredTime string
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    HostClass string
    The instance type of the host.
    HostCpu string
    The number of CPU cores specified for the host. Unit: core.
    HostMem string
    The memory of the host. Unit: GB.
    HostName string
    The name of the host.
    HostStorage string
    The total storage capacity of the host. Unit: GB.
    HostType string
    The storage type of the host.
    Id string
    The ID of the Dedicated Host. The value formats as <dedicated_host_group_id>:<dedicated_host_id>.
    ImageCategory string
    The image type of the host.
    IpAddress string
    The IP address of the host.
    MemAllocationRatio string
    The memory usage in percentage.
    MemoryUsed string
    The amount of memory used by the host. Unit: GB.
    OpenPermission string
    Indicates whether you have the OS permissions on the host. Valid values: 0: You do not have the OS permissions on the host. 1: You have the OS permissions on the host.
    Status string
    The state of the host.
    StorageUsed string
    The storage usage of the host. Unit: GB.
    Tags Dictionary<string, object>
    The tag of the resource.
    VpcId string
    The ID of the virtual private cloud (VPC) to which the host is connected.
    VswitchId string
    The ID of the vSwitch.
    ZoneId string
    The zone ID of the host.
    AllocationStatus string
    Specifies whether instances can be created on the host. Valid values: 1 or 0. 1: Instances can be created on the host. 0: Instances cannot be created on the host.
    BastionInstanceId string
    The ID of the bastion host with which the host is associated.
    CpuAllocationRatio string
    The numeric value of the CPU over commit ratio of the dedicated cluster.
    CpuUsed string
    The number of CPU cores used by the host.
    CreateTime string
    The time when the host was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    DedicatedHostGroupId string
    The ID of the dedicated cluster in which the host is created.
    DedicatedHostId string
    The ID of the host.
    DiskAllocationRatio string
    The disk usage in percentage.
    EcsClassCode string
    The Elastic Compute Service (ECS) instance type.
    EndTime string
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Engine string
    The type of the database engine that is used by the host.
    ExpiredTime string
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    HostClass string
    The instance type of the host.
    HostCpu string
    The number of CPU cores specified for the host. Unit: core.
    HostMem string
    The memory of the host. Unit: GB.
    HostName string
    The name of the host.
    HostStorage string
    The total storage capacity of the host. Unit: GB.
    HostType string
    The storage type of the host.
    Id string
    The ID of the Dedicated Host. The value formats as <dedicated_host_group_id>:<dedicated_host_id>.
    ImageCategory string
    The image type of the host.
    IpAddress string
    The IP address of the host.
    MemAllocationRatio string
    The memory usage in percentage.
    MemoryUsed string
    The amount of memory used by the host. Unit: GB.
    OpenPermission string
    Indicates whether you have the OS permissions on the host. Valid values: 0: You do not have the OS permissions on the host. 1: You have the OS permissions on the host.
    Status string
    The state of the host.
    StorageUsed string
    The storage usage of the host. Unit: GB.
    Tags map[string]interface{}
    The tag of the resource.
    VpcId string
    The ID of the virtual private cloud (VPC) to which the host is connected.
    VswitchId string
    The ID of the vSwitch.
    ZoneId string
    The zone ID of the host.
    allocationStatus String
    Specifies whether instances can be created on the host. Valid values: 1 or 0. 1: Instances can be created on the host. 0: Instances cannot be created on the host.
    bastionInstanceId String
    The ID of the bastion host with which the host is associated.
    cpuAllocationRatio String
    The numeric value of the CPU over commit ratio of the dedicated cluster.
    cpuUsed String
    The number of CPU cores used by the host.
    createTime String
    The time when the host was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    dedicatedHostGroupId String
    The ID of the dedicated cluster in which the host is created.
    dedicatedHostId String
    The ID of the host.
    diskAllocationRatio String
    The disk usage in percentage.
    ecsClassCode String
    The Elastic Compute Service (ECS) instance type.
    endTime String
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    engine String
    The type of the database engine that is used by the host.
    expiredTime String
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    hostClass String
    The instance type of the host.
    hostCpu String
    The number of CPU cores specified for the host. Unit: core.
    hostMem String
    The memory of the host. Unit: GB.
    hostName String
    The name of the host.
    hostStorage String
    The total storage capacity of the host. Unit: GB.
    hostType String
    The storage type of the host.
    id String
    The ID of the Dedicated Host. The value formats as <dedicated_host_group_id>:<dedicated_host_id>.
    imageCategory String
    The image type of the host.
    ipAddress String
    The IP address of the host.
    memAllocationRatio String
    The memory usage in percentage.
    memoryUsed String
    The amount of memory used by the host. Unit: GB.
    openPermission String
    Indicates whether you have the OS permissions on the host. Valid values: 0: You do not have the OS permissions on the host. 1: You have the OS permissions on the host.
    status String
    The state of the host.
    storageUsed String
    The storage usage of the host. Unit: GB.
    tags Map<String,Object>
    The tag of the resource.
    vpcId String
    The ID of the virtual private cloud (VPC) to which the host is connected.
    vswitchId String
    The ID of the vSwitch.
    zoneId String
    The zone ID of the host.
    allocationStatus string
    Specifies whether instances can be created on the host. Valid values: 1 or 0. 1: Instances can be created on the host. 0: Instances cannot be created on the host.
    bastionInstanceId string
    The ID of the bastion host with which the host is associated.
    cpuAllocationRatio string
    The numeric value of the CPU over commit ratio of the dedicated cluster.
    cpuUsed string
    The number of CPU cores used by the host.
    createTime string
    The time when the host was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    dedicatedHostGroupId string
    The ID of the dedicated cluster in which the host is created.
    dedicatedHostId string
    The ID of the host.
    diskAllocationRatio string
    The disk usage in percentage.
    ecsClassCode string
    The Elastic Compute Service (ECS) instance type.
    endTime string
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    engine string
    The type of the database engine that is used by the host.
    expiredTime string
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    hostClass string
    The instance type of the host.
    hostCpu string
    The number of CPU cores specified for the host. Unit: core.
    hostMem string
    The memory of the host. Unit: GB.
    hostName string
    The name of the host.
    hostStorage string
    The total storage capacity of the host. Unit: GB.
    hostType string
    The storage type of the host.
    id string
    The ID of the Dedicated Host. The value formats as <dedicated_host_group_id>:<dedicated_host_id>.
    imageCategory string
    The image type of the host.
    ipAddress string
    The IP address of the host.
    memAllocationRatio string
    The memory usage in percentage.
    memoryUsed string
    The amount of memory used by the host. Unit: GB.
    openPermission string
    Indicates whether you have the OS permissions on the host. Valid values: 0: You do not have the OS permissions on the host. 1: You have the OS permissions on the host.
    status string
    The state of the host.
    storageUsed string
    The storage usage of the host. Unit: GB.
    tags {[key: string]: any}
    The tag of the resource.
    vpcId string
    The ID of the virtual private cloud (VPC) to which the host is connected.
    vswitchId string
    The ID of the vSwitch.
    zoneId string
    The zone ID of the host.
    allocation_status str
    Specifies whether instances can be created on the host. Valid values: 1 or 0. 1: Instances can be created on the host. 0: Instances cannot be created on the host.
    bastion_instance_id str
    The ID of the bastion host with which the host is associated.
    cpu_allocation_ratio str
    The numeric value of the CPU over commit ratio of the dedicated cluster.
    cpu_used str
    The number of CPU cores used by the host.
    create_time str
    The time when the host was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    dedicated_host_group_id str
    The ID of the dedicated cluster in which the host is created.
    dedicated_host_id str
    The ID of the host.
    disk_allocation_ratio str
    The disk usage in percentage.
    ecs_class_code str
    The Elastic Compute Service (ECS) instance type.
    end_time str
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    engine str
    The type of the database engine that is used by the host.
    expired_time str
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    host_class str
    The instance type of the host.
    host_cpu str
    The number of CPU cores specified for the host. Unit: core.
    host_mem str
    The memory of the host. Unit: GB.
    host_name str
    The name of the host.
    host_storage str
    The total storage capacity of the host. Unit: GB.
    host_type str
    The storage type of the host.
    id str
    The ID of the Dedicated Host. The value formats as <dedicated_host_group_id>:<dedicated_host_id>.
    image_category str
    The image type of the host.
    ip_address str
    The IP address of the host.
    mem_allocation_ratio str
    The memory usage in percentage.
    memory_used str
    The amount of memory used by the host. Unit: GB.
    open_permission str
    Indicates whether you have the OS permissions on the host. Valid values: 0: You do not have the OS permissions on the host. 1: You have the OS permissions on the host.
    status str
    The state of the host.
    storage_used str
    The storage usage of the host. Unit: GB.
    tags Mapping[str, Any]
    The tag of the resource.
    vpc_id str
    The ID of the virtual private cloud (VPC) to which the host is connected.
    vswitch_id str
    The ID of the vSwitch.
    zone_id str
    The zone ID of the host.
    allocationStatus String
    Specifies whether instances can be created on the host. Valid values: 1 or 0. 1: Instances can be created on the host. 0: Instances cannot be created on the host.
    bastionInstanceId String
    The ID of the bastion host with which the host is associated.
    cpuAllocationRatio String
    The numeric value of the CPU over commit ratio of the dedicated cluster.
    cpuUsed String
    The number of CPU cores used by the host.
    createTime String
    The time when the host was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    dedicatedHostGroupId String
    The ID of the dedicated cluster in which the host is created.
    dedicatedHostId String
    The ID of the host.
    diskAllocationRatio String
    The disk usage in percentage.
    ecsClassCode String
    The Elastic Compute Service (ECS) instance type.
    endTime String
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    engine String
    The type of the database engine that is used by the host.
    expiredTime String
    The time when the host expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    hostClass String
    The instance type of the host.
    hostCpu String
    The number of CPU cores specified for the host. Unit: core.
    hostMem String
    The memory of the host. Unit: GB.
    hostName String
    The name of the host.
    hostStorage String
    The total storage capacity of the host. Unit: GB.
    hostType String
    The storage type of the host.
    id String
    The ID of the Dedicated Host. The value formats as <dedicated_host_group_id>:<dedicated_host_id>.
    imageCategory String
    The image type of the host.
    ipAddress String
    The IP address of the host.
    memAllocationRatio String
    The memory usage in percentage.
    memoryUsed String
    The amount of memory used by the host. Unit: GB.
    openPermission String
    Indicates whether you have the OS permissions on the host. Valid values: 0: You do not have the OS permissions on the host. 1: You have the OS permissions on the host.
    status String
    The state of the host.
    storageUsed String
    The storage usage of the host. Unit: GB.
    tags Map<Any>
    The tag of the resource.
    vpcId String
    The ID of the virtual private cloud (VPC) to which the host is connected.
    vswitchId String
    The ID of the vSwitch.
    zoneId String
    The zone ID of the host.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi