Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.ecs.getEcsDisks
Explore with Pulumi AI
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, Any]] = 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, Any]]] = 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 dictionaryThe following arguments are supported:
- Additional
Attributes List<string> - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - Category string
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Disk
Name string - The disk name.
 - Disk
Type string - The disk type.
 - Dry
Run bool - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - Enable
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Enable
Automated boolSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - bool
 - Whether it is shared block storage.
 - Encrypted string
 - Indicate whether the disk is encrypted or not. Possible values: 
onandoff. - Ids List<string>
 - A list of Disk IDs.
 - Instance
Id string - Filter the results by the specified ECS instance ID.
 - Kms
Key stringId  - The kms key id.
 - Name
Regex string - A regex string to filter results by Disk name.
 - Operation
Locks List<Pulumi.Ali Cloud. Ecs. Inputs. Get Ecs Disks Operation Lock>  - Output
File string - File name where to save data source results (after running 
pulumi preview). - Page
Number int - Page
Size int - Payment
Type string - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - Portable bool
 - Whether the cloud disk or local disk supports uninstallation.
 - Resource
Group stringId  - The Id of resource group which the disk belongs.
 - Snapshot
Id string - The source snapshot id.
 - Status string
 - The status of disk.
 - Dictionary<string, object>
 - A map of tags assigned to the disks.
 - Type string
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - Zone
Id string - ID of the free zone to which the disk belongs.
 
- Additional
Attributes []string - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - Category string
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Disk
Name string - The disk name.
 - Disk
Type string - The disk type.
 - Dry
Run bool - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - Enable
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Enable
Automated boolSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - bool
 - Whether it is shared block storage.
 - Encrypted string
 - Indicate whether the disk is encrypted or not. Possible values: 
onandoff. - Ids []string
 - A list of Disk IDs.
 - Instance
Id string - Filter the results by the specified ECS instance ID.
 - Kms
Key stringId  - The kms key id.
 - Name
Regex string - A regex string to filter results by Disk name.
 - Operation
Locks []GetEcs Disks Operation Lock  - Output
File string - File name where to save data source results (after running 
pulumi preview). - Page
Number int - Page
Size int - Payment
Type string - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - Portable bool
 - Whether the cloud disk or local disk supports uninstallation.
 - Resource
Group stringId  - The Id of resource group which the disk belongs.
 - Snapshot
Id string - The source snapshot id.
 - Status string
 - The status of disk.
 - map[string]interface{}
 - A map of tags assigned to the disks.
 - Type string
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - Zone
Id string - ID of the free zone to which the disk belongs.
 
- additional
Attributes List<String> - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category String
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - disk
Name String - The disk name.
 - disk
Type String - The disk type.
 - dry
Run Boolean - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - enable
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable
Automated BooleanSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - Boolean
 - Whether it is shared block storage.
 - encrypted String
 - Indicate whether the disk is encrypted or not. Possible values: 
onandoff. - ids List<String>
 - A list of Disk IDs.
 - instance
Id String - Filter the results by the specified ECS instance ID.
 - kms
Key StringId  - The kms key id.
 - name
Regex String - A regex string to filter results by Disk name.
 - operation
Locks List<GetEcs Disks Operation Lock>  - output
File String - File name where to save data source results (after running 
pulumi preview). - page
Number Integer - page
Size Integer - payment
Type String - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - portable Boolean
 - Whether the cloud disk or local disk supports uninstallation.
 - resource
Group StringId  - The Id of resource group which the disk belongs.
 - snapshot
Id String - The source snapshot id.
 - status String
 - The status of disk.
 - Map<String,Object>
 - A map of tags assigned to the disks.
 - type String
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone
Id String - ID of the free zone to which the disk belongs.
 
- additional
Attributes string[] - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone string - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category string
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - delete
Auto booleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With booleanInstance  - Indicates whether the disk is released together with the instance.
 - disk
Name string - The disk name.
 - disk
Type string - The disk type.
 - dry
Run boolean - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - enable
Auto booleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable
Automated booleanSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - boolean
 - Whether it is shared block storage.
 - encrypted string
 - Indicate whether the disk is encrypted or not. Possible values: 
onandoff. - ids string[]
 - A list of Disk IDs.
 - instance
Id string - Filter the results by the specified ECS instance ID.
 - kms
Key stringId  - The kms key id.
 - name
Regex string - A regex string to filter results by Disk name.
 - operation
Locks GetEcs Disks Operation Lock[]  - output
File string - File name where to save data source results (after running 
pulumi preview). - page
Number number - page
Size number - payment
Type string - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - portable boolean
 - Whether the cloud disk or local disk supports uninstallation.
 - resource
Group stringId  - The Id of resource group which the disk belongs.
 - snapshot
Id string - The source snapshot id.
 - status string
 - The status of disk.
 - {[key: string]: any}
 - A map of tags assigned to the disks.
 - type string
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone
Id string - ID of the free zone to which the disk belongs.
 
- additional_
attributes Sequence[str] - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - auto_
snapshot_ strpolicy_ id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability_
zone str - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category str
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - delete_
auto_ boolsnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete_
with_ boolinstance  - Indicates whether the disk is released together with the instance.
 - disk_
name str - The disk name.
 - disk_
type str - The disk type.
 - dry_
run bool - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - enable_
auto_ boolsnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable_
automated_ boolsnapshot_ policy  - Whether the cloud disk has an automatic snapshot policy
 - bool
 - Whether it is shared block storage.
 - encrypted str
 - Indicate whether the disk is encrypted or not. Possible values: 
onandoff. - ids Sequence[str]
 - A list of Disk IDs.
 - instance_
id str - Filter the results by the specified ECS instance ID.
 - kms_
key_ strid  - The kms key id.
 - name_
regex str - A regex string to filter results by Disk name.
 - operation_
locks Sequence[GetEcs Disks Operation Lock]  - output_
file str - File name where to save data source results (after running 
pulumi preview). - page_
number int - page_
size int - payment_
type str - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - portable bool
 - Whether the cloud disk or local disk supports uninstallation.
 - resource_
group_ strid  - The Id of resource group which the disk belongs.
 - snapshot_
id str - The source snapshot id.
 - status str
 - The status of disk.
 - Mapping[str, Any]
 - A map of tags assigned to the disks.
 - type str
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone_
id str - ID of the free zone to which the disk belongs.
 
- additional
Attributes List<String> - Other attribute values. Currently, only the incoming value of IOPS is supported, which means to query the IOPS upper limit of the current disk.
 - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Field 
availability_zonehas been deprecated from provider version 1.122.0. New fieldzone_idinstead. - category String
 - Disk category. Valid values: 
cloud,cloud_efficiency,cloud_essd,cloud_ssd,ephemeral_ssd,cloud_auto,cloud_essd_entry. - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - disk
Name String - The disk name.
 - disk
Type String - The disk type.
 - dry
Run Boolean - Specifies whether to check the validity of the request without actually making the request.request Default value: false. Valid values:
 - enable
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - enable
Automated BooleanSnapshot Policy  - Whether the cloud disk has an automatic snapshot policy
 - Boolean
 - Whether it is shared block storage.
 - encrypted String
 - Indicate whether the disk is encrypted or not. Possible values: 
onandoff. - ids List<String>
 - A list of Disk IDs.
 - instance
Id String - Filter the results by the specified ECS instance ID.
 - kms
Key StringId  - The kms key id.
 - name
Regex String - A regex string to filter results by Disk name.
 - operation
Locks List<Property Map> - output
File String - File name where to save data source results (after running 
pulumi preview). - page
Number Number - page
Size Number - payment
Type String - Payment method for disk. Valid Values: 
PayAsYouGo,Subscription. - portable Boolean
 - Whether the cloud disk or local disk supports uninstallation.
 - resource
Group StringId  - The Id of resource group which the disk belongs.
 - snapshot
Id String - The source snapshot id.
 - status String
 - The status of disk.
 - Map<Any>
 - A map of tags assigned to the disks.
 - type String
 - Field 
typehas been deprecated from provider version 1.122.0. New fielddisk_typeinstead. - zone
Id String - ID of the free zone to which the disk belongs.
 
getEcsDisks Result
The following output properties are available:
- Disks
List<Pulumi.
Ali Cloud. Ecs. Outputs. Get Ecs Disks Disk>  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - Names List<string>
 - Total
