Class GetDisksDisk


  • public final class GetDisksDisk
    extends java.lang.Object
    • Method Detail

      • attachedTime

        public java.lang.String attachedTime()
        Returns:
        Disk attachment time.
      • autoSnapshotPolicyId

        public java.lang.String autoSnapshotPolicyId()
      • availabilityZone

        public java.lang.String availabilityZone()
        Returns:
        Availability zone of the disk.
      • category

        public java.lang.String category()
        Returns:
        Disk category. Possible values: `cloud` (basic cloud disk), `cloud_efficiency` (ultra cloud disk), `ephemeral_ssd` (local SSD cloud disk), `cloud_ssd` (SSD cloud disk), and `cloud_essd` (ESSD cloud disk).
      • creationTime

        public java.lang.String creationTime()
        Returns:
        Disk creation time.
      • deleteAutoSnapshot

        public java.lang.Boolean deleteAutoSnapshot()
      • deleteWithInstance

        public java.lang.Boolean deleteWithInstance()
      • description

        public java.lang.String description()
        Returns:
        Disk description.
      • detachedTime

        public java.lang.String detachedTime()
        Returns:
        Disk detachment time.
      • device

        public java.lang.String device()
      • diskId

        public java.lang.String diskId()
      • diskName

        public java.lang.String diskName()
      • diskType

        public java.lang.String diskType()
      • enableAutoSnapshot

        public java.lang.Boolean enableAutoSnapshot()
      • enableAutomatedSnapshotPolicy

        public java.lang.Boolean enableAutomatedSnapshotPolicy()
      • encrypted

        public java.lang.String encrypted()
        Returns:
        Indicate whether the disk is encrypted or not. Possible values: `on` and `off`.
      • expiredTime

        public java.lang.String expiredTime()
      • id

        public java.lang.String id()
        Returns:
        ID of the disk.
      • imageId

        public java.lang.String imageId()
        Returns:
        ID of the image from which the disk is created. It is null unless the disk is created using an image.
      • instanceId

        public java.lang.String instanceId()
        Returns:
        Filter the results by the specified ECS instance ID.
      • iops

        public java.lang.Integer iops()
      • iopsRead

        public java.lang.Integer iopsRead()
      • iopsWrite

        public java.lang.Integer iopsWrite()
      • kmsKeyId

        public java.lang.String kmsKeyId()
      • mountInstanceNum

        public java.lang.Integer mountInstanceNum()
      • name

        public java.lang.String name()
        Returns:
        Disk name.
      • paymentType

        public java.lang.String paymentType()
      • performanceLevel

        public java.lang.String performanceLevel()
      • portable

        public java.lang.Boolean portable()
      • productCode

        public java.lang.String productCode()
      • regionId

        public java.lang.String regionId()
        Returns:
        Region ID the disk belongs to.
      • resourceGroupId

        public java.lang.String resourceGroupId()
        Returns:
        The Id of resource group which the disk belongs.
      • size

        public java.lang.Integer size()
        Returns:
        Disk size in GiB.
      • snapshotId

        public java.lang.String snapshotId()
        Returns:
        Snapshot used to create the disk. It is null if no snapshot is used to create the disk.
      • status

        public java.lang.String status()
        Returns:
        Current status. Possible values: `In_use`, `Available`, `Attaching`, `Detaching`, `Creating` and `ReIniting`.
      • tags

        public java.util.Map<java.lang.String,​java.lang.Object> tags()
        Returns:
        A map of tags assigned to the disks. It must be in the format: ```java 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.GetDisksArgs; 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 disksDs = EcsFunctions.getDisks(GetDisksArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } } ```
      • type

        public java.lang.String type()
        Returns:
        Disk type. Possible values: `system` and `data`.
      • zoneId

        public java.lang.String zoneId()