ibm.getIsInstanceDisks
Explore with Pulumi AI
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:
getIsInstanceDisks Result
The following output properties are available:
- Disks
List<Get
Is Instance Disks Disk> - (List) Collection of the instance's disks.
- Id string
- (String) The unique identifier of the InstanceDiskCollection.
- Instance string
- Disks
[]Get
Is Instance Disks Disk - (List) Collection of the instance's disks.
- Id string
- (String) The unique identifier of the InstanceDiskCollection.
- Instance string
- disks
List<Get
Is Instance Disks Disk> - (List) Collection of the instance's disks.
- id String
- (String) The unique identifier of the InstanceDiskCollection.
- instance String
- disks
Get
Is Instance Disks Disk[] - (List) Collection of the instance's disks.
- id string
- (String) The unique identifier of the InstanceDiskCollection.
- instance string
- disks
Sequence[Get
Is Instance Disks Disk] - (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
- Created
At 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.
- Interface
Type 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.
- Resource
Type string - (String) The resource type.
- Size double
- (String) The size of the disk in GB (gigabytes).
- Created
At 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.
- Interface
Type 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.
- Resource
Type string - (String) The resource type.
- Size float64
- (String) The size of the disk in GB (gigabytes).
- created
At 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.
- interface
Type 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.
- resource
Type String - (String) The resource type.
- size Double
- (String) The size of the disk in GB (gigabytes).
- created
At 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.
- interface
Type 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.
- resource
Type 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).
- created
At 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.
- interface
Type 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.
- resource
Type 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.