Count int - Additional
Attributes List<string> - Auto
Snapshot stringPolicy Id  - Availability
Zone string - Category string
 - Delete
Auto boolSnapshot  - Delete
With boolInstance  - Disk
Name string - Disk
Type string - Dry
Run bool - Enable
Auto boolSnapshot  - Enable
Automated boolSnapshot Policy  - bool
 - Encrypted string
 - Instance
Id string - Kms
Key stringId  - Name
Regex string - Operation
Locks List<Pulumi.Ali Cloud. Ecs. Outputs. Get Ecs Disks Operation Lock>  - Output
File string - Page
Number int - Page
Size int - Payment
Type string - Portable bool
 - Resource
Group stringId  - Snapshot
Id string - Status string
 - Dictionary<string, object>
 - Type string
 - Zone
Id string 
- Disks
[]Get
Ecs Disks Disk  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - Names []string
 - Total
Count int - Additional
Attributes []string - Auto
Snapshot stringPolicy Id  - Availability
Zone string - Category string
 - Delete
Auto boolSnapshot  - Delete
With boolInstance  - Disk
Name string - Disk
Type string - Dry
Run bool - Enable
Auto boolSnapshot  - Enable
Automated boolSnapshot Policy  - bool
 - Encrypted string
 - Instance
Id string - Kms
Key stringId  - Name
Regex string - Operation
Locks []GetEcs Disks Operation Lock  - Output
File string - Page
Number int - Page
Size int - Payment
Type string - Portable bool
 - Resource
Group stringId  - Snapshot
Id string - Status string
 - map[string]interface{}
 - Type string
 - Zone
Id string 
- disks
List<Get
Ecs Disks Disk>  - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - total
Count Integer - additional
Attributes List<String> - auto
Snapshot StringPolicy Id  - availability
Zone String - category String
 - delete
Auto BooleanSnapshot  - delete
With BooleanInstance  - disk
Name String - disk
Type String - dry
Run Boolean - enable
Auto BooleanSnapshot  - enable
Automated BooleanSnapshot Policy  - Boolean
 - encrypted String
 - instance
Id String - kms
Key StringId  - name
Regex String - operation
Locks List<GetEcs Disks Operation Lock>  - output
File String - page
Number Integer - page
Size Integer - payment
Type String - portable Boolean
 - resource
Group StringId  - snapshot
Id String - status String
 - Map<String,Object>
 - type String
 - zone
Id String 
- disks
Get
Ecs Disks Disk[]  - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - names string[]
 - total
Count number - additional
Attributes string[] - auto
Snapshot stringPolicy Id  - availability
Zone string - category string
 - delete
Auto booleanSnapshot  - delete
With booleanInstance  - disk
Name string - disk
Type string - dry
Run boolean - enable
Auto booleanSnapshot  - enable
Automated booleanSnapshot Policy  - boolean
 - encrypted string
 - instance
Id string - kms
Key stringId  - name
Regex string - operation
Locks GetEcs Disks Operation Lock[]  - output
File string - page
Number number - page
Size number - payment
Type string - portable boolean
 - resource
Group stringId  - snapshot
Id string - status string
 - {[key: string]: any}
 - type string
 - zone
Id string 
- disks
Sequence[Get
Ecs Disks Disk]  - 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_ strpolicy_ id  - availability_
zone str - category str
 - delete_
auto_ boolsnapshot  - delete_
with_ boolinstance  - disk_
name str - disk_
type str - dry_
run bool - enable_
auto_ boolsnapshot  - enable_
automated_ boolsnapshot_ policy  - bool
 - encrypted str
 - instance_
id str - kms_
key_ strid  - name_
regex str - operation_
locks Sequence[GetEcs Disks Operation Lock]  - output_
file str - page_
number int - page_
size int - payment_
type str - portable bool
 - resource_
group_ strid  - snapshot_
id str - status str
 - Mapping[str, Any]
 - type str
 - zone_
id str 
- disks List<Property Map>
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - names List<String>
 - total
Count Number - additional
Attributes List<String> - auto
Snapshot StringPolicy Id  - availability
Zone String - category String
 - delete
Auto BooleanSnapshot  - delete
With BooleanInstance  - disk
Name String - disk
Type String - dry
Run Boolean - enable
Auto BooleanSnapshot  - enable
Automated BooleanSnapshot Policy  - Boolean
 - encrypted String
 - instance
Id String - kms
Key StringId  - name
Regex String - operation
Locks List<Property Map> - output
File String - page
Number Number - page
Size Number - payment
Type String - portable Boolean
 - resource
Group StringId  - snapshot
Id String - status String
 - Map<Any>
 - type String
 - zone
Id String 
Supporting Types
GetEcsDisksDisk   
- Attached
Time string - Disk attachment time.
 - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Availability zone of the disk.
 - Category string
 - Disk category.
 - Creation
Time string - Disk creation time.
 - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Description string
 - Disk description.
 - Detached
Time string - Disk detachment time.
 - Device string
 - Cloud disk or the device name of the mounted instance on the site.
 - Disk
Id string - ID of the disk.
 - Disk
Name string - The disk name.
 - Disk
Type string - The disk type.
 - Enable
Auto boolSnapshot  - Whether the disk implements an automatic snapshot policy.
 - Enable
Automated boolSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - Encrypted string
 - Indicate whether the disk is encrypted or not.
 - Expired
Time string - Id string
 - ID of the disk.
 - Image
Id string - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - Instance
Id string - ID of the related instance. It is 
nullunless thestatusisIn_use. - Iops int
 - Iops
Read int - Iops
Write int - Kms
Key stringId  - The kms key id.
 - Mount
Instance intNum  - Number of instances mounted on shared storage.
 - Mount
Instances List<Pulumi.Ali Cloud. Ecs. Inputs. Get Ecs Disks Disk Mount Instance>  - Disk mount instances.
 - Name string
 - Disk name.
 - Operation
Locks List<Pulumi.Ali Cloud. Ecs. Inputs. Get Ecs Disks Disk Operation Lock>  - Payment
Type string - Payment method for disk.
 - Performance
Level string - Performance levels of ESSD cloud disk.
 - Portable bool
 - Whether the disk is unmountable.
 - Product
Code string - The product logo of the cloud market.
 - Region
Id string - Region ID the disk belongs to.
 - Resource
Group stringId  - The Id of resource group.
 - Size int
 - Disk size in GiB.
 - Snapshot
Id string - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - Status string
 - Current status.
 - Dictionary<string, object>
 - A map of tags assigned to the disk.
 - Type string
 - Disk type.
 - Zone
Id string - The zone id.
 
- Attached
Time string - Disk attachment time.
 - Auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - Availability
Zone string - Availability zone of the disk.
 - Category string
 - Disk category.
 - Creation
Time string - Disk creation time.
 - Delete
Auto boolSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - Delete
With boolInstance  - Indicates whether the disk is released together with the instance.
 - Description string
 - Disk description.
 - Detached
Time string - Disk detachment time.
 - Device string
 - Cloud disk or the device name of the mounted instance on the site.
 - Disk
Id string - ID of the disk.
 - Disk
Name string - The disk name.
 - Disk
Type string - The disk type.
 - Enable
Auto boolSnapshot  - Whether the disk implements an automatic snapshot policy.
 - Enable
Automated boolSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - Encrypted string
 - Indicate whether the disk is encrypted or not.
 - Expired
Time string - Id string
 - ID of the disk.
 - Image
Id string - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - Instance
Id string - ID of the related instance. It is 
nullunless thestatusisIn_use. - Iops int
 - Iops
Read int - Iops
Write int - Kms
Key stringId  - The kms key id.
 - Mount
Instance intNum  - Number of instances mounted on shared storage.
 - Mount
Instances []GetEcs Disks Disk Mount Instance  - Disk mount instances.
 - Name string
 - Disk name.
 - Operation
Locks []GetEcs Disks Disk Operation Lock  - Payment
Type string - Payment method for disk.
 - Performance
Level string - Performance levels of ESSD cloud disk.
 - Portable bool
 - Whether the disk is unmountable.
 - Product
Code string - The product logo of the cloud market.
 - Region
Id string - Region ID the disk belongs to.
 - Resource
Group stringId  - The Id of resource group.
 - Size int
 - Disk size in GiB.
 - Snapshot
Id string - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - Status string
 - Current status.
 - map[string]interface{}
 - A map of tags assigned to the disk.
 - Type string
 - Disk type.
 - Zone
Id string - The zone id.
 
- attached
Time String - Disk attachment time.
 - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Availability zone of the disk.
 - category String
 - Disk category.
 - creation
Time String - Disk creation time.
 - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - description String
 - Disk description.
 - detached
Time String - Disk detachment time.
 - device String
 - Cloud disk or the device name of the mounted instance on the site.
 - disk
Id String - ID of the disk.
 - disk
Name String - The disk name.
 - disk
Type String - The disk type.
 - enable
Auto BooleanSnapshot  - Whether the disk implements an automatic snapshot policy.
 - enable
Automated BooleanSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - encrypted String
 - Indicate whether the disk is encrypted or not.
 - expired
Time String - id String
 - ID of the disk.
 - image
Id String - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - instance
Id String - ID of the related instance. It is 
nullunless thestatusisIn_use. - iops Integer
 - iops
Read Integer - iops
Write Integer - kms
Key StringId  - The kms key id.
 - mount
Instance IntegerNum  - Number of instances mounted on shared storage.
 - mount
Instances List<GetEcs Disks Disk Mount Instance>  - Disk mount instances.
 - name String
 - Disk name.
 - operation
Locks List<GetEcs Disks Disk Operation Lock>  - payment
Type String - Payment method for disk.
 - performance
Level String - Performance levels of ESSD cloud disk.
 - portable Boolean
 - Whether the disk is unmountable.
 - product
Code String - The product logo of the cloud market.
 - region
Id String - Region ID the disk belongs to.
 - resource
Group StringId  - The Id of resource group.
 - size Integer
 - Disk size in GiB.
 - snapshot
Id String - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - status String
 - Current status.
 - Map<String,Object>
 - A map of tags assigned to the disk.
 - type String
 - Disk type.
 - zone
Id String - The zone id.
 
- attached
Time string - Disk attachment time.
 - auto
Snapshot stringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone string - Availability zone of the disk.
 - category string
 - Disk category.
 - creation
Time string - Disk creation time.
 - delete
Auto booleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With booleanInstance  - Indicates whether the disk is released together with the instance.
 - description string
 - Disk description.
 - detached
Time string - Disk detachment time.
 - device string
 - Cloud disk or the device name of the mounted instance on the site.
 - disk
Id string - ID of the disk.
 - disk
Name string - The disk name.
 - disk
Type string - The disk type.
 - enable
Auto booleanSnapshot  - Whether the disk implements an automatic snapshot policy.
 - enable
Automated booleanSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - encrypted string
 - Indicate whether the disk is encrypted or not.
 - expired
Time string - id string
 - ID of the disk.
 - image
Id string - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - instance
Id string - ID of the related instance. It is 
nullunless thestatusisIn_use. - iops number
 - iops
Read number - iops
Write number - kms
Key stringId  - The kms key id.
 - mount
Instance numberNum  - Number of instances mounted on shared storage.
 - mount
Instances GetEcs Disks Disk Mount Instance[]  - Disk mount instances.
 - name string
 - Disk name.
 - operation
Locks GetEcs Disks Disk Operation Lock[]  - payment
Type string - Payment method for disk.
 - performance
Level string - Performance levels of ESSD cloud disk.
 - portable boolean
 - Whether the disk is unmountable.
 - product
Code string - The product logo of the cloud market.
 - region
Id string - Region ID the disk belongs to.
 - resource
Group stringId  - The Id of resource group.
 - size number
 - Disk size in GiB.
 - snapshot
Id string - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - status string
 - Current status.
 - {[key: string]: any}
 - A map of tags assigned to the disk.
 - type string
 - Disk type.
 - zone
Id string - The zone id.
 
- attached_
time str - Disk attachment time.
 - auto_
snapshot_ strpolicy_ id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability_
zone str - Availability zone of the disk.
 - category str
 - Disk category.
 - creation_
time str - Disk creation time.
 - delete_
auto_ boolsnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete_
with_ boolinstance  - Indicates whether the disk is released together with the instance.
 - description str
 - Disk description.
 - detached_
time str - Disk detachment time.
 - device str
 - 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_ boolsnapshot  - Whether the disk implements an automatic snapshot policy.
 - enable_
automated_ boolsnapshot_ policy  - 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 
nullunless thestatusisIn_use. - iops int
 - iops_
read int - iops_
write int - kms_
key_ strid  - The kms key id.
 - mount_
instance_ intnum  - Number of instances mounted on shared storage.
 - mount_
instances Sequence[GetEcs Disks Disk Mount Instance]  - Disk mount instances.
 - name str
 - Disk name.
 - operation_
locks Sequence[GetEcs Disks Disk Operation Lock]  - 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_ strid  - 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.
 - Mapping[str, Any]
 - A map of tags assigned to the disk.
 - type str
 - Disk type.
 - zone_
id str - The zone id.
 
- attached
Time String - Disk attachment time.
 - auto
Snapshot StringPolicy Id  - Query cloud disks based on the automatic snapshot policy ID.
 - availability
Zone String - Availability zone of the disk.
 - category String
 - Disk category.
 - creation
Time String - Disk creation time.
 - delete
Auto BooleanSnapshot  - Indicates whether the automatic snapshot is deleted when the disk is released.
 - delete
With BooleanInstance  - Indicates whether the disk is released together with the instance.
 - description String
 - Disk description.
 - detached
Time String - Disk detachment time.
 - device String
 - Cloud disk or the device name of the mounted instance on the site.
 - disk
Id String - ID of the disk.
 - disk
Name String - The disk name.
 - disk
Type String - The disk type.
 - enable
Auto BooleanSnapshot  - Whether the disk implements an automatic snapshot policy.
 - enable
Automated BooleanSnapshot Policy  - Whether the disk implements an automatic snapshot policy.
 - encrypted String
 - Indicate whether the disk is encrypted or not.
 - expired
Time String - id String
 - ID of the disk.
 - image
Id String - ID of the image from which the disk is created. It is null unless the disk is created using an image.
 - instance
Id String - ID of the related instance. It is 
nullunless thestatusisIn_use. - iops Number
 - iops
Read Number - iops
Write Number - kms
Key StringId  - The kms key id.
 - mount
Instance NumberNum  - Number of instances mounted on shared storage.
 - mount
Instances List<Property Map> - Disk mount instances.
 - name String
 - Disk name.
 - operation
Locks List<Property Map> - payment
Type String - Payment method for disk.
 - performance
Level String - Performance levels of ESSD cloud disk.
 - portable Boolean
 - Whether the disk is unmountable.
 - product
Code String - The product logo of the cloud market.
 - region
Id String - Region ID the disk belongs to.
 - resource
Group StringId  - The Id of resource group.
 - size Number
 - Disk size in GiB.
 - snapshot
Id String - Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
 - status String
 - Current status.
 - Map<Any>
 - A map of tags assigned to the disk.
 - type String
 - Disk type.
 - zone
Id String - The zone id.
 
GetEcsDisksDiskMountInstance     
- Attached
Time string - A mount of time.
 - Device string
 - The mount point of the disk.
 - Instance
Id string - The instance ID of the disk mount.
 
- Attached
Time string - A mount of time.
 - Device string
 - The mount point of the disk.
 - Instance
Id string - The instance ID of the disk mount.
 
- attached
Time String - A mount of time.
 - device String
 - The mount point of the disk.
 - instance
Id String - The instance ID of the disk mount.
 
- attached
Time string - A mount of time.
 - device string
 - The mount point of the disk.
 - instance
Id 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.
 
- attached
Time String - A mount of time.
 - device String
 - The mount point of the disk.
 - instance
Id String - The instance ID of the disk mount.
 
GetEcsDisksDiskOperationLock     
- Lock
Reason string 
- Lock
Reason string 
- lock
Reason String 
- lock
Reason string 
- lock_
reason str 
- lock
Reason String 
GetEcsDisksOperationLock    
- Lock
Reason string 
- Lock
Reason string 
- lock
Reason String 
- lock
Reason string 
- lock_
reason str 
- lock
Reason String 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.