1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsDedicatedHostDiskManagement
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.IsDedicatedHostDiskManagement

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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";
    
    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) {
        }
    }
    
    {}
    

    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 string
    The unique name of the resource.
    args IsDedicatedHostDiskManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args IsDedicatedHostDiskManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsDedicatedHostDiskManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    example, err := ibm.NewIsDedicatedHostDiskManagement(ctx, "isDedicatedHostDiskManagementResource", &ibm.IsDedicatedHostDiskManagementArgs{
    	DedicatedHost: pulumi.String("string"),
    	Disks: ibm.IsDedicatedHostDiskManagementDiskArray{
    		&ibm.IsDedicatedHostDiskManagementDiskArgs{
    			Id:   pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    	IsDedicatedHostDiskManagementId: pulumi.String("string"),
    })
    
    var isDedicatedHostDiskManagementResource = new IsDedicatedHostDiskManagement("isDedicatedHostDiskManagementResource", IsDedicatedHostDiskManagementArgs.builder()
        .dedicatedHost("string")
        .disks(IsDedicatedHostDiskManagementDiskArgs.builder()
            .id("string")
            .name("string")
            .build())
        .isDedicatedHostDiskManagementId("string")
        .build());
    
    is_dedicated_host_disk_management_resource = ibm.IsDedicatedHostDiskManagement("isDedicatedHostDiskManagementResource",
        dedicated_host="string",
        disks=[{
            "id": "string",
            "name": "string",
        }],
        is_dedicated_host_disk_management_id="string")
    
    const isDedicatedHostDiskManagementResource = new ibm.IsDedicatedHostDiskManagement("isDedicatedHostDiskManagementResource", {
        dedicatedHost: "string",
        disks: [{
            id: "string",
            name: "string",
        }],
        isDedicatedHostDiskManagementId: "string",
    });
    
    type: ibm:IsDedicatedHostDiskManagement
    properties:
        dedicatedHost: string
        disks:
            - id: string
              name: string
        isDedicatedHostDiskManagementId: string
    

    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 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.

    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 string
    The unique-identifier of the dedicated host disk.
    Name string
    The unique user defined name for the dedicated host disk.
    Id string
    The unique-identifier of the dedicated host disk.
    Name string
    The unique user defined name for the dedicated host disk.
    id String
    The unique-identifier of the dedicated host disk.
    name String
    The unique user defined name for the dedicated host disk.
    id string
    The unique-identifier of the dedicated host disk.
    name string
    The unique user defined name for the dedicated host disk.
    id str
    The unique-identifier of the dedicated host disk.
    name str
    The unique user defined name for the dedicated host disk.
    id String
    The unique-identifier of the dedicated host disk.
    name 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
    

    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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud