yandex.ComputeDisk
Explore with Pulumi AI
Persistent disks are used for data storage and function similarly to physical hard and solid state drives.
A disk can be attached or detached from the virtual machine and can be located locally. A disk can be moved between virtual machines within the same availability zone. Each disk can be attached to only one virtual machine at a time.
For more information about disks in Yandex.Cloud, see:
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var @default = new Yandex.ComputeDisk("default", new Yandex.ComputeDiskArgs
{
ImageId = "ubuntu-16.04-v20180727",
Labels =
{
{ "environment", "test" },
},
Type = "network-ssd",
Zone = "ru-central1-a",
});
}
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := yandex.NewComputeDisk(ctx, "default", &yandex.ComputeDiskArgs{
ImageId: pulumi.String("ubuntu-16.04-v20180727"),
Labels: pulumi.StringMap{
"environment": pulumi.String("test"),
},
Type: pulumi.String("network-ssd"),
Zone: pulumi.String("ru-central1-a"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
default = yandex.ComputeDisk("default",
image_id="ubuntu-16.04-v20180727",
labels={
"environment": "test",
},
type="network-ssd",
zone="ru-central1-a")
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const defaultComputeDisk = new yandex.ComputeDisk("default", {
imageId: "ubuntu-16.04-v20180727",
labels: {
environment: "test",
},
type: "network-ssd",
zone: "ru-central1-a",
});
Coming soon!
Non-Replicated Disk
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var @this = new Yandex.ComputeDiskPlacementGroup("this", new Yandex.ComputeDiskPlacementGroupArgs
{
Zone = "ru-central1-b",
});
var nr = new Yandex.ComputeDisk("nr", new Yandex.ComputeDiskArgs
{
Size = 93,
Type = "network-ssd-nonreplicated",
Zone = "ru-central1-b",
DiskPlacementPolicy = new Yandex.Inputs.ComputeDiskDiskPlacementPolicyArgs
{
DiskPlacementGroupId = @this.Id,
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
this, err := yandex.NewComputeDiskPlacementGroup(ctx, "this", &yandex.ComputeDiskPlacementGroupArgs{
Zone: pulumi.String("ru-central1-b"),
})
if err != nil {
return err
}
_, err = yandex.NewComputeDisk(ctx, "nr", &yandex.ComputeDiskArgs{
Size: pulumi.Int(93),
Type: pulumi.String("network-ssd-nonreplicated"),
Zone: pulumi.String("ru-central1-b"),
DiskPlacementPolicy: &ComputeDiskDiskPlacementPolicyArgs{
DiskPlacementGroupId: this.ID(),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
this = yandex.ComputeDiskPlacementGroup("this", zone="ru-central1-b")
nr = yandex.ComputeDisk("nr",
size=93,
type="network-ssd-nonreplicated",
zone="ru-central1-b",
disk_placement_policy=yandex.ComputeDiskDiskPlacementPolicyArgs(
disk_placement_group_id=this.id,
))
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const _this = new yandex.ComputeDiskPlacementGroup("this", {zone: "ru-central1-b"});
const nr = new yandex.ComputeDisk("nr", {
size: 93,
type: "network-ssd-nonreplicated",
zone: "ru-central1-b",
diskPlacementPolicy: {
diskPlacementGroupId: _this.id,
},
});
Coming soon!
Create ComputeDisk Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputeDisk(name: string, args?: ComputeDiskArgs, opts?: CustomResourceOptions);
@overload
def ComputeDisk(resource_name: str,
args: Optional[ComputeDiskArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeDisk(resource_name: str,
opts: Optional[ResourceOptions] = None,
block_size: Optional[int] = None,
description: Optional[str] = None,
disk_placement_policy: Optional[ComputeDiskDiskPlacementPolicyArgs] = None,
folder_id: Optional[str] = None,
image_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
size: Optional[int] = None,
snapshot_id: Optional[str] = None,
type: Optional[str] = None,
zone: Optional[str] = None)
func NewComputeDisk(ctx *Context, name string, args *ComputeDiskArgs, opts ...ResourceOption) (*ComputeDisk, error)
public ComputeDisk(string name, ComputeDiskArgs? args = null, CustomResourceOptions? opts = null)
public ComputeDisk(String name, ComputeDiskArgs args)
public ComputeDisk(String name, ComputeDiskArgs args, CustomResourceOptions options)
type: yandex:ComputeDisk
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ComputeDiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ComputeDiskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ComputeDiskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeDiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeDiskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var computeDiskResource = new Yandex.ComputeDisk("computeDiskResource", new()
{
BlockSize = 0,
Description = "string",
DiskPlacementPolicy = new Yandex.Inputs.ComputeDiskDiskPlacementPolicyArgs
{
DiskPlacementGroupId = "string",
},
FolderId = "string",
ImageId = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Size = 0,
SnapshotId = "string",
Type = "string",
Zone = "string",
});
example, err := yandex.NewComputeDisk(ctx, "computeDiskResource", &yandex.ComputeDiskArgs{
BlockSize: pulumi.Int(0),
Description: pulumi.String("string"),
DiskPlacementPolicy: &yandex.ComputeDiskDiskPlacementPolicyArgs{
DiskPlacementGroupId: pulumi.String("string"),
},
FolderId: pulumi.String("string"),
ImageId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Size: pulumi.Int(0),
SnapshotId: pulumi.String("string"),
Type: pulumi.String("string"),
Zone: pulumi.String("string"),
})
var computeDiskResource = new ComputeDisk("computeDiskResource", ComputeDiskArgs.builder()
.blockSize(0)
.description("string")
.diskPlacementPolicy(ComputeDiskDiskPlacementPolicyArgs.builder()
.diskPlacementGroupId("string")
.build())
.folderId("string")
.imageId("string")
.labels(Map.of("string", "string"))
.name("string")
.size(0)
.snapshotId("string")
.type("string")
.zone("string")
.build());
compute_disk_resource = yandex.ComputeDisk("computeDiskResource",
block_size=0,
description="string",
disk_placement_policy={
"disk_placement_group_id": "string",
},
folder_id="string",
image_id="string",
labels={
"string": "string",
},
name="string",
size=0,
snapshot_id="string",
type="string",
zone="string")
const computeDiskResource = new yandex.ComputeDisk("computeDiskResource", {
blockSize: 0,
description: "string",
diskPlacementPolicy: {
diskPlacementGroupId: "string",
},
folderId: "string",
imageId: "string",
labels: {
string: "string",
},
name: "string",
size: 0,
snapshotId: "string",
type: "string",
zone: "string",
});
type: yandex:ComputeDisk
properties:
blockSize: 0
description: string
diskPlacementPolicy:
diskPlacementGroupId: string
folderId: string
imageId: string
labels:
string: string
name: string
size: 0
snapshotId: string
type: string
zone: string
ComputeDisk Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ComputeDisk resource accepts the following input properties:
- Block
Size int - Description string
(Optional) Description of the disk. Provide this property when you create a resource.
- Disk
Placement ComputePolicy Disk Disk Placement Policy - Disk placement policy configuration. The structure is documented below.
- Folder
Id string - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- Image
Id string - The source image to use for disk creation.
- Labels Dictionary<string, string>
- Labels to assign to this disk. A list of key/value pairs.
- Name string
- Name of the disk. Provide this property when you create a resource.
- Size int
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - Snapshot
Id string - The source snapshot to use for disk creation.
- Type string
- Type of disk to create. Provide this when creating a disk.
- Zone string
- Availability zone where the disk will reside.
- Block
Size int - Description string
(Optional) Description of the disk. Provide this property when you create a resource.
- Disk
Placement ComputePolicy Disk Disk Placement Policy Args - Disk placement policy configuration. The structure is documented below.
- Folder
Id string - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- Image
Id string - The source image to use for disk creation.
- Labels map[string]string
- Labels to assign to this disk. A list of key/value pairs.
- Name string
- Name of the disk. Provide this property when you create a resource.
- Size int
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - Snapshot
Id string - The source snapshot to use for disk creation.
- Type string
- Type of disk to create. Provide this when creating a disk.
- Zone string
- Availability zone where the disk will reside.
- block
Size Integer - description String
(Optional) Description of the disk. Provide this property when you create a resource.
- disk
Placement ComputePolicy Disk Disk Placement Policy - Disk placement policy configuration. The structure is documented below.
- folder
Id String - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- image
Id String - The source image to use for disk creation.
- labels Map<String,String>
- Labels to assign to this disk. A list of key/value pairs.
- name String
- Name of the disk. Provide this property when you create a resource.
- size Integer
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - snapshot
Id String - The source snapshot to use for disk creation.
- type String
- Type of disk to create. Provide this when creating a disk.
- zone String
- Availability zone where the disk will reside.
- block
Size number - description string
(Optional) Description of the disk. Provide this property when you create a resource.
- disk
Placement ComputePolicy Disk Disk Placement Policy - Disk placement policy configuration. The structure is documented below.
- folder
Id string - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- image
Id string - The source image to use for disk creation.
- labels {[key: string]: string}
- Labels to assign to this disk. A list of key/value pairs.
- name string
- Name of the disk. Provide this property when you create a resource.
- size number
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - snapshot
Id string - The source snapshot to use for disk creation.
- type string
- Type of disk to create. Provide this when creating a disk.
- zone string
- Availability zone where the disk will reside.
- block_
size int - description str
(Optional) Description of the disk. Provide this property when you create a resource.
- disk_
placement_ Computepolicy Disk Disk Placement Policy Args - Disk placement policy configuration. The structure is documented below.
- folder_
id str - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- image_
id str - The source image to use for disk creation.
- labels Mapping[str, str]
- Labels to assign to this disk. A list of key/value pairs.
- name str
- Name of the disk. Provide this property when you create a resource.
- size int
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - snapshot_
id str - The source snapshot to use for disk creation.
- type str
- Type of disk to create. Provide this when creating a disk.
- zone str
- Availability zone where the disk will reside.
- block
Size Number - description String
(Optional) Description of the disk. Provide this property when you create a resource.
- disk
Placement Property MapPolicy - Disk placement policy configuration. The structure is documented below.
- folder
Id String - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- image
Id String - The source image to use for disk creation.
- labels Map<String>
- Labels to assign to this disk. A list of key/value pairs.
- name String
- Name of the disk. Provide this property when you create a resource.
- size Number
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - snapshot
Id String - The source snapshot to use for disk creation.
- type String
- Type of disk to create. Provide this when creating a disk.
- zone String
- Availability zone where the disk will reside.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeDisk resource produces the following output properties:
- Created
At string - Creation timestamp of the disk.
- Id string
- The provider-assigned unique ID for this managed resource.
- Product
Ids List<string> - Status string
- The status of the disk.
- Created
At string - Creation timestamp of the disk.
- Id string
- The provider-assigned unique ID for this managed resource.
- Product
Ids []string - Status string
- The status of the disk.
- created
At String - Creation timestamp of the disk.
- id String
- The provider-assigned unique ID for this managed resource.
- product
Ids List<String> - status String
- The status of the disk.
- created
At string - Creation timestamp of the disk.
- id string
- The provider-assigned unique ID for this managed resource.
- product
Ids string[] - status string
- The status of the disk.
- created_
at str - Creation timestamp of the disk.
- id str
- The provider-assigned unique ID for this managed resource.
- product_
ids Sequence[str] - status str
- The status of the disk.
- created
At String - Creation timestamp of the disk.
- id String
- The provider-assigned unique ID for this managed resource.
- product
Ids List<String> - status String
- The status of the disk.
Look up Existing ComputeDisk Resource
Get an existing ComputeDisk resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ComputeDiskState, opts?: CustomResourceOptions): ComputeDisk
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
block_size: Optional[int] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
disk_placement_policy: Optional[ComputeDiskDiskPlacementPolicyArgs] = None,
folder_id: Optional[str] = None,
image_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
product_ids: Optional[Sequence[str]] = None,
size: Optional[int] = None,
snapshot_id: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None,
zone: Optional[str] = None) -> ComputeDisk
func GetComputeDisk(ctx *Context, name string, id IDInput, state *ComputeDiskState, opts ...ResourceOption) (*ComputeDisk, error)
public static ComputeDisk Get(string name, Input<string> id, ComputeDiskState? state, CustomResourceOptions? opts = null)
public static ComputeDisk get(String name, Output<String> id, ComputeDiskState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Block
Size int - Created
At string - Creation timestamp of the disk.
- Description string
(Optional) Description of the disk. Provide this property when you create a resource.
- Disk
Placement ComputePolicy Disk Disk Placement Policy - Disk placement policy configuration. The structure is documented below.
- Folder
Id string - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- Image
Id string - The source image to use for disk creation.
- Labels Dictionary<string, string>
- Labels to assign to this disk. A list of key/value pairs.
- Name string
- Name of the disk. Provide this property when you create a resource.
- Product
Ids List<string> - Size int
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - Snapshot
Id string - The source snapshot to use for disk creation.
- Status string
- The status of the disk.
- Type string
- Type of disk to create. Provide this when creating a disk.
- Zone string
- Availability zone where the disk will reside.
- Block
Size int - Created
At string - Creation timestamp of the disk.
- Description string
(Optional) Description of the disk. Provide this property when you create a resource.
- Disk
Placement ComputePolicy Disk Disk Placement Policy Args - Disk placement policy configuration. The structure is documented below.
- Folder
Id string - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- Image
Id string - The source image to use for disk creation.
- Labels map[string]string
- Labels to assign to this disk. A list of key/value pairs.
- Name string
- Name of the disk. Provide this property when you create a resource.
- Product
Ids []string - Size int
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - Snapshot
Id string - The source snapshot to use for disk creation.
- Status string
- The status of the disk.
- Type string
- Type of disk to create. Provide this when creating a disk.
- Zone string
- Availability zone where the disk will reside.
- block
Size Integer - created
At String - Creation timestamp of the disk.
- description String
(Optional) Description of the disk. Provide this property when you create a resource.
- disk
Placement ComputePolicy Disk Disk Placement Policy - Disk placement policy configuration. The structure is documented below.
- folder
Id String - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- image
Id String - The source image to use for disk creation.
- labels Map<String,String>
- Labels to assign to this disk. A list of key/value pairs.
- name String
- Name of the disk. Provide this property when you create a resource.
- product
Ids List<String> - size Integer
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - snapshot
Id String - The source snapshot to use for disk creation.
- status String
- The status of the disk.
- type String
- Type of disk to create. Provide this when creating a disk.
- zone String
- Availability zone where the disk will reside.
- block
Size number - created
At string - Creation timestamp of the disk.
- description string
(Optional) Description of the disk. Provide this property when you create a resource.
- disk
Placement ComputePolicy Disk Disk Placement Policy - Disk placement policy configuration. The structure is documented below.
- folder
Id string - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- image
Id string - The source image to use for disk creation.
- labels {[key: string]: string}
- Labels to assign to this disk. A list of key/value pairs.
- name string
- Name of the disk. Provide this property when you create a resource.
- product
Ids string[] - size number
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - snapshot
Id string - The source snapshot to use for disk creation.
- status string
- The status of the disk.
- type string
- Type of disk to create. Provide this when creating a disk.
- zone string
- Availability zone where the disk will reside.
- block_
size int - created_
at str - Creation timestamp of the disk.
- description str
(Optional) Description of the disk. Provide this property when you create a resource.
- disk_
placement_ Computepolicy Disk Disk Placement Policy Args - Disk placement policy configuration. The structure is documented below.
- folder_
id str - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- image_
id str - The source image to use for disk creation.
- labels Mapping[str, str]
- Labels to assign to this disk. A list of key/value pairs.
- name str
- Name of the disk. Provide this property when you create a resource.
- product_
ids Sequence[str] - size int
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - snapshot_
id str - The source snapshot to use for disk creation.
- status str
- The status of the disk.
- type str
- Type of disk to create. Provide this when creating a disk.
- zone str
- Availability zone where the disk will reside.
- block
Size Number - created
At String - Creation timestamp of the disk.
- description String
(Optional) Description of the disk. Provide this property when you create a resource.
- disk
Placement Property MapPolicy - Disk placement policy configuration. The structure is documented below.
- folder
Id String - (Optional) The ID of the folder that the disk belongs to. If it is not provided, the default provider folder is used.
- image
Id String - The source image to use for disk creation.
- labels Map<String>
- Labels to assign to this disk. A list of key/value pairs.
- name String
- Name of the disk. Provide this property when you create a resource.
- product
Ids List<String> - size Number
- Size of the persistent disk, specified in GB. You can specify this
field when creating a persistent disk using the
image_id
orsnapshot_id
parameter, or specify it alone to create an empty persistent disk. If you specify this field along withimage_id
orsnapshot_id
, the size value must not be less than the size of the source image or the size of the snapshot. - snapshot
Id String - The source snapshot to use for disk creation.
- status String
- The status of the disk.
- type String
- Type of disk to create. Provide this when creating a disk.
- zone String
- Availability zone where the disk will reside.
Supporting Types
ComputeDiskDiskPlacementPolicy, ComputeDiskDiskPlacementPolicyArgs
- Disk
Placement stringGroup Id - Specifies Disk Placement Group id.
- Disk
Placement stringGroup Id - Specifies Disk Placement Group id.
- disk
Placement StringGroup Id - Specifies Disk Placement Group id.
- disk
Placement stringGroup Id - Specifies Disk Placement Group id.
- disk_
placement_ strgroup_ id - Specifies Disk Placement Group id.
- disk
Placement StringGroup Id - Specifies Disk Placement Group id.
Import
A disk can be imported using any of these accepted formats
$ pulumi import yandex:index/computeDisk:ComputeDisk default disk_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.