alicloud.ecs.getEcsDisks
This data source provides the Ecs Disks of the current Alibaba Cloud user.
NOTE: Available in v1.122.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
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 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
})
}
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()));
}
}
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)
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);
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 dictionary
The 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 Availability zone of the disk.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- Category string
Disk category.
- Delete
Auto boolSnapshot Indicates whether the automatic snapshot is deleted when the disk is released.
- Delete
With boolInstance Indicates whether the disk is released together with the instance.
- Disk
Name string The disk name.
- Disk
Type string The 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 Whether the disk implements an automatic snapshot policy.
- Enable
Automated boolSnapshot Policy Whether the disk implements an automatic snapshot policy.
- bool
Whether it is shared block storage.
- Encrypted string
Indicate whether the disk is encrypted or not.
- Ids List<string>
A list of Disk IDs.
- Instance
Id string The instance ID of the disk mount.
- 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 - Page
Number int - Page
Size int - Payment
Type string Payment method for disk.
- Portable bool
Whether the disk is unmountable.
- Resource
Group stringId The Id of resource group.
- Snapshot
Id string Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
- Status string
Current status.
- Dictionary<string, object>
A map of tags assigned to the disk.
- Type string
Disk type.
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- Zone
Id string The zone id.
- 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 Availability zone of the disk.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- Category string
Disk category.
- Delete
Auto boolSnapshot Indicates whether the automatic snapshot is deleted when the disk is released.
- Delete
With boolInstance Indicates whether the disk is released together with the instance.
- Disk
Name string The disk name.
- Disk
Type string The 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 Whether the disk implements an automatic snapshot policy.
- Enable
Automated boolSnapshot Policy Whether the disk implements an automatic snapshot policy.
- bool
Whether it is shared block storage.
- Encrypted string
Indicate whether the disk is encrypted or not.
- Ids []string
A list of Disk IDs.
- Instance
Id string The instance ID of the disk mount.
- 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 - Page
Number int - Page
Size int - Payment
Type string Payment method for disk.
- Portable bool
Whether the disk is unmountable.
- Resource
Group stringId The Id of resource group.
- Snapshot
Id string Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
- Status string
Current status.
- map[string]interface{}
A map of tags assigned to the disk.
- Type string
Disk type.
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- Zone
Id string The zone id.
- 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 Availability zone of the disk.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category String
Disk category.
- delete
Auto BooleanSnapshot Indicates whether the automatic snapshot is deleted when the disk is released.
- delete
With BooleanInstance Indicates whether the disk is released together with the instance.
- disk
Name String The disk name.
- disk
Type String The 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 Whether the disk implements an automatic snapshot policy.
- enable
Automated BooleanSnapshot Policy Whether the disk implements an automatic snapshot policy.
- Boolean
Whether it is shared block storage.
- encrypted String
Indicate whether the disk is encrypted or not.
- ids List<String>
A list of Disk IDs.
- instance
Id String The instance ID of the disk mount.
- 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 - page
Number Integer - page
Size Integer - payment
Type String Payment method for disk.
- portable Boolean
Whether the disk is unmountable.
- resource
Group StringId The Id of resource group.
- snapshot
Id String Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
- status String
Current status.
- Map<String,Object>
A map of tags assigned to the disk.
- type String
Disk type.
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- zone
Id String The zone id.
- 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 Availability zone of the disk.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category string
Disk category.
- delete
Auto booleanSnapshot Indicates whether the automatic snapshot is deleted when the disk is released.
- delete
With booleanInstance Indicates whether the disk is released together with the instance.
- disk
Name string The disk name.
- disk
Type string The 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 Whether the disk implements an automatic snapshot policy.
- enable
Automated booleanSnapshot Policy Whether the disk implements an automatic snapshot policy.
- boolean
Whether it is shared block storage.
- encrypted string
Indicate whether the disk is encrypted or not.
- ids string[]
A list of Disk IDs.
- instance
Id string The instance ID of the disk mount.
- 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 - page
Number number - page
Size number - payment
Type string Payment method for disk.
- portable boolean
Whether the disk is unmountable.
- resource
Group stringId The Id of resource group.
- snapshot
Id string Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
- status string
Current status.
- {[key: string]: any}
A map of tags assigned to the disk.
- type string
Disk type.
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- zone
Id string The zone id.
- 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 Availability zone of the disk.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category str
Disk category.
- delete_
auto_ boolsnapshot Indicates whether the automatic snapshot is deleted when the disk is released.
- delete_
with_ boolinstance Indicates whether the disk is released together with the instance.
- disk_
name str The disk name.
- disk_
type str The 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 Whether the disk implements an automatic snapshot policy.
- enable_
automated_ boolsnapshot_ policy Whether the disk implements an automatic snapshot policy.
- bool
Whether it is shared block storage.
- encrypted str
Indicate whether the disk is encrypted or not.
- ids Sequence[str]
A list of Disk IDs.
- instance_
id str The instance ID of the disk mount.
- 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 - page_
number int - page_
size int - payment_
type str Payment method for disk.
- portable bool
Whether the disk is unmountable.
- resource_
group_ strid The Id of resource group.
- snapshot_
id str Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
- status str
Current status.
- Mapping[str, Any]
A map of tags assigned to the disk.
- type str
Disk type.
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- zone_
id str The zone id.
- 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 Availability zone of the disk.
Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- category String
Disk category.
- delete
Auto BooleanSnapshot Indicates whether the automatic snapshot is deleted when the disk is released.
- delete
With BooleanInstance Indicates whether the disk is released together with the instance.
- disk
Name String The disk name.
- disk
Type String The 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 Whether the disk implements an automatic snapshot policy.
- enable
Automated BooleanSnapshot Policy Whether the disk implements an automatic snapshot policy.
- Boolean
Whether it is shared block storage.
- encrypted String
Indicate whether the disk is encrypted or not.
- ids List<String>
A list of Disk IDs.
- instance
Id String The instance ID of the disk mount.
- 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 - page
Number Number - page
Size Number - payment
Type String Payment method for disk.
- portable Boolean
Whether the disk is unmountable.
- resource
Group StringId The Id of resource group.
- snapshot
Id String Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
- status String
Current status.
- Map<Any>
A map of tags assigned to the disk.
- type String
Disk type.
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- zone
Id String The zone id.
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 Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- 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
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- 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 Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- 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
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- 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 Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- 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
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- 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 Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- 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
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- 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 Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- 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
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>
- total
Count Number - additional
Attributes List<String> - auto
Snapshot StringPolicy Id - availability
Zone String Field 'availability_zone' has been deprecated from provider version 1.122.0. New field 'zone_id' instead
- 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
Field 'type' has been deprecated from provider version 1.122.0. New field 'disk_type' instead.
- zone
Id String
Supporting Types
GetEcsDisksDisk
- Attached
Time string A mount of time.
- Auto
Snapshot stringPolicy Id Query cloud disks based on the automatic snapshot policy ID.
- Availability
Zone string 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
The mount point of the disk.
- Disk
Id string ID of the disk.
- Disk
Name string The disk name.
- Disk
Type string The disk type.
- 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 The instance ID of the disk mount.
- 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 A mount of 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
The mount point of the disk.
- Disk
Id string ID of the disk.
- Disk
Name string The disk name.
- Disk
Type string The disk type.
- 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 The instance ID of the disk mount.
- 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 A mount of 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
The mount point of the disk.
- disk
Id String ID of the disk.
- disk
Name String The disk name.
- disk
Type String The disk type.
- 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 The instance ID of the disk mount.
- 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 A mount of 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
The mount point of the disk.
- disk
Id string ID of the disk.
- disk
Name string The disk name.
- disk
Type string The disk type.
- 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 The instance ID of the disk mount.
- 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 A mount of 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
The mount point of the disk.
- disk_
id str ID of the disk.
- disk_
name str The disk name.
- disk_
type str The disk type.
- 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 The instance ID of the disk mount.
- 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 A mount of 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
The mount point of the disk.
- disk
Id String ID of the disk.
- disk
Name String The disk name.
- disk
Type String The disk type.
- 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 The instance ID of the disk mount.
- 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
alicloud
Terraform Provider.