Reference documentation and code samples for the Backup and DR Service V1 API module Google::Cloud::BackupDR::V1::AttachedDisk::DiskMode.
List of the Disk Modes.
Constants
DISK_MODE_UNSPECIFIED
value: 0 Default value, which is unused.
READ_WRITE
value: 1 Attaches this disk in read-write mode. Only one
virtual machine at a time can be attached to a disk in read-write mode.
READ_ONLY
value: 2 Attaches this disk in read-only mode. Multiple virtual machines can use
a disk in read-only mode at a time.
LOCKED
value: 3 The disk is locked for administrative reasons. Nobody else
can use the disk. This mode is used (for example) when taking
a snapshot of a disk to prevent mounting the disk while it is
being snapshotted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Backup and DR Service V1 API - Module Google::Cloud::BackupDR::V1::AttachedDisk::DiskMode (v1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/ruby/docs/reference/google-cloud-backupdr-v1/latest/Google-Cloud-BackupDR-V1-AttachedDisk-DiskMode)\n- [1.1.0](/ruby/docs/reference/google-cloud-backupdr-v1/1.1.0/Google-Cloud-BackupDR-V1-AttachedDisk-DiskMode)\n- [1.0.1](/ruby/docs/reference/google-cloud-backupdr-v1/1.0.1/Google-Cloud-BackupDR-V1-AttachedDisk-DiskMode)\n- [0.5.0](/ruby/docs/reference/google-cloud-backupdr-v1/0.5.0/Google-Cloud-BackupDR-V1-AttachedDisk-DiskMode)\n- [0.4.0](/ruby/docs/reference/google-cloud-backupdr-v1/0.4.0/Google-Cloud-BackupDR-V1-AttachedDisk-DiskMode)\n- [0.3.0](/ruby/docs/reference/google-cloud-backupdr-v1/0.3.0/Google-Cloud-BackupDR-V1-AttachedDisk-DiskMode)\n- [0.2.1](/ruby/docs/reference/google-cloud-backupdr-v1/0.2.1/Google-Cloud-BackupDR-V1-AttachedDisk-DiskMode)\n- [0.1.0](/ruby/docs/reference/google-cloud-backupdr-v1/0.1.0/Google-Cloud-BackupDR-V1-AttachedDisk-DiskMode) \nReference documentation and code samples for the Backup and DR Service V1 API module Google::Cloud::BackupDR::V1::AttachedDisk::DiskMode.\n\nList of the Disk Modes.\n\nConstants\n---------\n\n### DISK_MODE_UNSPECIFIED\n\n**value:** 0 \nDefault value, which is unused.\n\n### READ_WRITE\n\n**value:** 1 \nAttaches this disk in read-write mode. Only one\nvirtual machine at a time can be attached to a disk in read-write mode.\n\n### READ_ONLY\n\n**value:** 2 \nAttaches this disk in read-only mode. Multiple virtual machines can use\na disk in read-only mode at a time.\n\n### LOCKED\n\n**value:** 3 \nThe disk is locked for administrative reasons. Nobody else\ncan use the disk. This mode is used (for example) when taking\na snapshot of a disk to prevent mounting the disk while it is\nbeing snapshotted."]]