1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsDedicatedHostDiskManagement
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.IsDedicatedHostDiskManagement

Explore with Pulumi AI

Create, update, delete and suspend the dedicated host disk management resource. For more information, about dedicated host disk management, 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";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

Create IsDedicatedHostDiskManagement Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new IsDedicatedHostDiskManagement(name: string, args: IsDedicatedHostDiskManagementArgs, opts?: CustomResourceOptions);
@overload
def IsDedicatedHostDiskManagement(resource_name: str,
                                  args: IsDedicatedHostDiskManagementArgs,
                                  opts: Optional[ResourceOptions] = None)

@overload
def IsDedicatedHostDiskManagement(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  dedicated_host: Optional[str] = None,
                                  disks: Optional[Sequence[IsDedicatedHostDiskManagementDiskArgs]] = None,
                                  is_dedicated_host_disk_management_id: Optional[str] = None)
func NewIsDedicatedHostDiskManagement(ctx *Context, name string, args IsDedicatedHostDiskManagementArgs, opts ...ResourceOption) (*IsDedicatedHostDiskManagement, error)
public IsDedicatedHostDiskManagement(string name, IsDedicatedHostDiskManagementArgs args, CustomResourceOptions? opts = null)
public IsDedicatedHostDiskManagement(String name, IsDedicatedHostDiskManagementArgs args)
public IsDedicatedHostDiskManagement(String name, IsDedicatedHostDiskManagementArgs args, CustomResourceOptions options)
type: ibm:IsDedicatedHostDiskManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IsDedicatedHostDiskManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IsDedicatedHostDiskManagementArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IsDedicatedHostDiskManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IsDedicatedHostDiskManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IsDedicatedHostDiskManagementArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var isDedicatedHostDiskManagementResource = new Ibm.IsDedicatedHostDiskManagement("isDedicatedHostDiskManagementResource", new()
{
    DedicatedHost = "string",
    Disks = new[]
    {
        new Ibm.Inputs.IsDedicatedHostDiskManagementDiskArgs
        {
            Id = "string",
            Name = "string",
        },
    },
    IsDedicatedHostDiskManagementId = "string",
});
Copy
example, err := ibm.NewIsDedicatedHostDiskManagement(ctx, "isDedicatedHostDiskManagementResource", &ibm.IsDedicatedHostDiskManagementArgs{
DedicatedHost: pulumi.String("string"),
Disks: .IsDedicatedHostDiskManagementDiskArray{
&.IsDedicatedHostDiskManagementDiskArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
IsDedicatedHostDiskManagementId: pulumi.String("string"),
})
Copy
var isDedicatedHostDiskManagementResource = new IsDedicatedHostDiskManagement("isDedicatedHostDiskManagementResource", IsDedicatedHostDiskManagementArgs.builder()
    .dedicatedHost("string")
    .disks(IsDedicatedHostDiskManagementDiskArgs.builder()
        .id("string")
        .name("string")
        .build())
    .isDedicatedHostDiskManagementId("string")
    .build());
Copy
is_dedicated_host_disk_management_resource = ibm.IsDedicatedHostDiskManagement("isDedicatedHostDiskManagementResource",
    dedicated_host="string",
    disks=[{
        "id": "string",
        "name": "string",
    }],
    is_dedicated_host_disk_management_id="string")
Copy
const isDedicatedHostDiskManagementResource = new ibm.IsDedicatedHostDiskManagement("isDedicatedHostDiskManagementResource", {
    dedicatedHost: "string",
    disks: [{
        id: "string",
        name: "string",
    }],
    isDedicatedHostDiskManagementId: "string",
});
Copy
type: ibm:IsDedicatedHostDiskManagement
properties:
    dedicatedHost: string
    disks:
        - id: string
          name: string
    isDedicatedHostDiskManagementId: string
Copy

IsDedicatedHostDiskManagement Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IsDedicatedHostDiskManagement resource accepts the following input properties:

DedicatedHost This property is required. string
The unique-identifier of the dedicated host.
Disks This property is required. List<IsDedicatedHostDiskManagementDisk>

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

IsDedicatedHostDiskManagementId string
(String) The unique-identifier of the dedicated host disk management.
DedicatedHost This property is required. string
The unique-identifier of the dedicated host.
Disks This property is required. []IsDedicatedHostDiskManagementDiskArgs

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

IsDedicatedHostDiskManagementId string
(String) The unique-identifier of the dedicated host disk management.
dedicatedHost This property is required. String
The unique-identifier of the dedicated host.
disks This property is required. List<IsDedicatedHostDiskManagementDisk>

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

isDedicatedHostDiskManagementId String
(String) The unique-identifier of the dedicated host disk management.
dedicatedHost This property is required. string
The unique-identifier of the dedicated host.
disks This property is required. IsDedicatedHostDiskManagementDisk[]

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

isDedicatedHostDiskManagementId string
(String) The unique-identifier of the dedicated host disk management.
dedicated_host This property is required. str
The unique-identifier of the dedicated host.
disks This property is required. Sequence[IsDedicatedHostDiskManagementDiskArgs]

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

is_dedicated_host_disk_management_id str
(String) The unique-identifier of the dedicated host disk management.
dedicatedHost This property is required. String
The unique-identifier of the dedicated host.
disks This property is required. List<Property Map>

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

isDedicatedHostDiskManagementId String
(String) The unique-identifier of the dedicated host disk management.

Outputs

All input properties are implicitly available as output properties. Additionally, the IsDedicatedHostDiskManagement resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing IsDedicatedHostDiskManagement Resource

Get an existing IsDedicatedHostDiskManagement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IsDedicatedHostDiskManagementState, opts?: CustomResourceOptions): IsDedicatedHostDiskManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dedicated_host: Optional[str] = None,
        disks: Optional[Sequence[IsDedicatedHostDiskManagementDiskArgs]] = None,
        is_dedicated_host_disk_management_id: Optional[str] = None) -> IsDedicatedHostDiskManagement
