1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ecs
  5. getEcsDisks
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.ecs.getEcsDisks

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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())));
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetEcsDisks(ctx *Context, args *GetEcsDisksArgs, opts ...InvokeOption) (*GetEcsDisksResult, error)
func GetEcsDisksOutput(ctx *Context, args *GetEcsDisksOutputArgs, opts ...InvokeOption) GetEcsDisksResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetEcsDisksResult> getEcsDisks(GetEcsDisksArgs args, InvokeOptions options)
public static Output<GetEcsDisksResult> getEcsDisks(GetEcsDisksArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:ecs/getEcsDisks:getEcsDisks
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AdditionalAttributes Changes to this property will trigger replacement. 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.
AutoSnapshotPolicyId Changes to this property will trigger replacement. string
Query cloud disks based on the automatic snapshot policy ID.
AvailabilityZone Changes to this property will trigger replacement. string
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

Category Changes to this property will trigger replacement. string
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
DeleteAutoSnapshot Changes to this property will trigger replacement. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
DeleteWithInstance Changes to this property will trigger replacement. bool
Indicates whether the disk is released together with the instance.
DiskName Changes to this property will trigger replacement. string
The disk name.
DiskType Changes to this property will trigger replacement. string
The disk type. Valid values: system, data, all.
DryRun Changes to this property will trigger replacement. bool
Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
EnableAutoSnapshot Changes to this property will trigger replacement. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
EnableAutomatedSnapshotPolicy Changes to this property will trigger replacement. bool
Whether the cloud disk has an automatic snapshot policy
EnableShared Changes to this property will trigger replacement. bool
Whether it is shared block storage.
Encrypted Changes to this property will trigger replacement. string
Indicate whether the disk is encrypted or not. Valid values: on and off.
Ids Changes to this property will trigger replacement. List<string>
A list of Disk IDs.
InstanceId Changes to this property will trigger replacement. string
Filter the results by the specified ECS instance ID.
KmsKeyId Changes to this property will trigger replacement. string
The kms key id.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Disk name.
OperationLocks Changes to this property will trigger replacement. List<Pulumi.AliCloud.Ecs.Inputs.GetEcsDisksOperationLock>
The reasons why the disk was locked. See operation_locks below for details.
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
PaymentType Changes to this property will trigger replacement. string
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
Portable Changes to this property will trigger replacement. bool
Whether the cloud disk or local disk supports uninstallation.
ResourceGroupId Changes to this property will trigger replacement. string
The Id of resource group which the disk belongs.
SnapshotId Changes to this property will trigger replacement. string
The source snapshot id.
Status Changes to this property will trigger replacement. string
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
Tags Dictionary<string, string>
A map of tags assigned to the disks.
Type Changes to this property will trigger replacement. string
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

ZoneId Changes to this property will trigger replacement. string
ID of the free zone to which the disk belongs.
AdditionalAttributes Changes to this property will trigger replacement. []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.
AutoSnapshotPolicyId Changes to this property will trigger replacement. string
Query cloud disks based on the automatic snapshot policy ID.
AvailabilityZone Changes to this property will trigger replacement. string
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

Category Changes to this property will trigger replacement. string
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
DeleteAutoSnapshot Changes to this property will trigger replacement. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
DeleteWithInstance Changes to this property will trigger replacement. bool
Indicates whether the disk is released together with the instance.
DiskName Changes to this property will trigger replacement. string
The disk name.
DiskType Changes to this property will trigger replacement. string
The disk type. Valid values: system, data, all.
DryRun Changes to this property will trigger replacement. bool
Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
EnableAutoSnapshot Changes to this property will trigger replacement. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
EnableAutomatedSnapshotPolicy Changes to this property will trigger replacement. bool
Whether the cloud disk has an automatic snapshot policy
EnableShared Changes to this property will trigger replacement. bool
Whether it is shared block storage.
Encrypted Changes to this property will trigger replacement. string
Indicate whether the disk is encrypted or not. Valid values: on and off.
Ids Changes to this property will trigger replacement. []string
A list of Disk IDs.
InstanceId Changes to this property will trigger replacement. string
Filter the results by the specified ECS instance ID.
KmsKeyId Changes to this property will trigger replacement. string
The kms key id.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Disk name.
OperationLocks Changes to this property will trigger replacement. []GetEcsDisksOperationLock
The reasons why the disk was locked. See operation_locks below for details.
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
PaymentType Changes to this property will trigger replacement. string
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
Portable Changes to this property will trigger replacement. bool
Whether the cloud disk or local disk supports uninstallation.
ResourceGroupId Changes to this property will trigger replacement. string
The Id of resource group which the disk belongs.
SnapshotId Changes to this property will trigger replacement. string
The source snapshot id.
Status Changes to this property will trigger replacement. string
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
Tags map[string]string
A map of tags assigned to the disks.
Type Changes to this property will trigger replacement. string
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

ZoneId Changes to this property will trigger replacement. string
ID of the free zone to which the disk belongs.
additionalAttributes Changes to this property will trigger replacement. 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.
autoSnapshotPolicyId Changes to this property will trigger replacement. String
Query cloud disks based on the automatic snapshot policy ID.
availabilityZone Changes to this property will trigger replacement. String
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

category Changes to this property will trigger replacement. String
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
deleteAutoSnapshot Changes to this property will trigger replacement. Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
deleteWithInstance Changes to this property will trigger replacement. Boolean
Indicates whether the disk is released together with the instance.
diskName Changes to this property will trigger replacement. String
The disk name.
diskType Changes to this property will trigger replacement. String
The disk type. Valid values: system, data, all.
dryRun Changes to this property will trigger replacement. Boolean
Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
enableAutoSnapshot Changes to this property will trigger replacement. Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
enableAutomatedSnapshotPolicy Changes to this property will trigger replacement. Boolean
Whether the cloud disk has an automatic snapshot policy
enableShared Changes to this property will trigger replacement. Boolean
Whether it is shared block storage.
encrypted Changes to this property will trigger replacement. String
Indicate whether the disk is encrypted or not. Valid values: on and off.
ids Changes to this property will trigger replacement. List<String>
A list of Disk IDs.
instanceId Changes to this property will trigger replacement. String
Filter the results by the specified ECS instance ID.
kmsKeyId Changes to this property will trigger replacement. String
The kms key id.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Disk name.
operationLocks Changes to this property will trigger replacement. List<GetEcsDisksOperationLock>
The reasons why the disk was locked. See operation_locks below for details.
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Integer
pageSize Integer
paymentType Changes to this property will trigger replacement. String
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
portable Changes to this property will trigger replacement. Boolean
Whether the cloud disk or local disk supports uninstallation.
resourceGroupId Changes to this property will trigger replacement. String
The Id of resource group which the disk belongs.
snapshotId Changes to this property will trigger replacement. String
The source snapshot id.
status Changes to this property will trigger replacement. String
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
tags Map<String,String>
A map of tags assigned to the disks.
type Changes to this property will trigger replacement. String
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

zoneId Changes to this property will trigger replacement. String
ID of the free zone to which the disk belongs.
additionalAttributes Changes to this property will trigger replacement. 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.
autoSnapshotPolicyId Changes to this property will trigger replacement. string
Query cloud disks based on the automatic snapshot policy ID.
availabilityZone Changes to this property will trigger replacement. string
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

category Changes to this property will trigger replacement. string
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
deleteAutoSnapshot Changes to this property will trigger replacement. boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
deleteWithInstance Changes to this property will trigger replacement. boolean
Indicates whether the disk is released together with the instance.
diskName Changes to this property will trigger replacement. string
The disk name.
diskType Changes to this property will trigger replacement. string
The disk type. Valid values: system, data, all.
dryRun Changes to this property will trigger replacement. boolean
Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
enableAutoSnapshot Changes to this property will trigger replacement. boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
enableAutomatedSnapshotPolicy Changes to this property will trigger replacement. boolean
Whether the cloud disk has an automatic snapshot policy
enableShared Changes to this property will trigger replacement. boolean
Whether it is shared block storage.
encrypted Changes to this property will trigger replacement. string
Indicate whether the disk is encrypted or not. Valid values: on and off.
ids Changes to this property will trigger replacement. string[]
A list of Disk IDs.
instanceId Changes to this property will trigger replacement. string
Filter the results by the specified ECS instance ID.
kmsKeyId Changes to this property will trigger replacement. string
The kms key id.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Disk name.
operationLocks Changes to this property will trigger replacement. GetEcsDisksOperationLock[]
The reasons why the disk was locked. See operation_locks below for details.
outputFile string
File name where to save data source results (after running pulumi preview).
pageNumber number
pageSize number
paymentType Changes to this property will trigger replacement. string
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
portable Changes to this property will trigger replacement. boolean
Whether the cloud disk or local disk supports uninstallation.
resourceGroupId Changes to this property will trigger replacement. string
The Id of resource group which the disk belongs.
snapshotId Changes to this property will trigger replacement. string
The source snapshot id.
status Changes to this property will trigger replacement. string
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
tags {[key: string]: string}
A map of tags assigned to the disks.
type Changes to this property will trigger replacement. string
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

zoneId Changes to this property will trigger replacement. string
ID of the free zone to which the disk belongs.
additional_attributes Changes to this property will trigger replacement. 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_policy_id Changes to this property will trigger replacement. str
Query cloud disks based on the automatic snapshot policy ID.
availability_zone Changes to this property will trigger replacement. str
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

category Changes to this property will trigger replacement. str
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
delete_auto_snapshot Changes to this property will trigger replacement. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
delete_with_instance Changes to this property will trigger replacement. bool
Indicates whether the disk is released together with the instance.
disk_name Changes to this property will trigger replacement. str
The disk name.
disk_type Changes to this property will trigger replacement. str
The disk type. Valid values: system, data, all.
dry_run Changes to this property will trigger replacement. bool
Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
enable_auto_snapshot Changes to this property will trigger replacement. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
enable_automated_snapshot_policy Changes to this property will trigger replacement. bool
Whether the cloud disk has an automatic snapshot policy
enable_shared Changes to this property will trigger replacement. bool
Whether it is shared block storage.
encrypted Changes to this property will trigger replacement. str
Indicate whether the disk is encrypted or not. Valid values: on and off.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Disk IDs.
instance_id Changes to this property will trigger replacement. str
Filter the results by the specified ECS instance ID.
kms_key_id Changes to this property will trigger replacement. str
The kms key id.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Disk name.
operation_locks Changes to this property will trigger replacement. Sequence[GetEcsDisksOperationLock]
The reasons why the disk was locked. See operation_locks below 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 Changes to this property will trigger replacement. str
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
portable Changes to this property will trigger replacement. bool
Whether the cloud disk or local disk supports uninstallation.
resource_group_id Changes to this property will trigger replacement. str
The Id of resource group which the disk belongs.
snapshot_id Changes to this property will trigger replacement. str
The source snapshot id.
status Changes to this property will trigger replacement. str
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
tags Mapping[str, str]
A map of tags assigned to the disks.
type Changes to this property will trigger replacement. str
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

zone_id Changes to this property will trigger replacement. str
ID of the free zone to which the disk belongs.
additionalAttributes Changes to this property will trigger replacement. 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.
autoSnapshotPolicyId Changes to this property will trigger replacement. String
Query cloud disks based on the automatic snapshot policy ID.
availabilityZone Changes to this property will trigger replacement. String
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

category Changes to this property will trigger replacement. String
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
deleteAutoSnapshot Changes to this property will trigger replacement. Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
deleteWithInstance Changes to this property will trigger replacement. Boolean
Indicates whether the disk is released together with the instance.
diskName Changes to this property will trigger replacement. String
The disk name.
diskType Changes to this property will trigger replacement. String
The disk type. Valid values: system, data, all.
dryRun Changes to this property will trigger replacement. Boolean
Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
enableAutoSnapshot Changes to this property will trigger replacement. Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
enableAutomatedSnapshotPolicy Changes to this property will trigger replacement. Boolean
Whether the cloud disk has an automatic snapshot policy
enableShared Changes to this property will trigger replacement. Boolean
Whether it is shared block storage.
encrypted Changes to this property will trigger replacement. String
Indicate whether the disk is encrypted or not. Valid values: on and off.
ids Changes to this property will trigger replacement. List<String>
A list of Disk IDs.
instanceId Changes to this property will trigger replacement. String
Filter the results by the specified ECS instance ID.
kmsKeyId Changes to this property will trigger replacement. String
The kms key id.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Disk name.
operationLocks Changes to this property will trigger replacement. List<Property Map>
The reasons why the disk was locked. See operation_locks below for details.
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Number
pageSize Number
paymentType Changes to this property will trigger replacement. String
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
portable Changes to this property will trigger replacement. Boolean
Whether the cloud disk or local disk supports uninstallation.
resourceGroupId Changes to this property will trigger replacement. String
The Id of resource group which the disk belongs.
snapshotId Changes to this property will trigger replacement. String
The source snapshot id.
status Changes to this property will trigger replacement. String
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
tags Map<String>
A map of tags assigned to the disks.
type Changes to this property will trigger replacement. String
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

zoneId Changes to this property will trigger replacement. String
ID of the free zone to which the disk belongs.

getEcsDisks Result

The following output properties are available:

Disks List<Pulumi.AliCloud.Ecs.Outputs.GetEcsDisksDisk>
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.
TotalCount int
AdditionalAttributes List<string>
AutoSnapshotPolicyId string
Query cloud disks based on the automatic snapshot policy ID.
AvailabilityZone string
Availability zone of the disk.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

Category string
Disk category.
DeleteAutoSnapshot bool
Indicates whether the automatic snapshot is deleted when the disk is released.
DeleteWithInstance bool
Indicates whether the disk is released together with the instance.
DiskName string
The disk name.
DiskType string
The type of the disk.
DryRun bool
EnableAutoSnapshot bool
Whether the disk implements an automatic snapshot policy.
EnableAutomatedSnapshotPolicy bool
Whether the disk implements an automatic snapshot policy.
EnableShared bool
Encrypted string
Indicate whether the disk is encrypted or not.
InstanceId string
The instance ID of the disk mount.
KmsKeyId string
The ID of the KMS key that is used for the cloud disk.
NameRegex string
OperationLocks List<Pulumi.AliCloud.Ecs.Outputs.GetEcsDisksOperationLock>
The reasons why the disk was locked.
OutputFile string
PageNumber int
PageSize int
PaymentType string
Payment method for disk.
Portable bool
Whether the disk is unmountable.
ResourceGroupId string
The Id of resource group.
SnapshotId string
Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
Status string
Current status.
Tags Dictionary<string, string>
A map of tags assigned to the disk.
Type string
The type of the disk.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

ZoneId string
The zone id.
Disks []GetEcsDisksDisk
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.
TotalCount int
AdditionalAttributes []string
AutoSnapshotPolicyId string
Query cloud disks based on the automatic snapshot policy ID.
AvailabilityZone string
Availability zone of the disk.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

Category string
Disk category.
DeleteAutoSnapshot bool
Indicates whether the automatic snapshot is deleted when the disk is released.
DeleteWithInstance bool
Indicates whether the disk is released together with the instance.
DiskName string
The disk name.
DiskType string
The type of the disk.
DryRun bool
EnableAutoSnapshot bool
Whether the disk implements an automatic snapshot policy.
EnableAutomatedSnapshotPolicy bool
Whether the disk implements an automatic snapshot policy.
EnableShared bool
Encrypted string
Indicate whether the disk is encrypted or not.
InstanceId string
The instance ID of the disk mount.
KmsKeyId string
The ID of the KMS key that is used for the cloud disk.
NameRegex string
OperationLocks []GetEcsDisksOperationLock
The reasons why the disk was locked.
OutputFile string
PageNumber int
PageSize int
PaymentType string
Payment method for disk.
Portable bool
Whether the disk is unmountable.
ResourceGroupId string
The Id of resource group.
SnapshotId string
Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
Status string
Current status.
Tags map[string]string
A map of tags assigned to the disk.
Type string
The type of the disk.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

ZoneId string
The zone id.
disks List<GetEcsDisksDisk>
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.
totalCount Integer
additionalAttributes List<String>
autoSnapshotPolicyId String
Query cloud disks based on the automatic snapshot policy ID.
availabilityZone String
Availability zone of the disk.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

category String
Disk category.
deleteAutoSnapshot Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
deleteWithInstance Boolean
Indicates whether the disk is released together with the instance.
diskName String
The disk name.
diskType String
The type of the disk.
dryRun Boolean
enableAutoSnapshot Boolean
Whether the disk implements an automatic snapshot policy.
enableAutomatedSnapshotPolicy Boolean
Whether the disk implements an automatic snapshot policy.
enableShared Boolean
encrypted String
Indicate whether the disk is encrypted or not.
instanceId String
The instance ID of the disk mount.
kmsKeyId String
The ID of the KMS key that is used for the cloud disk.
nameRegex String
operationLocks List<GetEcsDisksOperationLock>
The reasons why the disk was locked.
outputFile String
pageNumber Integer
pageSize Integer
paymentType String
Payment method for disk.
portable Boolean
Whether the disk is unmountable.
resourceGroupId String
The Id of resource group.
snapshotId String
Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
status String
Current status.
tags Map<String,String>
A map of tags assigned to the disk.
type String
The type of the disk.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

zoneId String
The zone id.
disks GetEcsDisksDisk[]
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.
totalCount number
additionalAttributes string[]
autoSnapshotPolicyId string
Query cloud disks based on the automatic snapshot policy ID.
availabilityZone string
Availability zone of the disk.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

category string
Disk category.
deleteAutoSnapshot boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
deleteWithInstance boolean
Indicates whether the disk is released together with the instance.
diskName string
The disk name.
diskType string
The type of the disk.
dryRun boolean
enableAutoSnapshot boolean
Whether the disk implements an automatic snapshot policy.
enableAutomatedSnapshotPolicy boolean
Whether the disk implements an automatic snapshot policy.
enableShared boolean
encrypted string
Indicate whether the disk is encrypted or not.
instanceId string
The instance ID of the disk mount.
kmsKeyId string
The ID of the KMS key that is used for the cloud disk.
nameRegex string
operationLocks GetEcsDisksOperationLock[]
The reasons why the disk was locked.
outputFile string
pageNumber number
pageSize number
paymentType string
Payment method for disk.
portable boolean
Whether the disk is unmountable.
resourceGroupId string
The Id of resource group.
snapshotId string
Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
status string
Current status.
tags {[key: string]: string}
A map of tags assigned to the disk.
type string
The type of the disk.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

zoneId string
The zone id.
disks Sequence[GetEcsDisksDisk]
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_policy_id str
Query cloud disks based on the automatic snapshot policy ID.
availability_zone str
Availability zone of the disk.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

category str
Disk category.
delete_auto_snapshot bool
Indicates whether the automatic snapshot is deleted when the disk is released.
delete_with_instance bool
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_snapshot bool
Whether the disk implements an automatic snapshot policy.
enable_automated_snapshot_policy bool
Whether the disk implements an automatic snapshot policy.
enable_shared bool
encrypted str
Indicate whether the disk is encrypted or not.
instance_id str
The instance ID of the disk mount.
kms_key_id str
The ID of the KMS key that is used for the cloud disk.
name_regex str
operation_locks Sequence[GetEcsDisksOperationLock]
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_id str
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.
tags Mapping[str, str]
A map of tags assigned to the disk.
type str
The type of the disk.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

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.
totalCount Number
additionalAttributes List<String>
autoSnapshotPolicyId String
Query cloud disks based on the automatic snapshot policy ID.
availabilityZone String
Availability zone of the disk.

Deprecated: Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead

category String
Disk category.
deleteAutoSnapshot Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
deleteWithInstance Boolean
Indicates whether the disk is released together with the instance.
diskName String
The disk name.
diskType String
The type of the disk.
dryRun Boolean
enableAutoSnapshot Boolean
Whether the disk implements an automatic snapshot policy.
enableAutomatedSnapshotPolicy Boolean
Whether the disk implements an automatic snapshot policy.
enableShared Boolean
encrypted String
Indicate whether the disk is encrypted or not.
instanceId String
The instance ID of the disk mount.
kmsKeyId String
The ID of the KMS key that is used for the cloud disk.
nameRegex String
operationLocks List<Property Map>
The reasons why the disk was locked.
outputFile String
pageNumber Number
pageSize Number
paymentType String
Payment method for disk.
portable Boolean
Whether the disk is unmountable.
resourceGroupId String
The Id of resource group.
snapshotId String
Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
status String
Current status.
tags Map<String>
A map of tags assigned to the disk.
type String
The type of the disk.

Deprecated: Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.

zoneId String
The zone id.

Supporting Types

GetEcsDisksDisk

AttachedTime This property is required. string
A mount of time.
AutoSnapshotPolicyId This property is required. string
Query cloud disks based on the automatic snapshot policy ID.
AvailabilityZone This property is required. string
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.
Category This property is required. string
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
CreationTime This property is required. string
Disk creation time.
DeleteAutoSnapshot This property is required. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
DeleteWithInstance This property is required. bool
Indicates whether the disk is released together with the instance.
Description This property is required. string
Disk description.
DetachedTime This property is required. string
Disk detachment time.
Device This property is required. string
The mount point of the disk.
DiskId This property is required. string
ID of the disk.
DiskName This property is required. string
The disk name.
DiskType This property is required. string
The disk type. Valid values: system, data, all.
EnableAutoSnapshot This property is required. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
EnableAutomatedSnapshotPolicy This property is required. bool
Whether the cloud disk has an automatic snapshot policy
Encrypted This property is required. string
Indicate whether the disk is encrypted or not. Valid values: on and off.
ExpirationTime This property is required. string
The time when the subscription disk expires.
ExpiredTime This property is required. string
The time when the subscription disk expires.
Id This property is required. string
ID of the disk.
ImageId This property is required. string
ID of the image from which the disk is created. It is null unless the disk is created using an image.
InstanceId This property is required. string
Filter the results by the specified ECS instance ID.
Iops This property is required. int
The maximum number of read and write operations per second.
IopsRead This property is required. int
The maximum number of read operations per second.
IopsWrite This property is required. int
The maximum number of write operations per second.
KmsKeyId This property is required. string
The kms key id.
MountInstanceNum This property is required. int
Number of instances mounted on shared storage.
MountInstances This property is required. List<Pulumi.AliCloud.Ecs.Inputs.GetEcsDisksDiskMountInstance>
Disk mount instances.
Name This property is required. string
Disk name.
OperationLocks This property is required. List<Pulumi.AliCloud.Ecs.Inputs.GetEcsDisksDiskOperationLock>
The reasons why the disk was locked. See operation_locks below for details.
PaymentType This property is required. string
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
PerformanceLevel This property is required. string
Performance levels of ESSD cloud disk.
Portable This property is required. bool
Whether the cloud disk or local disk supports uninstallation.
ProductCode This property is required. string
The product logo of the cloud market.
RegionId This property is required. string
Region ID the disk belongs to.
ResourceGroupId This property is required. string
The Id of resource group which the disk belongs.
Size This property is required. int
Disk size in GiB.
SnapshotId This property is required. string
The source snapshot id.
Status This property is required. string
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
Tags This property is required. Dictionary<string, string>
A map of tags assigned to the disks.
Type This property is required. string
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.
ZoneId This property is required. string
ID of the free zone to which the disk belongs.
AttachedTime This property is required. string
A mount of time.
AutoSnapshotPolicyId This property is required. string
Query cloud disks based on the automatic snapshot policy ID.
AvailabilityZone This property is required. string
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.
Category This property is required. string
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
CreationTime This property is required. string
Disk creation time.
DeleteAutoSnapshot This property is required. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
DeleteWithInstance This property is required. bool
Indicates whether the disk is released together with the instance.
Description This property is required. string
Disk description.
DetachedTime This property is required. string
Disk detachment time.
Device This property is required. string
The mount point of the disk.
DiskId This property is required. string
ID of the disk.
DiskName This property is required. string
The disk name.
DiskType This property is required. string
The disk type. Valid values: system, data, all.
EnableAutoSnapshot This property is required. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
EnableAutomatedSnapshotPolicy This property is required. bool
Whether the cloud disk has an automatic snapshot policy
Encrypted This property is required. string
Indicate whether the disk is encrypted or not. Valid values: on and off.
ExpirationTime This property is required. string
The time when the subscription disk expires.
ExpiredTime This property is required. string
The time when the subscription disk expires.
Id This property is required. string
ID of the disk.
ImageId This property is required. string
ID of the image from which the disk is created. It is null unless the disk is created using an image.
InstanceId This property is required. string
Filter the results by the specified ECS instance ID.
Iops This property is required. int
The maximum number of read and write operations per second.
IopsRead This property is required. int
The maximum number of read operations per second.
IopsWrite This property is required. int
The maximum number of write operations per second.
KmsKeyId This property is required. string
The kms key id.
MountInstanceNum This property is required. int
Number of instances mounted on shared storage.
MountInstances This property is required. []GetEcsDisksDiskMountInstance
Disk mount instances.
Name This property is required. string
Disk name.
OperationLocks This property is required. []GetEcsDisksDiskOperationLock
The reasons why the disk was locked. See operation_locks below for details.
PaymentType This property is required. string
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
PerformanceLevel This property is required. string
Performance levels of ESSD cloud disk.
Portable This property is required. bool
Whether the cloud disk or local disk supports uninstallation.
ProductCode This property is required. string
The product logo of the cloud market.
RegionId This property is required. string
Region ID the disk belongs to.
ResourceGroupId This property is required. string
The Id of resource group which the disk belongs.
Size This property is required. int
Disk size in GiB.
SnapshotId This property is required. string
The source snapshot id.
Status This property is required. string
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
Tags This property is required. map[string]string
A map of tags assigned to the disks.
Type This property is required. string
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.
ZoneId This property is required. string
ID of the free zone to which the disk belongs.
attachedTime This property is required. String
A mount of time.
autoSnapshotPolicyId This property is required. String
Query cloud disks based on the automatic snapshot policy ID.
availabilityZone This property is required. String
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.
category This property is required. String
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
creationTime This property is required. String
Disk creation time.
deleteAutoSnapshot This property is required. Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
deleteWithInstance This property is required. Boolean
Indicates whether the disk is released together with the instance.
description This property is required. String
Disk description.
detachedTime This property is required. String
Disk detachment time.
device This property is required. String
The mount point of the disk.
diskId This property is required. String
ID of the disk.
diskName This property is required. String
The disk name.
diskType This property is required. String
The disk type. Valid values: system, data, all.
enableAutoSnapshot This property is required. Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
enableAutomatedSnapshotPolicy This property is required. Boolean
Whether the cloud disk has an automatic snapshot policy
encrypted This property is required. String
Indicate whether the disk is encrypted or not. Valid values: on and off.
expirationTime This property is required. String
The time when the subscription disk expires.
expiredTime This property is required. String
The time when the subscription disk expires.
id This property is required. String
ID of the disk.
imageId This property is required. String
ID of the image from which the disk is created. It is null unless the disk is created using an image.
instanceId This property is required. String
Filter the results by the specified ECS instance ID.
iops This property is required. Integer
The maximum number of read and write operations per second.
iopsRead This property is required. Integer
The maximum number of read operations per second.
iopsWrite This property is required. Integer
The maximum number of write operations per second.
kmsKeyId This property is required. String
The kms key id.
mountInstanceNum This property is required. Integer
Number of instances mounted on shared storage.
mountInstances This property is required. List<GetEcsDisksDiskMountInstance>
Disk mount instances.
name This property is required. String
Disk name.
operationLocks This property is required. List<GetEcsDisksDiskOperationLock>
The reasons why the disk was locked. See operation_locks below for details.
paymentType This property is required. String
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
performanceLevel This property is required. String
Performance levels of ESSD cloud disk.
portable This property is required. Boolean
Whether the cloud disk or local disk supports uninstallation.
productCode This property is required. String
The product logo of the cloud market.
regionId This property is required. String
Region ID the disk belongs to.
resourceGroupId This property is required. String
The Id of resource group which the disk belongs.
size This property is required. Integer
Disk size in GiB.
snapshotId This property is required. String
The source snapshot id.
status This property is required. String
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
tags This property is required. Map<String,String>
A map of tags assigned to the disks.
type This property is required. String
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.
zoneId This property is required. String
ID of the free zone to which the disk belongs.
attachedTime This property is required. string
A mount of time.
autoSnapshotPolicyId This property is required. string
Query cloud disks based on the automatic snapshot policy ID.
availabilityZone This property is required. string
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.
category This property is required. string
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
creationTime This property is required. string
Disk creation time.
deleteAutoSnapshot This property is required. boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
deleteWithInstance This property is required. boolean
Indicates whether the disk is released together with the instance.
description This property is required. string
Disk description.
detachedTime This property is required. string
Disk detachment time.
device This property is required. string
The mount point of the disk.
diskId This property is required. string
ID of the disk.
diskName This property is required. string
The disk name.
diskType This property is required. string
The disk type. Valid values: system, data, all.
enableAutoSnapshot This property is required. boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
enableAutomatedSnapshotPolicy This property is required. boolean
Whether the cloud disk has an automatic snapshot policy
encrypted This property is required. string
Indicate whether the disk is encrypted or not. Valid values: on and off.
expirationTime This property is required. string
The time when the subscription disk expires.
expiredTime This property is required. string
The time when the subscription disk expires.
id This property is required. string
ID of the disk.
imageId This property is required. string
ID of the image from which the disk is created. It is null unless the disk is created using an image.
instanceId This property is required. string
Filter the results by the specified ECS instance ID.
iops This property is required. number
The maximum number of read and write operations per second.
iopsRead This property is required. number
The maximum number of read operations per second.
iopsWrite This property is required. number
The maximum number of write operations per second.
kmsKeyId This property is required. string
The kms key id.
mountInstanceNum This property is required. number
Number of instances mounted on shared storage.
mountInstances This property is required. GetEcsDisksDiskMountInstance[]
Disk mount instances.
name This property is required. string
Disk name.
operationLocks This property is required. GetEcsDisksDiskOperationLock[]
The reasons why the disk was locked. See operation_locks below for details.
paymentType This property is required. string
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
performanceLevel This property is required. string
Performance levels of ESSD cloud disk.
portable This property is required. boolean
Whether the cloud disk or local disk supports uninstallation.
productCode This property is required. string
The product logo of the cloud market.
regionId This property is required. string
Region ID the disk belongs to.
resourceGroupId This property is required. string
The Id of resource group which the disk belongs.
size This property is required. number
Disk size in GiB.
snapshotId This property is required. string
The source snapshot id.
status This property is required. string
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
tags This property is required. {[key: string]: string}
A map of tags assigned to the disks.
type This property is required. string
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.
zoneId This property is required. string
ID of the free zone to which the disk belongs.
attached_time This property is required. str
A mount of time.
auto_snapshot_policy_id This property is required. str
Query cloud disks based on the automatic snapshot policy ID.
availability_zone This property is required. str
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.
category This property is required. str
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
creation_time This property is required. str
Disk creation time.
delete_auto_snapshot This property is required. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
delete_with_instance This property is required. bool
Indicates whether the disk is released together with the instance.
description This property is required. str
Disk description.
detached_time This property is required. str
Disk detachment time.
device This property is required. str
The mount point of the disk.
disk_id This property is required. str
ID of the disk.
disk_name This property is required. str
The disk name.
disk_type This property is required. str
The disk type. Valid values: system, data, all.
enable_auto_snapshot This property is required. bool
Indicates whether the automatic snapshot is deleted when the disk is released.
enable_automated_snapshot_policy This property is required. bool
Whether the cloud disk has an automatic snapshot policy
encrypted This property is required. str
Indicate whether the disk is encrypted or not. Valid values: on and off.
expiration_time This property is required. str
The time when the subscription disk expires.
expired_time This property is required. str
The time when the subscription disk expires.
id This property is required. str
ID of the disk.
image_id This property is required. str
ID of the image from which the disk is created. It is null unless the disk is created using an image.
instance_id This property is required. str
Filter the results by the specified ECS instance ID.
iops This property is required. int
The maximum number of read and write operations per second.
iops_read This property is required. int
The maximum number of read operations per second.
iops_write This property is required. int
The maximum number of write operations per second.
kms_key_id This property is required. str
The kms key id.
mount_instance_num This property is required. int
Number of instances mounted on shared storage.
mount_instances This property is required. Sequence[GetEcsDisksDiskMountInstance]
Disk mount instances.
name This property is required. str
Disk name.
operation_locks This property is required. Sequence[GetEcsDisksDiskOperationLock]
The reasons why the disk was locked. See operation_locks below for details.
payment_type This property is required. str
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
performance_level This property is required. str
Performance levels of ESSD cloud disk.
portable This property is required. bool
Whether the cloud disk or local disk supports uninstallation.
product_code This property is required. str
The product logo of the cloud market.
region_id This property is required. str
Region ID the disk belongs to.
resource_group_id This property is required. str
The Id of resource group which the disk belongs.
size This property is required. int
Disk size in GiB.
snapshot_id This property is required. str
The source snapshot id.
status This property is required. str
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
tags This property is required. Mapping[str, str]
A map of tags assigned to the disks.
type This property is required. str
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.
zone_id This property is required. str
ID of the free zone to which the disk belongs.
attachedTime This property is required. String
A mount of time.
autoSnapshotPolicyId This property is required. String
Query cloud disks based on the automatic snapshot policy ID.
availabilityZone This property is required. String
Field availability_zone has been deprecated from provider version 1.122.0. New field zone_id instead.
category This property is required. String
Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
creationTime This property is required. String
Disk creation time.
deleteAutoSnapshot This property is required. Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
deleteWithInstance This property is required. Boolean
Indicates whether the disk is released together with the instance.
description This property is required. String
Disk description.
detachedTime This property is required. String
Disk detachment time.
device This property is required. String
The mount point of the disk.
diskId This property is required. String
ID of the disk.
diskName This property is required. String
The disk name.
diskType This property is required. String
The disk type. Valid values: system, data, all.
enableAutoSnapshot This property is required. Boolean
Indicates whether the automatic snapshot is deleted when the disk is released.
enableAutomatedSnapshotPolicy This property is required. Boolean
Whether the cloud disk has an automatic snapshot policy
encrypted This property is required. String
Indicate whether the disk is encrypted or not. Valid values: on and off.
expirationTime This property is required. String
The time when the subscription disk expires.
expiredTime This property is required. String
The time when the subscription disk expires.
id This property is required. String
ID of the disk.
imageId This property is required. String
ID of the image from which the disk is created. It is null unless the disk is created using an image.
instanceId This property is required. String
Filter the results by the specified ECS instance ID.
iops This property is required. Number
The maximum number of read and write operations per second.
iopsRead This property is required. Number
The maximum number of read operations per second.
iopsWrite This property is required. Number
The maximum number of write operations per second.
kmsKeyId This property is required. String
The kms key id.
mountInstanceNum This property is required. Number
Number of instances mounted on shared storage.
mountInstances This property is required. List<Property Map>
Disk mount instances.
name This property is required. String
Disk name.
operationLocks This property is required. List<Property Map>
The reasons why the disk was locked. See operation_locks below for details.
paymentType This property is required. String
Payment method for disk. Valid Values: PayAsYouGo, Subscription.
performanceLevel This property is required. String
Performance levels of ESSD cloud disk.
portable This property is required. Boolean
Whether the cloud disk or local disk supports uninstallation.
productCode This property is required. String
The product logo of the cloud market.
regionId This property is required. String
Region ID the disk belongs to.
resourceGroupId This property is required. String
The Id of resource group which the disk belongs.
size This property is required. Number
Disk size in GiB.
snapshotId This property is required. String
The source snapshot id.
status This property is required. String
The status of disk. Valid Values: Attaching, Available, Creating, Detaching, In_use, Migrating, ReIniting, Transferring.
tags This property is required. Map<String>
A map of tags assigned to the disks.
type This property is required. String
Field type has been deprecated from provider version 1.122.0. New field disk_type instead.
zoneId This property is required. String
ID of the free zone to which the disk belongs.

GetEcsDisksDiskMountInstance

AttachedTime This property is required. string
A mount of time.
Device This property is required. string
The mount point of the disk.
InstanceId This property is required. string
Filter the results by the specified ECS instance ID.
AttachedTime This property is required. string
A mount of time.
Device This property is required. string
The mount point of the disk.
InstanceId This property is required. string
Filter the results by the specified ECS instance ID.
attachedTime This property is required. String
A mount of time.
device This property is required. String
The mount point of the disk.
instanceId This property is required. String
Filter the results by the specified ECS instance ID.
attachedTime This property is required. string
A mount of time.
device This property is required. string
The mount point of the disk.
instanceId This property is required. string
Filter the results by the specified ECS instance ID.
attached_time This property is required. str
A mount of time.
device This property is required. str
The mount point of the disk.
instance_id This property is required. str
Filter the results by the specified ECS instance ID.
attachedTime This property is required. String
A mount of time.
device This property is required. String
The mount point of the disk.
instanceId This property is required. String
Filter the results by the specified ECS instance ID.

GetEcsDisksDiskOperationLock

LockReason This property is required. string
The reason why the disk was locked.
LockReason This property is required. string
The reason why the disk was locked.
lockReason This property is required. String
The reason why the disk was locked.
lockReason This property is required. string
The reason why the disk was locked.
lock_reason This property is required. str
The reason why the disk was locked.
lockReason This property is required. String
The reason why the disk was locked.

GetEcsDisksOperationLock

LockReason string
The reason why the disk was locked.
LockReason string
The reason why the disk was locked.
lockReason String
The reason why the disk was locked.
lockReason string
The reason why the disk was locked.
lock_reason str
The reason why the disk was locked.
lockReason 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 alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi