ibm.getIsDedicatedHostDisk
Explore with Pulumi AI
Retrieve the dedicated host disk. For more information, about dedicated host disk, see migrating a dedicated host instance to another host.
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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = ibm.getIsDedicatedHostDisk({
dedicatedHost: ibm_is_dedicated_host.example.id,
disk: data.ibm_is_dedicated_host_disks.example.disks[0].id,
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_dedicated_host_disk(dedicated_host=ibm_is_dedicated_host["example"]["id"],
disk=data["ibm_is_dedicated_host_disks"]["example"]["disks"][0]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.LookupIsDedicatedHostDisk(ctx, &ibm.LookupIsDedicatedHostDiskArgs{
DedicatedHost: ibm_is_dedicated_host.Example.Id,
Disk: data.Ibm_is_dedicated_host_disks.Example.Disks[0].Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = Ibm.GetIsDedicatedHostDisk.Invoke(new()
{
DedicatedHost = ibm_is_dedicated_host.Example.Id,
Disk = data.Ibm_is_dedicated_host_disks.Example.Disks[0].Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsDedicatedHostDiskArgs;
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) {
final var example = IbmFunctions.getIsDedicatedHostDisk(GetIsDedicatedHostDiskArgs.builder()
.dedicatedHost(ibm_is_dedicated_host.example().id())
.disk(data.ibm_is_dedicated_host_disks().example().disks()[0].id())
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsDedicatedHostDisk
arguments:
dedicatedHost: ${ibm_is_dedicated_host.example.id}
disk: ${data.ibm_is_dedicated_host_disks.example.disks[0].id}
Using getIsDedicatedHostDisk
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 getIsDedicatedHostDisk(args: GetIsDedicatedHostDiskArgs, opts?: InvokeOptions): Promise<GetIsDedicatedHostDiskResult>
function getIsDedicatedHostDiskOutput(args: GetIsDedicatedHostDiskOutputArgs, opts?: InvokeOptions): Output<GetIsDedicatedHostDiskResult>
def get_is_dedicated_host_disk(dedicated_host: Optional[str] = None,
disk: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsDedicatedHostDiskResult
def get_is_dedicated_host_disk_output(dedicated_host: Optional[pulumi.Input[str]] = None,
disk: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsDedicatedHostDiskResult]
func LookupIsDedicatedHostDisk(ctx *Context, args *LookupIsDedicatedHostDiskArgs, opts ...InvokeOption) (*LookupIsDedicatedHostDiskResult, error)
func LookupIsDedicatedHostDiskOutput(ctx *Context, args *LookupIsDedicatedHostDiskOutputArgs, opts ...InvokeOption) LookupIsDedicatedHostDiskResultOutput
> Note: This function is named LookupIsDedicatedHostDisk
in the Go SDK.
public static class GetIsDedicatedHostDisk
{
public static Task<GetIsDedicatedHostDiskResult> InvokeAsync(GetIsDedicatedHostDiskArgs args, InvokeOptions? opts = null)
public static Output<GetIsDedicatedHostDiskResult> Invoke(GetIsDedicatedHostDiskInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsDedicatedHostDiskResult> getIsDedicatedHostDisk(GetIsDedicatedHostDiskArgs args, InvokeOptions options)
public static Output<GetIsDedicatedHostDiskResult> getIsDedicatedHostDisk(GetIsDedicatedHostDiskArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsDedicatedHostDisk:getIsDedicatedHostDisk
arguments:
# arguments dictionary
The following arguments are supported:
- Dedicated
Host string - The dedicated host identifier.
- Disk string
- The dedicated host disk identifier.
- Id string
- (String) The unique identifier for this instance disk.
- Dedicated
Host string - The dedicated host identifier.
- Disk string
- The dedicated host disk identifier.
- Id string
- (String) The unique identifier for this instance disk.
- dedicated
Host String - The dedicated host identifier.
- disk String
- The dedicated host disk identifier.
- id String
- (String) The unique identifier for this instance disk.
- dedicated
Host string - The dedicated host identifier.
- disk string
- The dedicated host disk identifier.
- id string
- (String) The unique identifier for this instance disk.
- dedicated_
host str - The dedicated host identifier.
- disk str
- The dedicated host disk identifier.
- id str
- (String) The unique identifier for this instance disk.
- dedicated
Host String - The dedicated host identifier.
- disk String
- The dedicated host disk identifier.
- id String
- (String) The unique identifier for this instance disk.
getIsDedicatedHostDisk Result
The following output properties are available:
- Available double
- (String) The remaining space left for instance placement in GB (gigabytes).
- Created
At string - (Timestamp) The date and time that the disk was created.
- Dedicated
Host string - Disk string
- Href string
- (String) The URL for this instance disk.
- Id string
- (String) The unique identifier for this instance disk.
- Instance
Disks List<GetIs Dedicated Host Disk Instance Disk> - (List) Instance disks that are on the dedicated host disk.
- 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, halts processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
- Lifecycle
State string - (String) The lifecycle state of this dedicated host disk.
- Name string
- (String) The user defined or system provided name for this disk.
- Provisionable bool
- (String) Indicates whether this dedicated host disk is available for instance disk creation.
- Resource
Type string - (String) The type of resource referenced.
- Size double
- (String) The size of the disk in GB (gigabytes).
- Supported
Instance List<string>Interface Types - (String) The instance disk interfaces supported for this dedicated host disk.
- Available float64
- (String) The remaining space left for instance placement in GB (gigabytes).
- Created
At string - (Timestamp) The date and time that the disk was created.
- Dedicated
Host string - Disk string
- Href string
- (String) The URL for this instance disk.
- Id string
- (String) The unique identifier for this instance disk.
- Instance
Disks []GetIs Dedicated Host Disk Instance Disk - (List) Instance disks that are on the dedicated host disk.
- 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, halts processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
- Lifecycle
State string - (String) The lifecycle state of this dedicated host disk.
- Name string
- (String) The user defined or system provided name for this disk.
- Provisionable bool
- (String) Indicates whether this dedicated host disk is available for instance disk creation.
- Resource
Type string - (String) The type of resource referenced.
- Size float64
- (String) The size of the disk in GB (gigabytes).
- Supported
Instance []stringInterface Types - (String) The instance disk interfaces supported for this dedicated host disk.
- available Double
- (String) The remaining space left for instance placement in GB (gigabytes).
- created
At String - (Timestamp) The date and time that the disk was created.
- dedicated
Host String - disk String
- href String
- (String) The URL for this instance disk.
- id String
- (String) The unique identifier for this instance disk.
- instance
Disks List<GetIs Dedicated Host Disk Instance Disk> - (List) Instance disks that are on the dedicated host disk.
- 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, halts processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
- lifecycle
State String - (String) The lifecycle state of this dedicated host disk.
- name String
- (String) The user defined or system provided name for this disk.
- provisionable Boolean
- (String) Indicates whether this dedicated host disk is available for instance disk creation.
- resource
Type String - (String) The type of resource referenced.
- size Double
- (String) The size of the disk in GB (gigabytes).
- supported
Instance List<String>Interface Types - (String) The instance disk interfaces supported for this dedicated host disk.
- available number
- (String) The remaining space left for instance placement in GB (gigabytes).
- created
At string - (Timestamp) The date and time that the disk was created.
- dedicated
Host string - disk string
- href string
- (String) The URL for this instance disk.
- id string
- (String) The unique identifier for this instance disk.
- instance
Disks GetIs Dedicated Host Disk Instance Disk[] - (List) Instance disks that are on the dedicated host disk.
- 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, halts processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
- lifecycle
State string - (String) The lifecycle state of this dedicated host disk.
- name string
- (String) The user defined or system provided name for this disk.
- provisionable boolean
- (String) Indicates whether this dedicated host disk is available for instance disk creation.
- resource
Type string - (String) The type of resource referenced.
- size number
- (String) The size of the disk in GB (gigabytes).
- supported
Instance string[]Interface Types - (String) The instance disk interfaces supported for this dedicated host disk.
- available float
- (String) The remaining space left for instance placement in GB (gigabytes).
- created_
at str - (Timestamp) The date and time that the disk was created.
- dedicated_
host str - disk str
- href str
- (String) The URL for this instance disk.
- id str
- (String) The unique identifier for this instance disk.
- instance_
disks Sequence[GetIs Dedicated Host Disk Instance Disk] - (List) Instance disks that are on the dedicated host disk.
- 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, halts processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
- lifecycle_
state str - (String) The lifecycle state of this dedicated host disk.
- name str
- (String) The user defined or system provided name for this disk.
- provisionable bool
- (String) Indicates whether this dedicated host disk is available for instance disk creation.
- resource_
type str - (String) The type of resource referenced.
- size float
- (String) The size of the disk in GB (gigabytes).
- supported_
instance_ Sequence[str]interface_ types - (String) The instance disk interfaces supported for this dedicated host disk.
- available Number
- (String) The remaining space left for instance placement in GB (gigabytes).
- created
At String - (Timestamp) The date and time that the disk was created.
- dedicated
Host String - disk String
- href String
- (String) The URL for this instance disk.
- id String
- (String) The unique identifier for this instance disk.
- instance
Disks List<Property Map> - (List) Instance disks that are on the dedicated host disk.
- 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, halts processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
- lifecycle
State String - (String) The lifecycle state of this dedicated host disk.
- name String
- (String) The user defined or system provided name for this disk.
- provisionable Boolean
- (String) Indicates whether this dedicated host disk is available for instance disk creation.
- resource
Type String - (String) The type of resource referenced.
- size Number
- (String) The size of the disk in GB (gigabytes).
- supported
Instance List<String>Interface Types - (String) The instance disk interfaces supported for this dedicated host disk.
Supporting Types
GetIsDedicatedHostDiskInstanceDisk
- Deleteds
List<Get
Is Dedicated Host Disk Instance Disk Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides the supplementary information.
- Href string
- (String) The URL for this instance disk.
- Id string
- (String) The unique identifier for this instance disk.
- Name string
- (String) The user defined or system provided name for this disk.
- Resource
Type string - (String) The type of resource referenced.
- Deleteds
[]Get
Is Dedicated Host Disk Instance Disk Deleted - (List) If present, this property indicates the referenced resource has been deleted and provides the supplementary information.
- Href string
- (String) The URL for this instance disk.
- Id string
- (String) The unique identifier for this instance disk.
- Name string
- (String) The user defined or system provided name for this disk.
- Resource
Type string - (String) The type of resource referenced.
- deleteds
List<Get
Is Dedicated Host Disk Instance Disk Deleted> - (List) If present, this property indicates the referenced resource has been deleted and provides the supplementary information.
- href String
- (String) The URL for this instance disk.
- id String
- (String) The unique identifier for this instance disk.
- name String
- (String) The user defined or system provided name for this disk.
- resource
Type String - (String) The type of resource referenced.
- deleteds
Get
Is Dedicated Host Disk Instance Disk Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and provides the supplementary information.
- href string
- (String) The URL for this instance disk.
- id string
- (String) The unique identifier for this instance disk.
- name string
- (String) The user defined or system provided name for this disk.
- resource
Type string - (String) The type of resource referenced.
- deleteds
Sequence[Get
Is Dedicated Host Disk Instance Disk Deleted] - (List) If present, this property indicates the referenced resource has been deleted and provides the supplementary information.
- href str
- (String) The URL for this instance disk.
- id str
- (String) The unique identifier for this instance disk.
- name str
- (String) The user defined or system provided name for this disk.
- resource_
type str - (String) The type of resource referenced.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted and provides the supplementary information.
- href String
- (String) The URL for this instance disk.
- id String
- (String) The unique identifier for this instance disk.
- name String
- (String) The user defined or system provided name for this disk.
- resource
Type String - (String) The type of resource referenced.
GetIsDedicatedHostDiskInstanceDiskDeleted
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.