func GetIsDedicatedHostDiskManagement(ctx *Context, name string, id IDInput, state *IsDedicatedHostDiskManagementState, opts ...ResourceOption) (*IsDedicatedHostDiskManagement, error)
public static IsDedicatedHostDiskManagement Get(string name, Input<string> id, IsDedicatedHostDiskManagementState? state, CustomResourceOptions? opts = null)
public static IsDedicatedHostDiskManagement get(String name, Output<String> id, IsDedicatedHostDiskManagementState state, CustomResourceOptions options)
resources:  _:    type: ibm:IsDedicatedHostDiskManagement    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DedicatedHost string
The unique-identifier of the dedicated host.
Disks List<IsDedicatedHostDiskManagementDisk>

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

IsDedicatedHostDiskManagementId string
(String) The unique-identifier of the dedicated host disk management.
DedicatedHost string
The unique-identifier of the dedicated host.
Disks []IsDedicatedHostDiskManagementDiskArgs

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

IsDedicatedHostDiskManagementId string
(String) The unique-identifier of the dedicated host disk management.
dedicatedHost String
The unique-identifier of the dedicated host.
disks List<IsDedicatedHostDiskManagementDisk>

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

isDedicatedHostDiskManagementId String
(String) The unique-identifier of the dedicated host disk management.
dedicatedHost string
The unique-identifier of the dedicated host.
disks IsDedicatedHostDiskManagementDisk[]

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

isDedicatedHostDiskManagementId string
(String) The unique-identifier of the dedicated host disk management.
dedicated_host str
The unique-identifier of the dedicated host.
disks Sequence[IsDedicatedHostDiskManagementDiskArgs]

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

is_dedicated_host_disk_management_id str
(String) The unique-identifier of the dedicated host disk management.
dedicatedHost String
The unique-identifier of the dedicated host.
disks List<Property Map>

Disks that needs to be updated. Nested disks blocks have the following structure:

Nested scheme for disks:

isDedicatedHostDiskManagementId String
(String) The unique-identifier of the dedicated host disk management.

Supporting Types

IsDedicatedHostDiskManagementDisk
, IsDedicatedHostDiskManagementDiskArgs

Id This property is required. string
The unique-identifier of the dedicated host disk.
Name This property is required. string
The unique user defined name for the dedicated host disk.
Id This property is required. string
The unique-identifier of the dedicated host disk.
Name This property is required. string
The unique user defined name for the dedicated host disk.
id This property is required. String
The unique-identifier of the dedicated host disk.
name This property is required. String
The unique user defined name for the dedicated host disk.
id This property is required. string
The unique-identifier of the dedicated host disk.
name This property is required. string
The unique user defined name for the dedicated host disk.
id This property is required. str
The unique-identifier of the dedicated host disk.
name This property is required. str
The unique user defined name for the dedicated host disk.
id This property is required. String
The unique-identifier of the dedicated host disk.
name This property is required. String
The unique user defined name for the dedicated host disk.

Import

The ibm_is_dedicated_host_disk_management resource can be imported by using dedicated host disk management ID.

Example

$ pulumi import ibm:index/isDedicatedHostDiskManagement:IsDedicatedHostDiskManagement example 0716-1c372bb2-decc-4555-b1a6-5d128c612316c
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.