1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsInstanceDisk
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsInstanceDisk

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information about an instance disk. For more information about instance disk, see managing instance storage.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Using getIsInstanceDisk

    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 getIsInstanceDisk(args: GetIsInstanceDiskArgs, opts?: InvokeOptions): Promise<GetIsInstanceDiskResult>
    function getIsInstanceDiskOutput(args: GetIsInstanceDiskOutputArgs, opts?: InvokeOptions): Output<GetIsInstanceDiskResult>
    def get_is_instance_disk(disk: Optional[str] = None,
                             id: Optional[str] = None,
                             instance: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetIsInstanceDiskResult
    def get_is_instance_disk_output(disk: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             instance: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetIsInstanceDiskResult]
    func LookupIsInstanceDisk(ctx *Context, args *LookupIsInstanceDiskArgs, opts ...InvokeOption) (*LookupIsInstanceDiskResult, error)
    func LookupIsInstanceDiskOutput(ctx *Context, args *LookupIsInstanceDiskOutputArgs, opts ...InvokeOption) LookupIsInstanceDiskResultOutput

    > Note: This function is named LookupIsInstanceDisk in the Go SDK.

    public static class GetIsInstanceDisk 
    {
        public static Task<GetIsInstanceDiskResult> InvokeAsync(GetIsInstanceDiskArgs args, InvokeOptions? opts = null)
        public static Output<GetIsInstanceDiskResult> Invoke(GetIsInstanceDiskInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsInstanceDiskResult> getIsInstanceDisk(GetIsInstanceDiskArgs args, InvokeOptions options)
    public static Output<GetIsInstanceDiskResult> getIsInstanceDisk(GetIsInstanceDiskArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsInstanceDisk:getIsInstanceDisk
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Disk string
    The instance disk identifier.
    Instance string
    The instance identifier.
    Id string
    (String) The unique identifier of the instance disk.
    Disk string
    The instance disk identifier.
    Instance string
    The instance identifier.
    Id string
    (String) The unique identifier of the instance disk.
    disk String
    The instance disk identifier.
    instance String
    The instance identifier.
    id String
    (String) The unique identifier of the instance disk.
    disk string
    The instance disk identifier.
    instance string
    The instance identifier.
    id string
    (String) The unique identifier of the instance disk.
    disk str
    The instance disk identifier.
    instance str
    The instance identifier.
    id str
    (String) The unique identifier of the instance disk.
    disk String
    The instance disk identifier.
    instance String
    The instance identifier.
    id String
    (String) The unique identifier of the instance disk.

    getIsInstanceDisk Result

    The following output properties are available:

    CreatedAt string
    (Timestamp) The date and time that the disk was created.
    Disk string
    Href string
    (String) The URL for this instance disk.
    Id string
    (String) The unique identifier of the instance disk.
    Instance string
    InterfaceType string
    (String) The disk interface used for attaching the disk. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally, halt processing and surface the error, or bypass the resource on which the unexpected property value is used.
    Name string
    (String) The user defined name for this disk.
    ResourceType string
    (String) The resource type.
    Size double
    (String) The size of the disk in GB (gigabytes).
    CreatedAt string
    (Timestamp) The date and time that the disk was created.
    Disk string
    Href string
    (String) The URL for this instance disk.
    Id string
    (String) The unique identifier of the instance disk.
    Instance string
    InterfaceType string
    (String) The disk interface used for attaching the disk. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally, halt processing and surface the error, or bypass the resource on which the unexpected property value is used.
    Name string
    (String) The user defined name for this disk.
    ResourceType string
    (String) The resource type.
    Size float64
    (String) The size of the disk in GB (gigabytes).
    createdAt String
    (Timestamp) The date and time that the disk was created.
    disk String
    href String
    (String) The URL for this instance disk.
    id String
    (String) The unique identifier of the instance disk.
    instance String
    interfaceType String
    (String) The disk interface used for attaching the disk. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally, halt processing and surface the error, or bypass the resource on which the unexpected property value is used.
    name String
    (String) The user defined name for this disk.
    resourceType String
    (String) The resource type.
    size Double
    (String) The size of the disk in GB (gigabytes).
    createdAt string
    (Timestamp) The date and time that the disk was created.
    disk string
    href string
    (String) The URL for this instance disk.
    id string
    (String) The unique identifier of the instance disk.
    instance string
    interfaceType string
    (String) The disk interface used for attaching the disk. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally, halt processing and surface the error, or bypass the resource on which the unexpected property value is used.
    name string
    (String) The user defined name for this disk.
    resourceType string
    (String) The resource type.
    size number
    (String) The size of the disk in GB (gigabytes).
    created_at str
    (Timestamp) The date and time that the disk was created.
    disk str
    href str
    (String) The URL for this instance disk.
    id str
    (String) The unique identifier of the instance disk.
    instance str
    interface_type str
    (String) The disk interface used for attaching the disk. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally, halt processing and surface the error, or bypass the resource on which the unexpected property value is used.
    name str
    (String) The user defined name for this disk.
    resource_type str
    (String) The resource type.
    size float
    (String) The size of the disk in GB (gigabytes).
    createdAt String
    (Timestamp) The date and time that the disk was created.
    disk String
    href String
    (String) The URL for this instance disk.
    id String
    (String) The unique identifier of the instance disk.
    instance String
    interfaceType String
    (String) The disk interface used for attaching the disk. The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally, halt processing and surface the error, or bypass the resource on which the unexpected property value is used.
    name String
    (String) The user defined name for this disk.
    resourceType String
    (String) The resource type.
    size Number
    (String) The size of the disk in GB (gigabytes).

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud