1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ecs
  5. getEcsDisks
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.ecs.getEcsDisks

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the Ecs Disks of the current Alibaba Cloud user.

    NOTE: Available in v1.122.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.ecs.getEcsDisks({
        ids: ["d-artgdsvdvxxxx"],
        nameRegex: "tf-test",
    });
    export const firstEcsDiskId = example.then(example => example.disks?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.ecs.get_ecs_disks(ids=["d-artgdsvdvxxxx"],
        name_regex="tf-test")
    pulumi.export("firstEcsDiskId", example.disks[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := ecs.GetEcsDisks(ctx, &ecs.GetEcsDisksArgs{
    			Ids: []string{
    				"d-artgdsvdvxxxx",
    			},
    			NameRegex: pulumi.StringRef("tf-test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstEcsDiskId", example.Disks[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Ecs.GetEcsDisks.Invoke(new()
        {
            Ids = new[]
            {
                "d-artgdsvdvxxxx",
            },
            NameRegex = "tf-test",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstEcsDiskId"] = example.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.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 example = EcsFunctions.getEcsDisks(GetEcsDisksArgs.builder()
                .ids("d-artgdsvdvxxxx")
                .nameRegex("tf-test")
                .build());
    
            ctx.export("firstEcsDiskId", example.applyValue(getEcsDisksResult -> getEcsDisksResult.disks()[0].id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:ecs:getEcsDisks
          Arguments:
            ids:
              - d-artgdsvdvxxxx
            nameRegex: tf-test
    outputs:
      firstEcsDiskId: ${example.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:ecs/getEcsDisks:getEcsDisks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AdditionalAttributes 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 string
    Query cloud disks based on the automatic snapshot policy ID.
    AvailabilityZone 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 string
    Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
    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 disk type.
    DryRun bool
    Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
    EnableAutoSnapshot bool
    Indicates whether the automatic snapshot is deleted when the disk is released.
    EnableAutomatedSnapshotPolicy bool
    Whether the cloud disk has an automatic snapshot policy
    EnableShared bool
    Whether it is shared block storage.
    Encrypted string
    Indicate whether the disk is encrypted or not. Possible values: on and off.
    Ids List<string>
    A list of Disk IDs.
    InstanceId string
    Filter the results by the specified ECS instance ID.
    KmsKeyId string
    The kms key id.
    NameRegex string
    A regex string to filter results by Disk name.
    OperationLocks List<Pulumi.AliCloud.Ecs.Inputs.GetEcsDisksOperationLock>
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    PaymentType string
    Payment method for disk. Valid Values: PayAsYouGo, Subscription.
    Portable bool
    Whether the cloud disk or local disk supports uninstallation.
    ResourceGroupId string
    The Id of resource group which the disk belongs.
    SnapshotId string
    The source snapshot id.
    Status string
    The status of disk.
    Tags Dictionary<string, string>
    A map of tags assigned to the disks.
    Type 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 string
    ID of the free zone to which the disk belongs.
    AdditionalAttributes []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 string
    Query cloud disks based on the automatic snapshot policy ID.
    AvailabilityZone 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 string
    Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
    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 disk type.
    DryRun bool
    Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
    EnableAutoSnapshot bool
    Indicates whether the automatic snapshot is deleted when the disk is released.
    EnableAutomatedSnapshotPolicy bool
    Whether the cloud disk has an automatic snapshot policy
    EnableShared bool
    Whether it is shared block storage.
    Encrypted string
    Indicate whether the disk is encrypted or not. Possible values: on and off.
    Ids []string
    A list of Disk IDs.
    InstanceId string
    Filter the results by the specified ECS instance ID.
    KmsKeyId string
    The kms key id.
    NameRegex string
    A regex string to filter results by Disk name.
    OperationLocks []GetEcsDisksOperationLock
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    PaymentType string
    Payment method for disk. Valid Values: PayAsYouGo, Subscription.
    Portable bool
    Whether the cloud disk or local disk supports uninstallation.
    ResourceGroupId string
    The Id of resource group which the disk belongs.
    SnapshotId string
    The source snapshot id.
    Status string
    The status of disk.
    Tags map[string]string
    A map of tags assigned to the disks.
    Type 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 string
    ID of the free zone to which the disk belongs.
    additionalAttributes 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 String
    Query cloud disks based on the automatic snapshot policy ID.
    availabilityZone 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 String
    Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
    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 disk type.
    dryRun Boolean
    Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
    enableAutoSnapshot Boolean
    Indicates whether the automatic snapshot is deleted when the disk is released.
    enableAutomatedSnapshotPolicy Boolean
    Whether the cloud disk has an automatic snapshot policy
    enableShared Boolean
    Whether it is shared block storage.
    encrypted String
    Indicate whether the disk is encrypted or not. Possible values: on and off.
    ids List<String>
    A list of Disk IDs.
    instanceId String
    Filter the results by the specified ECS instance ID.
    kmsKeyId String
    The kms key id.
    nameRegex String
    A regex string to filter results by Disk name.
    operationLocks List<GetEcsDisksOperationLock>
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    paymentType String
    Payment method for disk. Valid Values: PayAsYouGo, Subscription.
    portable Boolean
    Whether the cloud disk or local disk supports uninstallation.
    resourceGroupId String
    The Id of resource group which the disk belongs.
    snapshotId String
    The source snapshot id.
    status String
    The status of disk.
    tags Map<String,String>
    A map of tags assigned to the disks.
    type 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 String
    ID of the free zone to which the disk belongs.
    additionalAttributes 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 string
    Query cloud disks based on the automatic snapshot policy ID.
    availabilityZone 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 string
    Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
    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 disk type.
    dryRun boolean
    Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
    enableAutoSnapshot boolean
    Indicates whether the automatic snapshot is deleted when the disk is released.
    enableAutomatedSnapshotPolicy boolean
    Whether the cloud disk has an automatic snapshot policy
    enableShared boolean
    Whether it is shared block storage.
    encrypted string
    Indicate whether the disk is encrypted or not. Possible values: on and off.
    ids string[]
    A list of Disk IDs.
    instanceId string
    Filter the results by the specified ECS instance ID.
    kmsKeyId string
    The kms key id.
    nameRegex string
    A regex string to filter results by Disk name.
    operationLocks GetEcsDisksOperationLock[]
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    paymentType string
    Payment method for disk. Valid Values: PayAsYouGo, Subscription.
    portable boolean
    Whether the cloud disk or local disk supports uninstallation.
    resourceGroupId string
    The Id of resource group which the disk belongs.
    snapshotId string
    The source snapshot id.
    status string
    The status of disk.
    tags {[key: string]: string}
    A map of tags assigned to the disks.
    type 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 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_policy_id str
    Query cloud disks based on the automatic snapshot policy ID.
    availability_zone 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 str
    Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
    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 disk type.
    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_snapshot bool
    Indicates whether the automatic snapshot is deleted when the disk is released.
    enable_automated_snapshot_policy bool
    Whether the cloud disk has an automatic snapshot policy
    enable_shared bool
    Whether it is shared block storage.
    encrypted str
    Indicate whether the disk is encrypted or not. Possible values: on and off.
    ids Sequence[str]
    A list of Disk IDs.
    instance_id str
    Filter the results by the specified ECS instance ID.
    kms_key_id str
    The kms key id.
    name_regex str
    A regex string to filter results by Disk name.
    operation_locks Sequence[GetEcsDisksOperationLock]
    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_id str
    The Id of resource group which the disk belongs.
    snapshot_id str
    The source snapshot id.
    status str
    The status of disk.
    tags Mapping[str, str]
    A map of tags assigned to the disks.
    type 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 str
    ID of the free zone to which the disk belongs.
    additionalAttributes 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 String
    Query cloud disks based on the automatic snapshot policy ID.
    availabilityZone 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 String
    Disk category. Valid values: cloud, cloud_efficiency, cloud_essd, cloud_ssd, ephemeral_ssd, cloud_auto, cloud_essd_entry.
    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 disk type.
    dryRun Boolean
    Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
    enableAutoSnapshot Boolean
    Indicates whether the automatic snapshot is deleted when the disk is released.
    enableAutomatedSnapshotPolicy Boolean
    Whether the cloud disk has an automatic snapshot policy
    enableShared Boolean
    Whether it is shared block storage.
    encrypted String
    Indicate whether the disk is encrypted or not. Possible values: on and off.
    ids List<String>
    A list of Disk IDs.
    instanceId String
    Filter the results by the specified ECS instance ID.
    kmsKeyId String
    The kms key id.
    nameRegex String
    A regex string to filter results by Disk name.
    operationLocks List<Property Map>
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number
    paymentType String
    Payment method for disk. Valid Values: PayAsYouGo, Subscription.
    portable Boolean
    Whether the cloud disk or local disk supports uninstallation.
    resourceGroupId String
    The Id of resource group which the disk belongs.
    snapshotId String
    The source snapshot id.
    status String
    The status of disk.
    tags Map<String>
    A map of tags assigned to the disks.
    type 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 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>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    TotalCount int
    AdditionalAttributes List<string>
    AutoSnapshotPolicyId string
    AvailabilityZone string

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

    Category string
    DeleteAutoSnapshot bool
    DeleteWithInstance bool
    DiskName string
    DiskType string
    DryRun bool
    EnableAutoSnapshot bool
    EnableAutomatedSnapshotPolicy bool
    EnableShared bool
    Encrypted string
    InstanceId string
    KmsKeyId string
    NameRegex string
    OperationLocks List<Pulumi.AliCloud.Ecs.Outputs.GetEcsDisksOperationLock>
    OutputFile string
    PageNumber int
    PageSize int
    PaymentType string
    Portable bool
    ResourceGroupId string
    SnapshotId string
    Status string
    Tags Dictionary<string, string>
    Type string

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

    ZoneId string
    Disks []GetEcsDisksDisk
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    TotalCount int
    AdditionalAttributes []string
    AutoSnapshotPolicyId string
    AvailabilityZone string

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

    Category string
    DeleteAutoSnapshot bool
    DeleteWithInstance bool
    DiskName string
    DiskType string
    DryRun bool
    EnableAutoSnapshot bool
    EnableAutomatedSnapshotPolicy bool
    EnableShared bool
    Encrypted string
    InstanceId string
    KmsKeyId string
    NameRegex string
    OperationLocks []GetEcsDisksOperationLock
    OutputFile string
    PageNumber int
    PageSize int
    PaymentType string
    Portable bool
    ResourceGroupId string
    SnapshotId string
    Status string
    Tags map[string]string
    Type string

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

    ZoneId string
    disks List<GetEcsDisksDisk>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    totalCount Integer
    additionalAttributes List<String>
    autoSnapshotPolicyId String
    availabilityZone String

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

    category String
    deleteAutoSnapshot Boolean
    deleteWithInstance Boolean
    diskName String
    diskType String
    dryRun Boolean
    enableAutoSnapshot Boolean
    enableAutomatedSnapshotPolicy Boolean
    enableShared Boolean
    encrypted String
    instanceId String
    kmsKeyId String
    nameRegex String
    operationLocks List<GetEcsDisksOperationLock>
    outputFile String
    pageNumber Integer
    pageSize Integer
    paymentType String
    portable Boolean
    resourceGroupId String
    snapshotId String
    status String
    tags Map<String,String>
    type String

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

    zoneId String
    disks GetEcsDisksDisk[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    totalCount number
    additionalAttributes string[]
    autoSnapshotPolicyId string
    availabilityZone string

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

    category string
    deleteAutoSnapshot boolean
    deleteWithInstance boolean
    diskName string
    diskType string
    dryRun boolean
    enableAutoSnapshot boolean
    enableAutomatedSnapshotPolicy boolean
    enableShared boolean
    encrypted string
    instanceId string
    kmsKeyId string
    nameRegex string
    operationLocks GetEcsDisksOperationLock[]
    outputFile string
    pageNumber number
    pageSize number
    paymentType string
    portable boolean
    resourceGroupId string
    snapshotId string
    status string
    tags {[key: string]: string}
    type string

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

    zoneId string
    disks Sequence[GetEcsDisksDisk]
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    total_count int
    additional_attributes Sequence[str]
    auto_snapshot_policy_id str
    availability_zone str

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

    category str
    delete_auto_snapshot bool
    delete_with_instance bool
    disk_name str
    disk_type str
    dry_run bool
    enable_auto_snapshot bool
    enable_automated_snapshot_policy bool
    enable_shared bool
    encrypted str
    instance_id str
    kms_key_id str
    name_regex str
    operation_locks Sequence[GetEcsDisksOperationLock]
    output_file str
    page_number int
    page_size int
    payment_type str
    portable bool
    resource_group_id str
    snapshot_id str
    status str
    tags Mapping[str, str]
    type str

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

    zone_id str
    disks List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    totalCount Number
    additionalAttributes List<String>
    autoSnapshotPolicyId String
    availabilityZone String

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

    category String
    deleteAutoSnapshot Boolean
    deleteWithInstance Boolean
    diskName String
    diskType String
    dryRun Boolean
    enableAutoSnapshot Boolean
    enableAutomatedSnapshotPolicy Boolean
    enableShared Boolean
    encrypted String
    instanceId String
    kmsKeyId String
    nameRegex String
    operationLocks List<Property Map>
    outputFile String
    pageNumber Number
    pageSize Number
    paymentType String
    portable Boolean
    resourceGroupId String
    snapshotId String
    status String
    tags Map<String>
    type String

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

    zoneId String

    Supporting Types

    GetEcsDisksDisk

    AttachedTime string
    Disk attachment time.
    AutoSnapshotPolicyId string
    Query cloud disks based on the automatic snapshot policy ID.
    AvailabilityZone string
    Availability zone of the disk.
    Category string
    Disk category.
    CreationTime string
    Disk creation time.
    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.
    Description string
    Disk description.
    DetachedTime string
    Disk detachment time.
    Device string
    Cloud disk or the device name of the mounted instance on the site.
    DiskId string
    ID of the disk.
    DiskName string
    The disk name.
    DiskType string
    The disk type.
    EnableAutoSnapshot bool
    Whether the disk implements an automatic snapshot policy.
    EnableAutomatedSnapshotPolicy bool
    Whether the disk implements an automatic snapshot policy.
    Encrypted string
    Indicate whether the disk is encrypted or not.
    ExpiredTime string
    Id string
    ID of the disk.
    ImageId string
    ID of the image from which the disk is created. It is null unless the disk is created using an image.
    InstanceId string
    ID of the related instance. It is null unless the status is In_use.
    Iops int
    IopsRead int
    IopsWrite int
    KmsKeyId string
    The kms key id.
    MountInstanceNum int
    Number of instances mounted on shared storage.
    MountInstances List<Pulumi.AliCloud.Ecs.Inputs.GetEcsDisksDiskMountInstance>
    Disk mount instances.
    Name string
    Disk name.
    OperationLocks List<Pulumi.AliCloud.Ecs.Inputs.GetEcsDisksDiskOperationLock>
    PaymentType string
    Payment method for disk.
    PerformanceLevel string
    Performance levels of ESSD cloud disk.
    Portable bool
    Whether the disk is unmountable.
    ProductCode string
    The product logo of the cloud market.
    RegionId string
    Region ID the disk belongs to.
    ResourceGroupId string
    The Id of resource group.
    Size int
    Disk size in GiB.
    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
    Disk type.
    ZoneId string
    The zone id.
    AttachedTime string
    Disk attachment time.
    AutoSnapshotPolicyId string
    Query cloud disks based on the automatic snapshot policy ID.
    AvailabilityZone string
    Availability zone of the disk.
    Category string
    Disk category.
    CreationTime string
    Disk creation time.
    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.
    Description string
    Disk description.
    DetachedTime string
    Disk detachment time.
    Device string
    Cloud disk or the device name of the mounted instance on the site.
    DiskId string
    ID of the disk.
    DiskName string
    The disk name.
    DiskType string
    The disk type.
    EnableAutoSnapshot bool
    Whether the disk implements an automatic snapshot policy.
    EnableAutomatedSnapshotPolicy bool
    Whether the disk implements an automatic snapshot policy.
    Encrypted string
    Indicate whether the disk is encrypted or not.
    ExpiredTime string
    Id string
    ID of the disk.
    ImageId string
    ID of the image from which the disk is created. It is null unless the disk is created using an image.
    InstanceId string
    ID of the related instance. It is null unless the status is In_use.
    Iops int
    IopsRead int
    IopsWrite int
    KmsKeyId string
    The kms key id.
    MountInstanceNum int
    Number of instances mounted on shared storage.
    MountInstances []GetEcsDisksDiskMountInstance
    Disk mount instances.
    Name string
    Disk name.
    OperationLocks []GetEcsDisksDiskOperationLock
    PaymentType string
    Payment method for disk.
    PerformanceLevel string
    Performance levels of ESSD cloud disk.
    Portable bool
    Whether the disk is unmountable.
    ProductCode string
    The product logo of the cloud market.
    RegionId string
    Region ID the disk belongs to.
    ResourceGroupId string
    The Id of resource group.
    Size int
    Disk size in GiB.
    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
    Disk type.
    ZoneId string
    The zone id.
    attachedTime String
    Disk attachment time.
    autoSnapshotPolicyId String
    Query cloud disks based on the automatic snapshot policy ID.
    availabilityZone String
    Availability zone of the disk.
    category String
    Disk category.
    creationTime String
    Disk creation time.
    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.
    description String
    Disk description.
    detachedTime String
    Disk detachment time.
    device String
    Cloud disk or the device name of the mounted instance on the site.
    diskId String
    ID of the disk.
    diskName String
    The disk name.
    diskType String
    The disk type.
    enableAutoSnapshot Boolean
    Whether the disk implements an automatic snapshot policy.
    enableAutomatedSnapshotPolicy Boolean
    Whether the disk implements an automatic snapshot policy.
    encrypted String
    Indicate whether the disk is encrypted or not.
    expiredTime String
    id String
    ID of the disk.
    imageId String
    ID of the image from which the disk is created. It is null unless the disk is created using an image.
    instanceId String
    ID of the related instance. It is null unless the status is In_use.
    iops Integer
    iopsRead Integer
    iopsWrite Integer
    kmsKeyId String
    The kms key id.
    mountInstanceNum Integer
    Number of instances mounted on shared storage.
    mountInstances List<GetEcsDisksDiskMountInstance>
    Disk mount instances.
    name String
    Disk name.
    operationLocks List<GetEcsDisksDiskOperationLock>
    paymentType String
    Payment method for disk.
    performanceLevel String
    Performance levels of ESSD cloud disk.
    portable Boolean
    Whether the disk is unmountable.
    productCode String
    The product logo of the cloud market.
    regionId String
    Region ID the disk belongs to.
    resourceGroupId String
    The Id of resource group.
    size Integer
    Disk size in GiB.
    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
    Disk type.
    zoneId String
    The zone id.
    attachedTime string
    Disk attachment time.
    autoSnapshotPolicyId string
    Query cloud disks based on the automatic snapshot policy ID.
    availabilityZone string
    Availability zone of the disk.
    category string
    Disk category.
    creationTime string
    Disk creation time.
    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.
    description string
    Disk description.
    detachedTime string
    Disk detachment time.
    device string
    Cloud disk or the device name of the mounted instance on the site.
    diskId string
    ID of the disk.
    diskName string
    The disk name.
    diskType string
    The disk type.
    enableAutoSnapshot boolean
    Whether the disk implements an automatic snapshot policy.
    enableAutomatedSnapshotPolicy boolean
    Whether the disk implements an automatic snapshot policy.
    encrypted string
    Indicate whether the disk is encrypted or not.
    expiredTime string
    id string
    ID of the disk.
    imageId string
    ID of the image from which the disk is created. It is null unless the disk is created using an image.
    instanceId string
    ID of the related instance. It is null unless the status is In_use.
    iops number
    iopsRead number
    iopsWrite number
    kmsKeyId string
    The kms key id.
    mountInstanceNum number
    Number of instances mounted on shared storage.
    mountInstances GetEcsDisksDiskMountInstance[]
    Disk mount instances.
    name string
    Disk name.
    operationLocks GetEcsDisksDiskOperationLock[]
    paymentType string
    Payment method for disk.
    performanceLevel string
    Performance levels of ESSD cloud disk.
    portable boolean
    Whether the disk is unmountable.
    productCode string
    The product logo of the cloud market.
    regionId string
    Region ID the disk belongs to.
    resourceGroupId string
    The Id of resource group.
    size number
    Disk size in GiB.
    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
    Disk type.
    zoneId string
    The zone id.
    attached_time str
    Disk attachment time.
    auto_snapshot_policy_id str
    Query cloud disks based on the automatic snapshot policy ID.
    availability_zone str
    Availability zone of the disk.
    category str
    Disk category.
    creation_time str
    Disk creation time.
    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.
    description str
    Disk description.
    detached_time str
    Disk detachment time.
    device str
    Cloud disk or the device name of the mounted instance on the site.
    disk_id str
    ID of the disk.
    disk_name str
    The disk name.
    disk_type str
    The disk type.
    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.
    encrypted str
    Indicate whether the disk is encrypted or not.
    expired_time str
    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
    ID of the related instance. It is null unless the status is In_use.
    iops int
    iops_read int
    iops_write int
    kms_key_id str
    The kms key id.
    mount_instance_num int
    Number of instances mounted on shared storage.
    mount_instances Sequence[GetEcsDisksDiskMountInstance]
    Disk mount instances.
    name str
    Disk name.
    operation_locks Sequence[GetEcsDisksDiskOperationLock]
    payment_type str
    Payment method for disk.
    performance_level str
    Performance levels of ESSD cloud disk.
    portable bool
    Whether the disk is unmountable.
    product_code str
    The product logo of the cloud market.
    region_id str
    Region ID the disk belongs to.
    resource_group_id str
    The Id of resource group.
    size int
    Disk size in GiB.
    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
    Disk type.
    zone_id str
    The zone id.
    attachedTime String
    Disk attachment time.
    autoSnapshotPolicyId String
    Query cloud disks based on the automatic snapshot policy ID.
    availabilityZone String
    Availability zone of the disk.
    category String
    Disk category.
    creationTime String
    Disk creation time.
    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.
    description String
    Disk description.
    detachedTime String
    Disk detachment time.
    device String
    Cloud disk or the device name of the mounted instance on the site.
    diskId String
    ID of the disk.
    diskName String
    The disk name.
    diskType String
    The disk type.
    enableAutoSnapshot Boolean
    Whether the disk implements an automatic snapshot policy.
    enableAutomatedSnapshotPolicy Boolean
    Whether the disk implements an automatic snapshot policy.
    encrypted String
    Indicate whether the disk is encrypted or not.
    expiredTime String
    id String
    ID of the disk.
    imageId String
    ID of the image from which the disk is created. It is null unless the disk is created using an image.
    instanceId String
    ID of the related instance. It is null unless the status is In_use.
    iops Number
    iopsRead Number
    iopsWrite Number
    kmsKeyId String
    The kms key id.
    mountInstanceNum Number
    Number of instances mounted on shared storage.
    mountInstances List<Property Map>
    Disk mount instances.
    name String
    Disk name.
    operationLocks List<Property Map>
    paymentType String
    Payment method for disk.
    performanceLevel String
    Performance levels of ESSD cloud disk.
    portable Boolean
    Whether the disk is unmountable.
    productCode String
    The product logo of the cloud market.
    regionId String
    Region ID the disk belongs to.
    resourceGroupId String
    The Id of resource group.
    size Number
    Disk size in GiB.
    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
    Disk type.
    zoneId String
    The zone id.

    GetEcsDisksDiskMountInstance

    AttachedTime string
    A mount of time.
    Device string
    The mount point of the disk.
    InstanceId string
    The instance ID of the disk mount.
    AttachedTime string
    A mount of time.
    Device string
    The mount point of the disk.
    InstanceId string
    The instance ID of the disk mount.
    attachedTime String
    A mount of time.
    device String
    The mount point of the disk.
    instanceId String
    The instance ID of the disk mount.
    attachedTime string
    A mount of time.
    device string
    The mount point of the disk.
    instanceId string
    The instance ID of the disk mount.
    attached_time str
    A mount of time.
    device str
    The mount point of the disk.
    instance_id str
    The instance ID of the disk mount.
    attachedTime String
    A mount of time.
    device String
    The mount point of the disk.
    instanceId String
    The instance ID of the disk mount.

    GetEcsDisksDiskOperationLock

    LockReason string
    LockReason string
    lockReason String
    lockReason string
    lockReason String

    GetEcsDisksOperationLock

    LockReason string
    LockReason string
    lockReason String
    lockReason string
    lockReason String

    Package Details

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