Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getComputeDisk
Explore with Pulumi AI
Get information about a Yandex Compute disk. For more information, see the official documentation.
Using getComputeDisk
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 getComputeDisk(args: GetComputeDiskArgs, opts?: InvokeOptions): Promise<GetComputeDiskResult>
function getComputeDiskOutput(args: GetComputeDiskOutputArgs, opts?: InvokeOptions): Output<GetComputeDiskResult>
def get_compute_disk(disk_id: Optional[str] = None,
disk_placement_policy: Optional[GetComputeDiskDiskPlacementPolicy] = None,
folder_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetComputeDiskResult
def get_compute_disk_output(disk_id: Optional[pulumi.Input[str]] = None,
disk_placement_policy: Optional[pulumi.Input[GetComputeDiskDiskPlacementPolicyArgs]] = None,
folder_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetComputeDiskResult]
func LookupComputeDisk(ctx *Context, args *LookupComputeDiskArgs, opts ...InvokeOption) (*LookupComputeDiskResult, error)
func LookupComputeDiskOutput(ctx *Context, args *LookupComputeDiskOutputArgs, opts ...InvokeOption) LookupComputeDiskResultOutput
> Note: This function is named LookupComputeDisk
in the Go SDK.
public static class GetComputeDisk
{
public static Task<GetComputeDiskResult> InvokeAsync(GetComputeDiskArgs args, InvokeOptions? opts = null)
public static Output<GetComputeDiskResult> Invoke(GetComputeDiskInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetComputeDiskResult> getComputeDisk(GetComputeDiskArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: yandex:index/getComputeDisk:getComputeDisk
arguments:
# arguments dictionary
The following arguments are supported:
- Disk
Id string - The ID of a specific disk.
- Disk
Placement GetPolicy Compute Disk Disk Placement Policy - Folder
Id string - ID of the folder that the disk belongs to.
- Name string
- Name of the disk.
- Disk
Id string - The ID of a specific disk.
- Disk
Placement GetPolicy Compute Disk Disk Placement Policy - Folder
Id string - ID of the folder that the disk belongs to.
- Name string
- Name of the disk.
- disk
Id String - The ID of a specific disk.
- disk
Placement GetPolicy Compute Disk Disk Placement Policy - folder
Id String - ID of the folder that the disk belongs to.
- name String
- Name of the disk.
- disk
Id string - The ID of a specific disk.
- disk
Placement GetPolicy Compute Disk Disk Placement Policy - folder
Id string - ID of the folder that the disk belongs to.
- name string
- Name of the disk.
- disk_
id str - The ID of a specific disk.
- disk_
placement_ Getpolicy Compute Disk Disk Placement Policy - folder_
id str - ID of the folder that the disk belongs to.
- name str
- Name of the disk.
- disk
Id String - The ID of a specific disk.
- disk
Placement Property MapPolicy - folder
Id String - ID of the folder that the disk belongs to.
- name String
- Name of the disk.
getComputeDisk Result
The following output properties are available:
- Block
Size int - The block size of the disk in bytes.
- Created
At string - Disk creation timestamp.
- Description string
- Optional description of this disk.
- Disk
Id string - Folder
Id string - ID of the folder that the disk belongs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - ID of the source image that was used to create this disk.
- Instance
Ids List<string> - IDs of instances to which this disk is attached.
- Labels Dictionary<string, string>
- Map of labels applied to this disk.
- Name string
- Product
Ids List<string> - License IDs that indicate which licenses are attached to this disk.
- Size int
- Size of the disk, specified in Gb.
- Snapshot
Id string - Source snapshot that was used to create this disk.
- Status string
- Status of the disk.
- Type string
- Type of the disk.
- Zone string
- ID of the zone where the disk resides.
- Disk
Placement GetPolicy Compute Disk Disk Placement Policy
- Block
Size int - The block size of the disk in bytes.
- Created
At string - Disk creation timestamp.
- Description string
- Optional description of this disk.
- Disk
Id string - Folder
Id string - ID of the folder that the disk belongs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - ID of the source image that was used to create this disk.
- Instance
Ids []string - IDs of instances to which this disk is attached.
- Labels map[string]string
- Map of labels applied to this disk.
- Name string
- Product
Ids []string - License IDs that indicate which licenses are attached to this disk.
- Size int
- Size of the disk, specified in Gb.
- Snapshot
Id string - Source snapshot that was used to create this disk.
- Status string
- Status of the disk.
- Type string
- Type of the disk.
- Zone string
- ID of the zone where the disk resides.
- Disk
Placement GetPolicy Compute Disk Disk Placement Policy
- block
Size Integer - The block size of the disk in bytes.
- created
At String - Disk creation timestamp.
- description String
- Optional description of this disk.
- disk
Id String - folder
Id String - ID of the folder that the disk belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - ID of the source image that was used to create this disk.
- instance
Ids List<String> - IDs of instances to which this disk is attached.
- labels Map<String,String>
- Map of labels applied to this disk.
- name String
- product
Ids List<String> - License IDs that indicate which licenses are attached to this disk.
- size Integer
- Size of the disk, specified in Gb.
- snapshot
Id String - Source snapshot that was used to create this disk.
- status String
- Status of the disk.
- type String
- Type of the disk.
- zone String
- ID of the zone where the disk resides.
- disk
Placement GetPolicy Compute Disk Disk Placement Policy
- block
Size number - The block size of the disk in bytes.
- created
At string - Disk creation timestamp.
- description string
- Optional description of this disk.
- disk
Id string - folder
Id string - ID of the folder that the disk belongs to.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Id string - ID of the source image that was used to create this disk.
- instance
Ids string[] - IDs of instances to which this disk is attached.
- labels {[key: string]: string}
- Map of labels applied to this disk.
- name string
- product
Ids string[] - License IDs that indicate which licenses are attached to this disk.
- size number
- Size of the disk, specified in Gb.
- snapshot
Id string - Source snapshot that was used to create this disk.
- status string
- Status of the disk.
- type string
- Type of the disk.
- zone string
- ID of the zone where the disk resides.
- disk
Placement GetPolicy Compute Disk Disk Placement Policy
- block_
size int - The block size of the disk in bytes.
- created_
at str - Disk creation timestamp.
- description str
- Optional description of this disk.
- disk_
id str - folder_
id str - ID of the folder that the disk belongs to.
- id str
- The provider-assigned unique ID for this managed resource.
- image_
id str - ID of the source image that was used to create this disk.
- instance_
ids Sequence[str] - IDs of instances to which this disk is attached.
- labels Mapping[str, str]
- Map of labels applied to this disk.
- name str
- product_
ids Sequence[str] - License IDs that indicate which licenses are attached to this disk.
- size int
- Size of the disk, specified in Gb.
- snapshot_
id str - Source snapshot that was used to create this disk.
- status str
- Status of the disk.
- type str
- Type of the disk.
- zone str
- ID of the zone where the disk resides.
- disk_
placement_ Getpolicy Compute Disk Disk Placement Policy
- block
Size Number - The block size of the disk in bytes.
- created
At String - Disk creation timestamp.
- description String
- Optional description of this disk.
- disk
Id String - folder
Id String - ID of the folder that the disk belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - ID of the source image that was used to create this disk.
- instance
Ids List<String> - IDs of instances to which this disk is attached.
- labels Map<String>
- Map of labels applied to this disk.
- name String
- product
Ids List<String> - License IDs that indicate which licenses are attached to this disk.
- size Number
- Size of the disk, specified in Gb.
- snapshot
Id String - Source snapshot that was used to create this disk.
- status String
- Status of the disk.
- type String
- Type of the disk.
- zone String
- ID of the zone where the disk resides.
- disk
Placement Property MapPolicy
Supporting Types
GetComputeDiskDiskPlacementPolicy
- Disk
Placement stringGroup Id
- Disk
Placement stringGroup Id
- disk
Placement StringGroup Id
- disk
Placement stringGroup Id
- disk
Placement StringGroup Id
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.