ibm.getIsInstanceDisk
Explore with Pulumi AI
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:
getIsInstanceDisk Result
The following output properties are available:
- Created
At 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
- 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 is used.
- 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.
- Disk string
- Href string
- (String) The URL for this instance disk.
- Id string
- (String) The unique identifier of the instance disk.
- Instance string
- 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 is used.
- 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.
- disk String
- href String
- (String) The URL for this instance disk.
- id String
- (String) The unique identifier of the instance disk.
- instance String
- 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 is used.
- 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.
- disk string
- href string
- (String) The URL for this instance disk.
- id string
- (String) The unique identifier of the instance disk.
- instance string
- 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 is used.
- 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.
- 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).
- created
At 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
- 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 is used.
- 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.