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

ibm.getIsInstanceDisks

Explore with Pulumi AI

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

    Retrieve information about an instance disks. For more information, about an instance disks, 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 getIsInstanceDisks

    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 getIsInstanceDisks(args: GetIsInstanceDisksArgs, opts?: InvokeOptions): Promise<GetIsInstanceDisksResult>
    function getIsInstanceDisksOutput(args: GetIsInstanceDisksOutputArgs, opts?: InvokeOptions): Output<GetIsInstanceDisksResult>
    def get_is_instance_disks(id: Optional[str] = None,
                              instance: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetIsInstanceDisksResult
    def get_is_instance_disks_output(id: Optional[pulumi.Input[str]] = None,
                              instance: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetIsInstanceDisksResult]
    func GetIsInstanceDisks(ctx *Context, args *GetIsInstanceDisksArgs, opts ...InvokeOption) (*GetIsInstanceDisksResult, error)
    func GetIsInstanceDisksOutput(ctx *Context, args *GetIsInstanceDisksOutputArgs, opts ...InvokeOption) GetIsInstanceDisksResultOutput

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

    public static class GetIsInstanceDisks 
    {
        public static Task<GetIsInstanceDisksResult> InvokeAsync(GetIsInstanceDisksArgs args, InvokeOptions? opts = null)
        public static Output<GetIsInstanceDisksResult> Invoke(GetIsInstanceDisksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsInstanceDisksResult> getIsInstanceDisks(GetIsInstanceDisksArgs args, InvokeOptions options)
    public static Output<GetIsInstanceDisksResult> getIsInstanceDisks(GetIsInstanceDisksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsInstanceDisks:getIsInstanceDisks
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getIsInstanceDisks Result

    The following output properties are available:

    Disks List<GetIsInstanceDisksDisk>
    (List) Collection of the instance's disks.
    Id string
    (String) The unique identifier of the InstanceDiskCollection.
    Instance string
    Disks []GetIsInstanceDisksDisk
    (List) Collection of the instance's disks.
    Id string
    (String) The unique identifier of the InstanceDiskCollection.
    Instance string
    disks List<GetIsInstanceDisksDisk>
    (List) Collection of the instance's disks.
    id String
    (String) The unique identifier of the InstanceDiskCollection.
    instance String
    disks GetIsInstanceDisksDisk[]
    (List) Collection of the instance's disks.
    id string
    (String) The unique identifier of the InstanceDiskCollection.
    instance string
    disks Sequence[GetIsInstanceDisksDisk]
    (List) Collection of the instance's disks.
    id str
    (String) The unique identifier of the InstanceDiskCollection.
    instance str
    disks List<Property Map>
    (List) Collection of the instance's disks.
    id String
    (String) The unique identifier of the InstanceDiskCollection.
    instance String

    Supporting Types

    GetIsInstanceDisksDisk

    CreatedAt string
    (Timestamp) The date and time that the disk was created.
    Href string
    (String) The URL for this instance disk.
    Id string
    (String) The unique identifier of the InstanceDiskCollection.
    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 was encountered.
    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.
    Href string
    (String) The URL for this instance disk.
    Id string
    (String) The unique identifier of the InstanceDiskCollection.
    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 was encountered.
    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.
    href String
    (String) The URL for this instance disk.
    id String
    (String) The unique identifier of the InstanceDiskCollection.
    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 was encountered.
    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.
    href string
    (String) The URL for this instance disk.
    id string
    (String) The unique identifier of the InstanceDiskCollection.
    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 was encountered.
    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.
    href str
    (String) The URL for this instance disk.
    id str
    (String) The unique identifier of the InstanceDiskCollection.
    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 was encountered.
    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.
    href String
    (String) The URL for this instance disk.
    id String
    (String) The unique identifier of the InstanceDiskCollection.
    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 was encountered.
    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