Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.ecs.getEcsDisks
Explore with Pulumi AI
This data source provides the Ecs Disks of the current Alibaba Cloud user.
NOTE: Available since v1.122.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const defaultEcsDisk = new alicloud.ecs.EcsDisk("default", {
    zoneId: _default.then(_default => _default.zones?.[0]?.id),
    diskName: "terraform-example",
    description: "terraform-example",
    category: "cloud_efficiency",
    size: 30,
    tags: {
        Name: "terraform-example",
    },
});
const ids = alicloud.ecs.getEcsDisksOutput({
    ids: [defaultEcsDisk.id],
});
export const ecsDiskId0 = ids.apply(ids => ids.disks?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.get_zones(available_resource_creation="VSwitch")
default_ecs_disk = alicloud.ecs.EcsDisk("default",
    zone_id=default.zones[0].id,
    disk_name="terraform-example",
    description="terraform-example",
    category="cloud_efficiency",
    size=30,
    tags={
        "Name": "terraform-example",
    })
ids = alicloud.ecs.get_ecs_disks_output(ids=[default_ecs_disk.id])
pulumi.export("ecsDiskId0", ids.disks[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"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 {
		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultEcsDisk, err := ecs.NewEcsDisk(ctx, "default", &ecs.EcsDiskArgs{
			ZoneId:      pulumi.String(_default.Zones[0].Id),
			DiskName:    pulumi.String("terraform-example"),
			Description: pulumi.String("terraform-example"),
			Category:    pulumi.String("cloud_efficiency"),
			Size:        pulumi.Int(30),
			Tags: pulumi.StringMap{
				"Name": pulumi.String("terraform-example"),
			},
		})
		if err != nil {
			return err
		}
		ids := ecs.GetEcsDisksOutput(ctx, ecs.GetEcsDisksOutputArgs{
			Ids: pulumi.StringArray{
				defaultEcsDisk.ID(),
			},
		}, nil)
		ctx.Export("ecsDiskId0", ids.ApplyT(func(ids ecs.GetEcsDisksResult) (*string, error) {
			return &ids.Disks[0].Id, nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "VSwitch",
    });
    var defaultEcsDisk = new AliCloud.Ecs.EcsDisk("default", new()
    {
        ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
        DiskName = "terraform-example",
        Description = "terraform-example",
        Category = "cloud_efficiency",
        Size = 30,
        Tags = 
        {
            { "Name", "terraform-example" },
        },
    });
    var ids = AliCloud.Ecs.GetEcsDisks.Invoke(new()
    {
        Ids = new[]
        {
            defaultEcsDisk.Id,
        },
    });
    return new Dictionary<string, object?>
    {
        ["ecsDiskId0"] = ids.Apply(getEcsDisksResult => getEcsDisksResult.Disks[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.ecs.EcsDisk;
import com.pulumi.alicloud.ecs.EcsDiskArgs;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetEcsDisksArgs;
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 default = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("VSwitch")
            .build());
        var defaultEcsDisk = new EcsDisk("defaultEcsDisk", EcsDiskArgs.builder()
            .zoneId(default_.zones()[0].id())
            .diskName("terraform-example")
            .description("terraform-example")
            .category("cloud_efficiency")
            .size("30")
            .tags(Map.of("Name", "terraform-example"))
            .build());
        final var ids = EcsFunctions.getEcsDisks(GetEcsDisksArgs.builder()
            .ids(defaultEcsDisk.id())
            .build());
        ctx.export("ecsDiskId0", ids.applyValue(getEcsDisksResult -> getEcsDisksResult).applyValue(ids -> ids.applyValue(getEcsDisksResult -> getEcsDisksResult.disks()[0].id())));
    }
}
resources:
  defaultEcsDisk:
    type: alicloud:ecs:EcsDisk
    name: default
    properties:
      zoneId: ${default.zones[0].id}
      diskName: terraform-example
      description: terraform-example
      category: cloud_efficiency
      size: '30'
      tags:
        Name: terraform-example
variables:
  default:
    fn::invoke:
      function: alicloud:getZones
      arguments:
        availableResourceCreation: VSwitch
  ids:
    fn::invoke:
      function: alicloud:ecs:getEcsDisks
      arguments:
        ids:
          - ${defaultEcsDisk.id}
outputs:
  ecsDiskId0: ${ids.disks[0].id}
Using getEcsDisks
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 getEcsDisks(args: GetEcsDisksArgs, opts?: InvokeOptions): Promise<GetEcsDisksResult>
function getEcsDisksOutput(args: GetEcsDisksOutputArgs, opts?: InvokeOptions): Output<GetEcsDisksResult>def get_ecs_disks(additional_attributes: Optional[Sequence[str]] = None,
                  auto_snapshot_policy_id: Optional[str] = None,
                  availability_zone: Optional[str] = None,
                  category: Optional[str] = None,
                  delete_auto_snapshot: Optional[bool] = None,
                  delete_with_instance: Optional[bool] = None,
                  disk_name: Optional[str] = None,
                  disk_type: Optional[str] = None,
                  dry_run: Optional[bool] = None,
                  enable_auto_snapshot: Optional[bool] = None,
                  enable_automated_snapshot_policy: Optional[bool] = None,
                  enable_shared: Optional[bool] = None,
                  encrypted: Optional[str] = None,
                  ids: Optional[Sequence[str]] = None,
                  instance_id: Optional[str] = None,
                  kms_key_id: Optional[str] = None,
                  name_regex: Optional[str] = None,
                  operation_locks: Optional[Sequence[GetEcsDisksOperationLock]] = None,
                  output_file: Optional[str] = None,
                  page_number: Optional[int] = None,
                  page_size: Optional[int] = None,
                  payment_type: Optional[str] = None,
                  portable: Optional[bool] = None,
                  resource_group_id: Optional[str] = None,
                  snapshot_id: Optional[str] = None,
                  status: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  type: Optional[str] = None,
                  zone_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetEcsDisksResult
def get_ecs_disks_output(additional_attributes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  auto_snapshot_policy_id: Optional[pulumi.Input[str]] = None,
                  availability_zone: Optional[pulumi.Input[str]] = None,
                  category: Optional[pulumi.Input[str]] = None,
                  delete_auto_snapshot: Optional[pulumi.Input[bool]] = None,
                  delete_with_instance: Optional[pulumi.Input[bool]] = None,
                  disk_name: Optional[pulumi.Input[str]] = None,
                  disk_type: Optional[pulumi.Input[str]] = None,
                  dry_run: Optional[pulumi.Input[bool]] = None,
                  enable_auto_snapshot: Optional[pulumi.Input[bool]] = None,
                  enable_automated_snapshot_policy: Optional[pulumi.Input[bool]] = None,
                  enable_shared: Optional[pulumi.Input[bool]] = None,
                  encrypted: Optional[pulumi.Input[str]] = None,
                  ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  instance_id: Optional[pulumi.Input[str]] = None,
                  kms_key_id: Optional[pulumi.Input[str]] = None,
                  name_regex: Optional[pulumi.Input[str]] = None,
                  operation_locks: Optional[pulumi.Input[Sequence[pulumi.Input[GetEcsDisksOperationLockArgs]]]] = None,
                  output_file: Optional[pulumi.Input[str]] = None,
                  page_number: Optional[pulumi.Input[int]] = None,
                  page_size: Optional[pulumi.Input[int]] = None,
                  payment_type: Optional[pulumi.Input[str]] = None,
                  portable: Optional[pulumi.Input[bool]] = None,
                  resource_group_id: Optional[pulumi.Input[str]] = None,
                  snapshot_id: Optional[pulumi.Input[str]] = None,
                  status: Optional[pulumi.Input[str]] = None,
                  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                  type: Optional[pulumi.Input[str]] = None,
                  zone_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetEcsDisksResult]func GetEcsDisks(ctx *Context, args *GetEcsDisksArgs, opts ...InvokeOption) (*GetEcsDisksResult, error)
func GetEcsDisksOutput(ctx *Context, args *GetEcsDisksOutputArgs, opts ...InvokeOption) GetEcsDisksResultOutput> Note: This function is named GetEcsDisks in the Go SDK.
public static class GetEcsDisks 
{
    public static Task<GetEcsDisksResult> InvokeAsync(GetEcsDisksArgs args, InvokeOptions? opts = null)
    public static Output<GetEcsDisksResult> Invoke(GetEcsDisksInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEcsDisksResult> getEcsDisks(GetEcsDisksArgs args, InvokeOptions options)
public static Output<GetEcsDisksResult> getEcsDisks(GetEcsDisksArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:ecs/getEcsDisks:getEcsDisks
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Additional
Attributes List<string> - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - Category string
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Disk
Name string - The disk name.
 - Disk
Type string - The disk type. Valid values: 
system,data,all. - Dry
Run bool - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - Enable
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Enable
Automated boolSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - bool
 - Whether it is shared block storage.
 - Encrypted string
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - Ids List<string>
 - A list of Disk IDs.
 - Instance
Id string - Filter the results by the specified ECS instance ID.
 - Kms
Key stringId  - The kms key id.
 - Name
Regex string - A regex string to filter results by Disk name.
 - Operation
Locks List<Pulumi.Ali Cloud. Ecs. Inputs. Get Ecs Disks Operation Lock>  - The reasons why the disk was locked. See 
operation_locksbelow for details. - Output
File string - File name where to save data source results (after running 
pulumi preview). - Page
Number int - Page
Size int - Payment
Type string - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - Portable bool
 - Whether the cloud disk or local disk supports uninstallation.
 - Resource
Group stringId  - The Id of resource group which the disk belongs.
 - Snapshot
Id string - The source snapshot id.
 - Status string
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - Dictionary<string, string>
 - A map of tags assigned to the disks.
 - Type string
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - Zone
Id string - ID of the free zone to which the disk belongs.
 
- Additional
Attributes []string - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - Category string
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Disk
Name string - The disk name.
 - Disk
Type string - The disk type. Valid values: 
system,data,all. - Dry
Run bool - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - Enable
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Enable
Automated boolSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - bool
 - Whether it is shared block storage.
 - Encrypted string
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - Ids []string
 - A list of Disk IDs.
 - Instance
Id string - Filter the results by the specified ECS instance ID.
 - Kms
Key stringId  - The kms key id.
 - Name
Regex string - A regex string to filter results by Disk name.
 - Operation
Locks []GetEcs Disks Operation Lock  - The reasons why the disk was locked. See 
operation_locksbelow for details. - Output
File string - File name where to save data source results (after running 
pulumi preview). - Page
Number int - Page
Size int - Payment
Type string - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - Portable bool
 - Whether the cloud disk or local disk supports uninstallation.
 - Resource
Group stringId  - The Id of resource group which the disk belongs.
 - Snapshot
Id string - The source snapshot id.
 - Status string
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - map[string]string
 - A map of tags assigned to the disks.
 - Type string
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - Zone
Id string - ID of the free zone to which the disk belongs.
 
- additional
Attributes List<String> - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category String
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - disk
Name String - The disk name.
 - disk
Type String - The disk type. Valid values: 
system,data,all. - dry
Run Boolean - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - enable
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable
Automated BooleanSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - Boolean
 - Whether it is shared block storage.
 - encrypted String
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - ids List<String>
 - A list of Disk IDs.
 - instance
Id String - Filter the results by the specified ECS instance ID.
 - kms
Key StringId  - The kms key id.
 - name
Regex String - A regex string to filter results by Disk name.
 - operation
Locks List<GetEcs Disks Operation Lock>  - The reasons why the disk was locked. See 
operation_locksbelow for details. - output
File String - File name where to save data source results (after running 
pulumi preview). - page
Number Integer - page
Size Integer - payment
Type String - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - portable Boolean
 - Whether the cloud disk or local disk supports uninstallation.
 - resource
Group StringId  - The Id of resource group which the disk belongs.
 - snapshot
Id String - The source snapshot id.
 - status String
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - Map<String,String>
 - A map of tags assigned to the disks.
 - type String
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone
Id String - ID of the free zone to which the disk belongs.
 
- additional
Attributes string[] - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone string - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category string
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - delete
Auto booleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With booleanInstance  - Indicates whether the disk is released together with the instance.
 - disk
Name string - The disk name.
 - disk
Type string - The disk type. Valid values: 
system,data,all. - dry
Run boolean - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - enable
Auto booleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable
Automated booleanSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - boolean
 - Whether it is shared block storage.
 - encrypted string
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - ids string[]
 - A list of Disk IDs.
 - instance
Id string - Filter the results by the specified ECS instance ID.
 - kms
Key stringId  - The kms key id.
 - name
Regex string - A regex string to filter results by Disk name.
 - operation
Locks GetEcs Disks Operation Lock[]  - The reasons why the disk was locked. See 
operation_locksbelow for details. - output
File string - File name where to save data source results (after running 
pulumi preview). - page
Number number - page
Size number - payment
Type string - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - portable boolean
 - Whether the cloud disk or local disk supports uninstallation.
 - resource
Group stringId  - The Id of resource group which the disk belongs.
 - snapshot
Id string - The source snapshot id.
 - status string
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - {[key: string]: string}
 - A map of tags assigned to the disks.
 - type string
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone
Id string - ID of the free zone to which the disk belongs.
 
- additional_
attributes Sequence[str] - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - auto_
snapshot_ strpolicy_ id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability_
zone str - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category str
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - delete_
auto_ boolsnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete_
with_ boolinstance  - Indicates whether the disk is released together with the instance.
 - disk_
name str - The disk name.
 - disk_
type str - The disk type. Valid values: 
system,data,all. - dry_
run bool - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - enable_
auto_ boolsnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable_
automated_ boolsnapshot_ policy  - Whether the cloud disk has an automatic snapshot policy
 - bool
 - Whether it is shared block storage.
 - encrypted str
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - ids Sequence[str]
 - A list of Disk IDs.
 - instance_
id str - Filter the results by the specified ECS instance ID.
 - kms_
key_ strid  - The kms key id.
 - name_
regex str - A regex string to filter results by Disk name.
 - operation_
locks Sequence[GetEcs Disks Operation Lock]  - The reasons why the disk was locked. See 
operation_locksbelow for details. - output_
file str - File name where to save data source results (after running 
pulumi preview). - page_
number int - page_
size int - payment_
type str - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - portable bool
 - Whether the cloud disk or local disk supports uninstallation.
 - resource_
group_ strid  - The Id of resource group which the disk belongs.
 - snapshot_
id str - The source snapshot id.
 - status str
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - Mapping[str, str]
 - A map of tags assigned to the disks.
 - type str
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone_
id str - ID of the free zone to which the disk belongs.
 
- additional
Attributes List<String> - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category String
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - disk
Name String - The disk name.
 - disk
Type String - The disk type. Valid values: 
system,data,all. - dry
Run Boolean - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - enable
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable
Automated BooleanSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - Boolean
 - Whether it is shared block storage.
 - encrypted String
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - ids List<String>
 - A list of Disk IDs.
 - instance
Id String - Filter the results by the specified ECS instance ID.
 - kms
Key StringId  - The kms key id.
 - name
Regex String - A regex string to filter results by Disk name.
 - operation
Locks List<Property Map> - The reasons why the disk was locked. See 
operation_locksbelow for details. - output
File String - File name where to save data source results (after running 
pulumi preview). - page
Number Number - page
Size Number - payment
Type String - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - portable Boolean
 - Whether the cloud disk or local disk supports uninstallation.
 - resource
Group StringId  - The Id of resource group which the disk belongs.
 - snapshot
Id String - The source snapshot id.
 - status String
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - Map<String>
 - A map of tags assigned to the disks.
 - type String
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone
Id String - ID of the free zone to which the disk belongs.
 
getEcsDisks Result
The following output properties are available:
- Disks
List<Pulumi.
Ali Cloud. Ecs. Outputs. Get Ecs Disks Disk>  - A list of Ecs Disks. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - Names List<string>
 - A list of Disk names.
 - Total
Count int - Additional
Attributes List<string> - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Availability zone of the disk.
 - Category string
 - Disk category.
 - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Disk
Name string - The disk name.
 - Disk
Type string - The type of the disk.
 - Dry
Run bool - Enable
Auto boolSnapshot  - Whether the disk implements an automatic snapshot policy.
 - Enable
Automated boolSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - bool
 - Encrypted string
 - Indicate whether the disk is encrypted or not.
 - Instance
Id string - The instance ID of the disk mount.
 - Kms
Key stringId  - The ID of the KMS key that is used for the cloud disk.
 - Name
Regex string - Operation
Locks List<Pulumi.Ali Cloud. Ecs. Outputs. Get Ecs Disks Operation Lock>  - The reasons why the disk was locked.
 - Output
File string - Page
Number int - Page
Size int - Payment
Type string - Payment method for disk.
 - Portable bool
 - Whether the disk is unmountable.
 - Resource
Group stringId  - The Id of resource group.
 - Snapshot
Id string - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - Status string
 - Current status.
 - Dictionary<string, string>
 - A map of tags assigned to the disk.
 - Type string
 - The type of the disk.
 - Zone
Id string - The zone id.
 
- Disks
[]Get
Ecs Disks Disk  - A list of Ecs Disks. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - Names []string
 - A list of Disk names.
 - Total
Count int - Additional
Attributes []string - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Availability zone of the disk.
 - Category string
 - Disk category.
 - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Disk
Name string - The disk name.
 - Disk
Type string - The type of the disk.
 - Dry
Run bool - Enable
Auto boolSnapshot  - Whether the disk implements an automatic snapshot policy.
 - Enable
Automated boolSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - bool
 - Encrypted string
 - Indicate whether the disk is encrypted or not.
 - Instance
Id string - The instance ID of the disk mount.
 - Kms
Key stringId  - The ID of the KMS key that is used for the cloud disk.
 - Name
Regex string - Operation
Locks []GetEcs Disks Operation Lock  - The reasons why the disk was locked.
 - Output
File string - Page
Number int - Page
Size int - Payment
Type string - Payment method for disk.
 - Portable bool
 - Whether the disk is unmountable.
 - Resource
Group stringId  - The Id of resource group.
 - Snapshot
Id string - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - Status string
 - Current status.
 - map[string]string
 - A map of tags assigned to the disk.
 - Type string
 - The type of the disk.
 - Zone
Id string - The zone id.
 
- disks
List<Get
Ecs Disks Disk>  - A list of Ecs Disks. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - A list of Disk names.
 - total
Count Integer - additional
Attributes List<String> - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Availability zone of the disk.
 - category String
 - Disk category.
 - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - disk
Name String - The disk name.
 - disk
Type String - The type of the disk.
 - dry
Run Boolean - enable
Auto BooleanSnapshot  - Whether the disk implements an automatic snapshot policy.
 - enable
Automated BooleanSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - Boolean
 - encrypted String
 - Indicate whether the disk is encrypted or not.
 - instance
Id String - The instance ID of the disk mount.
 - kms
Key StringId  - The ID of the KMS key that is used for the cloud disk.
 - name
Regex String - operation
Locks List<GetEcs Disks Operation Lock>  - The reasons why the disk was locked.
 - output
File String - page
Number Integer - page
Size Integer - payment
Type String - Payment method for disk.
 - portable Boolean
 - Whether the disk is unmountable.
 - resource
Group StringId  - The Id of resource group.
 - snapshot
Id String - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - status String
 - Current status.
 - Map<String,String>
 - A map of tags assigned to the disk.
 - type String
 - The type of the disk.
 - zone
Id String - The zone id.
 
- disks
Get
Ecs Disks Disk[]  - A list of Ecs Disks. Each element contains the following attributes:
 - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - names string[]
 - A list of Disk names.
 - total
Count number - additional
Attributes string[] - auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone string - Availability zone of the disk.
 - category string
 - Disk category.
 - delete
Auto booleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With booleanInstance  - Indicates whether the disk is released together with the instance.
 - disk
Name string - The disk name.
 - disk
Type string - The type of the disk.
 - dry
Run boolean - enable
Auto booleanSnapshot  - Whether the disk implements an automatic snapshot policy.
 - enable
Automated booleanSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - boolean
 - encrypted string
 - Indicate whether the disk is encrypted or not.
 - instance
Id string - The instance ID of the disk mount.
 - kms
Key stringId  - The ID of the KMS key that is used for the cloud disk.
 - name
Regex string - operation
Locks GetEcs Disks Operation Lock[]  - The reasons why the disk was locked.
 - output
File string - page
Number number - page
Size number - payment
Type string - Payment method for disk.
 - portable boolean
 - Whether the disk is unmountable.
 - resource
Group stringId  - The Id of resource group.
 - snapshot
Id string - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - status string
 - Current status.
 - {[key: string]: string}
 - A map of tags assigned to the disk.
 - type string
 - The type of the disk.
 - zone
Id string - The zone id.
 
- disks
Sequence[Get
Ecs Disks Disk]  - A list of Ecs Disks. Each element contains the following attributes:
 - id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - names Sequence[str]
 - A list of Disk names.
 - total_
count int - additional_
attributes Sequence[str] - auto_
snapshot_ strpolicy_ id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability_
zone str - Availability zone of the disk.
 - category str
 - Disk category.
 - delete_
auto_ boolsnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete_
with_ boolinstance  - Indicates whether the disk is released together with the instance.
 - disk_
name str - The disk name.
 - disk_
type str - The type of the disk.
 - dry_
run bool - enable_
auto_ boolsnapshot  - Whether the disk implements an automatic snapshot policy.
 - enable_
automated_ boolsnapshot_ policy  - Whether the disk implements an automatic snapshot policy.
 - bool
 - encrypted str
 - Indicate whether the disk is encrypted or not.
 - instance_
id str - The instance ID of the disk mount.
 - kms_
key_ strid  - The ID of the KMS key that is used for the cloud disk.
 - name_
regex str - operation_
locks Sequence[GetEcs Disks Operation Lock]  - The reasons why the disk was locked.
 - output_
file str - page_
number int - page_
size int - payment_
type str - Payment method for disk.
 - portable bool
 - Whether the disk is unmountable.
 - resource_
group_ strid  - The Id of resource group.
 - snapshot_
id str - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - status str
 - Current status.
 - Mapping[str, str]
 - A map of tags assigned to the disk.
 - type str
 - The type of the disk.
 - zone_
id str - The zone id.
 
- disks List<Property Map>
 - A list of Ecs Disks. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - A list of Disk names.
 - total
Count Number - additional
Attributes List<String> - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Availability zone of the disk.
 - category String
 - Disk category.
 - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - disk
Name String - The disk name.
 - disk
Type String - The type of the disk.
 - dry
Run Boolean - enable
Auto BooleanSnapshot  - Whether the disk implements an automatic snapshot policy.
 - enable
Automated BooleanSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - Boolean
 - encrypted String
 - Indicate whether the disk is encrypted or not.
 - instance
Id String - The instance ID of the disk mount.
 - kms
Key StringId  - The ID of the KMS key that is used for the cloud disk.
 - name
Regex String - operation
Locks List<Property Map> - The reasons why the disk was locked.
 - output
File String - page
Number Number - page
Size Number - payment
Type String - Payment method for disk.
 - portable Boolean
 - Whether the disk is unmountable.
 - resource
Group StringId  - The Id of resource group.
 - snapshot
Id String - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - status String
 - Current status.
 - Map<String>
 - A map of tags assigned to the disk.
 - type String
 - The type of the disk.
 - zone
Id String - The zone id.
 
Supporting Types
GetEcsDisksDisk   
- Attached
Time string - A mount of time.
 - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - Category string
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - Creation
Time string - Disk creation time.
 - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Description string
 - Disk description.
 - Detached
Time string - Disk detachment time.
 - Device string
 - The mount point of the disk.
 - Disk
Id string - ID of the disk.
 - Disk
Name string - The disk name.
 - Disk
Type string - The disk type. Valid values: 
system,data,all. - Enable
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Enable
Automated boolSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - Encrypted string
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - Expiration
Time string - The time when the subscription disk expires.
 - Expired
Time string - The time when the subscription disk expires.
 - Id string
 - ID of the disk.
 - Image
Id string - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - Instance
Id string - Filter the results by the specified ECS instance ID.
 - Iops int
 - The maximum number of read and write operations per second.
 - Iops
Read int - The maximum number of read operations per second.
 - Iops
Write int - The maximum number of write operations per second.
 - Kms
Key stringId  - The kms key id.
 - Mount
Instance intNum  - Number of instances mounted on shared storage.
 - Mount
Instances List<Pulumi.Ali Cloud. Ecs. Inputs. Get Ecs Disks Disk Mount Instance>  - Disk mount instances.
 - Name string
 - Disk name.
 - Operation
Locks List<Pulumi.Ali Cloud. Ecs. Inputs. Get Ecs Disks Disk Operation Lock>  - The reasons why the disk was locked. See 
operation_locksbelow for details. - Payment
Type string - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - Performance
Level string - Performance levels of ESSD cloud disk.
 - Portable bool
 - Whether the cloud disk or local disk supports uninstallation.
 - Product
Code string - The product logo of the cloud market.
 - Region
Id string - Region ID the disk belongs to.
 - Resource
Group stringId  - The Id of resource group which the disk belongs.
 - Size int
 - Disk size in GiB.
 - Snapshot
Id string - The source snapshot id.
 - Status string
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - Dictionary<string, string>
 - A map of tags assigned to the disks.
 - Type string
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - Zone
Id string - ID of the free zone to which the disk belongs.
 
- Attached
Time string - A mount of time.
 - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - Category string
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - Creation
Time string - Disk creation time.
 - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Description string
 - Disk description.
 - Detached
Time string - Disk detachment time.
 - Device string
 - The mount point of the disk.
 - Disk
Id string - ID of the disk.
 - Disk
Name string - The disk name.
 - Disk
Type string - The disk type. Valid values: 
system,data,all. - Enable
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Enable
Automated boolSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - Encrypted string
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - Expiration
Time string - The time when the subscription disk expires.
 - Expired
Time string - The time when the subscription disk expires.
 - Id string
 - ID of the disk.
 - Image
Id string - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - Instance
Id string - Filter the results by the specified ECS instance ID.
 - Iops int
 - The maximum number of read and write operations per second.
 - Iops
Read int - The maximum number of read operations per second.
 - Iops
Write int - The maximum number of write operations per second.
 - Kms
Key stringId  - The kms key id.
 - Mount
Instance intNum  - Number of instances mounted on shared storage.
 - Mount
Instances []GetEcs Disks Disk Mount Instance  - Disk mount instances.
 - Name string
 - Disk name.
 - Operation
Locks []GetEcs Disks Disk Operation Lock  - The reasons why the disk was locked. See 
operation_locksbelow for details. - Payment
Type string - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - Performance
Level string - Performance levels of ESSD cloud disk.
 - Portable bool
 - Whether the cloud disk or local disk supports uninstallation.
 - Product
Code string - The product logo of the cloud market.
 - Region
Id string - Region ID the disk belongs to.
 - Resource
Group stringId  - The Id of resource group which the disk belongs.
 - Size int
 - Disk size in GiB.
 - Snapshot
Id string - The source snapshot id.
 - Status string
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - map[string]string
 - A map of tags assigned to the disks.
 - Type string
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - Zone
Id string - ID of the free zone to which the disk belongs.
 
- attached
Time String - A mount of time.
 - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category String
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - creation
Time String - Disk creation time.
 - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - description String
 - Disk description.
 - detached
Time String - Disk detachment time.
 - device String
 - The mount point of the disk.
 - disk
Id String - ID of the disk.
 - disk
Name String - The disk name.
 - disk
Type String - The disk type. Valid values: 
system,data,all. - enable
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable
Automated BooleanSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - encrypted String
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - expiration
Time String - The time when the subscription disk expires.
 - expired
Time String - The time when the subscription disk expires.
 - id String
 - ID of the disk.
 - image
Id String - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - instance
Id String - Filter the results by the specified ECS instance ID.
 - iops Integer
 - The maximum number of read and write operations per second.
 - iops
Read Integer - The maximum number of read operations per second.
 - iops
Write Integer - The maximum number of write operations per second.
 - kms
Key StringId  - The kms key id.
 - mount
Instance IntegerNum  - Number of instances mounted on shared storage.
 - mount
Instances List<GetEcs Disks Disk Mount Instance>  - Disk mount instances.
 - name String
 - Disk name.
 - operation
Locks List<GetEcs Disks Disk Operation Lock>  - The reasons why the disk was locked. See 
operation_locksbelow for details. - payment
Type String - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - performance
Level String - Performance levels of ESSD cloud disk.
 - portable Boolean
 - Whether the cloud disk or local disk supports uninstallation.
 - product
Code String - The product logo of the cloud market.
 - region
Id String - Region ID the disk belongs to.
 - resource
Group StringId  - The Id of resource group which the disk belongs.
 - size Integer
 - Disk size in GiB.
 - snapshot
Id String - The source snapshot id.
 - status String
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - Map<String,String>
 - A map of tags assigned to the disks.
 - type String
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone
Id String - ID of the free zone to which the disk belongs.
 
- attached
Time string - A mount of time.
 - auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone string - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category string
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - creation
Time string - Disk creation time.
 - delete
Auto booleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With booleanInstance  - Indicates whether the disk is released together with the instance.
 - description string
 - Disk description.
 - detached
Time string - Disk detachment time.
 - device string
 - The mount point of the disk.
 - disk
Id string - ID of the disk.
 - disk
Name string - The disk name.
 - disk
Type string - The disk type. Valid values: 
system,data,all. - enable
Auto booleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable
Automated booleanSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - encrypted string
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - expiration
Time string - The time when the subscription disk expires.
 - expired
Time string - The time when the subscription disk expires.
 - id string
 - ID of the disk.
 - image
Id string - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - instance
Id string - Filter the results by the specified ECS instance ID.
 - iops number
 - The maximum number of read and write operations per second.
 - iops
Read number - The maximum number of read operations per second.
 - iops
Write number - The maximum number of write operations per second.
 - kms
Key stringId  - The kms key id.
 - mount
Instance numberNum  - Number of instances mounted on shared storage.
 - mount
Instances GetEcs Disks Disk Mount Instance[]  - Disk mount instances.
 - name string
 - Disk name.
 - operation
Locks GetEcs Disks Disk Operation Lock[]  - The reasons why the disk was locked. See 
operation_locksbelow for details. - payment
Type string - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - performance
Level string - Performance levels of ESSD cloud disk.
 - portable boolean
 - Whether the cloud disk or local disk supports uninstallation.
 - product
Code string - The product logo of the cloud market.
 - region
Id string - Region ID the disk belongs to.
 - resource
Group stringId  - The Id of resource group which the disk belongs.
 - size number
 - Disk size in GiB.
 - snapshot
Id string - The source snapshot id.
 - status string
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - {[key: string]: string}
 - A map of tags assigned to the disks.
 - type string
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone
Id string - ID of the free zone to which the disk belongs.
 
- attached_
time str - A mount of time.
 - auto_
snapshot_ strpolicy_ id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability_
zone str - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category str
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - creation_
time str - Disk creation time.
 - delete_
auto_ boolsnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete_
with_ boolinstance  - Indicates whether the disk is released together with the instance.
 - description str
 - Disk description.
 - detached_
time str - Disk detachment time.
 - device str
 - The mount point of the disk.
 - disk_
id str - ID of the disk.
 - disk_
name str - The disk name.
 - disk_
type str - The disk type. Valid values: 
system,data,all. - enable_
auto_ boolsnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable_
automated_ boolsnapshot_ policy  - Whether the cloud disk has an automatic snapshot policy
 - encrypted str
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - expiration_
time str - The time when the subscription disk expires.
 - expired_
time str - The time when the subscription disk expires.
 - id str
 - ID of the disk.
 - image_
id str - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - instance_
id str - Filter the results by the specified ECS instance ID.
 - iops int
 - The maximum number of read and write operations per second.
 - iops_
read int - The maximum number of read operations per second.
 - iops_
write int - The maximum number of write operations per second.
 - kms_
key_ strid  - The kms key id.
 - mount_
instance_ intnum  - Number of instances mounted on shared storage.
 - mount_
instances Sequence[GetEcs Disks Disk Mount Instance]  - Disk mount instances.
 - name str
 - Disk name.
 - operation_
locks Sequence[GetEcs Disks Disk Operation Lock]  - The reasons why the disk was locked. See 
operation_locksbelow for details. - payment_
type str - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - performance_
level str - Performance levels of ESSD cloud disk.
 - portable bool
 - Whether the cloud disk or local disk supports uninstallation.
 - product_
code str - The product logo of the cloud market.
 - region_
id str - Region ID the disk belongs to.
 - resource_
group_ strid  - The Id of resource group which the disk belongs.
 - size int
 - Disk size in GiB.
 - snapshot_
id str - The source snapshot id.
 - status str
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - Mapping[str, str]
 - A map of tags assigned to the disks.
 - type str
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone_
id str - ID of the free zone to which the disk belongs.
 
- attached
Time String - A mount of time.
 - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category String
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - creation
Time String - Disk creation time.
 - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - description String
 - Disk description.
 - detached
Time String - Disk detachment time.
 - device String
 - The mount point of the disk.
 - disk
Id String - ID of the disk.
 - disk
Name String - The disk name.
 - disk
Type String - The disk type. Valid values: 
system,data,all. - enable
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable
Automated BooleanSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - encrypted String
 - Indicate whether the disk is encrypted or not. Valid values: 
onandoff. - expiration
Time String - The time when the subscription disk expires.
 - expired
Time String - The time when the subscription disk expires.
 - id String
 - ID of the disk.
 - image
Id String - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - instance
Id String - Filter the results by the specified ECS instance ID.
 - iops Number
 - The maximum number of read and write operations per second.
 - iops
Read Number - The maximum number of read operations per second.
 - iops
Write Number - The maximum number of write operations per second.
 - kms
Key StringId  - The kms key id.
 - mount
Instance NumberNum  - Number of instances mounted on shared storage.
 - mount
Instances List<Property Map> - Disk mount instances.
 - name String
 - Disk name.
 - operation
Locks List<Property Map> - The reasons why the disk was locked. See 
operation_locksbelow for details. - payment
Type String - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - performance
Level String - Performance levels of ESSD cloud disk.
 - portable Boolean
 - Whether the cloud disk or local disk supports uninstallation.
 - product
Code String - The product logo of the cloud market.
 - region
Id String - Region ID the disk belongs to.
 - resource
Group StringId  - The Id of resource group which the disk belongs.
 - size Number
 - Disk size in GiB.
 - snapshot
Id String - The source snapshot id.
 - status String
 - The status of disk. Valid Values: 
Attaching,Available,Creating,Detaching,In_use,Migrating,ReIniting,Transferring. - Map<String>
 - A map of tags assigned to the disks.
 - type String
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone
Id String - ID of the free zone to which the disk belongs.
 
GetEcsDisksDiskMountInstance     
- Attached
Time string - A mount of time.
 - Device string
 - The mount point of the disk.
 - Instance
Id string - Filter the results by the specified ECS instance ID.
 
- Attached
Time string - A mount of time.
 - Device string
 - The mount point of the disk.
 - Instance
Id string - Filter the results by the specified ECS instance ID.
 
- attached
Time String - A mount of time.
 - device String
 - The mount point of the disk.
 - instance
Id String - Filter the results by the specified ECS instance ID.
 
- attached
Time string - A mount of time.
 - device string
 - The mount point of the disk.
 - instance
Id string - Filter the results by the specified ECS instance ID.
 
- attached_
time str - A mount of time.
 - device str
 - The mount point of the disk.
 - instance_
id str - Filter the results by the specified ECS instance ID.
 
- attached
Time String - A mount of time.
 - device String
 - The mount point of the disk.
 - instance
Id String - Filter the results by the specified ECS instance ID.
 
GetEcsDisksDiskOperationLock     
- Lock
Reason string - The reason why the disk was locked.
 
- Lock
Reason string - The reason why the disk was locked.
 
- lock
Reason String - The reason why the disk was locked.
 
- lock
Reason string - The reason why the disk was locked.
 
- lock_
reason str - The reason why the disk was locked.
 
- lock
Reason String - The reason why the disk was locked.
 
GetEcsDisksOperationLock    
- Lock
Reason string - The reason why the disk was locked.
 
- Lock
Reason string - The reason why the disk was locked.
 
- lock
Reason String - The reason why the disk was locked.
 
- lock
Reason string - The reason why the disk was locked.
 
- lock_
reason str - The reason why the disk was locked.
 
- lock
Reason String - The reason why the disk was locked.
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.