ibm.getIsDedicatedHostDisks
Explore with Pulumi AI
Retrieve the dedicated host disk collection. For more information, about dedicated host disk collection, see managing dedicated hosts and groups.
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.getIsDedicatedHostDisks({
dedicatedHost: ibm_is_dedicated_host.example.id,
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_dedicated_host_disks(dedicated_host=ibm_is_dedicated_host["example"]["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.GetIsDedicatedHostDisks(ctx, &ibm.GetIsDedicatedHostDisksArgs{
DedicatedHost: ibm_is_dedicated_host.Example.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.GetIsDedicatedHostDisks.Invoke(new()
{
DedicatedHost = ibm_is_dedicated_host.Example.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.GetIsDedicatedHostDisksArgs;
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.getIsDedicatedHostDisks(GetIsDedicatedHostDisksArgs.builder()
.dedicatedHost(ibm_is_dedicated_host.example().id())
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsDedicatedHostDisks
arguments:
dedicatedHost: ${ibm_is_dedicated_host.example.id}
Using getIsDedicatedHostDisks
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 getIsDedicatedHostDisks(args: GetIsDedicatedHostDisksArgs, opts?: InvokeOptions): Promise<GetIsDedicatedHostDisksResult>
function getIsDedicatedHostDisksOutput(args: GetIsDedicatedHostDisksOutputArgs, opts?: InvokeOptions): Output<GetIsDedicatedHostDisksResult>
def get_is_dedicated_host_disks(dedicated_host: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsDedicatedHostDisksResult
def get_is_dedicated_host_disks_output(dedicated_host: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsDedicatedHostDisksResult]
func GetIsDedicatedHostDisks(ctx *Context, args *GetIsDedicatedHostDisksArgs, opts ...InvokeOption) (*GetIsDedicatedHostDisksResult, error)
func GetIsDedicatedHostDisksOutput(ctx *Context, args *GetIsDedicatedHostDisksOutputArgs, opts ...InvokeOption) GetIsDedicatedHostDisksResultOutput
> Note: This function is named GetIsDedicatedHostDisks
in the Go SDK.
public static class GetIsDedicatedHostDisks
{
public static Task<GetIsDedicatedHostDisksResult> InvokeAsync(GetIsDedicatedHostDisksArgs args, InvokeOptions? opts = null)
public static Output<GetIsDedicatedHostDisksResult> Invoke(GetIsDedicatedHostDisksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsDedicatedHostDisksResult> getIsDedicatedHostDisks(GetIsDedicatedHostDisksArgs args, InvokeOptions options)
public static Output<GetIsDedicatedHostDisksResult> getIsDedicatedHostDisks(GetIsDedicatedHostDisksArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsDedicatedHostDisks:getIsDedicatedHostDisks
arguments:
# arguments dictionary
The following arguments are supported:
- Dedicated
Host string - The dedicated host identifier.
- Id string
- (String) The unique identifier of the dedicated host disk collection.
- Dedicated
Host string - The dedicated host identifier.
- Id string
- (String) The unique identifier of the dedicated host disk collection.
- dedicated
Host String - The dedicated host identifier.
- id String
- (String) The unique identifier of the dedicated host disk collection.
- dedicated
Host string - The dedicated host identifier.
- id string
- (String) The unique identifier of the dedicated host disk collection.
- dedicated_
host str - The dedicated host identifier.
- id str
- (String) The unique identifier of the dedicated host disk collection.
- dedicated
Host String - The dedicated host identifier.
- id String
- (String) The unique identifier of the dedicated host disk collection.
getIsDedicatedHostDisks Result
The following output properties are available:
- Dedicated
Host string - Disks
List<Get
Is Dedicated Host Disks Disk> - (List) The collection of the dedicated host's disks.
- Id string
- (String) The unique identifier of the dedicated host disk collection.
- Dedicated
Host string - Disks
[]Get
Is Dedicated Host Disks Disk - (List) The collection of the dedicated host's disks.
- Id string
- (String) The unique identifier of the dedicated host disk collection.
- dedicated
Host String - disks
List<Get
Is Dedicated Host Disks Disk> - (List) The collection of the dedicated host's disks.
- id String
- (String) The unique identifier of the dedicated host disk collection.
- dedicated
Host string - disks
Get
Is Dedicated Host Disks Disk[] - (List) The collection of the dedicated host's disks.
- id string
- (String) The unique identifier of the dedicated host disk collection.
- dedicated_
host str - disks
Sequence[Get
Is Dedicated Host Disks Disk] - (List) The collection of the dedicated host's disks.
- id str
- (String) The unique identifier of the dedicated host disk collection.
- dedicated
Host String - disks List<Property Map>
- (List) The collection of the dedicated host's disks.
- id String
- (String) The unique identifier of the dedicated host disk collection.
Supporting Types
GetIsDedicatedHostDisksDisk
- Available double
- The remaining space left for instance placement in GB (gigabytes).
- Created
At string - 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 dedicated host disk collection.
- Instance
Disks List<GetIs Dedicated Host Disks Disk Instance Disk> - (List) Instance disks that are on this dedicated host disk.
- Interface
Type string - (String) The disk interface used for attaching the diskThe 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.
- 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
- The remaining space left for instance placement in GB (gigabytes).
- Created
At string - 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 dedicated host disk collection.
- Instance
Disks []GetIs Dedicated Host Disks Disk Instance Disk - (List) Instance disks that are on this dedicated host disk.
- Interface
Type string - (String) The disk interface used for attaching the diskThe 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.
- 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
- The remaining space left for instance placement in GB (gigabytes).
- created
At String - 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 dedicated host disk collection.
- instance
Disks List<GetIs Dedicated Host Disks Disk Instance Disk> - (List) Instance disks that are on this dedicated host disk.
- interface
Type String - (String) The disk interface used for attaching the diskThe 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.
- 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
- The remaining space left for instance placement in GB (gigabytes).
- created
At string - 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 dedicated host disk collection.
- instance
Disks GetIs Dedicated Host Disks Disk Instance Disk[] - (List) Instance disks that are on this dedicated host disk.
- interface
Type string - (String) The disk interface used for attaching the diskThe 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.
- 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
- The remaining space left for instance placement in GB (gigabytes).
- created_
at str - 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 dedicated host disk collection.
- instance_
disks Sequence[GetIs Dedicated Host Disks Disk Instance Disk] - (List) Instance disks that are on this dedicated host disk.
- interface_
type str - (String) The disk interface used for attaching the diskThe 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.
- 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
- The remaining space left for instance placement in GB (gigabytes).
- created
At String - 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 dedicated host disk collection.
- instance
Disks List<Property Map> - (List) Instance disks that are on this dedicated host disk.
- interface
Type String - (String) The disk interface used for attaching the diskThe 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.
- 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.
GetIsDedicatedHostDisksDiskInstanceDisk
- Deleteds
List<Get
Is Dedicated Host Disks Disk Instance Disk Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- Href string
- (String) The URL for this instance disk.
- Id string
- (String) The unique identifier of the dedicated host disk collection.
- 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 Disks Disk Instance Disk Deleted - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- Href string
- (String) The URL for this instance disk.
- Id string
- (String) The unique identifier of the dedicated host disk collection.
- 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 Disks Disk Instance Disk Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- href String
- (String) The URL for this instance disk.
- id String
- (String) The unique identifier of the dedicated host disk collection.
- 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 Disks Disk Instance Disk Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- href string
- (String) The URL for this instance disk.
- id string
- (String) The unique identifier of the dedicated host disk collection.
- 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 Disks Disk Instance Disk Deleted] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- href str
- (String) The URL for this instance disk.
- id str
- (String) The unique identifier of the dedicated host disk collection.
- 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 providessome supplementary information.
- href String
- (String) The URL for this instance disk.
- id String
- (String) The unique identifier of the dedicated host disk collection.
- name String
- (String) The user-defined or system-provided name for this disk.
- resource
Type String - (String) The type of resource referenced.
GetIsDedicatedHostDisksDiskInstanceDiskDeleted
- 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.