1. Packages
  2. Yandex
  3. API Docs
  4. getComputeDisk
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getComputeDisk

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    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:

    DiskId string
    The ID of a specific disk.
    DiskPlacementPolicy GetComputeDiskDiskPlacementPolicy
    FolderId string
    ID of the folder that the disk belongs to.
    Name string
    Name of the disk.
    DiskId string
    The ID of a specific disk.
    DiskPlacementPolicy GetComputeDiskDiskPlacementPolicy
    FolderId string
    ID of the folder that the disk belongs to.
    Name string
    Name of the disk.
    diskId String
    The ID of a specific disk.
    diskPlacementPolicy GetComputeDiskDiskPlacementPolicy
    folderId String
    ID of the folder that the disk belongs to.
    name String
    Name of the disk.
    diskId string
    The ID of a specific disk.
    diskPlacementPolicy GetComputeDiskDiskPlacementPolicy
    folderId 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_policy GetComputeDiskDiskPlacementPolicy
    folder_id str
    ID of the folder that the disk belongs to.
    name str
    Name of the disk.
    diskId String
    The ID of a specific disk.
    diskPlacementPolicy Property Map
    folderId String
    ID of the folder that the disk belongs to.
    name String
    Name of the disk.

    getComputeDisk Result

    The following output properties are available:

    BlockSize int
    The block size of the disk in bytes.
    CreatedAt string
    Disk creation timestamp.
    Description string
    Optional description of this disk.
    DiskId string
    FolderId string
    ID of the folder that the disk belongs to.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageId string
    ID of the source image that was used to create this disk.
    InstanceIds List<string>
    IDs of instances to which this disk is attached.
    Labels Dictionary<string, string>
    Map of labels applied to this disk.
    Name string
    ProductIds List<string>
    License IDs that indicate which licenses are attached to this disk.
    Size int
    Size of the disk, specified in Gb.
    SnapshotId 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.
    DiskPlacementPolicy GetComputeDiskDiskPlacementPolicy
    BlockSize int
    The block size of the disk in bytes.
    CreatedAt string
    Disk creation timestamp.
    Description string
    Optional description of this disk.
    DiskId string
    FolderId string
    ID of the folder that the disk belongs to.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageId string
    ID of the source image that was used to create this disk.
    InstanceIds []string
    IDs of instances to which this disk is attached.
    Labels map[string]string
    Map of labels applied to this disk.
    Name string
    ProductIds []string
    License IDs that indicate which licenses are attached to this disk.
    Size int
    Size of the disk, specified in Gb.
    SnapshotId 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.
    DiskPlacementPolicy GetComputeDiskDiskPlacementPolicy
    blockSize Integer
    The block size of the disk in bytes.
    createdAt String
    Disk creation timestamp.
    description String
    Optional description of this disk.
    diskId String
    folderId String
    ID of the folder that the disk belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    imageId String
    ID of the source image that was used to create this disk.
    instanceIds List<String>
    IDs of instances to which this disk is attached.
    labels Map<String,String>
    Map of labels applied to this disk.
    name String
    productIds List<String>
    License IDs that indicate which licenses are attached to this disk.
    size Integer
    Size of the disk, specified in Gb.
    snapshotId 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.
    diskPlacementPolicy GetComputeDiskDiskPlacementPolicy
    blockSize number
    The block size of the disk in bytes.
    createdAt string
    Disk creation timestamp.
    description string
    Optional description of this disk.
    diskId string
    folderId string
    ID of the folder that the disk belongs to.
    id string
    The provider-assigned unique ID for this managed resource.
    imageId string
    ID of the source image that was used to create this disk.
    instanceIds string[]
    IDs of instances to which this disk is attached.
    labels {[key: string]: string}
    Map of labels applied to this disk.
    name string
    productIds string[]
    License IDs that indicate which licenses are attached to this disk.
    size number
    Size of the disk, specified in Gb.
    snapshotId 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.
    diskPlacementPolicy GetComputeDiskDiskPlacementPolicy
    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_policy GetComputeDiskDiskPlacementPolicy
    blockSize Number
    The block size of the disk in bytes.
    createdAt String
    Disk creation timestamp.
    description String
    Optional description of this disk.
    diskId String
    folderId String
    ID of the folder that the disk belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    imageId String
    ID of the source image that was used to create this disk.
    instanceIds List<String>
    IDs of instances to which this disk is attached.
    labels Map<String>
    Map of labels applied to this disk.
    name String
    productIds List<String>
    License IDs that indicate which licenses are attached to this disk.
    size Number
    Size of the disk, specified in Gb.
    snapshotId 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.
    diskPlacementPolicy Property Map

    Supporting Types

    GetComputeDiskDiskPlacementPolicy

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi